ETH Price: $2,610.52 (-2.78%)

Contract

0x06a347A6f4994FcCa0C91e4261C603d8fF954242
 
Transaction Hash
Method
Block
From
To
Set Approval For...151924652025-02-10 13:39:0530 hrs ago1739194745IN
0x06a347A6...8fF954242
0 ETH0.000000010.00033234
Set Approval For...151389892025-02-09 7:56:332 days ago1739087793IN
0x06a347A6...8fF954242
0 ETH0.000000020.00057164
Set Approval For...150778242025-02-07 21:57:433 days ago1738965463IN
0x06a347A6...8fF954242
0 ETH0.000000080.00184196
Safe Transfer Fr...150725392025-02-07 19:01:334 days ago1738954893IN
0x06a347A6...8fF954242
0 ETH0.000000070.00083993
Set Approval For...148589662025-02-02 20:22:279 days ago1738527747IN
0x06a347A6...8fF954242
0 ETH00.000011
Set Approval For...148156412025-02-01 20:18:1710 days ago1738441097IN
0x06a347A6...8fF954242
0 ETH0.000000060.00136806
Transfer From147990332025-02-01 11:04:4110 days ago1738407881IN
0x06a347A6...8fF954242
0 ETH0.000000010.00023566
Set Approval For...146438132025-01-28 20:50:4113 days ago1738097441IN
0x06a347A6...8fF954242
0 ETH0.000000050.0012169
Set Approval For...146434332025-01-28 20:38:0113 days ago1738096681IN
0x06a347A6...8fF954242
0 ETH00.00016921
Set Approval For...145405762025-01-26 11:29:2716 days ago1737890967IN
0x06a347A6...8fF954242
0 ETH00.00012699
Set Approval For...144685502025-01-24 19:28:3518 days ago1737746915IN
0x06a347A6...8fF954242
0 ETH0.000000060.00149886
Set Approval For...144620792025-01-24 15:52:5318 days ago1737733973IN
0x06a347A6...8fF954242
0 ETH0.000000170.00382314
Set Approval For...144489692025-01-24 8:35:5318 days ago1737707753IN
0x06a347A6...8fF954242
0 ETH0.000000330.0137
Set Approval For...144489632025-01-24 8:35:4118 days ago1737707741IN
0x06a347A6...8fF954242
0 ETH0.000000320.0133
Set Approval For...144489582025-01-24 8:35:3118 days ago1737707731IN
0x06a347A6...8fF954242
0 ETH0.000000320.0133
Set Approval For...144485752025-01-24 8:22:4518 days ago1737706965IN
0x06a347A6...8fF954242
0 ETH0.000000420.00909852
Set Approval For...144419772025-01-24 4:42:4918 days ago1737693769IN
0x06a347A6...8fF954242
0 ETH0.000000140.00614455
Set Approval For...144341312025-01-24 0:21:1718 days ago1737678077IN
0x06a347A6...8fF954242
0 ETH0.000000110.00240132
Set Approval For...144318602025-01-23 23:05:3518 days ago1737673535IN
0x06a347A6...8fF954242
0 ETH00.00014782
Set Approval For...143287042025-01-21 13:47:0321 days ago1737467223IN
0x06a347A6...8fF954242
0 ETH00.00000037
Set Approval For...142951342025-01-20 19:08:0322 days ago1737400083IN
0x06a347A6...8fF954242
0 ETH00.00000029
Set Approval For...142194182025-01-19 1:04:1123 days ago1737248651IN
0x06a347A6...8fF954242
0 ETH00.0000003
Safe Transfer Fr...142189902025-01-19 0:49:5523 days ago1737247795IN
0x06a347A6...8fF954242
0 ETH00.0000003
Set Approval For...141847632025-01-18 5:49:0124 days ago1737179341IN
0x06a347A6...8fF954242
0 ETH00.00001237
Set Approval For...141804892025-01-18 3:26:3324 days ago1737170793IN
0x06a347A6...8fF954242
0 ETH0.000000020.00120855
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
33765582024-05-13 1:15:31274 days ago1715562931
0x06a347A6...8fF954242
7.12418408 ETH
33765312024-05-13 1:14:37274 days ago1715562877
0x06a347A6...8fF954242
2.04999999 ETH
33764592024-05-13 1:12:13274 days ago1715562733
0x06a347A6...8fF954242
5.65 ETH
33764362024-05-13 1:11:27274 days ago1715562687
0x06a347A6...8fF954242
11.35 ETH
23790802024-04-19 23:06:15297 days ago1713567975
0x06a347A6...8fF954242
2 ETH
23735542024-04-19 20:02:03298 days ago1713556923
0x06a347A6...8fF954242
2 ETH
23733052024-04-19 19:53:45298 days ago1713556425
0x06a347A6...8fF954242
2 ETH
23669602024-04-19 16:22:15298 days ago1713543735
0x06a347A6...8fF954242
2 ETH
23653522024-04-19 15:28:39298 days ago1713540519
0x06a347A6...8fF954242
1.16 ETH
23653352024-04-19 15:28:05298 days ago1713540485
0x06a347A6...8fF954242
3.29 ETH
23653192024-04-19 15:27:33298 days ago1713540453
0x06a347A6...8fF954242
6.68 ETH
23634532024-04-19 14:25:21298 days ago1713536721
0x06a347A6...8fF954242
2 ETH
23619452024-04-19 13:35:05298 days ago1713533705
0x06a347A6...8fF954242
0.52533819 ETH
23477042024-04-19 5:40:23298 days ago1713505223
0x06a347A6...8fF954242
1.11487127 ETH
23451112024-04-19 4:13:57298 days ago1713500037
0x06a347A6...8fF954242
3 ETH
23414862024-04-19 2:13:07298 days ago1713492787
0x06a347A6...8fF954242
3 ETH
23406542024-04-19 1:45:23298 days ago1713491123
0x06a347A6...8fF954242
3 ETH
23308432024-04-18 20:18:21299 days ago1713471501
0x06a347A6...8fF954242
1.13391131 ETH
23026912024-04-18 4:39:57299 days ago1713415197
0x06a347A6...8fF954242
1.5 ETH
22790172024-04-17 15:30:49300 days ago1713367849
0x06a347A6...8fF954242
3 ETH
22769602024-04-17 14:22:15300 days ago1713363735
0x06a347A6...8fF954242
2.18 ETH
21990042024-04-15 19:03:43302 days ago1713207823
0x06a347A6...8fF954242
0.09566666 ETH
21989882024-04-15 19:03:11302 days ago1713207791
0x06a347A6...8fF954242
0.53133333 ETH
13748142024-03-27 17:10:43321 days ago1711559443
0x06a347A6...8fF954242
0.04 ETH
13657942024-03-27 12:10:03321 days ago1711541403
0x06a347A6...8fF954242
0.08 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NewBlastCity

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 21 : NewBlastCity.sol
// SPDX-License-Identifier: MIT
/*
ooooooooo ooooooooo ooooooooo ooooooooo ooooooooo ooooooooo ooooooooo ooooooooo ooooooooo ooooooooo ooooooooo                                                                                                                        
                                                                                                                    
                                                                                                                                                                                                                    
    oooo   oooo ooooooooooo oooo     oooo      oooooooooo ooooo            o       oooooooo8 ooooooooooo           
     8888o  88   888    88   88   88  88        888    888 888            888     888        88  888  88           
     88 888o88   888ooo8      88 888 88         888oooo88  888           8  88     888oooooo     888               
     88   8888   888    oo     888 888          888    888 888      o   8oooo88           888    888               
    o88o    88  o888ooo8888     8   8          o888ooo888 o888ooooo88 o88o  o888o o88oooo888    o888o              
                                                                                                                    
                                    oooooooo8 ooooo ooooooooooo ooooo  oooo                                        
                                  o888     88  888  88  888  88   888  88                                          
                                  888          888      888         888                                            
                                  888o     oo  888      888         888                                            
                                   888oooo88  o888o    o888o       o888o                                           
                                                                                                                    
               ................................................................................
               ................................................................................
               ................................................................................
               ................................................................................
               ....................................@&@@@@@@#...................................
               ................................@&&@&&@&@@&&%%%%%%%.............................
               ............................./&&@@@@@@@&&&@&&&%%#%%%(...........................
               ............................&&&@@@@@@@@@&&&@@&&%%%%%&&..........................
               ..........................(@@@&@@@@(((/((&&&@&&&&&&%%%&.........................
               .......................@&&&&&@&&@@%#///@&&&&&@&&&&&&&%%///......................
               ......................,@@@&&%%%%&&@@@&&&@%%%%&@&&&&&&&%%%&%.....................
               ......................@@@@@@%%%%/&@@&&&@%%&%%%&&&&&&&&(#@.......................
               ......................@@@&&@&#@&&&&&&&@&#&&&%%#%%%%%%%%%@#......................
               ......................@@@@@@&&&&%&&&&@&&&&%&%*%#####%%#%&@@.....................
               .......................@@@@&@@@@&&@@@&&@@&&&&%**(((###%%@.......................
               ........................@@@@@&/%@@@@@&&&&&%&,/((//,(*%#&/.......................
               .......................@***&@###/*&@&&@&&&&%/%(((((/**@@........................
               ....................&@&******%@###/(&%&&/%&&%&%((,*%%@*.........................
               ..................@&&@(***@*****@@@@&&&@&&%&&%/%/*%%@(%.........................
               .............../&@@&&&&@**#,,,,,/**@&&&&&@&&@&&&&&&.............................
               ............@&&&@&&&&&&&%%(,,,,,,,***.,@&@&&@@@@@@&&%...........................
               ........%&&&@&&&&&&@&%%%%&&%@&@/,,,,,*,,,,,/@#%&&&&&&&%&&@/.....................
               .....@&&@&&&&&&&%%%%@@&&%&@%%%%@&&@@&&&&&@@&&&&&&@%%%%@%%%%%%%%@&...............
               .(&&@&@&&&&&&&&&%%%%%%%%@@%%%%%%%%@&&&&&&&&&&&&&&@%%%#&&%%%%%%%%%%%%@&&.........
               %&&&&&@&&&&&&&&&&&%%%%%%%%%%%%%%%%%#@&&&&&&&&&&&&@%%%%%%%%%%%%%%%%%%%%%%%@......
               @&&&&&@%@&&&#/&&/.&@(@&/@%%@%%%%%%%%%(@&&&&&&&&&&@%%#@@%&#%%*@%/.%&(@@%%%%#%....
               %&%%&&&&(@&&@@&&@@&&&&%%%%%&@&%@%%%%%%((@&&&&&&&&@%%%&%%%%%%%%%%&&%@%%@&&%%(@...
               %&&%%%%&&%@&&&&%%&%%%&&&&%%&%%&&&@%%@%%#(%@&&&&&&@%%%(*%&&&%%%%%%%%%%%%&&&%%%@..
               %&&&%%%%%&#@%#&&((&&#@%/,&#(%%/.%&#@&@%%%%(@&&&&@@%&@/,%%/%%%#%%#*%&&%%@&&%%%%..
               %&&&%%%%%%@%@*&&/*&&/@&#(%@&&%&&%&&&%@&&&@%%@&&&&@%%%%%%%&&%&(@%/,%&/@%@&&%&%%@.
               %&&&&%%%%%%%@@@@&@@@&&&&&&&&&%%%%%%%%%%%%%&&%%&&&@%&%%%%%%%%%%%%%&@@@###&&&%%%@.
               %&%%%%%%%%%%&&&&&&&&&&&&&&%%%%%%%%%%%%%%%%%%&@%&&&&%%%%%%%%%%%%%%%%%%%%%@&&%%%%.                                                                                                                    
                                                                                                                    
                                                                                                                         
ooooooooo ooooooooo ooooooooo ooooooooo ooooooooo ooooooooo ooooooooo ooooooooo ooooooooo ooooooooo ooooooooo       
*/                                                                                                                    
pragma solidity ^0.8.23;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./IBlast.sol";
import "./IBlastPoints.sol";


contract NewBlastCity is 
    ERC721Enumerable, 
    Ownable, 
    ReentrancyGuard,
    Pausable
{
    // BLAST CONTRACTS
    address public BLAST_GAS_YIELD_CONTRACT = 0x4300000000000000000000000000000000000002;
    address public BLAST_POINTS_CONTRACT = 0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800;
    
    // NFT VARIABLES
    string private _baseURIextended;
    string public PROVENANCE;
    mapping(uint256 => bool) public tokenOneOfOneByIndex;
 
    // MINT VARIABLES
    mapping(address => uint256) public whitelistClaimed;
    bytes32 public immutable OG_MERKLE_ROOT;
    bytes32 public immutable WHITELIST_MERKLE_ROOT;
    uint256 public constant MAX_OG_MINT = 3;
    uint256 public constant MAX_WHITELIST_MINT = 2;
    uint256 public constant MAX_PUBLIC_MINT = 2;
    uint256 public constant OG_MINT_PRICE = 0.03 ether;
    uint256 public constant WHITELIST_MINT_PRICE = 0.035 ether;
    uint256 public constant PUBLIC_MINT_PRICE = 0.04 ether;
    uint256 public constant MAX_SUPPLY = 8000;
    uint256 public ogMintStartTime;
    uint256 public whitelistMintStartTime;
    uint256 public publicMintStartTime;

    // FACTION VARIABLES
    mapping(uint256 => Faction) public tokenFactionByIndex;
    struct Faction {
        // 0 = terran, 1 = synthar, 2 = automata, 3 = animus, 4 = exile
        uint256 factionId;
    }

    // EVENTS
    event BaseURIUpdated(string newBaseURI);
    event ProvenanceUpdated(string newProvenance);
    event GasClaimed(address sender);
    event YieldClaimed(address sender);

    // MODIFIERS
    modifier mintingIsOpen(uint256 _startTime, string memory _windowName) {
        require(
            block.timestamp >= _startTime,
            string(abi.encodePacked(_windowName, " mint is closed"))
        );

        _;
    }

    constructor(
        bytes32 _merkleRootOG,
        bytes32 _merkleRootWhitelist,
        address _initialOwner
    ) ERC721("New Blast City", "NBC") Ownable(_initialOwner) {
        OG_MERKLE_ROOT = _merkleRootOG;
        WHITELIST_MERKLE_ROOT = _merkleRootWhitelist;
        IBlast(BLAST_GAS_YIELD_CONTRACT).configureClaimableGas();
        IBlast(BLAST_GAS_YIELD_CONTRACT).configureAutomaticYield();
    }

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    // Set minting windows
    function setMintingWindows(
        uint256 _ogMintStartTime,
        uint256 _whitelistMintStartTime,
        uint256 _publicMintStartTime
    ) public onlyOwner {
        require(
            _publicMintStartTime > _whitelistMintStartTime &&
            _whitelistMintStartTime > _ogMintStartTime &&
            _ogMintStartTime > block.timestamp,
            "Invalid minting windows"
        );

        ogMintStartTime = _ogMintStartTime;
        whitelistMintStartTime = _whitelistMintStartTime;
        publicMintStartTime = _publicMintStartTime;
    }
    
    // Team mint function
    function teamMint(address _address, uint256 _mintAmount) 
        public 
        onlyOwner 
        nonReentrant 
        whenNotPaused 
    {
        uint256 supply = totalSupply();
        require(supply + _mintAmount <= MAX_SUPPLY, "Would exceed max supply");

        for (uint256 i = 1; i <= _mintAmount; i++) {
            _safeMint(_address, supply + i);
        }
    }

    // OG mint function
    function ogMint(uint256 _mintAmount, bytes32[] calldata _merkleProof)
        public
        payable
        nonReentrant
        whenNotPaused
        mintingIsOpen(ogMintStartTime, "OG")
    {
        require(_mintAmount > 0, "You must mint at least one token");
        require(whitelistClaimed[msg.sender] + _mintAmount <= MAX_OG_MINT, "Max mint is 3 per wallet");

        uint256 supply = totalSupply();
        require(supply + _mintAmount <= MAX_SUPPLY, "Purchase would exceed max supply");

        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(
            MerkleProof.verify(_merkleProof, OG_MERKLE_ROOT, leaf),
            "Invalid proof"
        );
        require(msg.value >= _mintAmount * OG_MINT_PRICE, "Invalid ETH sent");

        whitelistClaimed[msg.sender] += _mintAmount;
        for (uint256 i = 1; i <= _mintAmount; i++) {
            uint256 newTokenId = supply + i;
            _safeMint(msg.sender, newTokenId);
        }
    }

    // Whitelist mint function
    function whitelistMint(uint256 _mintAmount, bytes32[] calldata _merkleProof)
        public
        payable
        nonReentrant
        whenNotPaused
        mintingIsOpen(whitelistMintStartTime, "Whitelist")
    {
        require(_mintAmount > 0, "You must mint at least one token");

        uint256 claimed = whitelistClaimed[msg.sender];
        require(claimed <= MAX_WHITELIST_MINT, "You have already claimed. Try again in public.");
        require(claimed + _mintAmount <= MAX_WHITELIST_MINT, "Max mint is 2 per wallet");
        
        uint256 supply = totalSupply();
        require(supply + _mintAmount <= MAX_SUPPLY, "Purchase would exceed max supply");

        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(
            MerkleProof.verify(_merkleProof, WHITELIST_MERKLE_ROOT, leaf),
            "Invalid proof"
        );
        require(msg.value >= _mintAmount * WHITELIST_MINT_PRICE, "Invalid ETH sent");

        whitelistClaimed[msg.sender] += _mintAmount;
        for (uint256 i = 1; i <= _mintAmount; i++) {
            uint256 newTokenId = supply + i;
            _safeMint(msg.sender, newTokenId);
        }
    }

    // Public mint function
    function publicMint(uint256 _mintAmount)
        public
        payable
        nonReentrant
        whenNotPaused
        mintingIsOpen(publicMintStartTime, "Public")
    {
        require(_mintAmount > 0, "You must mint at least one token");
        require(_mintAmount <= MAX_PUBLIC_MINT, "Max mint is 2 per transaction");

        uint256 supply = totalSupply();
        require(supply + _mintAmount <= MAX_SUPPLY, "Purchase would exceed max supply");

        require(msg.value >= _mintAmount * PUBLIC_MINT_PRICE, "Invalid ETH sent");

        for (uint256 i = 1; i <= _mintAmount; i++) {
            uint256 newTokenId = supply + i;
            _safeMint(msg.sender, newTokenId);
        }
    }

    // Set the base URI
    function setBaseURI(string memory baseURI_) public onlyOwner {
        _baseURIextended = baseURI_;
        emit BaseURIUpdated(baseURI_);
    }

    // Get the base URI
    function _baseURI() internal view virtual override returns (string memory) {
        return _baseURIextended;
    }

    // Set the provenance
    function setProvenance(string memory _provenance) public onlyOwner {
        PROVENANCE = _provenance;
        emit ProvenanceUpdated(_provenance);
    }

    // Set token faction data
    function updateFactions(uint256[] memory _tokenIds, uint256[] memory _factionIds) public onlyOwner {
      require(_tokenIds.length == _factionIds.length, "Input arrays must be of the same length");

      for (uint256 i = 0; i < _tokenIds.length; i++) {
        require(_factionIds[i] <= 4, "Invalid factionId, must be between 0 and 4");
        require(_tokenIds[i] >= 1 && _tokenIds[i] <= MAX_SUPPLY, "Invalid tokenId, must be within valid supply range");

        tokenFactionByIndex[_tokenIds[i]] = Faction(_factionIds[i]);
      }
    }

    // Get token faction data
    function getTokenFaction(uint256 _tokenId) public view returns (uint256) { 
        return tokenFactionByIndex[_tokenId].factionId;
    }

    // Set one of ones
    function setOneOfOnes(uint256[] memory _tokenIds) public onlyOwner nonReentrant {
         for (uint256 i = 0; i < _tokenIds.length; i++) {
            require(_tokenIds[i] >= 1 && _tokenIds[i] <= MAX_SUPPLY, "Invalid tokenId, must be within valid supply range");
            if (!tokenOneOfOneByIndex[_tokenIds[i]]) {
                tokenOneOfOneByIndex[_tokenIds[i]] = true;
            } else {
                tokenOneOfOneByIndex[_tokenIds[i]] = false;
            }
        }
    }

    // Withdraw Function
    function withdraw(
        address payable withdrawalAddress,
        uint256 amount
    ) external onlyOwner nonReentrant {
      
        require(withdrawalAddress != address(0), "Invalid withdrawal address");
        require(amount > 0, "Amount must be greater than 0");
        require(
            address(this).balance >= amount,
            "Insufficient contract balance"
        );

        withdrawalAddress.transfer(amount);
    }

    // BLAST Functions
    function setBlastGasAddress(address addr) external onlyOwner {
        BLAST_GAS_YIELD_CONTRACT = addr;
    }

    function setBlastPointsAddress(address addr) external onlyOwner {
        BLAST_POINTS_CONTRACT = addr;
    }

    function configureBlastPointsOperator(address operator) external onlyOwner {
        IBlastPoints(BLAST_POINTS_CONTRACT).configurePointsOperator(operator);
    }

    function configureBlastGasYield() external onlyOwner {
        IBlast(BLAST_GAS_YIELD_CONTRACT).configureAutomaticYield();
        IBlast(BLAST_GAS_YIELD_CONTRACT).configureClaimableGas();
    }

    function claimMaxGas() external onlyOwner {
        IBlast(BLAST_GAS_YIELD_CONTRACT).claimMaxGas(address(this), msg.sender);
        emit GasClaimed(msg.sender);
    }

    function readClaimableGas() public view returns (uint256) {
      (, uint256 etherBalance, , ) = IBlast(BLAST_GAS_YIELD_CONTRACT).readGasParams(address(this));
      return etherBalance;
    }


    // Recover ERC20 Tokens
    function recoverERC20(
        address tokenAddress,
        uint256 tokenAmount,
        address to
    ) external onlyOwner {
        require(to != address(0), "Cannot send to zero address");
        require(IERC20(tokenAddress).transfer(to, tokenAmount), "ERC20 transfer failed");
    }

    // Recover ERC721 Tokens
    function recoverERC721(
        address tokenAddress,
        uint256 tokenId,
        address to
    ) external onlyOwner {
        require(to != address(0), "Cannot send to zero address");
        IERC721Enumerable(tokenAddress).transferFrom(address(this), to, tokenId);
    }
    
    // Receive Ether
    receive() external payable {}
}

File 2 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 21 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 4 of 21 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

File 5 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.20;

import {IERC721} from "./IERC721.sol";
import {IERC721Receiver} from "./IERC721Receiver.sol";
import {IERC721Metadata} from "./extensions/IERC721Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {Strings} from "../../utils/Strings.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";
import {IERC721Errors} from "../../interfaces/draft-IERC6093.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}.
 */
abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors {
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    mapping(uint256 tokenId => address) private _owners;

    mapping(address owner => uint256) private _balances;

    mapping(uint256 tokenId => address) private _tokenApprovals;

    mapping(address owner => mapping(address operator => 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 returns (uint256) {
        if (owner == address(0)) {
            revert ERC721InvalidOwner(address(0));
        }
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual returns (address) {
        return _requireOwned(tokenId);
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual returns (string memory) {
        _requireOwned(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string.concat(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 overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual {
        _approve(to, tokenId, _msgSender());
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual returns (address) {
        _requireOwned(tokenId);

        return _getApproved(tokenId);
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists
        // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here.
        address previousOwner = _update(to, tokenId, _msgSender());
        if (previousOwner != from) {
            revert ERC721IncorrectOwner(from, tokenId, previousOwner);
        }
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual {
        transferFrom(from, to, tokenId);
        _checkOnERC721Received(from, to, tokenId, data);
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     *
     * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the
     * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances
     * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by
     * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`.
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted.
     */
    function _getApproved(uint256 tokenId) internal view virtual returns (address) {
        return _tokenApprovals[tokenId];
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in
     * particular (ignoring whether it is owned by `owner`).
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) {
        return
            spender != address(0) &&
            (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender);
    }

    /**
     * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.
     * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets
     * the `spender` for the specific `tokenId`.
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual {
        if (!_isAuthorized(owner, spender, tokenId)) {
            if (owner == address(0)) {
                revert ERC721NonexistentToken(tokenId);
            } else {
                revert ERC721InsufficientApproval(spender, tokenId);
            }
        }
    }

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that
     * a uint256 would ever overflow from increments when these increments are bounded to uint128 values.
     *
     * WARNING: Increasing an account's balance using this function tends to be paired with an override of the
     * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership
     * remain consistent with one another.
     */
    function _increaseBalance(address account, uint128 value) internal virtual {
        unchecked {
            _balances[account] += value;
        }
    }

    /**
     * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner
     * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update.
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that
     * `auth` is either the owner of the token, or approved to operate on the token (by the owner).
     *
     * Emits a {Transfer} event.
     *
     * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}.
     */
    function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) {
        address from = _ownerOf(tokenId);

        // Perform (optional) operator check
        if (auth != address(0)) {
            _checkAuthorized(from, auth, tokenId);
        }

        // Execute the update
        if (from != address(0)) {
            // Clear approval. No need to re-authorize or emit the Approval event
            _approve(address(0), tokenId, address(0), false);

            unchecked {
                _balances[from] -= 1;
            }
        }

        if (to != address(0)) {
            unchecked {
                _balances[to] += 1;
            }
        }

        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        return from;
    }

    /**
     * @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 {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        address previousOwner = _update(to, tokenId, address(0));
        if (previousOwner != address(0)) {
            revert ERC721InvalidSender(address(0));
        }
    }

    /**
     * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance.
     *
     * 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 {
        _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);
        _checkOnERC721Received(address(0), to, tokenId, data);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal {
        address previousOwner = _update(address(0), tokenId, address(0));
        if (previousOwner == address(0)) {
            revert ERC721NonexistentToken(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 {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        address previousOwner = _update(to, tokenId, address(0));
        if (previousOwner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        } else if (previousOwner != from) {
            revert ERC721IncorrectOwner(from, tokenId, previousOwner);
        }
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients
     * are aware of the ERC721 standard 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 like {safeTransferFrom} in the sense that it invokes
     * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `tokenId` token must exist and be owned by `from`.
     * - `to` cannot be the zero address.
     * - `from` cannot be the zero address.
     * - 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) internal {
        _safeTransfer(from, to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {
        _transfer(from, to, tokenId);
        _checkOnERC721Received(from, to, tokenId, data);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is
     * either the owner of the token, or approved to operate on all tokens held by this owner.
     *
     * Emits an {Approval} event.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address to, uint256 tokenId, address auth) internal {
        _approve(to, tokenId, auth, true);
    }

    /**
     * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not
     * emitted in the context of transfers.
     */
    function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual {
        // Avoid reading the owner unless necessary
        if (emitEvent || auth != address(0)) {
            address owner = _requireOwned(tokenId);

            // We do not use _isAuthorized because single-token approvals should not be able to call approve
            if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) {
                revert ERC721InvalidApprover(auth);
            }

            if (emitEvent) {
                emit Approval(owner, to, tokenId);
            }
        }

        _tokenApprovals[tokenId] = to;
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Requirements:
     * - operator can't be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        if (operator == address(0)) {
            revert ERC721InvalidOperator(operator);
        }
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).
     * Returns the owner.
     *
     * Overrides to ownership logic should be done to {_ownerOf}.
     */
    function _requireOwned(uint256 tokenId) internal view returns (address) {
        address owner = _ownerOf(tokenId);
        if (owner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        }
        return owner;
    }

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the
     * recipient doesn't accept the token transfer. 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
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private {
        if (to.code.length > 0) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                if (retval != IERC721Receiver.onERC721Received.selector) {
                    revert ERC721InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert ERC721InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }
}

File 6 of 21 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.20;

import {ERC721} from "../ERC721.sol";
import {IERC721Enumerable} from "./IERC721Enumerable.sol";
import {IERC165} from "../../../utils/introspection/ERC165.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability
 * of all the token ids in the contract as well as all token ids owned by each account.
 *
 * CAUTION: `ERC721` extensions that implement custom `balanceOf` logic, such as `ERC721Consecutive`,
 * interfere with enumerability and should not be used together with `ERC721Enumerable`.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    mapping(address owner => mapping(uint256 index => uint256)) private _ownedTokens;
    mapping(uint256 tokenId => uint256) private _ownedTokensIndex;

    uint256[] private _allTokens;
    mapping(uint256 tokenId => uint256) private _allTokensIndex;

    /**
     * @dev An `owner`'s token query was out of bounds for `index`.
     *
     * NOTE: The owner being `address(0)` indicates a global out of bounds index.
     */
    error ERC721OutOfBoundsIndex(address owner, uint256 index);

    /**
     * @dev Batch mint is not allowed.
     */
    error ERC721EnumerableForbiddenBatchMint();

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual returns (uint256) {
        if (index >= balanceOf(owner)) {
            revert ERC721OutOfBoundsIndex(owner, index);
        }
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual returns (uint256) {
        if (index >= totalSupply()) {
            revert ERC721OutOfBoundsIndex(address(0), index);
        }
        return _allTokens[index];
    }

    /**
     * @dev See {ERC721-_update}.
     */
    function _update(address to, uint256 tokenId, address auth) internal virtual override returns (address) {
        address previousOwner = super._update(to, tokenId, auth);

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

        return previousOwner;
    }

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

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

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

        uint256 lastTokenIndex = balanceOf(from);
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

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

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

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

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

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

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

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

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

    /**
     * See {ERC721-_increaseBalance}. We need that to account tokens that were minted in batch
     */
    function _increaseBalance(address account, uint128 amount) internal virtual override {
        if (amount > 0) {
            revert ERC721EnumerableForbiddenBatchMint();
        }
        super._increaseBalance(account, amount);
    }
}

File 7 of 21 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.20;

import {IERC721} from "../IERC721.sol";

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

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

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

File 8 of 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.20;

import {IERC721} from "../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 9 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../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`.
     *
     * 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;

    /**
     * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 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 address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

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

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

File 10 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.20;

/**
 * @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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 21 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 12 of 21 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.20;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the Merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates Merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     *@dev The multiproof provided is not valid.
     */
    error MerkleProofInvalidMultiproof();

    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     */
    function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Sorts the pair (a, b) and hashes the result.
     */
    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    /**
     * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.
     */
    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 13 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./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);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 14 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @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 21 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 16 of 21 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 17 of 21 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

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

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

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

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

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

File 18 of 21 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

File 19 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant HEX_DIGITS = "0123456789abcdef";
    uint8 private constant ADDRESS_LENGTH = 20;

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        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_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
     * representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 20 of 21 : IBlast.sol
enum YieldMode {
    AUTOMATIC,
    VOID,
    CLAIMABLE
}

enum GasMode {
    VOID,
    CLAIMABLE 
}

interface IBlast{
    // configure
    function configureContract(address contractAddress, YieldMode _yield, GasMode gasMode, address governor) external;
    function configure(YieldMode _yield, GasMode gasMode, address governor) external;

    // base configuration options
    function configureClaimableYield() external;
    function configureClaimableYieldOnBehalf(address contractAddress) external;
    function configureAutomaticYield() external;
    function configureAutomaticYieldOnBehalf(address contractAddress) external;
    function configureVoidYield() external;
    function configureVoidYieldOnBehalf(address contractAddress) external;
    function configureClaimableGas() external;
    function configureClaimableGasOnBehalf(address contractAddress) external;
    function configureVoidGas() external;
    function configureVoidGasOnBehalf(address contractAddress) external;
    function configureGovernor(address _governor) external;
    function configureGovernorOnBehalf(address _newGovernor, address contractAddress) external;

    // claim yield
    function claimYield(address contractAddress, address recipientOfYield, uint256 amount) external returns (uint256);
    function claimAllYield(address contractAddress, address recipientOfYield) external returns (uint256);

    // claim gas
    function claimAllGas(address contractAddress, address recipientOfGas) external returns (uint256);
    function claimGasAtMinClaimRate(address contractAddress, address recipientOfGas, uint256 minClaimRateBips) external returns (uint256);
    function claimMaxGas(address contractAddress, address recipientOfGas) external returns (uint256);
    function claimGas(address contractAddress, address recipientOfGas, uint256 gasToClaim, uint256 gasSecondsToConsume) external returns (uint256);

    // read functions
    function readClaimableYield(address contractAddress) external view returns (uint256);
    function readYieldConfiguration(address contractAddress) external view returns (uint8);
    function readGasParams(address contractAddress) external view returns (uint256 etherSeconds, uint256 etherBalance, uint256 lastUpdated, GasMode);
}

File 21 of 21 : IBlastPoints.sol
interface IBlastPoints {
    function configurePointsOperator(address operator) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bytes32","name":"_merkleRootOG","type":"bytes32"},{"internalType":"bytes32","name":"_merkleRootWhitelist","type":"bytes32"},{"internalType":"address","name":"_initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ERC721EnumerableForbiddenBatchMint","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"ERC721OutOfBoundsIndex","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"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":false,"internalType":"string","name":"newBaseURI","type":"string"}],"name":"BaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"GasClaimed","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newProvenance","type":"string"}],"name":"ProvenanceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"YieldClaimed","type":"event"},{"inputs":[],"name":"BLAST_GAS_YIELD_CONTRACT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BLAST_POINTS_CONTRACT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_OG_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PUBLIC_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WHITELIST_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OG_MERKLE_ROOT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OG_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MERKLE_ROOT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MINT_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":[],"name":"claimMaxGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"configureBlastGasYield","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"configureBlastPointsOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTokenFaction","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":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"ogMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"ogMintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"readClaimableGas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"recoverERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setBlastGasAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setBlastPointsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ogMintStartTime","type":"uint256"},{"internalType":"uint256","name":"_whitelistMintStartTime","type":"uint256"},{"internalType":"uint256","name":"_publicMintStartTime","type":"uint256"}],"name":"setMintingWindows","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"setOneOfOnes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenance","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenFactionByIndex","outputs":[{"internalType":"uint256","name":"factionId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenOneOfOneByIndex","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_factionIds","type":"uint256[]"}],"name":"updateFactions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistMintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"withdrawalAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c0604052600c805474430000000000000000000000000000000000000200610100600160a81b0319909116179055600d80546001600160a01b031916732536fe9ab3f511540f2f9e2ec2a805005c3dd8001790553480156200006157600080fd5b5060405162003a7638038062003a76833981016040819052620000849162000267565b806040518060400160405280600e81526020016d4e657720426c617374204369747960901b815250604051806040016040528060038152602001624e424360e81b8152508160009081620000d9919062000356565b506001620000e8828262000356565b5050506001600160a01b0381166200011a57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b620001258162000215565b506001600b55600c805460ff191690819055608084905260a083905260408051634e606c4760e01b815290516101009092046001600160a01b031691634e606c479160048082019260009290919082900301818387803b1580156200018957600080fd5b505af11580156200019e573d6000803e3d6000fd5b50505050600c60019054906101000a90046001600160a01b03166001600160a01b0316637114177a6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015620001f357600080fd5b505af115801562000208573d6000803e3d6000fd5b5050505050505062000422565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806000606084860312156200027d57600080fd5b83516020850151604086015191945092506001600160a01b0381168114620002a457600080fd5b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002da57607f821691505b602082108103620002fb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000351576000816000526020600020601f850160051c810160208610156200032c5750805b601f850160051c820191505b818110156200034d5782815560010162000338565b5050505b505050565b81516001600160401b03811115620003725762000372620002af565b6200038a81620003838454620002c5565b8462000301565b602080601f831160018114620003c25760008415620003a95750858301515b600019600386901b1c1916600185901b1785556200034d565b600085815260208120601f198616915b82811015620003f357888601518255948401946001909101908401620003d2565b5085821015620004125787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05161362062000456600039600081816107db0152611cea0152600081816104d30152610f4101526136206000f3fe6080604052600436106103905760003560e01c8063715018a6116101dc578063c87b56dd11610102578063e8a89e8e116100a0578063f2fde38b1161006f578063f2fde38b14610a1f578063f3fef3a314610a3f578063f48c767314610a5f578063ffe630b514610a7a57600080fd5b8063e8a89e8e146109b5578063e985e9c5146109ca578063f00de928146109ea578063f0e9fcd1146109ff57600080fd5b8063d2cab056116100dc578063d2cab05614610932578063d3cf00a314610945578063db4bec441461095b578063db67f6171461098857600080fd5b8063c87b56dd146108cd578063c96bb6b8146108ed578063cfed0c9c1461090d57600080fd5b8063aca9938d1161017a578063b51609b411610149578063b51609b41461086d578063b88d4fde1461088d578063bec18d84146108ad578063c08dfd3c146106c657600080fd5b8063aca9938d146107fd578063add5a4fa14610818578063ae32b7b014610838578063b2b8c93f1461085857600080fd5b80638da5cb5b116101b65780638da5cb5b1461077657806395d89b4114610794578063a22cb465146107a9578063a664eb90146107c957600080fd5b8063715018a61461072c5780638456cb59146107415780638593d6d91461075657600080fd5b806332cb6b0c116102c15780635c975abb1161025f57806365f130971161022e57806365f13097146106c657806367bd4b5d146106db5780636bde2627146106f157806370a082311461070c57600080fd5b80635c975abb1461064c57806360fc2c92146106645780636352211e146106915780636373a6b1146106b157600080fd5b8063454cb4651161029b578063454cb465146105bc5780634f6ccce7146105ec5780634fb054151461060c57806355f804b31461062c57600080fd5b806332cb6b0c146105715780633f4ba83a1461058757806342842e0e1461059c57600080fd5b80631e8a2a561161032e5780632b314dc6116103085780632b314dc6146105155780632bb1a91a146105285780632db115441461053e5780632f745c591461055157600080fd5b80631e8a2a56146104ac5780631f09836c146104c157806323b872dd146104f557600080fd5b8063081812fc1161036a578063081812fc14610415578063095ea7b31461044d5780630ca9ed731461046d57806318160ddd1461048d57600080fd5b806301ffc9a71461039c57806305f61aa5146103d157806306fdde03146103f357600080fd5b3661039757005b600080fd5b3480156103a857600080fd5b506103bc6103b7366004612cd0565b610a9a565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103f16103ec366004612d02565b610ac5565b005b3480156103ff57600080fd5b50610408610af5565b6040516103c89190612d6f565b34801561042157600080fd5b50610435610430366004612d82565b610b87565b6040516001600160a01b0390911681526020016103c8565b34801561045957600080fd5b506103f1610468366004612d9b565b610bb0565b34801561047957600080fd5b506103f1610488366004612dc7565b610bbf565b34801561049957600080fd5b506008545b6040519081526020016103c8565b3480156104b857600080fd5b506103f1610c3f565b3480156104cd57600080fd5b5061049e7f000000000000000000000000000000000000000000000000000000000000000081565b34801561050157600080fd5b506103f1610510366004612df3565b610d19565b6103f1610523366004612e34565b610d9e565b34801561053457600080fd5b5061049e60135481565b6103f161054c366004612d82565b611046565b34801561055d57600080fd5b5061049e61056c366004612d9b565b6111da565b34801561057d57600080fd5b5061049e611f4081565b34801561059357600080fd5b506103f161123f565b3480156105a857600080fd5b506103f16105b7366004612df3565b611251565b3480156105c857600080fd5b506103bc6105d7366004612d82565b60106020526000908152604090205460ff1681565b3480156105f857600080fd5b5061049e610607366004612d82565b61126c565b34801561061857600080fd5b506103f1610627366004612f7a565b6112c5565b34801561063857600080fd5b506103f1610647366004613036565b61147c565b34801561065857600080fd5b50600c5460ff166103bc565b34801561067057600080fd5b5061049e61067f366004612d82565b60156020526000908152604090205481565b34801561069d57600080fd5b506104356106ac366004612d82565b6114cb565b3480156106bd57600080fd5b506104086114d6565b3480156106d257600080fd5b5061049e600281565b3480156106e757600080fd5b5061049e60125481565b3480156106fd57600080fd5b5061049e668e1bc9bf04000081565b34801561071857600080fd5b5061049e610727366004612d02565b611564565b34801561073857600080fd5b506103f16115ac565b34801561074d57600080fd5b506103f16115be565b34801561076257600080fd5b506103f1610771366004612d02565b6115ce565b34801561078257600080fd5b50600a546001600160a01b0316610435565b3480156107a057600080fd5b50610408611638565b3480156107b557600080fd5b506103f16107c436600461308d565b611647565b3480156107d557600080fd5b5061049e7f000000000000000000000000000000000000000000000000000000000000000081565b34801561080957600080fd5b5061049e667c58508723800081565b34801561082457600080fd5b506103f1610833366004612d9b565b611652565b34801561084457600080fd5b506103f1610853366004612d02565b61170d565b34801561086457600080fd5b506103f1611737565b34801561087957600080fd5b506103f16108883660046130c6565b6117ee565b34801561089957600080fd5b506103f16108a8366004613108565b611903565b3480156108b957600080fd5b506103f16108c8366004613188565b61191a565b3480156108d957600080fd5b506104086108e8366004612d82565b611a72565b3480156108f957600080fd5b50600d54610435906001600160a01b031681565b34801561091957600080fd5b50600c546104359061010090046001600160a01b031681565b6103f1610940366004612e34565b611ada565b34801561095157600080fd5b5061049e60145481565b34801561096757600080fd5b5061049e610976366004612d02565b60116020526000908152604090205481565b34801561099457600080fd5b5061049e6109a3366004612d82565b60009081526015602052604090205490565b3480156109c157600080fd5b5061049e611deb565b3480156109d657600080fd5b506103bc6109e53660046131bd565b611e6a565b3480156109f657600080fd5b5061049e600381565b348015610a0b57600080fd5b506103f1610a1a3660046130c6565b611e98565b348015610a2b57600080fd5b506103f1610a3a366004612d02565b611f63565b348015610a4b57600080fd5b506103f1610a5a366004612d9b565b611f9e565b348015610a6b57600080fd5b5061049e666a94d74f43000081565b348015610a8657600080fd5b506103f1610a95366004613036565b6120e5565b60006001600160e01b0319821663780e9d6360e01b1480610abf5750610abf82612129565b92915050565b610acd612179565b600c80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b606060008054610b04906131eb565b80601f0160208091040260200160405190810160405280929190818152602001828054610b30906131eb565b8015610b7d5780601f10610b5257610100808354040283529160200191610b7d565b820191906000526020600020905b815481529060010190602001808311610b6057829003601f168201915b5050505050905090565b6000610b92826121a6565b506000828152600460205260409020546001600160a01b0316610abf565b610bbb8282336121df565b5050565b610bc7612179565b8181118015610bd557508282115b8015610be057504283115b610c315760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206d696e74696e672077696e646f777300000000000000000060448201526064015b60405180910390fd5b601292909255601355601455565b610c47612179565b600c60019054906101000a90046001600160a01b03166001600160a01b0316637114177a6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610c9757600080fd5b505af1158015610cab573d6000803e3d6000fd5b50505050600c60019054906101000a90046001600160a01b03166001600160a01b0316634e606c476040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610cff57600080fd5b505af1158015610d13573d6000803e3d6000fd5b50505050565b6001600160a01b038216610d4357604051633250574960e11b815260006004820152602401610c28565b6000610d508383336121ec565b9050836001600160a01b0316816001600160a01b031614610d13576040516364283d7b60e01b81526001600160a01b0380861660048301526024820184905282166044820152606401610c28565b610da66122c1565b610dae6122eb565b601254604051806040016040528060028152602001614f4760f01b8152508142101581604051602001610de19190613225565b60405160208183030381529060405290610e0e5760405162461bcd60e51b8152600401610c289190612d6f565b5060008511610e2f5760405162461bcd60e51b8152600401610c2890613258565b33600090815260116020526040902054600390610e4d9087906132a3565b1115610e9b5760405162461bcd60e51b815260206004820152601860248201527f4d6178206d696e742069732033207065722077616c6c657400000000000000006044820152606401610c28565b6000610ea660085490565b9050611f40610eb587836132a3565b1115610ed35760405162461bcd60e51b8152600401610c28906132b6565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610f6c8686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f0000000000000000000000000000000000000000000000000000000000000000925085915061230f9050565b610fa85760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610c28565b610fb9666a94d74f430000886132eb565b341015610fd85760405162461bcd60e51b8152600401610c2890613302565b3360009081526011602052604081208054899290610ff79084906132a3565b90915550600190505b87811161103257600061101382856132a3565b905061101f3382612325565b508061102a8161332c565b915050611000565b50505050506110416001600b55565b505050565b61104e6122c1565b6110566122eb565b601454604051806040016040528060068152602001655075626c696360d01b815250814210158160405160200161108d9190613225565b604051602081830303815290604052906110ba5760405162461bcd60e51b8152600401610c289190612d6f565b50600083116110db5760405162461bcd60e51b8152600401610c2890613258565b600283111561112c5760405162461bcd60e51b815260206004820152601d60248201527f4d6178206d696e74206973203220706572207472616e73616374696f6e0000006044820152606401610c28565b600061113760085490565b9050611f4061114685836132a3565b11156111645760405162461bcd60e51b8152600401610c28906132b6565b611175668e1bc9bf040000856132eb565b3410156111945760405162461bcd60e51b8152600401610c2890613302565b60015b8481116111c95760006111aa82846132a3565b90506111b63382612325565b50806111c18161332c565b915050611197565b505050506111d76001600b55565b50565b60006111e583611564565b82106112165760405163295f44f760e21b81526001600160a01b038416600482015260248101839052604401610c28565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b611247612179565b61124f61233f565b565b61104183838360405180602001604052806000815250611903565b600061127760085490565b82106112a05760405163295f44f760e21b81526000600482015260248101839052604401610c28565b600882815481106112b3576112b3613345565b90600052602060002001549050919050565b6112cd612179565b805182511461132e5760405162461bcd60e51b815260206004820152602760248201527f496e70757420617272617973206d757374206265206f66207468652073616d65604482015266040d8cadccee8d60cb1b6064820152608401610c28565b60005b825181101561104157600482828151811061134e5761134e613345565b602002602001015111156113b75760405162461bcd60e51b815260206004820152602a60248201527f496e76616c69642066616374696f6e49642c206d757374206265206265747765604482015269195b880c08185b99080d60b21b6064820152608401610c28565b60018382815181106113cb576113cb613345565b6020026020010151101580156113fc5750611f408382815181106113f1576113f1613345565b602002602001015111155b6114185760405162461bcd60e51b8152600401610c289061335b565b604051806020016040528083838151811061143557611435613345565b60200260200101518152506015600085848151811061145657611456613345565b602090810291909101810151825281019190915260400160002090519055600101611331565b611484612179565b600e61149082826133fd565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad816040516114c09190612d6f565b60405180910390a150565b6000610abf826121a6565b600f80546114e3906131eb565b80601f016020809104026020016040519081016040528092919081815260200182805461150f906131eb565b801561155c5780601f106115315761010080835404028352916020019161155c565b820191906000526020600020905b81548152906001019060200180831161153f57829003601f168201915b505050505081565b60006001600160a01b038216611590576040516322718ad960e21b815260006004820152602401610c28565b506001600160a01b031660009081526003602052604090205490565b6115b4612179565b61124f600061238c565b6115c6612179565b61124f6123de565b6115d6612179565b600d546040516336b91f2b60e01b81526001600160a01b038381166004830152909116906336b91f2b90602401600060405180830381600087803b15801561161d57600080fd5b505af1158015611631573d6000803e3d6000fd5b5050505050565b606060018054610b04906131eb565b610bbb33838361241b565b61165a612179565b6116626122c1565b61166a6122eb565b600061167560085490565b9050611f4061168483836132a3565b11156116d25760405162461bcd60e51b815260206004820152601760248201527f576f756c6420657863656564206d617820737570706c790000000000000000006044820152606401610c28565b60015b828111611701576116ef846116ea83856132a3565b612325565b806116f98161332c565b9150506116d5565b5050610bbb6001600b55565b611715612179565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b61173f612179565b600c5460405163662aa11d60e01b81523060048201523360248201526101009091046001600160a01b03169063662aa11d906044016020604051808303816000875af1158015611793573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b791906134bd565b506040513381527f31bc28ecf7b6572d4f753120dcb6f03055f57cbf0a6fe40da64518d41d8fdd41906020015b60405180910390a1565b6117f6612179565b6001600160a01b03811661184c5760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f742073656e6420746f207a65726f206164647265737300000000006044820152606401610c28565b60405163a9059cbb60e01b81526001600160a01b0382811660048301526024820184905284169063a9059cbb906044016020604051808303816000875af115801561189b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118bf91906134d6565b6110415760405162461bcd60e51b8152602060048201526015602482015274115490cc8c081d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610c28565b61190e848484610d19565b610d13848484846124ba565b611922612179565b61192a6122c1565b60005b8151811015611a6757600182828151811061194a5761194a613345565b60200260200101511015801561197b5750611f4082828151811061197057611970613345565b602002602001015111155b6119975760405162461bcd60e51b8152600401610c289061335b565b601060008383815181106119ad576119ad613345565b60209081029190910181015182528101919091526040016000205460ff16611a19576001601060008484815181106119e7576119e7613345565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550611a5f565b600060106000848481518110611a3157611a31613345565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055505b60010161192d565b506111d76001600b55565b6060611a7d826121a6565b506000611a886125dc565b90506000815111611aa85760405180602001604052806000815250611ad3565b80611ab2846125eb565b604051602001611ac39291906134f3565b6040516020818303038152906040525b9392505050565b611ae26122c1565b611aea6122eb565b6013546040518060400160405280600981526020016815da1a5d195b1a5cdd60ba1b8152508142101581604051602001611b249190613225565b60405160208183030381529060405290611b515760405162461bcd60e51b8152600401610c289190612d6f565b5060008511611b725760405162461bcd60e51b8152600401610c2890613258565b336000908152601160205260409020546002811115611bea5760405162461bcd60e51b815260206004820152602e60248201527f596f75206861766520616c726561647920636c61696d65642e2054727920616760448201526d30b4b71034b710383ab13634b19760911b6064820152608401610c28565b6002611bf687836132a3565b1115611c445760405162461bcd60e51b815260206004820152601860248201527f4d6178206d696e742069732032207065722077616c6c657400000000000000006044820152606401610c28565b6000611c4f60085490565b9050611f40611c5e88836132a3565b1115611c7c5760405162461bcd60e51b8152600401610c28906132b6565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611d158787808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f0000000000000000000000000000000000000000000000000000000000000000925085915061230f9050565b611d515760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610c28565b611d62667c585087238000896132eb565b341015611d815760405162461bcd60e51b8152600401610c2890613302565b33600090815260116020526040812080548a9290611da09084906132a3565b90915550600190505b888111611ddb576000611dbc82856132a3565b9050611dc83382612325565b5080611dd38161332c565b915050611da9565b5050505050506110416001600b55565b600c54604051633779e62960e21b815230600482015260009182916101009091046001600160a01b03169063dde798a490602401608060405180830381865afa158015611e3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e609190613522565b5090949350505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611ea0612179565b6001600160a01b038116611ef65760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f742073656e6420746f207a65726f206164647265737300000000006044820152606401610c28565b6040516323b872dd60e01b81523060048201526001600160a01b038281166024830152604482018490528416906323b872dd90606401600060405180830381600087803b158015611f4657600080fd5b505af1158015611f5a573d6000803e3d6000fd5b50505050505050565b611f6b612179565b6001600160a01b038116611f9557604051631e4fbdf760e01b815260006004820152602401610c28565b6111d78161238c565b611fa6612179565b611fae6122c1565b6001600160a01b0382166120045760405162461bcd60e51b815260206004820152601a60248201527f496e76616c6964207769746864726177616c20616464726573730000000000006044820152606401610c28565b600081116120545760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610c28565b804710156120a45760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e7420636f6e74726163742062616c616e63650000006044820152606401610c28565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156120da573d6000803e3d6000fd5b50610bbb6001600b55565b6120ed612179565b600f6120f982826133fd565b507f638b2296aed59fe9e4f72c7536065ba3e36cb7690c2d130f66334da9cc2406cf816040516114c09190612d6f565b60006001600160e01b031982166380ac58cd60e01b148061215a57506001600160e01b03198216635b5e139f60e01b145b80610abf57506301ffc9a760e01b6001600160e01b0319831614610abf565b600a546001600160a01b0316331461124f5760405163118cdaa760e01b8152336004820152602401610c28565b6000818152600260205260408120546001600160a01b031680610abf57604051637e27328960e01b815260048101849052602401610c28565b611041838383600161267e565b6000806121fa858585612784565b90506001600160a01b0381166122575761225284600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61227a565b846001600160a01b0316816001600160a01b03161461227a5761227a818561287d565b6001600160a01b038516612296576122918461290e565b6122b9565b846001600160a01b0316816001600160a01b0316146122b9576122b985856129bd565b949350505050565b6002600b54036122e457604051633ee5aeb560e01b815260040160405180910390fd5b6002600b55565b600c5460ff161561124f5760405163d93c066560e01b815260040160405180910390fd5b60008261231c8584612a0d565b14949350505050565b610bbb828260405180602001604052806000815250612a50565b612347612a67565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b0390911681526020016117e4565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6123e66122eb565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586123743390565b6001600160a01b03821661244d57604051630b61174360e31b81526001600160a01b0383166004820152602401610c28565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b15610d1357604051630a85bd0160e11b81526001600160a01b0384169063150b7a02906124fc903390889087908790600401613567565b6020604051808303816000875af1925050508015612537575060408051601f3d908101601f19168201909252612534918101906135a4565b60015b6125a0573d808015612565576040519150601f19603f3d011682016040523d82523d6000602084013e61256a565b606091505b50805160000361259857604051633250574960e11b81526001600160a01b0385166004820152602401610c28565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b1461163157604051633250574960e11b81526001600160a01b0385166004820152602401610c28565b6060600e8054610b04906131eb565b606060006125f883612a8a565b600101905060008167ffffffffffffffff81111561261857612618612eb3565b6040519080825280601f01601f191660200182016040528015612642576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461264c57509392505050565b808061269257506001600160a01b03821615155b156127545760006126a2846121a6565b90506001600160a01b038316158015906126ce5750826001600160a01b0316816001600160a01b031614155b80156126e157506126df8184611e6a565b155b1561270a5760405163a9fbf51f60e01b81526001600160a01b0384166004820152602401610c28565b81156127525783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5050600090815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152600260205260408120546001600160a01b03908116908316156127b1576127b1818486612b62565b6001600160a01b038116156127ef576127ce60008560008061267e565b6001600160a01b038116600090815260036020526040902080546000190190555b6001600160a01b0385161561281e576001600160a01b0385166000908152600360205260409020805460010190555b60008481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b600061288883611564565b6000838152600760205260409020549091508082146128db576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612920906001906135c1565b6000838152600960205260408120546008805493945090928490811061294857612948613345565b90600052602060002001549050806008838154811061296957612969613345565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806129a1576129a16135d4565b6001900381819060005260206000200160009055905550505050565b600060016129ca84611564565b6129d491906135c1565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b600081815b8451811015612a4857612a3e82868381518110612a3157612a31613345565b6020026020010151612bc6565b9150600101612a12565b509392505050565b612a5a8383612bf2565b61104160008484846124ba565b600c5460ff1661124f57604051638dfc202b60e01b815260040160405180910390fd5b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612ac95772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612af5576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612b1357662386f26fc10000830492506010015b6305f5e1008310612b2b576305f5e100830492506008015b6127108310612b3f57612710830492506004015b60648310612b51576064830492506002015b600a8310610abf5760010192915050565b612b6d838383612c57565b611041576001600160a01b038316612b9b57604051637e27328960e01b815260048101829052602401610c28565b60405163177e802f60e01b81526001600160a01b038316600482015260248101829052604401610c28565b6000818310612be2576000828152602084905260409020611ad3565b5060009182526020526040902090565b6001600160a01b038216612c1c57604051633250574960e11b815260006004820152602401610c28565b6000612c2a838360006121ec565b90506001600160a01b03811615611041576040516339e3563760e11b815260006004820152602401610c28565b60006001600160a01b038316158015906122b95750826001600160a01b0316846001600160a01b03161480612c915750612c918484611e6a565b806122b95750506000908152600460205260409020546001600160a01b03908116911614919050565b6001600160e01b0319811681146111d757600080fd5b600060208284031215612ce257600080fd5b8135611ad381612cba565b6001600160a01b03811681146111d757600080fd5b600060208284031215612d1457600080fd5b8135611ad381612ced565b60005b83811015612d3a578181015183820152602001612d22565b50506000910152565b60008151808452612d5b816020860160208601612d1f565b601f01601f19169290920160200192915050565b602081526000611ad36020830184612d43565b600060208284031215612d9457600080fd5b5035919050565b60008060408385031215612dae57600080fd5b8235612db981612ced565b946020939093013593505050565b600080600060608486031215612ddc57600080fd5b505081359360208301359350604090920135919050565b600080600060608486031215612e0857600080fd5b8335612e1381612ced565b92506020840135612e2381612ced565b929592945050506040919091013590565b600080600060408486031215612e4957600080fd5b83359250602084013567ffffffffffffffff80821115612e6857600080fd5b818601915086601f830112612e7c57600080fd5b813581811115612e8b57600080fd5b8760208260051b8501011115612ea057600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612ef257612ef2612eb3565b604052919050565b600082601f830112612f0b57600080fd5b8135602067ffffffffffffffff821115612f2757612f27612eb3565b8160051b612f36828201612ec9565b9283528481018201928281019087851115612f5057600080fd5b83870192505b84831015612f6f57823582529183019190830190612f56565b979650505050505050565b60008060408385031215612f8d57600080fd5b823567ffffffffffffffff80821115612fa557600080fd5b612fb186838701612efa565b93506020850135915080821115612fc757600080fd5b50612fd485828601612efa565b9150509250929050565b600067ffffffffffffffff831115612ff857612ff8612eb3565b61300b601f8401601f1916602001612ec9565b905082815283838301111561301f57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561304857600080fd5b813567ffffffffffffffff81111561305f57600080fd5b8201601f8101841361307057600080fd5b6122b984823560208401612fde565b80151581146111d757600080fd5b600080604083850312156130a057600080fd5b82356130ab81612ced565b915060208301356130bb8161307f565b809150509250929050565b6000806000606084860312156130db57600080fd5b83356130e681612ced565b92506020840135915060408401356130fd81612ced565b809150509250925092565b6000806000806080858703121561311e57600080fd5b843561312981612ced565b9350602085013561313981612ced565b925060408501359150606085013567ffffffffffffffff81111561315c57600080fd5b8501601f8101871361316d57600080fd5b61317c87823560208401612fde565b91505092959194509250565b60006020828403121561319a57600080fd5b813567ffffffffffffffff8111156131b157600080fd5b6122b984828501612efa565b600080604083850312156131d057600080fd5b82356131db81612ced565b915060208301356130bb81612ced565b600181811c908216806131ff57607f821691505b60208210810361321f57634e487b7160e01b600052602260045260246000fd5b50919050565b60008251613237818460208701612d1f565b6e081b5a5b9d081a5cc818db1bdcd959608a1b920191825250600f01919050565b6020808252818101527f596f75206d757374206d696e74206174206c65617374206f6e6520746f6b656e604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610abf57610abf61328d565b6020808252818101527f507572636861736520776f756c6420657863656564206d617820737570706c79604082015260600190565b8082028115828204841417610abf57610abf61328d565b60208082526010908201526f125b9d985b1a5908115512081cd95b9d60821b604082015260600190565b60006001820161333e5761333e61328d565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60208082526032908201527f496e76616c696420746f6b656e49642c206d7573742062652077697468696e2060408201527176616c696420737570706c792072616e676560701b606082015260800190565b601f821115611041576000816000526020600020601f850160051c810160208610156133d65750805b601f850160051c820191505b818110156133f5578281556001016133e2565b505050505050565b815167ffffffffffffffff81111561341757613417612eb3565b61342b8161342584546131eb565b846133ad565b602080601f83116001811461346057600084156134485750858301515b600019600386901b1c1916600185901b1785556133f5565b600085815260208120601f198616915b8281101561348f57888601518255948401946001909101908401613470565b50858210156134ad5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156134cf57600080fd5b5051919050565b6000602082840312156134e857600080fd5b8151611ad38161307f565b60008351613505818460208801612d1f565b835190830190613519818360208801612d1f565b01949350505050565b6000806000806080858703121561353857600080fd5b84519350602085015192506040850151915060608501516002811061355c57600080fd5b939692955090935050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061359a90830184612d43565b9695505050505050565b6000602082840312156135b657600080fd5b8151611ad381612cba565b81810381811115610abf57610abf61328d565b634e487b7160e01b600052603160045260246000fdfea26469706673582212205fa731405d2949fc4c64be5a30d7c55dc1b5ab2af128fb2404134beb35ea67d064736f6c634300081700334ee5b49d4d78108f325fd10682e150aab51adb7ae8e0c5effc460e65267499047aa163fb44fe4538d05d026fb64bbe3cb33ed516ac9026b2f8a9ae3b3290c148000000000000000000000000ba698e84f6a73fa932b7b3058caea2da494d1786

Deployed Bytecode

0x6080604052600436106103905760003560e01c8063715018a6116101dc578063c87b56dd11610102578063e8a89e8e116100a0578063f2fde38b1161006f578063f2fde38b14610a1f578063f3fef3a314610a3f578063f48c767314610a5f578063ffe630b514610a7a57600080fd5b8063e8a89e8e146109b5578063e985e9c5146109ca578063f00de928146109ea578063f0e9fcd1146109ff57600080fd5b8063d2cab056116100dc578063d2cab05614610932578063d3cf00a314610945578063db4bec441461095b578063db67f6171461098857600080fd5b8063c87b56dd146108cd578063c96bb6b8146108ed578063cfed0c9c1461090d57600080fd5b8063aca9938d1161017a578063b51609b411610149578063b51609b41461086d578063b88d4fde1461088d578063bec18d84146108ad578063c08dfd3c146106c657600080fd5b8063aca9938d146107fd578063add5a4fa14610818578063ae32b7b014610838578063b2b8c93f1461085857600080fd5b80638da5cb5b116101b65780638da5cb5b1461077657806395d89b4114610794578063a22cb465146107a9578063a664eb90146107c957600080fd5b8063715018a61461072c5780638456cb59146107415780638593d6d91461075657600080fd5b806332cb6b0c116102c15780635c975abb1161025f57806365f130971161022e57806365f13097146106c657806367bd4b5d146106db5780636bde2627146106f157806370a082311461070c57600080fd5b80635c975abb1461064c57806360fc2c92146106645780636352211e146106915780636373a6b1146106b157600080fd5b8063454cb4651161029b578063454cb465146105bc5780634f6ccce7146105ec5780634fb054151461060c57806355f804b31461062c57600080fd5b806332cb6b0c146105715780633f4ba83a1461058757806342842e0e1461059c57600080fd5b80631e8a2a561161032e5780632b314dc6116103085780632b314dc6146105155780632bb1a91a146105285780632db115441461053e5780632f745c591461055157600080fd5b80631e8a2a56146104ac5780631f09836c146104c157806323b872dd146104f557600080fd5b8063081812fc1161036a578063081812fc14610415578063095ea7b31461044d5780630ca9ed731461046d57806318160ddd1461048d57600080fd5b806301ffc9a71461039c57806305f61aa5146103d157806306fdde03146103f357600080fd5b3661039757005b600080fd5b3480156103a857600080fd5b506103bc6103b7366004612cd0565b610a9a565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103f16103ec366004612d02565b610ac5565b005b3480156103ff57600080fd5b50610408610af5565b6040516103c89190612d6f565b34801561042157600080fd5b50610435610430366004612d82565b610b87565b6040516001600160a01b0390911681526020016103c8565b34801561045957600080fd5b506103f1610468366004612d9b565b610bb0565b34801561047957600080fd5b506103f1610488366004612dc7565b610bbf565b34801561049957600080fd5b506008545b6040519081526020016103c8565b3480156104b857600080fd5b506103f1610c3f565b3480156104cd57600080fd5b5061049e7f4ee5b49d4d78108f325fd10682e150aab51adb7ae8e0c5effc460e652674990481565b34801561050157600080fd5b506103f1610510366004612df3565b610d19565b6103f1610523366004612e34565b610d9e565b34801561053457600080fd5b5061049e60135481565b6103f161054c366004612d82565b611046565b34801561055d57600080fd5b5061049e61056c366004612d9b565b6111da565b34801561057d57600080fd5b5061049e611f4081565b34801561059357600080fd5b506103f161123f565b3480156105a857600080fd5b506103f16105b7366004612df3565b611251565b3480156105c857600080fd5b506103bc6105d7366004612d82565b60106020526000908152604090205460ff1681565b3480156105f857600080fd5b5061049e610607366004612d82565b61126c565b34801561061857600080fd5b506103f1610627366004612f7a565b6112c5565b34801561063857600080fd5b506103f1610647366004613036565b61147c565b34801561065857600080fd5b50600c5460ff166103bc565b34801561067057600080fd5b5061049e61067f366004612d82565b60156020526000908152604090205481565b34801561069d57600080fd5b506104356106ac366004612d82565b6114cb565b3480156106bd57600080fd5b506104086114d6565b3480156106d257600080fd5b5061049e600281565b3480156106e757600080fd5b5061049e60125481565b3480156106fd57600080fd5b5061049e668e1bc9bf04000081565b34801561071857600080fd5b5061049e610727366004612d02565b611564565b34801561073857600080fd5b506103f16115ac565b34801561074d57600080fd5b506103f16115be565b34801561076257600080fd5b506103f1610771366004612d02565b6115ce565b34801561078257600080fd5b50600a546001600160a01b0316610435565b3480156107a057600080fd5b50610408611638565b3480156107b557600080fd5b506103f16107c436600461308d565b611647565b3480156107d557600080fd5b5061049e7f7aa163fb44fe4538d05d026fb64bbe3cb33ed516ac9026b2f8a9ae3b3290c14881565b34801561080957600080fd5b5061049e667c58508723800081565b34801561082457600080fd5b506103f1610833366004612d9b565b611652565b34801561084457600080fd5b506103f1610853366004612d02565b61170d565b34801561086457600080fd5b506103f1611737565b34801561087957600080fd5b506103f16108883660046130c6565b6117ee565b34801561089957600080fd5b506103f16108a8366004613108565b611903565b3480156108b957600080fd5b506103f16108c8366004613188565b61191a565b3480156108d957600080fd5b506104086108e8366004612d82565b611a72565b3480156108f957600080fd5b50600d54610435906001600160a01b031681565b34801561091957600080fd5b50600c546104359061010090046001600160a01b031681565b6103f1610940366004612e34565b611ada565b34801561095157600080fd5b5061049e60145481565b34801561096757600080fd5b5061049e610976366004612d02565b60116020526000908152604090205481565b34801561099457600080fd5b5061049e6109a3366004612d82565b60009081526015602052604090205490565b3480156109c157600080fd5b5061049e611deb565b3480156109d657600080fd5b506103bc6109e53660046131bd565b611e6a565b3480156109f657600080fd5b5061049e600381565b348015610a0b57600080fd5b506103f1610a1a3660046130c6565b611e98565b348015610a2b57600080fd5b506103f1610a3a366004612d02565b611f63565b348015610a4b57600080fd5b506103f1610a5a366004612d9b565b611f9e565b348015610a6b57600080fd5b5061049e666a94d74f43000081565b348015610a8657600080fd5b506103f1610a95366004613036565b6120e5565b60006001600160e01b0319821663780e9d6360e01b1480610abf5750610abf82612129565b92915050565b610acd612179565b600c80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b606060008054610b04906131eb565b80601f0160208091040260200160405190810160405280929190818152602001828054610b30906131eb565b8015610b7d5780601f10610b5257610100808354040283529160200191610b7d565b820191906000526020600020905b815481529060010190602001808311610b6057829003601f168201915b5050505050905090565b6000610b92826121a6565b506000828152600460205260409020546001600160a01b0316610abf565b610bbb8282336121df565b5050565b610bc7612179565b8181118015610bd557508282115b8015610be057504283115b610c315760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206d696e74696e672077696e646f777300000000000000000060448201526064015b60405180910390fd5b601292909255601355601455565b610c47612179565b600c60019054906101000a90046001600160a01b03166001600160a01b0316637114177a6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610c9757600080fd5b505af1158015610cab573d6000803e3d6000fd5b50505050600c60019054906101000a90046001600160a01b03166001600160a01b0316634e606c476040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610cff57600080fd5b505af1158015610d13573d6000803e3d6000fd5b50505050565b6001600160a01b038216610d4357604051633250574960e11b815260006004820152602401610c28565b6000610d508383336121ec565b9050836001600160a01b0316816001600160a01b031614610d13576040516364283d7b60e01b81526001600160a01b0380861660048301526024820184905282166044820152606401610c28565b610da66122c1565b610dae6122eb565b601254604051806040016040528060028152602001614f4760f01b8152508142101581604051602001610de19190613225565b60405160208183030381529060405290610e0e5760405162461bcd60e51b8152600401610c289190612d6f565b5060008511610e2f5760405162461bcd60e51b8152600401610c2890613258565b33600090815260116020526040902054600390610e4d9087906132a3565b1115610e9b5760405162461bcd60e51b815260206004820152601860248201527f4d6178206d696e742069732033207065722077616c6c657400000000000000006044820152606401610c28565b6000610ea660085490565b9050611f40610eb587836132a3565b1115610ed35760405162461bcd60e51b8152600401610c28906132b6565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610f6c8686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f4ee5b49d4d78108f325fd10682e150aab51adb7ae8e0c5effc460e6526749904925085915061230f9050565b610fa85760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610c28565b610fb9666a94d74f430000886132eb565b341015610fd85760405162461bcd60e51b8152600401610c2890613302565b3360009081526011602052604081208054899290610ff79084906132a3565b90915550600190505b87811161103257600061101382856132a3565b905061101f3382612325565b508061102a8161332c565b915050611000565b50505050506110416001600b55565b505050565b61104e6122c1565b6110566122eb565b601454604051806040016040528060068152602001655075626c696360d01b815250814210158160405160200161108d9190613225565b604051602081830303815290604052906110ba5760405162461bcd60e51b8152600401610c289190612d6f565b50600083116110db5760405162461bcd60e51b8152600401610c2890613258565b600283111561112c5760405162461bcd60e51b815260206004820152601d60248201527f4d6178206d696e74206973203220706572207472616e73616374696f6e0000006044820152606401610c28565b600061113760085490565b9050611f4061114685836132a3565b11156111645760405162461bcd60e51b8152600401610c28906132b6565b611175668e1bc9bf040000856132eb565b3410156111945760405162461bcd60e51b8152600401610c2890613302565b60015b8481116111c95760006111aa82846132a3565b90506111b63382612325565b50806111c18161332c565b915050611197565b505050506111d76001600b55565b50565b60006111e583611564565b82106112165760405163295f44f760e21b81526001600160a01b038416600482015260248101839052604401610c28565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b611247612179565b61124f61233f565b565b61104183838360405180602001604052806000815250611903565b600061127760085490565b82106112a05760405163295f44f760e21b81526000600482015260248101839052604401610c28565b600882815481106112b3576112b3613345565b90600052602060002001549050919050565b6112cd612179565b805182511461132e5760405162461bcd60e51b815260206004820152602760248201527f496e70757420617272617973206d757374206265206f66207468652073616d65604482015266040d8cadccee8d60cb1b6064820152608401610c28565b60005b825181101561104157600482828151811061134e5761134e613345565b602002602001015111156113b75760405162461bcd60e51b815260206004820152602a60248201527f496e76616c69642066616374696f6e49642c206d757374206265206265747765604482015269195b880c08185b99080d60b21b6064820152608401610c28565b60018382815181106113cb576113cb613345565b6020026020010151101580156113fc5750611f408382815181106113f1576113f1613345565b602002602001015111155b6114185760405162461bcd60e51b8152600401610c289061335b565b604051806020016040528083838151811061143557611435613345565b60200260200101518152506015600085848151811061145657611456613345565b602090810291909101810151825281019190915260400160002090519055600101611331565b611484612179565b600e61149082826133fd565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad816040516114c09190612d6f565b60405180910390a150565b6000610abf826121a6565b600f80546114e3906131eb565b80601f016020809104026020016040519081016040528092919081815260200182805461150f906131eb565b801561155c5780601f106115315761010080835404028352916020019161155c565b820191906000526020600020905b81548152906001019060200180831161153f57829003601f168201915b505050505081565b60006001600160a01b038216611590576040516322718ad960e21b815260006004820152602401610c28565b506001600160a01b031660009081526003602052604090205490565b6115b4612179565b61124f600061238c565b6115c6612179565b61124f6123de565b6115d6612179565b600d546040516336b91f2b60e01b81526001600160a01b038381166004830152909116906336b91f2b90602401600060405180830381600087803b15801561161d57600080fd5b505af1158015611631573d6000803e3d6000fd5b5050505050565b606060018054610b04906131eb565b610bbb33838361241b565b61165a612179565b6116626122c1565b61166a6122eb565b600061167560085490565b9050611f4061168483836132a3565b11156116d25760405162461bcd60e51b815260206004820152601760248201527f576f756c6420657863656564206d617820737570706c790000000000000000006044820152606401610c28565b60015b828111611701576116ef846116ea83856132a3565b612325565b806116f98161332c565b9150506116d5565b5050610bbb6001600b55565b611715612179565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b61173f612179565b600c5460405163662aa11d60e01b81523060048201523360248201526101009091046001600160a01b03169063662aa11d906044016020604051808303816000875af1158015611793573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b791906134bd565b506040513381527f31bc28ecf7b6572d4f753120dcb6f03055f57cbf0a6fe40da64518d41d8fdd41906020015b60405180910390a1565b6117f6612179565b6001600160a01b03811661184c5760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f742073656e6420746f207a65726f206164647265737300000000006044820152606401610c28565b60405163a9059cbb60e01b81526001600160a01b0382811660048301526024820184905284169063a9059cbb906044016020604051808303816000875af115801561189b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118bf91906134d6565b6110415760405162461bcd60e51b8152602060048201526015602482015274115490cc8c081d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610c28565b61190e848484610d19565b610d13848484846124ba565b611922612179565b61192a6122c1565b60005b8151811015611a6757600182828151811061194a5761194a613345565b60200260200101511015801561197b5750611f4082828151811061197057611970613345565b602002602001015111155b6119975760405162461bcd60e51b8152600401610c289061335b565b601060008383815181106119ad576119ad613345565b60209081029190910181015182528101919091526040016000205460ff16611a19576001601060008484815181106119e7576119e7613345565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550611a5f565b600060106000848481518110611a3157611a31613345565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055505b60010161192d565b506111d76001600b55565b6060611a7d826121a6565b506000611a886125dc565b90506000815111611aa85760405180602001604052806000815250611ad3565b80611ab2846125eb565b604051602001611ac39291906134f3565b6040516020818303038152906040525b9392505050565b611ae26122c1565b611aea6122eb565b6013546040518060400160405280600981526020016815da1a5d195b1a5cdd60ba1b8152508142101581604051602001611b249190613225565b60405160208183030381529060405290611b515760405162461bcd60e51b8152600401610c289190612d6f565b5060008511611b725760405162461bcd60e51b8152600401610c2890613258565b336000908152601160205260409020546002811115611bea5760405162461bcd60e51b815260206004820152602e60248201527f596f75206861766520616c726561647920636c61696d65642e2054727920616760448201526d30b4b71034b710383ab13634b19760911b6064820152608401610c28565b6002611bf687836132a3565b1115611c445760405162461bcd60e51b815260206004820152601860248201527f4d6178206d696e742069732032207065722077616c6c657400000000000000006044820152606401610c28565b6000611c4f60085490565b9050611f40611c5e88836132a3565b1115611c7c5760405162461bcd60e51b8152600401610c28906132b6565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611d158787808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f7aa163fb44fe4538d05d026fb64bbe3cb33ed516ac9026b2f8a9ae3b3290c148925085915061230f9050565b611d515760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610c28565b611d62667c585087238000896132eb565b341015611d815760405162461bcd60e51b8152600401610c2890613302565b33600090815260116020526040812080548a9290611da09084906132a3565b90915550600190505b888111611ddb576000611dbc82856132a3565b9050611dc83382612325565b5080611dd38161332c565b915050611da9565b5050505050506110416001600b55565b600c54604051633779e62960e21b815230600482015260009182916101009091046001600160a01b03169063dde798a490602401608060405180830381865afa158015611e3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e609190613522565b5090949350505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611ea0612179565b6001600160a01b038116611ef65760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f742073656e6420746f207a65726f206164647265737300000000006044820152606401610c28565b6040516323b872dd60e01b81523060048201526001600160a01b038281166024830152604482018490528416906323b872dd90606401600060405180830381600087803b158015611f4657600080fd5b505af1158015611f5a573d6000803e3d6000fd5b50505050505050565b611f6b612179565b6001600160a01b038116611f9557604051631e4fbdf760e01b815260006004820152602401610c28565b6111d78161238c565b611fa6612179565b611fae6122c1565b6001600160a01b0382166120045760405162461bcd60e51b815260206004820152601a60248201527f496e76616c6964207769746864726177616c20616464726573730000000000006044820152606401610c28565b600081116120545760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610c28565b804710156120a45760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e7420636f6e74726163742062616c616e63650000006044820152606401610c28565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156120da573d6000803e3d6000fd5b50610bbb6001600b55565b6120ed612179565b600f6120f982826133fd565b507f638b2296aed59fe9e4f72c7536065ba3e36cb7690c2d130f66334da9cc2406cf816040516114c09190612d6f565b60006001600160e01b031982166380ac58cd60e01b148061215a57506001600160e01b03198216635b5e139f60e01b145b80610abf57506301ffc9a760e01b6001600160e01b0319831614610abf565b600a546001600160a01b0316331461124f5760405163118cdaa760e01b8152336004820152602401610c28565b6000818152600260205260408120546001600160a01b031680610abf57604051637e27328960e01b815260048101849052602401610c28565b611041838383600161267e565b6000806121fa858585612784565b90506001600160a01b0381166122575761225284600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61227a565b846001600160a01b0316816001600160a01b03161461227a5761227a818561287d565b6001600160a01b038516612296576122918461290e565b6122b9565b846001600160a01b0316816001600160a01b0316146122b9576122b985856129bd565b949350505050565b6002600b54036122e457604051633ee5aeb560e01b815260040160405180910390fd5b6002600b55565b600c5460ff161561124f5760405163d93c066560e01b815260040160405180910390fd5b60008261231c8584612a0d565b14949350505050565b610bbb828260405180602001604052806000815250612a50565b612347612a67565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b0390911681526020016117e4565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6123e66122eb565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586123743390565b6001600160a01b03821661244d57604051630b61174360e31b81526001600160a01b0383166004820152602401610c28565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b15610d1357604051630a85bd0160e11b81526001600160a01b0384169063150b7a02906124fc903390889087908790600401613567565b6020604051808303816000875af1925050508015612537575060408051601f3d908101601f19168201909252612534918101906135a4565b60015b6125a0573d808015612565576040519150601f19603f3d011682016040523d82523d6000602084013e61256a565b606091505b50805160000361259857604051633250574960e11b81526001600160a01b0385166004820152602401610c28565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b1461163157604051633250574960e11b81526001600160a01b0385166004820152602401610c28565b6060600e8054610b04906131eb565b606060006125f883612a8a565b600101905060008167ffffffffffffffff81111561261857612618612eb3565b6040519080825280601f01601f191660200182016040528015612642576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461264c57509392505050565b808061269257506001600160a01b03821615155b156127545760006126a2846121a6565b90506001600160a01b038316158015906126ce5750826001600160a01b0316816001600160a01b031614155b80156126e157506126df8184611e6a565b155b1561270a5760405163a9fbf51f60e01b81526001600160a01b0384166004820152602401610c28565b81156127525783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5050600090815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152600260205260408120546001600160a01b03908116908316156127b1576127b1818486612b62565b6001600160a01b038116156127ef576127ce60008560008061267e565b6001600160a01b038116600090815260036020526040902080546000190190555b6001600160a01b0385161561281e576001600160a01b0385166000908152600360205260409020805460010190555b60008481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b600061288883611564565b6000838152600760205260409020549091508082146128db576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612920906001906135c1565b6000838152600960205260408120546008805493945090928490811061294857612948613345565b90600052602060002001549050806008838154811061296957612969613345565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806129a1576129a16135d4565b6001900381819060005260206000200160009055905550505050565b600060016129ca84611564565b6129d491906135c1565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b600081815b8451811015612a4857612a3e82868381518110612a3157612a31613345565b6020026020010151612bc6565b9150600101612a12565b509392505050565b612a5a8383612bf2565b61104160008484846124ba565b600c5460ff1661124f57604051638dfc202b60e01b815260040160405180910390fd5b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612ac95772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612af5576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612b1357662386f26fc10000830492506010015b6305f5e1008310612b2b576305f5e100830492506008015b6127108310612b3f57612710830492506004015b60648310612b51576064830492506002015b600a8310610abf5760010192915050565b612b6d838383612c57565b611041576001600160a01b038316612b9b57604051637e27328960e01b815260048101829052602401610c28565b60405163177e802f60e01b81526001600160a01b038316600482015260248101829052604401610c28565b6000818310612be2576000828152602084905260409020611ad3565b5060009182526020526040902090565b6001600160a01b038216612c1c57604051633250574960e11b815260006004820152602401610c28565b6000612c2a838360006121ec565b90506001600160a01b03811615611041576040516339e3563760e11b815260006004820152602401610c28565b60006001600160a01b038316158015906122b95750826001600160a01b0316846001600160a01b03161480612c915750612c918484611e6a565b806122b95750506000908152600460205260409020546001600160a01b03908116911614919050565b6001600160e01b0319811681146111d757600080fd5b600060208284031215612ce257600080fd5b8135611ad381612cba565b6001600160a01b03811681146111d757600080fd5b600060208284031215612d1457600080fd5b8135611ad381612ced565b60005b83811015612d3a578181015183820152602001612d22565b50506000910152565b60008151808452612d5b816020860160208601612d1f565b601f01601f19169290920160200192915050565b602081526000611ad36020830184612d43565b600060208284031215612d9457600080fd5b5035919050565b60008060408385031215612dae57600080fd5b8235612db981612ced565b946020939093013593505050565b600080600060608486031215612ddc57600080fd5b505081359360208301359350604090920135919050565b600080600060608486031215612e0857600080fd5b8335612e1381612ced565b92506020840135612e2381612ced565b929592945050506040919091013590565b600080600060408486031215612e4957600080fd5b83359250602084013567ffffffffffffffff80821115612e6857600080fd5b818601915086601f830112612e7c57600080fd5b813581811115612e8b57600080fd5b8760208260051b8501011115612ea057600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612ef257612ef2612eb3565b604052919050565b600082601f830112612f0b57600080fd5b8135602067ffffffffffffffff821115612f2757612f27612eb3565b8160051b612f36828201612ec9565b9283528481018201928281019087851115612f5057600080fd5b83870192505b84831015612f6f57823582529183019190830190612f56565b979650505050505050565b60008060408385031215612f8d57600080fd5b823567ffffffffffffffff80821115612fa557600080fd5b612fb186838701612efa565b93506020850135915080821115612fc757600080fd5b50612fd485828601612efa565b9150509250929050565b600067ffffffffffffffff831115612ff857612ff8612eb3565b61300b601f8401601f1916602001612ec9565b905082815283838301111561301f57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561304857600080fd5b813567ffffffffffffffff81111561305f57600080fd5b8201601f8101841361307057600080fd5b6122b984823560208401612fde565b80151581146111d757600080fd5b600080604083850312156130a057600080fd5b82356130ab81612ced565b915060208301356130bb8161307f565b809150509250929050565b6000806000606084860312156130db57600080fd5b83356130e681612ced565b92506020840135915060408401356130fd81612ced565b809150509250925092565b6000806000806080858703121561311e57600080fd5b843561312981612ced565b9350602085013561313981612ced565b925060408501359150606085013567ffffffffffffffff81111561315c57600080fd5b8501601f8101871361316d57600080fd5b61317c87823560208401612fde565b91505092959194509250565b60006020828403121561319a57600080fd5b813567ffffffffffffffff8111156131b157600080fd5b6122b984828501612efa565b600080604083850312156131d057600080fd5b82356131db81612ced565b915060208301356130bb81612ced565b600181811c908216806131ff57607f821691505b60208210810361321f57634e487b7160e01b600052602260045260246000fd5b50919050565b60008251613237818460208701612d1f565b6e081b5a5b9d081a5cc818db1bdcd959608a1b920191825250600f01919050565b6020808252818101527f596f75206d757374206d696e74206174206c65617374206f6e6520746f6b656e604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610abf57610abf61328d565b6020808252818101527f507572636861736520776f756c6420657863656564206d617820737570706c79604082015260600190565b8082028115828204841417610abf57610abf61328d565b60208082526010908201526f125b9d985b1a5908115512081cd95b9d60821b604082015260600190565b60006001820161333e5761333e61328d565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60208082526032908201527f496e76616c696420746f6b656e49642c206d7573742062652077697468696e2060408201527176616c696420737570706c792072616e676560701b606082015260800190565b601f821115611041576000816000526020600020601f850160051c810160208610156133d65750805b601f850160051c820191505b818110156133f5578281556001016133e2565b505050505050565b815167ffffffffffffffff81111561341757613417612eb3565b61342b8161342584546131eb565b846133ad565b602080601f83116001811461346057600084156134485750858301515b600019600386901b1c1916600185901b1785556133f5565b600085815260208120601f198616915b8281101561348f57888601518255948401946001909101908401613470565b50858210156134ad5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156134cf57600080fd5b5051919050565b6000602082840312156134e857600080fd5b8151611ad38161307f565b60008351613505818460208801612d1f565b835190830190613519818360208801612d1f565b01949350505050565b6000806000806080858703121561353857600080fd5b84519350602085015192506040850151915060608501516002811061355c57600080fd5b939692955090935050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061359a90830184612d43565b9695505050505050565b6000602082840312156135b657600080fd5b8151611ad381612cba565b81810381811115610abf57610abf61328d565b634e487b7160e01b600052603160045260246000fdfea26469706673582212205fa731405d2949fc4c64be5a30d7c55dc1b5ab2af128fb2404134beb35ea67d064736f6c63430008170033

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

4ee5b49d4d78108f325fd10682e150aab51adb7ae8e0c5effc460e65267499047aa163fb44fe4538d05d026fb64bbe3cb33ed516ac9026b2f8a9ae3b3290c148000000000000000000000000ba698e84f6a73fa932b7b3058caea2da494d1786

-----Decoded View---------------
Arg [0] : _merkleRootOG (bytes32): 0x4ee5b49d4d78108f325fd10682e150aab51adb7ae8e0c5effc460e6526749904
Arg [1] : _merkleRootWhitelist (bytes32): 0x7aa163fb44fe4538d05d026fb64bbe3cb33ed516ac9026b2f8a9ae3b3290c148
Arg [2] : _initialOwner (address): 0xBa698E84f6a73fa932b7b3058CAEa2Da494d1786

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 4ee5b49d4d78108f325fd10682e150aab51adb7ae8e0c5effc460e6526749904
Arg [1] : 7aa163fb44fe4538d05d026fb64bbe3cb33ed516ac9026b2f8a9ae3b3290c148
Arg [2] : 000000000000000000000000ba698e84f6a73fa932b7b3058caea2da494d1786


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
[ 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.