FTM Price: $1.01 (-0.79%)
Gas: 90 GWei

Contract

0x41497050c1f6f76b6AEA8A687df46A65Fa2AcDc4
 

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

FTM Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
Set Approval For...776933422024-03-19 10:04:179 days ago1710842657IN
0x41497050...5Fa2AcDc4
0 FTM0.00519826201
Set Approval For...776915872024-03-19 9:36:209 days ago1710840980IN
0x41497050...5Fa2AcDc4
0 FTM0.00524998203
Set Approval For...719622292023-12-05 13:22:12114 days ago1701782532IN
0x41497050...5Fa2AcDc4
0 FTM0.0015545663.70633883
Set Approval For...716707692023-11-29 8:47:38120 days ago1701247658IN
0x41497050...5Fa2AcDc4
0 FTM0.00268964104
Set Approval For...713287832023-11-25 3:12:19124 days ago1700881939IN
0x41497050...5Fa2AcDc4
0 FTM0.029249921,131
Set Approval For...709686782023-11-21 17:39:35128 days ago1700588375IN
0x41497050...5Fa2AcDc4
0 FTM0.0018965339
Set Approval For...695998762023-10-21 13:22:34159 days ago1697894554IN
0x41497050...5Fa2AcDc4
0 FTM0.01108741228
Safe Transfer Fr...682449382023-09-16 14:06:22194 days ago1694873182IN
0x41497050...5Fa2AcDc4
0 FTM0.04981306544.88743519
Safe Transfer Fr...682448872023-09-16 14:03:21194 days ago1694873001IN
0x41497050...5Fa2AcDc4
0 FTM0.05676387539.8115071
Safe Transfer Fr...682445092023-09-16 13:46:54194 days ago1694872014IN
0x41497050...5Fa2AcDc4
0 FTM0.05778378549.5105397
Safe Transfer Fr...682444962023-09-16 13:46:24194 days ago1694871984IN
0x41497050...5Fa2AcDc4
0 FTM0.05778264549.5677096
Safe Transfer Fr...677415632023-09-02 13:12:18208 days ago1693660338IN
0x41497050...5Fa2AcDc4
0 FTM0.0044830342.63261593
Set Approval For...673241242023-08-23 7:44:14218 days ago1692776654IN
0x41497050...5Fa2AcDc4
0 FTM0.002432452
Traverse Chains655338552023-07-10 18:22:54262 days ago1689013374IN
0x41497050...5Fa2AcDc4
1.8468014 FTM0.1806383717.08331866
Set Approval For...650746152023-07-03 14:03:49269 days ago1688393029IN
0x41497050...5Fa2AcDc4
0 FTM0.003056760
Safe Transfer Fr...631991322023-05-27 21:00:03306 days ago1685221203IN
0x41497050...5Fa2AcDc4
0 FTM0.0062033162.22540605
Safe Transfer Fr...631991032023-05-27 20:59:00306 days ago1685221140IN
0x41497050...5Fa2AcDc4
0 FTM0.0053086660.74612185
Safe Transfer Fr...631990822023-05-27 20:58:28306 days ago1685221108IN
0x41497050...5Fa2AcDc4
0 FTM0.0060958761.14774402
Set Approval For...616109532023-05-06 13:12:07327 days ago1683378727IN
0x41497050...5Fa2AcDc4
0 FTM0.02142337457.98941456
Set Approval For...599516382023-04-15 2:23:10348 days ago1681525390IN
0x41497050...5Fa2AcDc4
0 FTM0.0044833396.80304098
Set Approval For...596643452023-04-11 20:28:33352 days ago1681244913IN
0x41497050...5Fa2AcDc4
0 FTM0.00272543111.68919238
Safe Transfer Fr...595594432023-04-10 13:37:04353 days ago1681133824IN
0x41497050...5Fa2AcDc4
0 FTM0.0037119837.23491994
Set Approval For...595457032023-04-10 9:18:01353 days ago1681118281IN
0x41497050...5Fa2AcDc4
0 FTM0.0021517446
Set Approval For...595412562023-04-10 8:04:59353 days ago1681113899IN
0x41497050...5Fa2AcDc4
0 FTM0.00634161136.92643808
Safe Transfer Fr...589261652023-04-02 15:42:28361 days ago1680450148IN
0x41497050...5Fa2AcDc4
0 FTM0.0049131149.28345996
View all transactions

Latest 13 internal transactions

Parent Txn Hash Block From To Value
655338552023-07-10 18:22:54262 days ago1689013374
0x41497050...5Fa2AcDc4
1.8468014 FTM
536398682023-01-12 16:37:12441 days ago1673541432
0x41497050...5Fa2AcDc4
1.04746236 FTM
462057042022-09-02 13:37:39573 days ago1662125859
0x41497050...5Fa2AcDc4
1.75704514 FTM
461025762022-09-01 1:37:33574 days ago1661996253
0x41497050...5Fa2AcDc4
1.75704514 FTM
441414002022-08-03 13:33:10603 days ago1659533590
0x41497050...5Fa2AcDc4
1.41640857 FTM
441413902022-08-03 13:32:54603 days ago1659533574
0x41497050...5Fa2AcDc4
1.41640857 FTM
441413842022-08-03 13:32:48603 days ago1659533568
0x41497050...5Fa2AcDc4
1.41640857 FTM
441413802022-08-03 13:32:44603 days ago1659533564
0x41497050...5Fa2AcDc4
1.41640857 FTM
441413732022-08-03 13:32:30603 days ago1659533550
0x41497050...5Fa2AcDc4
1.41640857 FTM
440901522022-08-02 20:23:04604 days ago1659471784
0x41497050...5Fa2AcDc4
3,368.75 FTM
440895472022-08-02 20:11:41604 days ago1659471101
0x41497050...5Fa2AcDc4
10,106.25 FTM
440224752022-08-01 20:52:53605 days ago1659387173
0x41497050...5Fa2AcDc4
2 FTM
440153652022-08-01 18:26:26605 days ago1659378386  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OnisRetribution

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 27 : OnisRetribution_clamped.sol
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "./NonblockingReceiver.sol";
import "./ClampedRandomizer.sol";
import "./interfaces/IRewarder.sol";

pragma solidity ^0.8.10;

contract OnisRetribution is ERC721Enumerable, ERC721URIStorage, IERC2981, Pausable, Ownable, ERC721Burnable, NonblockingReceiver, ClampedRandomizer {
    
    using SafeMath for uint;
    using Address for address;

    // MODIFIERS
    modifier onlyDevs() {
        require(devFees[msg.sender].percent > 0, "Dev Only: caller is not the developer");
        _;
    }

    // STRUCTS
    struct DevFee {
        uint percent;
        uint amount;
    }

    //EVENTS
    event WithdrawFees(address indexed devAddress, uint amount);
    event WithdrawWrongTokens(address indexed devAddress, address tokenAddress, uint amount);
    event WithdrawWrongNfts(address indexed devAddress, address tokenAddress, uint tokenId);
    event Migration(address indexed _to, uint indexed _tokenId);

    // CONSTANTS
    uint public constant MAX_SUPPLY = 444;
    uint public constant START_ID = 0;

    string public baseURI;
    // VARIABLES
    bool public whitelistedOnly;
    bool public rewardMintEnabled;
    uint public rewardMintThreshold = 3;
    uint public maxSupply = MAX_SUPPLY;
    uint public maxPerTx = 5;
    uint public maxPerPerson = 889;
    uint public price = 35000000000000000000;
    address public royaltyAddress = 0x584612eC4C63c1B58DB8b1FF48B50961FE94DC42;
    address public rewarderContract;
    uint public royalty = 750;
    uint private gasForDestinationLzReceive = 350000;
    address[] private devList;
    

    // MAPPINGS
    mapping(address => uint) public whiteListed;
    mapping(address => uint) public mintedCount;
    mapping(address => DevFee) public devFees;

    constructor(
        address[] memory _devList,
        uint[] memory _fees,
        address _lzEndpoint
    ) ERC721("Onis Retribution", "ONIS") ClampedRandomizer(maxSupply) {
        require(_devList.length == _fees.length, "Error: invalid data");
        uint totalFee = 0;
        for (uint8 i = 0; i < _devList.length; i++) {
            devList.push(_devList[i]);
            devFees[_devList[i]] = DevFee(_fees[i], 0);
            totalFee += _fees[i];
        }
        require(totalFee == 10000, "Error: invalid total fee");
        endpoint = ILayerZeroEndpoint(_lzEndpoint);
        _pause();
    }

    // This function transfers the nft from your address on the
    // source chain to the same address on the destination chain
    function traverseChains(uint16 _chainId, uint tokenId) public payable {
        require(msg.sender == ownerOf(tokenId), "You must own the token to traverse");
        require(trustedRemoteLookup[_chainId].length > 0, "This chain is currently unavailable for travel");

        // burn NFT, eliminating it from circulation on src chain
        _burn(tokenId);

        // abi.encode() the payload with the values to send
        bytes memory payload = abi.encode(msg.sender, tokenId);

        // encode adapterParams to specify more gas for the destination
        uint16 version = 1;
        bytes memory adapterParams = abi.encodePacked(version, gasForDestinationLzReceive);

        // get the fees we need to pay to LayerZero + Relayer to cover message delivery
        // you will be refunded for extra gas paid
        (uint messageFee, ) = endpoint.estimateFees(_chainId, address(this), payload, false, adapterParams);

        require(msg.value >= messageFee, "Error: msg.value not enough to cover messageFee. Send gas for message fees");

        endpoint.send{value: msg.value}(
            _chainId, // destination chainId
            trustedRemoteLookup[_chainId], // destination address of nft contract
            payload, // abi.encoded()'ed bytes
            payable(msg.sender), // refund address
            address(0x0), // 'zroPaymentAddress' unused for this
            adapterParams // txParameters
        );
    }

    // just in case this fixed variable limits us from future integrations
    function setGasForDestinationLzReceive(uint newVal) external onlyOwner {
        gasForDestinationLzReceive = newVal;
    }

    function _LzReceive(
        uint16 _srcChainId,
        bytes memory _srcAddress,
        uint64 _nonce,
        bytes memory _payload
    ) internal override {
        // decode
        (address toAddr, uint tokenId) = abi.decode(_payload, (address, uint));

        // mint the tokens back into existence on destination chain
        _safeMint(toAddr, tokenId);
    }

    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

    function splitFees(uint sentAmount) internal {
        for (uint8 i = 0; i < devList.length; i++) {
            address devAddress = devList[i];
            uint devFee = devFees[devAddress].percent;
            uint devFeeAmount = sentAmount.mul(devFee).div(10000);
            devFees[devAddress].amount += devFeeAmount;
        }
    }

    function mint(uint amount) public payable whenNotPaused {
        uint supply = totalSupply();
        require(supply + amount - 1 < maxSupply, "Error: cannot mint more than total supply");
        require(amount > 0 && amount <= maxPerTx, "Error: max par tx limit");
        require(balanceOf(msg.sender) + 1 <= maxPerPerson, "Error: max per address limit");
        if (price > 0) require(msg.value == price * amount, "Error: invalid price");
        if (whitelistedOnly) require(whiteListed[msg.sender] >= amount, "Error: you are not whitelisted or amount is higher than limit");
        uint tempCount = mintedCount[msg.sender];
        for (uint i = 0; i < amount; i++) {
            internalMint(msg.sender);
            tempCount += 1;
            if (rewardMintEnabled && tempCount % rewardMintThreshold == 0) rewardUser();
            if (whitelistedOnly) whiteListed[msg.sender] -= 1;
        }
        mintedCount[msg.sender] = tempCount;
        if (price > 0) splitFees(msg.value);
    }

    function rewardUser() internal {
        require(rewarderContract != address(0), "Error: Invalid rewarder contract");
        IRewarder rewarder = IRewarder(rewarderContract);
        rewarder.rewardUser(1, msg.sender);
    }

    function tokenURI(uint tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
        return super.tokenURI(tokenId);
    }

    function Owned(address _owner) external view returns (uint[] memory) {
        uint tokenCount = balanceOf(_owner);
        if (tokenCount == 0) {
            return new uint[](0);
        } else {
            uint[] memory result = new uint[](tokenCount);
            uint index;
            for (index = 0; index < tokenCount; ++index) {
                result[index] = tokenOfOwnerByIndex(_owner, index);
            }
            return result;
        }
    }

    function tokenExists(uint _id) external view returns (bool) {
        return (_exists(_id));
    }

    function royaltyInfo(uint, uint _salePrice) external view override returns (address receiver, uint royaltyAmount) {
        return (royaltyAddress, (_salePrice * royalty) / 10000);
    }

    //dev

    function whiteList(address[] memory _addressList, uint count) external onlyOwner {
        require(_addressList.length > 0, "Error: list is empty");
        for (uint i = 0; i < _addressList.length; ++i) {
            require(_addressList[i] != address(0), "Address cannot be 0.");
            whiteListed[_addressList[i]] = count;
        }
    }

    function removeWhiteList(address[] memory addressList) external onlyOwner {
        require(addressList.length > 0, "Error: list is empty");
        for (uint i = 0; i < addressList.length; ++i) whiteListed[addressList[i]] = 0;
    }

    function updateWhitelistStatus() external onlyOwner {
        whitelistedOnly = !whitelistedOnly;
    }

    function setRewarderContract(address _rewarderContract) external onlyOwner {
        if(_rewarderContract == address(0)) rewardMintEnabled = false;
        else rewardMintEnabled = true;
        rewarderContract = _rewarderContract;
    }

    function setRewardMintThreshold(uint _rewardMintThreshold) external onlyOwner {
        rewardMintThreshold = _rewardMintThreshold;
    }

    function updatePausedStatus() external onlyOwner {
        paused() ? _unpause() : _pause();
    }

    function setMaxPerPerson(uint newMaxBuy) external onlyOwner {
        maxPerPerson = newMaxBuy;
    }

    function setMaxPerTx(uint newMaxBuy) external onlyOwner {
        maxPerTx = newMaxBuy;
    }

    function setBaseURI(string memory newBaseURI) external onlyOwner {
        baseURI = newBaseURI;
    }

    function setPrice(uint newPrice) external onlyOwner {
        price = newPrice;
    }

    function setURI(uint tokenId, string memory uri) external onlyOwner {
        _setTokenURI(tokenId, uri);
    }

    function setRoyalty(uint16 _royalty) external onlyOwner {
        require(_royalty <= 750, "Royalty must be lower than or equal to 7,5%");
        royalty = _royalty;
    }

    function setRoyaltyAddress(address _royaltyAddress) external onlyOwner {
        royaltyAddress = _royaltyAddress;
    }

    //Overrides

    function internalMint(address to) internal {
        uint tokenId = _genClampedNonce() + START_ID;
        _safeMint(to, tokenId);
    }

    function safeMint(address to) public onlyOwner {
        internalMint(to);
    }

    function internalMintToken(address to, uint tokenId) internal {
        _safeMint(to, tokenId);
    }

    function safeMintToken(address to, uint tokenId) public onlyOwner {
        internalMintToken(to, tokenId);
    }

    function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, IERC165) returns (bool) {
        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint tokenId
    ) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function _burn(uint tokenId) internal override(ERC721, ERC721URIStorage) {
        super._burn(tokenId);
    }

    /// @dev withdraw fees
    function withdraw() external onlyDevs {
        uint amount = devFees[msg.sender].amount;
        require(amount > 0, "Error: no fees :(");
        devFees[msg.sender].amount = 0;
        payable(msg.sender).transfer(amount);
        emit WithdrawFees(msg.sender, amount);
    }

    /// @dev emergency withdraw contract balance to the contract owner
    function emergencyWithdraw() external onlyOwner {
        uint amount = address(this).balance;
        require(amount > 0, "Error: no fees :(");
        for (uint8 i = 0; i < devList.length; i++) {
            address devAddress = devList[i];
            devFees[devAddress].amount = 0;
        }
        payable(msg.sender).transfer(amount);
        emit WithdrawFees(msg.sender, amount);
    }

    function airdropsToken(address[] memory _addr, uint256 amount) public onlyOwner {
        for (uint256 i = 0; i < _addr.length; i++) {
            airdropTokenInternal(amount,_addr[i]);
        }
    }
    
    function airdropTokenInternal(uint256 amount, address _addr) internal {
        for (uint256 i = 0; i < amount; i++) {
            internalMint(_addr);
        }
    }

    /// @dev withdraw ERC20 tokens
    function withdrawTokens(address _tokenContract) external onlyOwner {
        IERC20 tokenContract = IERC20(_tokenContract);
        uint _amount = tokenContract.balanceOf(address(this));
        tokenContract.transfer(owner(), _amount);
        emit WithdrawWrongTokens(msg.sender, _tokenContract, _amount);
    }

    /// @dev withdraw ERC721 tokens to the contract owner
    function withdrawNFT(address _tokenContract, uint[] memory _id) external onlyOwner {
        IERC721 tokenContract = IERC721(_tokenContract);
        for (uint i = 0; i < _id.length; i++) {
            tokenContract.safeTransferFrom(address(this), owner(), _id[i]);
            emit WithdrawWrongNfts(msg.sender, _tokenContract, _id[i]);
        }
    }
}

File 2 of 27 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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 27 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 4 of 27 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 27 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

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

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

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

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

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

        return super.tokenURI(tokenId);
    }

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

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

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

File 6 of 27 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 27 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 8 of 27 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 9 of 27 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 10 of 27 : NonblockingReceiver.sol
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/ILayerZeroReceiver.sol";
import "./interfaces/ILayerZeroEndpoint.sol";

pragma solidity ^0.8.6;

abstract contract NonblockingReceiver is Ownable, ILayerZeroReceiver {
    ILayerZeroEndpoint internal endpoint;

    struct FailedMessages {
        uint payloadLength;
        bytes32 payloadHash;
    }

    mapping(uint16 => mapping(bytes => mapping(uint => FailedMessages))) public failedMessages;
    mapping(uint16 => bytes) public trustedRemoteLookup;

    event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload);

    function lzReceive(
        uint16 _srcChainId,
        bytes memory _srcAddress,
        uint64 _nonce,
        bytes memory _payload
    ) external override {
        require(msg.sender == address(endpoint)); // boilerplate! lzReceive must be called by the endpoint for security
        require(_srcAddress.length == trustedRemoteLookup[_srcChainId].length && keccak256(_srcAddress) == keccak256(trustedRemoteLookup[_srcChainId]), "NonblockingReceiver: invalid source sending contract");

        // try-catch all errors/exceptions
        // having failed messages does not block messages passing
        try this.onLzReceive(_srcChainId, _srcAddress, _nonce, _payload) {
            // do nothing
        } catch {
            // error / exception
            failedMessages[_srcChainId][_srcAddress][_nonce] = FailedMessages(_payload.length, keccak256(_payload));
            emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload);
        }
    }

    function onLzReceive(
        uint16 _srcChainId,
        bytes memory _srcAddress,
        uint64 _nonce,
        bytes memory _payload
    ) public {
        // only internal transaction
        require(msg.sender == address(this), "NonblockingReceiver: caller must be Bridge.");

        // handle incoming message
        _LzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    // abstract function
    function _LzReceive(
        uint16 _srcChainId,
        bytes memory _srcAddress,
        uint64 _nonce,
        bytes memory _payload
    ) internal virtual;

    function _lzSend(
        uint16 _dstChainId,
        bytes memory _payload,
        address payable _refundAddress,
        address _zroPaymentAddress,
        bytes memory _txParam
    ) internal {
        endpoint.send{value: msg.value}(_dstChainId, trustedRemoteLookup[_dstChainId], _payload, _refundAddress, _zroPaymentAddress, _txParam);
    }

    function retryMessage(
        uint16 _srcChainId,
        bytes memory _srcAddress,
        uint64 _nonce,
        bytes calldata _payload
    ) external payable {
        // assert there is message to retry
        FailedMessages storage failedMsg = failedMessages[_srcChainId][_srcAddress][_nonce];
        require(failedMsg.payloadHash != bytes32(0), "NonblockingReceiver: no stored message");
        require(_payload.length == failedMsg.payloadLength && keccak256(_payload) == failedMsg.payloadHash, "LayerZero: invalid payload");
        // clear the stored message
        failedMsg.payloadLength = 0;
        failedMsg.payloadHash = bytes32(0);
        // execute the message. revert if it fails again
        this.onLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    function setTrustedRemote(uint16 _chainId, bytes calldata _trustedRemote) external onlyOwner {
        trustedRemoteLookup[_chainId] = _trustedRemote;
    }
}

File 11 of 27 : ClampedRandomizer.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

contract ClampedRandomizer {
    uint256 private _scopeIndex = 0; //Clamping cache for random TokenID generation in the anti-sniping algo
    uint256 private immutable _scopeCap; //Size of initial randomized number pool & max generated value (zero indexed)
    mapping(uint256 => uint256) _swappedIDs; //TokenID cache for random TokenID generation in the anti-sniping algo

    constructor(uint256 scopeCap) {
        _scopeCap = scopeCap;
    }

    function _genClampedNonce() internal virtual returns (uint256) {
        uint256 scope = _scopeCap - _scopeIndex;
        uint256 swap;
        uint256 result;

        uint256 i = randomNumber() % scope;

        //Setup the value to swap in for the selected number
        if (_swappedIDs[scope - 1] == 0) {
            swap = scope - 1;
        } else {
            swap = _swappedIDs[scope - 1];
        }

        //Select a random number, swap it out with an unselected one then shorten the selection range by 1
        if (_swappedIDs[i] == 0) {
            result = i;
            _swappedIDs[i] = swap;
        } else {
            result = _swappedIDs[i];
            _swappedIDs[i] = swap;
        }
        _scopeIndex++;
        return result;
    }

    function randomNumber() internal view returns (uint256) {
        return uint256(keccak256(abi.encodePacked(block.difficulty, block.timestamp)));
    }
}

File 12 of 27 : IRewarder.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
interface IRewarder {
    function rewardUser(uint256 quantity, address to) external;
}

File 13 of 27 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 14 of 27 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 15 of 27 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 16 of 27 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 17 of 27 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 18 of 27 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 19 of 27 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 20 of 27 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 21 of 27 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 22 of 27 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

    /**
     * @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 23 of 27 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 24 of 27 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` 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 amount
    ) external returns (bool);

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

File 25 of 27 : ILayerZeroReceiver.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity >=0.5.0;

interface ILayerZeroReceiver {
    // @notice LayerZero endpoint will invoke this function to deliver the message on the destination
    // @param _srcChainId - the source endpoint identifier
    // @param _srcAddress - the source sending contract address from the source chain
    // @param _nonce - the ordered message nonce
    // @param _payload - the signed payload is the UA bytes has encoded to be sent
    function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external;
}

File 26 of 27 : ILayerZeroEndpoint.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity >=0.5.0;

import "./ILayerZeroUserApplicationConfig.sol";

interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig {
    // @notice send a LayerZero message to the specified address at a LayerZero endpoint.
    // @param _dstChainId - the destination chain identifier
    // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains
    // @param _payload - a custom bytes payload to send to the destination contract
    // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address
    // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction
    // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination
    function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;

    // @notice used by the messaging library to publish verified payload
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source contract (as bytes) at the source chain
    // @param _dstAddress - the address on destination chain
    // @param _nonce - the unbound message ordering nonce
    // @param _gasLimit - the gas limit for external contract execution
    // @param _payload - verified payload to send to the destination contract
    function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external;

    // @notice get the inboundNonce of a receiver from a source chain which could be EVM or non-EVM chain
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64);

    // @notice get the outboundNonce from this source chain which, consequently, is always an EVM
    // @param _srcAddress - the source chain contract address
    function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64);

    // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery
    // @param _dstChainId - the destination chain identifier
    // @param _userApplication - the user app address on this EVM chain
    // @param _payload - the custom message to send over LayerZero
    // @param _payInZRO - if false, user app pays the protocol fee in native token
    // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain
    function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee);

    // @notice get this Endpoint's immutable source identifier
    function getChainId() external view returns (uint16);

    // @notice the interface to retry failed message on this Endpoint destination
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    // @param _payload - the payload to be retried
    function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external;

    // @notice query if any STORED payload (message blocking) at the endpoint.
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool);

    // @notice query if the _libraryAddress is valid for sending msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getSendLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the _libraryAddress is valid for receiving msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getReceiveLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the non-reentrancy guard for send() is on
    // @return true if the guard is on. false otherwise
    function isSendingPayload() external view returns (bool);

    // @notice query if the non-reentrancy guard for receive() is on
    // @return true if the guard is on. false otherwise
    function isReceivingPayload() external view returns (bool);

    // @notice get the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _userApplication - the contract address of the user application
    // @param _configType - type of configuration. every messaging library has its own convention.
    function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory);

    // @notice get the send() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getSendVersion(address _userApplication) external view returns (uint16);

    // @notice get the lzReceive() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getReceiveVersion(address _userApplication) external view returns (uint16);
}

File 27 of 27 : ILayerZeroUserApplicationConfig.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity >=0.5.0;

interface ILayerZeroUserApplicationConfig {
    // @notice set the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _configType - type of configuration. every messaging library has its own convention.
    // @param _config - configuration in the bytes. can encode arbitrary content.
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external;

    // @notice set the send() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setSendVersion(uint16 _version) external;

    // @notice set the lzReceive() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setReceiveVersion(uint16 _version) external;

    // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload
    // @param _srcChainId - the chainId of the source chain
    // @param _srcAddress - the contract address of the source contract at the source chain
    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"_devList","type":"address[]"},{"internalType":"uint256[]","name":"_fees","type":"uint256[]"},{"internalType":"address","name":"_lzEndpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"MessageFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Migration","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":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":true,"internalType":"address","name":"devAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"devAddress","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"WithdrawWrongNfts","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"devAddress","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawWrongTokens","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"Owned","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airdropsToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"devFees","outputs":[{"internalType":"uint256","name":"percent","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"failedMessages","outputs":[{"internalType":"uint256","name":"payloadLength","type":"uint256"},{"internalType":"bytes32","name":"payloadHash","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxPerPerson","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"onLzReceive","outputs":[],"stateMutability":"nonpayable","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addressList","type":"address[]"}],"name":"removeWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"retryMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"rewardMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardMintThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewarderContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeMintToken","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":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"setGasForDestinationLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxBuy","type":"uint256"}],"name":"setMaxPerPerson","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxBuy","type":"uint256"}],"name":"setMaxPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardMintThreshold","type":"uint256"}],"name":"setRewardMintThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewarderContract","type":"address"}],"name":"setRewarderContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_royalty","type":"uint16"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyAddress","type":"address"}],"name":"setRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"bytes","name":"_trustedRemote","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"tokenExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"traverseChains","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"updatePausedStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addressList","type":"address[]"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"whiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiteListed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistedOnly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"},{"internalType":"uint256[]","name":"_id","type":"uint256[]"}],"name":"withdrawNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040526000600f5560036013556101bc60145560056015556103796016556801e5b8fa8fe2ac0000601755601880546001600160a01b03191673584612ec4c63c1b58db8b1ff48b50961fe94dc421790556102ee601a5562055730601b553480156200006c57600080fd5b5060405162005438380380620054388339810160408190526200008f91620005c8565b601454604080518082018252601081526f27b734b9902932ba3934b13aba34b7b760811b6020808301918252835180850190945260048452634f4e495360e01b908401528151919291620000e69160009162000423565b508051620000fc90600190602084019062000423565b5050600b805460ff191690555062000114336200032e565b60805281518351146200016e5760405162461bcd60e51b815260206004820152601360248201527f4572726f723a20696e76616c696420646174610000000000000000000000000060448201526064015b60405180910390fd5b6000805b84518160ff161015620002ab57601c858260ff1681518110620001995762000199620006aa565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b039092169190911790556040805180820190915284518190869060ff8516908110620001fa57620001fa620006aa565b602002602001015181526020016000815250601f6000878460ff1681518110620002285762000228620006aa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000820151816000015560208201518160010155905050838160ff16815181106200027f576200027f620006aa565b602002602001015182620002949190620006d6565b915080620002a281620006f1565b91505062000172565b508061271014620002ff5760405162461bcd60e51b815260206004820152601860248201527f4572726f723a20696e76616c696420746f74616c206665650000000000000000604482015260640162000165565b600c80546001600160a01b0319166001600160a01b0384161790556200032462000388565b5050505062000751565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b5460ff1615620003d05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640162000165565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620004063390565b6040516001600160a01b03909116815260200160405180910390a1565b828054620004319062000714565b90600052602060002090601f016020900481019282620004555760008555620004a0565b82601f106200047057805160ff1916838001178555620004a0565b82800160010185558215620004a0579182015b82811115620004a057825182559160200191906001019062000483565b50620004ae929150620004b2565b5090565b5b80821115620004ae5760008155600101620004b3565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200050a576200050a620004c9565b604052919050565b60006001600160401b038211156200052e576200052e620004c9565b5060051b60200190565b80516001600160a01b03811681146200055057600080fd5b919050565b600082601f8301126200056757600080fd5b81516020620005806200057a8362000512565b620004df565b82815260059290921b84018101918181019086841115620005a057600080fd5b8286015b84811015620005bd5780518352918301918301620005a4565b509695505050505050565b600080600060608486031215620005de57600080fd5b83516001600160401b0380821115620005f657600080fd5b818601915086601f8301126200060b57600080fd5b815160206200061e6200057a8362000512565b82815260059290921b8401810191818101908a8411156200063e57600080fd5b948201945b838610156200066757620006578662000538565b8252948201949082019062000643565b918901519197509093505050808211156200068157600080fd5b50620006908682870162000555565b925050620006a16040850162000538565b90509250925092565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115620006ec57620006ec620006c0565b500190565b600060ff821660ff8114156200070b576200070b620006c0565b60010192915050565b600181811c908216806200072957607f821691505b602082108114156200074b57634e487b7160e01b600052602260045260246000fd5b50919050565b608051614ccb6200076d60003960006135100152614ccb6000f3fe6080604052600436106103f85760003560e01c8063715018a611610213578063aa39fbbe11610123578063d5abeb01116100ab578063f147efeb1161007a578063f147efeb14610c06578063f2fde38b14610c3a578063f968adbe14610c5a578063fa0fca8414610c70578063fddcb5ea14610c9d57600080fd5b8063d5abeb0114610b72578063db2e21bc14610b88578063e985e9c514610b9d578063eb8d72b714610be657600080fd5b8063c6f6f216116100f2578063c6f6f21614610adf578063c87b56dd14610aff578063cf89fa0314610b1f578063d1deba1f14610b32578063d2f8dd4514610b4557600080fd5b8063aa39fbbe14610a75578063ad2f852a14610a8a578063b88d4fde14610aaa578063b9bfa0bc14610aca57600080fd5b80639186b425116101a65780639bdedea5116101755780639bdedea5146109f6578063a035b1fe14610a16578063a0712d6814610a2c578063a22cb46514610a3f578063a9a97f7114610a5f57600080fd5b80639186b4251461098757806391b7f5ed146109a1578063943fb872146109c157806395d89b41146109e157600080fd5b8063803adab4116101e2578063803adab4146108ba578063862440e2146108d95780638da5cb5b146108f95780638ee749121461091c57600080fd5b8063715018a61461084f5780637533d78814610864578063768d7138146108845780637e0586f11461089a57600080fd5b8063397457911161030e57806349df728c116102a15780635c975abb116102705780635c975abb146107cd5780636352211e146107e557806367dded4d146108055780636c0360eb1461081a57806370a082311461082f57600080fd5b806349df728c1461074d5780634f6ccce71461076d57806355f804b31461078d5780635a054205146107ad57600080fd5b806342842e0e116102dd57806342842e0e146106cd57806342966c68146106ed5780634389de9a1461070d578063483efda21461072d57600080fd5b806339745791146106585780633ccfd60b146106785780633ed434c91461068d57806340d097c3146106ad57600080fd5b80631c37a822116103915780632a55205a116103605780632a55205a146105a35780632ea6a25d146105e25780632f745c591461060257806332cb6b0c1461062257806336e79a5a1461063857600080fd5b80631c37a8221461052d57806323b872dd1461054d57806329413b121461056d57806329ee566c1461058d57600080fd5b806306fdde03116103cd57806306fdde0314610494578063081812fc146104b6578063095ea7b3146104ee57806318160ddd1461050e57600080fd5b80621d3567146103fd578062923f9e1461041f57806301ffc9a71461045457806306d254da14610474575b600080fd5b34801561040957600080fd5b5061041d610418366004614005565b610cca565b005b34801561042b57600080fd5b5061043f61043a366004614089565b610ec4565b60405190151581526020015b60405180910390f35b34801561046057600080fd5b5061043f61046f3660046140b8565b610ed5565b34801561048057600080fd5b5061041d61048f3660046140ea565b610efa565b3480156104a057600080fd5b506104a9610f4c565b60405161044b919061415f565b3480156104c257600080fd5b506104d66104d1366004614089565b610fde565b6040516001600160a01b03909116815260200161044b565b3480156104fa57600080fd5b5061041d610509366004614172565b611066565b34801561051a57600080fd5b506008545b60405190815260200161044b565b34801561053957600080fd5b5061041d610548366004614005565b61117c565b34801561055957600080fd5b5061041d61056836600461419e565b6111eb565b34801561057957600080fd5b5061041d610588366004614276565b61121d565b34801561059957600080fd5b5061051f601a5481565b3480156105af57600080fd5b506105c36105be3660046142ba565b61128e565b604080516001600160a01b03909316835260208301919091520161044b565b3480156105ee57600080fd5b5061041d6105fd366004614089565b6112c9565b34801561060e57600080fd5b5061051f61061d366004614172565b6112fe565b34801561062e57600080fd5b5061051f6101bc81565b34801561064457600080fd5b5061041d6106533660046142dc565b611394565b34801561066457600080fd5b5061041d6106733660046142f7565b611437565b34801561068457600080fd5b5061041d611514565b34801561069957600080fd5b5061041d6106a83660046140ea565b611649565b3480156106b957600080fd5b5061041d6106c83660046140ea565b6116c9565b3480156106d957600080fd5b5061041d6106e836600461419e565b611705565b3480156106f957600080fd5b5061041d610708366004614089565b611720565b34801561071957600080fd5b5061041d610728366004614172565b611797565b34801561073957600080fd5b5061041d610748366004614089565b6117d1565b34801561075957600080fd5b5061041d6107683660046140ea565b611806565b34801561077957600080fd5b5061051f610788366004614089565b611987565b34801561079957600080fd5b5061041d6107a836600461432b565b611a1a565b3480156107b957600080fd5b506019546104d6906001600160a01b031681565b3480156107d957600080fd5b50600b5460ff1661043f565b3480156107f157600080fd5b506104d6610800366004614089565b611a5d565b34801561081157600080fd5b5061041d611ad4565b34801561082657600080fd5b506104a9611b20565b34801561083b57600080fd5b5061051f61084a3660046140ea565b611bae565b34801561085b57600080fd5b5061041d611c35565b34801561087057600080fd5b506104a961087f3660046142dc565b611c6f565b34801561089057600080fd5b5061051f60165481565b3480156108a657600080fd5b5061041d6108b5366004614276565b611c88565b3480156108c657600080fd5b5060125461043f90610100900460ff1681565b3480156108e557600080fd5b5061041d6108f436600461435f565b611dd3565b34801561090557600080fd5b50600b5461010090046001600160a01b03166104d6565b34801561092857600080fd5b506109726109373660046143a5565b600d60209081526000938452604080852084518086018401805192815290840195840195909520945292905282529020805460019091015482565b6040805192835260208301919091520161044b565b34801561099357600080fd5b5060125461043f9060ff1681565b3480156109ad57600080fd5b5061041d6109bc366004614089565b611e0d565b3480156109cd57600080fd5b5061041d6109dc366004614089565b611e42565b3480156109ed57600080fd5b506104a9611e77565b348015610a0257600080fd5b5061041d610a113660046143fb565b611e86565b348015610a2257600080fd5b5061051f60175481565b61041d610a3a366004614089565b611ff1565b348015610a4b57600080fd5b5061041d610a5a3660046144ae565b612331565b348015610a6b57600080fd5b5061051f60135481565b348015610a8157600080fd5b5061051f600081565b348015610a9657600080fd5b506018546104d6906001600160a01b031681565b348015610ab657600080fd5b5061041d610ac53660046144e7565b61233c565b348015610ad657600080fd5b5061041d61236e565b348015610aeb57600080fd5b5061041d610afa366004614089565b6123b2565b348015610b0b57600080fd5b506104a9610b1a366004614089565b6123e7565b61041d610b2d366004614546565b6123f2565b61041d610b403660046145a3565b6126c7565b348015610b5157600080fd5b50610b65610b603660046140ea565b612854565b60405161044b919061462e565b348015610b7e57600080fd5b5061051f60145481565b348015610b9457600080fd5b5061041d612910565b348015610ba957600080fd5b5061043f610bb8366004614672565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610bf257600080fd5b5061041d610c013660046146a0565b612a10565b348015610c1257600080fd5b50610972610c213660046140ea565b601f602052600090815260409020805460019091015482565b348015610c4657600080fd5b5061041d610c553660046140ea565b612a5e565b348015610c6657600080fd5b5061051f60155481565b348015610c7c57600080fd5b5061051f610c8b3660046140ea565b601d6020526000908152604090205481565b348015610ca957600080fd5b5061051f610cb83660046140ea565b601e6020526000908152604090205481565b600c546001600160a01b03163314610ce157600080fd5b61ffff84166000908152600e602052604090208054610cff906146f2565b90508351148015610d3e575061ffff84166000908152600e6020526040908190209051610d2c9190614727565b60405180910390208380519060200120145b610dac5760405162461bcd60e51b815260206004820152603460248201527f4e6f6e626c6f636b696e6752656365697665723a20696e76616c696420736f756044820152731c98d9481cd95b991a5b99c818dbdb9d1c9858dd60621b60648201526084015b60405180910390fd5b604051630e1bd41160e11b81523090631c37a82290610dd5908790879087908790600401614799565b600060405180830381600087803b158015610def57600080fd5b505af1925050508015610e00575060015b610ebe576040518060400160405280825181526020018280519060200120815250600d60008661ffff1661ffff16815260200190815260200160002084604051610e4a91906147e2565b9081526040805191829003602090810183206001600160401b038716600090815290825291909120835181559201516001909201919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90610eb5908690869086908690614799565b60405180910390a15b50505050565b6000610ecf82612afc565b92915050565b60006001600160e01b0319821663152a902d60e11b1480610ecf5750610ecf82612b19565b600b546001600160a01b03610100909104163314610f2a5760405162461bcd60e51b8152600401610da3906147fe565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610f5b906146f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610f87906146f2565b8015610fd45780601f10610fa957610100808354040283529160200191610fd4565b820191906000526020600020905b815481529060010190602001808311610fb757829003601f168201915b5050505050905090565b6000610fe982612afc565b61104a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610da3565b506000908152600460205260409020546001600160a01b031690565b600061107182611a5d565b9050806001600160a01b0316836001600160a01b031614156110df5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610da3565b336001600160a01b03821614806110fb57506110fb8133610bb8565b61116d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610da3565b6111778383612b3e565b505050565b3330146111df5760405162461bcd60e51b815260206004820152602b60248201527f4e6f6e626c6f636b696e6752656365697665723a2063616c6c6572206d75737460448201526a10313290213934b233b29760a91b6064820152608401610da3565b610ebe84848484612bac565b6111f6335b82612bd9565b6112125760405162461bcd60e51b8152600401610da390614833565b611177838383612cc3565b600b546001600160a01b0361010090910416331461124d5760405162461bcd60e51b8152600401610da3906147fe565b60005b82518110156111775761127c8284838151811061126f5761126f614884565b6020026020010151612e6a565b80611286816148b0565b915050611250565b601854601a5460009182916001600160a01b0390911690612710906112b390866148cb565b6112bd9190614900565b915091505b9250929050565b600b546001600160a01b036101009091041633146112f95760405162461bcd60e51b8152600401610da3906147fe565b601355565b600061130983611bae565b821061136b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610da3565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600b546001600160a01b036101009091041633146113c45760405162461bcd60e51b8152600401610da3906147fe565b6102ee8161ffff16111561142e5760405162461bcd60e51b815260206004820152602b60248201527f526f79616c7479206d757374206265206c6f776572207468616e206f7220657160448201526a75616c20746f20372c352560a81b6064820152608401610da3565b61ffff16601a55565b600b546001600160a01b036101009091041633146114675760405162461bcd60e51b8152600401610da3906147fe565b60008151116114af5760405162461bcd60e51b81526020600482015260146024820152734572726f723a206c69737420697320656d70747960601b6044820152606401610da3565b60005b8151811015611510576000601d60008484815181106114d3576114d3614884565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555080611509906148b0565b90506114b2565b5050565b336000908152601f602052604090205461157e5760405162461bcd60e51b815260206004820152602560248201527f446576204f6e6c793a2063616c6c6572206973206e6f742074686520646576656044820152643637b832b960d91b6064820152608401610da3565b336000908152601f6020526040902060010154806115d25760405162461bcd60e51b815260206004820152601160248201527008ae4e4dee47440dcde40cccacae640745607b1b6044820152606401610da3565b336000818152601f60205260408082206001018290555183156108fc0291849190818181858888f19350505050158015611610573d6000803e3d6000fd5b5060405181815233907f9bba815921f12cb7b1408e14b5ade745234397d39623ae5e7c82d693cb45815f9060200160405180910390a250565b600b546001600160a01b036101009091041633146116795760405162461bcd60e51b8152600401610da3906147fe565b6001600160a01b038116611697576012805461ff00191690556116a7565b6012805461ff0019166101001790555b601980546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b036101009091041633146116f95760405162461bcd60e51b8152600401610da3906147fe565b61170281612e90565b50565b6111778383836040518060200160405280600081525061233c565b611729336111f0565b61178e5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610da3565b61170281612eb1565b600b546001600160a01b036101009091041633146117c75760405162461bcd60e51b8152600401610da3906147fe565b6115108282612eba565b600b546001600160a01b036101009091041633146118015760405162461bcd60e51b8152600401610da3906147fe565b601655565b600b546001600160a01b036101009091041633146118365760405162461bcd60e51b8152600401610da3906147fe565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561187f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a39190614914565b9050816001600160a01b031663a9059cbb6118cc600b546001600160a01b036101009091041690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015611919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193d919061492d565b50604080516001600160a01b03851681526020810183905233917f5aa586896a67fb05c3b86276f66eecee7da00719d0e7299c403596fa2ec58ca4910160405180910390a2505050565b600061199260085490565b82106119f55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610da3565b60088281548110611a0857611a08614884565b90600052602060002001549050919050565b600b546001600160a01b03610100909104163314611a4a5760405162461bcd60e51b8152600401610da3906147fe565b8051611510906011906020840190613ddf565b6000818152600260205260408120546001600160a01b031680610ecf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610da3565b600b546001600160a01b03610100909104163314611b045760405162461bcd60e51b8152600401610da3906147fe565b600b5460ff16611b1857611b16612ec4565b565b611b16612f5c565b60118054611b2d906146f2565b80601f0160208091040260200160405190810160405280929190818152602001828054611b59906146f2565b8015611ba65780601f10611b7b57610100808354040283529160200191611ba6565b820191906000526020600020905b815481529060010190602001808311611b8957829003601f168201915b505050505081565b60006001600160a01b038216611c195760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610da3565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03610100909104163314611c655760405162461bcd60e51b8152600401610da3906147fe565b611b166000612fd6565b600e6020526000908152604090208054611b2d906146f2565b600b546001600160a01b03610100909104163314611cb85760405162461bcd60e51b8152600401610da3906147fe565b6000825111611d005760405162461bcd60e51b81526020600482015260146024820152734572726f723a206c69737420697320656d70747960601b6044820152606401610da3565b60005b82518110156111775760006001600160a01b0316838281518110611d2957611d29614884565b60200260200101516001600160a01b03161415611d7f5760405162461bcd60e51b815260206004820152601460248201527320b2323932b9b99031b0b73737ba10313290181760611b6044820152606401610da3565b81601d6000858481518110611d9657611d96614884565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555080611dcc906148b0565b9050611d03565b600b546001600160a01b03610100909104163314611e035760405162461bcd60e51b8152600401610da3906147fe565b6115108282613030565b600b546001600160a01b03610100909104163314611e3d5760405162461bcd60e51b8152600401610da3906147fe565b601755565b600b546001600160a01b03610100909104163314611e725760405162461bcd60e51b8152600401610da3906147fe565b601b55565b606060018054610f5b906146f2565b600b546001600160a01b03610100909104163314611eb65760405162461bcd60e51b8152600401610da3906147fe565b8160005b8251811015610ebe57816001600160a01b03166342842e0e30611eeb600b546001600160a01b036101009091041690565b868581518110611efd57611efd614884565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015611f5757600080fd5b505af1158015611f6b573d6000803e3d6000fd5b50505050336001600160a01b03167fb8dbf4ce06446b88ef02ffd28a948c2637ac80fb0bd4d3a31c70878c1046eb7f85858481518110611fad57611fad614884565b6020026020010151604051611fd79291906001600160a01b03929092168252602082015260400190565b60405180910390a280611fe9816148b0565b915050611eba565b600b5460ff16156120375760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610da3565b600061204260085490565b6014549091506001612054848461494a565b61205e9190614962565b106120bd5760405162461bcd60e51b815260206004820152602960248201527f4572726f723a2063616e6e6f74206d696e74206d6f7265207468616e20746f74604482015268616c20737570706c7960b81b6064820152608401610da3565b6000821180156120cf57506015548211155b61211b5760405162461bcd60e51b815260206004820152601760248201527f4572726f723a206d617820706172207478206c696d69740000000000000000006044820152606401610da3565b60165461212733611bae565b61213290600161494a565b11156121805760405162461bcd60e51b815260206004820152601c60248201527f4572726f723a206d6178207065722061646472657373206c696d6974000000006044820152606401610da3565b601754156121db578160175461219691906148cb565b34146121db5760405162461bcd60e51b81526020600482015260146024820152734572726f723a20696e76616c696420707269636560601b6044820152606401610da3565b60125460ff161561226b57336000908152601d602052604090205482111561226b5760405162461bcd60e51b815260206004820152603d60248201527f4572726f723a20796f7520617265206e6f742077686974656c6973746564206f60448201527f7220616d6f756e7420697320686967686572207468616e206c696d69740000006064820152608401610da3565b336000908152601e6020526040812054905b8381101561230d5761228e33612e90565b61229960018361494a565b601254909250610100900460ff1680156122bd57506013546122bb9083614979565b155b156122ca576122ca6130bb565b60125460ff16156122fb57336000908152601d602052604081208054600192906122f5908490614962565b90915550505b80612305816148b0565b91505061227d565b50336000908152601e6020526040902081905560175415611177576111773461317c565b61151033838361322f565b6123463383612bd9565b6123625760405162461bcd60e51b8152600401610da390614833565b610ebe848484846132fe565b600b546001600160a01b0361010090910416331461239e5760405162461bcd60e51b8152600401610da3906147fe565b6012805460ff19811660ff90911615179055565b600b546001600160a01b036101009091041633146123e25760405162461bcd60e51b8152600401610da3906147fe565b601555565b6060610ecf82613331565b6123fb81611a5d565b6001600160a01b0316336001600160a01b0316146124665760405162461bcd60e51b815260206004820152602260248201527f596f75206d757374206f776e2074686520746f6b656e20746f20747261766572604482015261736560f01b6064820152608401610da3565b61ffff82166000908152600e602052604081208054612484906146f2565b9050116124ea5760405162461bcd60e51b815260206004820152602e60248201527f5468697320636861696e2069732063757272656e746c7920756e617661696c6160448201526d189b1948199bdc881d1c985d995b60921b6064820152608401610da3565b6124f381612eb1565b60408051336020820152808201839052815180820383018152606082018352601b54600160f01b60808401526082808401919091528351808403909101815260a2830193849052600c5463040a7bb160e41b90945290926001926000916001600160a01b0316906340a7bb1090612576908990309089908790899060a60161498d565b6040805180830381865afa158015612592573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b691906149e1565b509050803410156126425760405162461bcd60e51b815260206004820152604a60248201527f4572726f723a206d73672e76616c7565206e6f7420656e6f75676820746f206360448201527f6f766572206d6573736167654665652e2053656e642067617320666f72206d656064820152697373616765206665657360b01b608482015260a401610da3565b600c5461ffff87166000908152600e6020526040808220905162c5803160e81b81526001600160a01b039093169263c580310092349261268d928c928b913391908b90600401614a05565b6000604051808303818588803b1580156126a657600080fd5b505af11580156126ba573d6000803e3d6000fd5b5050505050505050505050565b61ffff85166000908152600d602052604080822090516126e89087906147e2565b90815260408051602092819003830190206001600160401b038716600090815292529020600181015490915061276f5760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e6752656365697665723a206e6f2073746f726564206d60448201526565737361676560d01b6064820152608401610da3565b80548214801561279957508060010154838360405161278f929190614ae5565b6040518091039020145b6127e55760405162461bcd60e51b815260206004820152601a60248201527f4c617965725a65726f3a20696e76616c6964207061796c6f61640000000000006044820152606401610da3565b60008082556001820155604051630e1bd41160e11b81523090631c37a8229061281a9089908990899089908990600401614af5565b600060405180830381600087803b15801561283457600080fd5b505af1158015612848573d6000803e3d6000fd5b50505050505050505050565b6060600061286183611bae565b9050806128825760408051600080825260208201909252905b509392505050565b6000816001600160401b0381111561289c5761289c613f39565b6040519080825280602002602001820160405280156128c5578160200160208202803683370190505b50905060005b8281101561287a576128dd85826112fe565b8282815181106128ef576128ef614884565b6020908102919091010152612903816148b0565b90506128cb565b50919050565b600b546001600160a01b036101009091041633146129405760405162461bcd60e51b8152600401610da3906147fe565b47806129825760405162461bcd60e51b815260206004820152601160248201527008ae4e4dee47440dcde40cccacae640745607b1b6044820152606401610da3565b60005b601c5460ff821610156129e2576000601c8260ff16815481106129aa576129aa614884565b60009182526020808320909101546001600160a01b03168252601f9052604081206001015550806129da81614b56565b915050612985565b50604051339082156108fc029083906000818181858888f19350505050158015611610573d6000803e3d6000fd5b600b546001600160a01b03610100909104163314612a405760405162461bcd60e51b8152600401610da3906147fe565b61ffff83166000908152600e60205260409020610ebe908383613e63565b600b546001600160a01b03610100909104163314612a8e5760405162461bcd60e51b8152600401610da3906147fe565b6001600160a01b038116612af35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610da3565b61170281612fd6565b6000908152600260205260409020546001600160a01b0316151590565b60006001600160e01b0319821663780e9d6360e01b1480610ecf5750610ecf82613493565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b7382611a5d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008082806020019051810190612bc39190614b76565b91509150612bd182826134e3565b505050505050565b6000612be482612afc565b612c455760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610da3565b6000612c5083611a5d565b9050806001600160a01b0316846001600160a01b03161480612c8b5750836001600160a01b0316612c8084610fde565b6001600160a01b0316145b80612cbb57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612cd682611a5d565b6001600160a01b031614612d3a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610da3565b6001600160a01b038216612d9c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610da3565b612da78383836134fd565b612db2600082612b3e565b6001600160a01b0383166000908152600360205260408120805460019290612ddb908490614962565b90915550506001600160a01b0382166000908152600360205260408120805460019290612e0990849061494a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b8281101561117757612e7e82612e90565b80612e88816148b0565b915050612e6d565b600080612e9b613508565b612ea5919061494a565b905061151082826134e3565b6117028161360f565b61151082826134e3565b600b5460ff1615612f0a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610da3565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612f3f3390565b6040516001600160a01b03909116815260200160405180910390a1565b600b5460ff16612fa55760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610da3565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612f3f565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61303982612afc565b61309c5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610da3565b6000828152600a60209081526040909120825161117792840190613ddf565b6019546001600160a01b03166131135760405162461bcd60e51b815260206004820181905260248201527f4572726f723a20496e76616c696420726577617264657220636f6e74726163746044820152606401610da3565b60195460405163714dcf8560e01b8152600160048201523360248201526001600160a01b0390911690819063714dcf8590604401600060405180830381600087803b15801561316157600080fd5b505af1158015613175573d6000803e3d6000fd5b5050505050565b60005b601c5460ff82161015611510576000601c8260ff16815481106131a4576131a4614884565b60009182526020808320909101546001600160a01b0316808352601f9091526040822054909250906131e26127106131dc878561364f565b90613662565b6001600160a01b0384166000908152601f602052604081206001018054929350839290919061321290849061494a565b92505081905550505050808061322790614b56565b91505061317f565b816001600160a01b0316836001600160a01b031614156132915760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610da3565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613309848484612cc3565b6133158484848461366e565b610ebe5760405162461bcd60e51b8152600401610da390614ba4565b606061333c82612afc565b6133a25760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610da3565b6000828152600a6020526040812080546133bb906146f2565b80601f01602080910402602001604051908101604052809291908181526020018280546133e7906146f2565b80156134345780601f1061340957610100808354040283529160200191613434565b820191906000526020600020905b81548152906001019060200180831161341757829003601f168201915b50505050509050600061344561376c565b9050805160001415613458575092915050565b81511561348a578082604051602001613472929190614bf6565b60405160208183030381529060405292505050919050565b612cbb8461377b565b60006001600160e01b031982166380ac58cd60e01b14806134c457506001600160e01b03198216635b5e139f60e01b145b80610ecf57506301ffc9a760e01b6001600160e01b0319831614610ecf565b611510828260405180602001604052806000815250613845565b611177838383613878565b600080600f547f00000000000000000000000000000000000000000000000000000000000000006135399190614962565b9050600080600083613549613930565b6135539190614979565b905060106000613564600187614962565b8152602001908152602001600020546000141561358d57613586600185614962565b92506135ae565b6010600061359c600187614962565b81526020019081526020016000205492505b6000818152601060205260409020546135da5760008181526010602052604090208390559050806135f1565b600081815260106020526040902080549084905591505b600f8054906000613601836148b0565b909155509195945050505050565b6136188161396c565b6000818152600a602052604090208054613631906146f2565b159050611702576000818152600a6020526040812061170291613ed7565b600061365b82846148cb565b9392505050565b600061365b8284614900565b60006001600160a01b0384163b1561376157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906136b2903390899088908890600401614c25565b6020604051808303816000875af19250505080156136ed575060408051601f3d908101601f191682019092526136ea91810190614c62565b60015b613747573d80801561371b576040519150601f19603f3d011682016040523d82523d6000602084013e613720565b606091505b50805161373f5760405162461bcd60e51b8152600401610da390614ba4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612cbb565b506001949350505050565b606060118054610f5b906146f2565b606061378682612afc565b6137ea5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610da3565b60006137f461376c565b90506000815111613814576040518060200160405280600081525061365b565b8061381e84613a13565b60405160200161382f929190614bf6565b6040516020818303038152906040529392505050565b61384f8383613b10565b61385c600084848461366e565b6111775760405162461bcd60e51b8152600401610da390614ba4565b6001600160a01b0383166138d3576138ce81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6138f6565b816001600160a01b0316836001600160a01b0316146138f6576138f68382613c4f565b6001600160a01b03821661390d5761117781613cec565b826001600160a01b0316826001600160a01b031614611177576111778282613d9b565b6000444260405160200161394e929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c905090565b600061397782611a5d565b9050613985816000846134fd565b613990600083612b3e565b6001600160a01b03811660009081526003602052604081208054600192906139b9908490614962565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606081613a375750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613a615780613a4b816148b0565b9150613a5a9050600a83614900565b9150613a3b565b6000816001600160401b03811115613a7b57613a7b613f39565b6040519080825280601f01601f191660200182016040528015613aa5576020820181803683370190505b5090505b8415612cbb57613aba600183614962565b9150613ac7600a86614979565b613ad290603061494a565b60f81b818381518110613ae757613ae7614884565b60200101906001600160f81b031916908160001a905350613b09600a86614900565b9450613aa9565b6001600160a01b038216613b665760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610da3565b613b6f81612afc565b15613bbc5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610da3565b613bc8600083836134fd565b6001600160a01b0382166000908152600360205260408120805460019290613bf190849061494a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001613c5c84611bae565b613c669190614962565b600083815260076020526040902054909150808214613cb9576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613cfe90600190614962565b60008381526009602052604081205460088054939450909284908110613d2657613d26614884565b906000526020600020015490508060088381548110613d4757613d47614884565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613d7f57613d7f614c7f565b6001900381819060005260206000200160009055905550505050565b6000613da683611bae565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613deb906146f2565b90600052602060002090601f016020900481019282613e0d5760008555613e53565b82601f10613e2657805160ff1916838001178555613e53565b82800160010185558215613e53579182015b82811115613e53578251825591602001919060010190613e38565b50613e5f929150613f0d565b5090565b828054613e6f906146f2565b90600052602060002090601f016020900481019282613e915760008555613e53565b82601f10613eaa5782800160ff19823516178555613e53565b82800160010185558215613e53579182015b82811115613e53578235825591602001919060010190613ebc565b508054613ee3906146f2565b6000825580601f10613ef3575050565b601f01602090049060005260206000209081019061170291905b5b80821115613e5f5760008155600101613f0e565b803561ffff81168114613f3457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613f7757613f77613f39565b604052919050565b600082601f830112613f9057600080fd5b81356001600160401b03811115613fa957613fa9613f39565b613fbc601f8201601f1916602001613f4f565b818152846020838601011115613fd157600080fd5b816020850160208301376000918101602001919091529392505050565b80356001600160401b0381168114613f3457600080fd5b6000806000806080858703121561401b57600080fd5b61402485613f22565b935060208501356001600160401b038082111561404057600080fd5b61404c88838901613f7f565b945061405a60408801613fee565b9350606087013591508082111561407057600080fd5b5061407d87828801613f7f565b91505092959194509250565b60006020828403121561409b57600080fd5b5035919050565b6001600160e01b03198116811461170257600080fd5b6000602082840312156140ca57600080fd5b813561365b816140a2565b6001600160a01b038116811461170257600080fd5b6000602082840312156140fc57600080fd5b813561365b816140d5565b60005b8381101561412257818101518382015260200161410a565b83811115610ebe5750506000910152565b6000815180845261414b816020860160208601614107565b601f01601f19169290920160200192915050565b60208152600061365b6020830184614133565b6000806040838503121561418557600080fd5b8235614190816140d5565b946020939093013593505050565b6000806000606084860312156141b357600080fd5b83356141be816140d5565b925060208401356141ce816140d5565b929592945050506040919091013590565b60006001600160401b038211156141f8576141f8613f39565b5060051b60200190565b600082601f83011261421357600080fd5b81356020614228614223836141df565b613f4f565b82815260059290921b8401810191818101908684111561424757600080fd5b8286015b8481101561426b57803561425e816140d5565b835291830191830161424b565b509695505050505050565b6000806040838503121561428957600080fd5b82356001600160401b0381111561429f57600080fd5b6142ab85828601614202565b95602094909401359450505050565b600080604083850312156142cd57600080fd5b50508035926020909101359150565b6000602082840312156142ee57600080fd5b61365b82613f22565b60006020828403121561430957600080fd5b81356001600160401b0381111561431f57600080fd5b612cbb84828501614202565b60006020828403121561433d57600080fd5b81356001600160401b0381111561435357600080fd5b612cbb84828501613f7f565b6000806040838503121561437257600080fd5b8235915060208301356001600160401b0381111561438f57600080fd5b61439b85828601613f7f565b9150509250929050565b6000806000606084860312156143ba57600080fd5b6143c384613f22565b925060208401356001600160401b038111156143de57600080fd5b6143ea86828701613f7f565b925050604084013590509250925092565b6000806040838503121561440e57600080fd5b8235614419816140d5565b91506020838101356001600160401b0381111561443557600080fd5b8401601f8101861361444657600080fd5b8035614454614223826141df565b81815260059190911b8201830190838101908883111561447357600080fd5b928401925b8284101561449157833582529284019290840190614478565b80955050505050509250929050565b801515811461170257600080fd5b600080604083850312156144c157600080fd5b82356144cc816140d5565b915060208301356144dc816144a0565b809150509250929050565b600080600080608085870312156144fd57600080fd5b8435614508816140d5565b93506020850135614518816140d5565b92506040850135915060608501356001600160401b0381111561453a57600080fd5b61407d87828801613f7f565b6000806040838503121561455957600080fd5b61419083613f22565b60008083601f84011261457457600080fd5b5081356001600160401b0381111561458b57600080fd5b6020830191508360208285010111156112c257600080fd5b6000806000806000608086880312156145bb57600080fd5b6145c486613f22565b945060208601356001600160401b03808211156145e057600080fd5b6145ec89838a01613f7f565b95506145fa60408901613fee565b9450606088013591508082111561461057600080fd5b5061461d88828901614562565b969995985093965092949392505050565b6020808252825182820181905260009190848201906040850190845b818110156146665783518352928401929184019160010161464a565b50909695505050505050565b6000806040838503121561468557600080fd5b8235614690816140d5565b915060208301356144dc816140d5565b6000806000604084860312156146b557600080fd5b6146be84613f22565b925060208401356001600160401b038111156146d957600080fd5b6146e586828701614562565b9497909650939450505050565b600181811c9082168061470657607f821691505b6020821081141561290a57634e487b7160e01b600052602260045260246000fd5b6000808354614735816146f2565b6001828116801561474d576001811461475e5761478d565b60ff1984168752828701945061478d565b8760005260208060002060005b858110156147845781548a82015290840190820161476b565b50505082870194505b50929695505050505050565b61ffff851681526080602082015260006147b66080830186614133565b6001600160401b038516604084015282810360608401526147d78185614133565b979650505050505050565b600082516147f4818460208701614107565b9190910192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156148c4576148c461489a565b5060010190565b60008160001904831182151516156148e5576148e561489a565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261490f5761490f6148ea565b500490565b60006020828403121561492657600080fd5b5051919050565b60006020828403121561493f57600080fd5b815161365b816144a0565b6000821982111561495d5761495d61489a565b500190565b6000828210156149745761497461489a565b500390565b600082614988576149886148ea565b500690565b61ffff861681526001600160a01b038516602082015260a0604082018190526000906149bb90830186614133565b841515606084015282810360808401526149d58185614133565b98975050505050505050565b600080604083850312156149f457600080fd5b505080516020909101519092909150565b61ffff871681526000602060c08184015260008854614a23816146f2565b8060c087015260e0600180841660008114614a455760018114614a5a57614a88565b60ff1985168984015261010089019550614a88565b8d6000528660002060005b85811015614a805781548b8201860152908301908801614a65565b8a0184019650505b50505050508381036040850152614a9f8189614133565b915050614ab760608401876001600160a01b03169052565b6001600160a01b038516608084015282810360a0840152614ad88185614133565b9998505050505050505050565b8183823760009101908152919050565b61ffff86168152608060208201526000614b126080830187614133565b6001600160401b03861660408401528281036060840152838152838560208301376000602085830101526020601f19601f8601168201019150509695505050505050565b600060ff821660ff811415614b6d57614b6d61489a565b60010192915050565b60008060408385031215614b8957600080fd5b8251614b94816140d5565b6020939093015192949293505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351614c08818460208801614107565b835190830190614c1c818360208801614107565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614c5890830184614133565b9695505050505050565b600060208284031215614c7457600080fd5b815161365b816140a2565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220fb11ca577c481b10df33363d1129027ed022e834468e9da833228ae1fcdf3d7b64736f6c634300080a0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd70000000000000000000000000000000000000000000000000000000000000002000000000000000000000000fb0ca901ec32791f435a8b5a0408923736b07cf00000000000000000000000002a9b099f4e830f5acb5e2cb82a2cd7c0ff6e3031000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000009c40000000000000000000000000000000000000000000000000000000000001d4c

Deployed Bytecode

0x6080604052600436106103f85760003560e01c8063715018a611610213578063aa39fbbe11610123578063d5abeb01116100ab578063f147efeb1161007a578063f147efeb14610c06578063f2fde38b14610c3a578063f968adbe14610c5a578063fa0fca8414610c70578063fddcb5ea14610c9d57600080fd5b8063d5abeb0114610b72578063db2e21bc14610b88578063e985e9c514610b9d578063eb8d72b714610be657600080fd5b8063c6f6f216116100f2578063c6f6f21614610adf578063c87b56dd14610aff578063cf89fa0314610b1f578063d1deba1f14610b32578063d2f8dd4514610b4557600080fd5b8063aa39fbbe14610a75578063ad2f852a14610a8a578063b88d4fde14610aaa578063b9bfa0bc14610aca57600080fd5b80639186b425116101a65780639bdedea5116101755780639bdedea5146109f6578063a035b1fe14610a16578063a0712d6814610a2c578063a22cb46514610a3f578063a9a97f7114610a5f57600080fd5b80639186b4251461098757806391b7f5ed146109a1578063943fb872146109c157806395d89b41146109e157600080fd5b8063803adab4116101e2578063803adab4146108ba578063862440e2146108d95780638da5cb5b146108f95780638ee749121461091c57600080fd5b8063715018a61461084f5780637533d78814610864578063768d7138146108845780637e0586f11461089a57600080fd5b8063397457911161030e57806349df728c116102a15780635c975abb116102705780635c975abb146107cd5780636352211e146107e557806367dded4d146108055780636c0360eb1461081a57806370a082311461082f57600080fd5b806349df728c1461074d5780634f6ccce71461076d57806355f804b31461078d5780635a054205146107ad57600080fd5b806342842e0e116102dd57806342842e0e146106cd57806342966c68146106ed5780634389de9a1461070d578063483efda21461072d57600080fd5b806339745791146106585780633ccfd60b146106785780633ed434c91461068d57806340d097c3146106ad57600080fd5b80631c37a822116103915780632a55205a116103605780632a55205a146105a35780632ea6a25d146105e25780632f745c591461060257806332cb6b0c1461062257806336e79a5a1461063857600080fd5b80631c37a8221461052d57806323b872dd1461054d57806329413b121461056d57806329ee566c1461058d57600080fd5b806306fdde03116103cd57806306fdde0314610494578063081812fc146104b6578063095ea7b3146104ee57806318160ddd1461050e57600080fd5b80621d3567146103fd578062923f9e1461041f57806301ffc9a71461045457806306d254da14610474575b600080fd5b34801561040957600080fd5b5061041d610418366004614005565b610cca565b005b34801561042b57600080fd5b5061043f61043a366004614089565b610ec4565b60405190151581526020015b60405180910390f35b34801561046057600080fd5b5061043f61046f3660046140b8565b610ed5565b34801561048057600080fd5b5061041d61048f3660046140ea565b610efa565b3480156104a057600080fd5b506104a9610f4c565b60405161044b919061415f565b3480156104c257600080fd5b506104d66104d1366004614089565b610fde565b6040516001600160a01b03909116815260200161044b565b3480156104fa57600080fd5b5061041d610509366004614172565b611066565b34801561051a57600080fd5b506008545b60405190815260200161044b565b34801561053957600080fd5b5061041d610548366004614005565b61117c565b34801561055957600080fd5b5061041d61056836600461419e565b6111eb565b34801561057957600080fd5b5061041d610588366004614276565b61121d565b34801561059957600080fd5b5061051f601a5481565b3480156105af57600080fd5b506105c36105be3660046142ba565b61128e565b604080516001600160a01b03909316835260208301919091520161044b565b3480156105ee57600080fd5b5061041d6105fd366004614089565b6112c9565b34801561060e57600080fd5b5061051f61061d366004614172565b6112fe565b34801561062e57600080fd5b5061051f6101bc81565b34801561064457600080fd5b5061041d6106533660046142dc565b611394565b34801561066457600080fd5b5061041d6106733660046142f7565b611437565b34801561068457600080fd5b5061041d611514565b34801561069957600080fd5b5061041d6106a83660046140ea565b611649565b3480156106b957600080fd5b5061041d6106c83660046140ea565b6116c9565b3480156106d957600080fd5b5061041d6106e836600461419e565b611705565b3480156106f957600080fd5b5061041d610708366004614089565b611720565b34801561071957600080fd5b5061041d610728366004614172565b611797565b34801561073957600080fd5b5061041d610748366004614089565b6117d1565b34801561075957600080fd5b5061041d6107683660046140ea565b611806565b34801561077957600080fd5b5061051f610788366004614089565b611987565b34801561079957600080fd5b5061041d6107a836600461432b565b611a1a565b3480156107b957600080fd5b506019546104d6906001600160a01b031681565b3480156107d957600080fd5b50600b5460ff1661043f565b3480156107f157600080fd5b506104d6610800366004614089565b611a5d565b34801561081157600080fd5b5061041d611ad4565b34801561082657600080fd5b506104a9611b20565b34801561083b57600080fd5b5061051f61084a3660046140ea565b611bae565b34801561085b57600080fd5b5061041d611c35565b34801561087057600080fd5b506104a961087f3660046142dc565b611c6f565b34801561089057600080fd5b5061051f60165481565b3480156108a657600080fd5b5061041d6108b5366004614276565b611c88565b3480156108c657600080fd5b5060125461043f90610100900460ff1681565b3480156108e557600080fd5b5061041d6108f436600461435f565b611dd3565b34801561090557600080fd5b50600b5461010090046001600160a01b03166104d6565b34801561092857600080fd5b506109726109373660046143a5565b600d60209081526000938452604080852084518086018401805192815290840195840195909520945292905282529020805460019091015482565b6040805192835260208301919091520161044b565b34801561099357600080fd5b5060125461043f9060ff1681565b3480156109ad57600080fd5b5061041d6109bc366004614089565b611e0d565b3480156109cd57600080fd5b5061041d6109dc366004614089565b611e42565b3480156109ed57600080fd5b506104a9611e77565b348015610a0257600080fd5b5061041d610a113660046143fb565b611e86565b348015610a2257600080fd5b5061051f60175481565b61041d610a3a366004614089565b611ff1565b348015610a4b57600080fd5b5061041d610a5a3660046144ae565b612331565b348015610a6b57600080fd5b5061051f60135481565b348015610a8157600080fd5b5061051f600081565b348015610a9657600080fd5b506018546104d6906001600160a01b031681565b348015610ab657600080fd5b5061041d610ac53660046144e7565b61233c565b348015610ad657600080fd5b5061041d61236e565b348015610aeb57600080fd5b5061041d610afa366004614089565b6123b2565b348015610b0b57600080fd5b506104a9610b1a366004614089565b6123e7565b61041d610b2d366004614546565b6123f2565b61041d610b403660046145a3565b6126c7565b348015610b5157600080fd5b50610b65610b603660046140ea565b612854565b60405161044b919061462e565b348015610b7e57600080fd5b5061051f60145481565b348015610b9457600080fd5b5061041d612910565b348015610ba957600080fd5b5061043f610bb8366004614672565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610bf257600080fd5b5061041d610c013660046146a0565b612a10565b348015610c1257600080fd5b50610972610c213660046140ea565b601f602052600090815260409020805460019091015482565b348015610c4657600080fd5b5061041d610c553660046140ea565b612a5e565b348015610c6657600080fd5b5061051f60155481565b348015610c7c57600080fd5b5061051f610c8b3660046140ea565b601d6020526000908152604090205481565b348015610ca957600080fd5b5061051f610cb83660046140ea565b601e6020526000908152604090205481565b600c546001600160a01b03163314610ce157600080fd5b61ffff84166000908152600e602052604090208054610cff906146f2565b90508351148015610d3e575061ffff84166000908152600e6020526040908190209051610d2c9190614727565b60405180910390208380519060200120145b610dac5760405162461bcd60e51b815260206004820152603460248201527f4e6f6e626c6f636b696e6752656365697665723a20696e76616c696420736f756044820152731c98d9481cd95b991a5b99c818dbdb9d1c9858dd60621b60648201526084015b60405180910390fd5b604051630e1bd41160e11b81523090631c37a82290610dd5908790879087908790600401614799565b600060405180830381600087803b158015610def57600080fd5b505af1925050508015610e00575060015b610ebe576040518060400160405280825181526020018280519060200120815250600d60008661ffff1661ffff16815260200190815260200160002084604051610e4a91906147e2565b9081526040805191829003602090810183206001600160401b038716600090815290825291909120835181559201516001909201919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90610eb5908690869086908690614799565b60405180910390a15b50505050565b6000610ecf82612afc565b92915050565b60006001600160e01b0319821663152a902d60e11b1480610ecf5750610ecf82612b19565b600b546001600160a01b03610100909104163314610f2a5760405162461bcd60e51b8152600401610da3906147fe565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610f5b906146f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610f87906146f2565b8015610fd45780601f10610fa957610100808354040283529160200191610fd4565b820191906000526020600020905b815481529060010190602001808311610fb757829003601f168201915b5050505050905090565b6000610fe982612afc565b61104a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610da3565b506000908152600460205260409020546001600160a01b031690565b600061107182611a5d565b9050806001600160a01b0316836001600160a01b031614156110df5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610da3565b336001600160a01b03821614806110fb57506110fb8133610bb8565b61116d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610da3565b6111778383612b3e565b505050565b3330146111df5760405162461bcd60e51b815260206004820152602b60248201527f4e6f6e626c6f636b696e6752656365697665723a2063616c6c6572206d75737460448201526a10313290213934b233b29760a91b6064820152608401610da3565b610ebe84848484612bac565b6111f6335b82612bd9565b6112125760405162461bcd60e51b8152600401610da390614833565b611177838383612cc3565b600b546001600160a01b0361010090910416331461124d5760405162461bcd60e51b8152600401610da3906147fe565b60005b82518110156111775761127c8284838151811061126f5761126f614884565b6020026020010151612e6a565b80611286816148b0565b915050611250565b601854601a5460009182916001600160a01b0390911690612710906112b390866148cb565b6112bd9190614900565b915091505b9250929050565b600b546001600160a01b036101009091041633146112f95760405162461bcd60e51b8152600401610da3906147fe565b601355565b600061130983611bae565b821061136b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610da3565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600b546001600160a01b036101009091041633146113c45760405162461bcd60e51b8152600401610da3906147fe565b6102ee8161ffff16111561142e5760405162461bcd60e51b815260206004820152602b60248201527f526f79616c7479206d757374206265206c6f776572207468616e206f7220657160448201526a75616c20746f20372c352560a81b6064820152608401610da3565b61ffff16601a55565b600b546001600160a01b036101009091041633146114675760405162461bcd60e51b8152600401610da3906147fe565b60008151116114af5760405162461bcd60e51b81526020600482015260146024820152734572726f723a206c69737420697320656d70747960601b6044820152606401610da3565b60005b8151811015611510576000601d60008484815181106114d3576114d3614884565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555080611509906148b0565b90506114b2565b5050565b336000908152601f602052604090205461157e5760405162461bcd60e51b815260206004820152602560248201527f446576204f6e6c793a2063616c6c6572206973206e6f742074686520646576656044820152643637b832b960d91b6064820152608401610da3565b336000908152601f6020526040902060010154806115d25760405162461bcd60e51b815260206004820152601160248201527008ae4e4dee47440dcde40cccacae640745607b1b6044820152606401610da3565b336000818152601f60205260408082206001018290555183156108fc0291849190818181858888f19350505050158015611610573d6000803e3d6000fd5b5060405181815233907f9bba815921f12cb7b1408e14b5ade745234397d39623ae5e7c82d693cb45815f9060200160405180910390a250565b600b546001600160a01b036101009091041633146116795760405162461bcd60e51b8152600401610da3906147fe565b6001600160a01b038116611697576012805461ff00191690556116a7565b6012805461ff0019166101001790555b601980546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b036101009091041633146116f95760405162461bcd60e51b8152600401610da3906147fe565b61170281612e90565b50565b6111778383836040518060200160405280600081525061233c565b611729336111f0565b61178e5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610da3565b61170281612eb1565b600b546001600160a01b036101009091041633146117c75760405162461bcd60e51b8152600401610da3906147fe565b6115108282612eba565b600b546001600160a01b036101009091041633146118015760405162461bcd60e51b8152600401610da3906147fe565b601655565b600b546001600160a01b036101009091041633146118365760405162461bcd60e51b8152600401610da3906147fe565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561187f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a39190614914565b9050816001600160a01b031663a9059cbb6118cc600b546001600160a01b036101009091041690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015611919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193d919061492d565b50604080516001600160a01b03851681526020810183905233917f5aa586896a67fb05c3b86276f66eecee7da00719d0e7299c403596fa2ec58ca4910160405180910390a2505050565b600061199260085490565b82106119f55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610da3565b60088281548110611a0857611a08614884565b90600052602060002001549050919050565b600b546001600160a01b03610100909104163314611a4a5760405162461bcd60e51b8152600401610da3906147fe565b8051611510906011906020840190613ddf565b6000818152600260205260408120546001600160a01b031680610ecf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610da3565b600b546001600160a01b03610100909104163314611b045760405162461bcd60e51b8152600401610da3906147fe565b600b5460ff16611b1857611b16612ec4565b565b611b16612f5c565b60118054611b2d906146f2565b80601f0160208091040260200160405190810160405280929190818152602001828054611b59906146f2565b8015611ba65780601f10611b7b57610100808354040283529160200191611ba6565b820191906000526020600020905b815481529060010190602001808311611b8957829003601f168201915b505050505081565b60006001600160a01b038216611c195760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610da3565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03610100909104163314611c655760405162461bcd60e51b8152600401610da3906147fe565b611b166000612fd6565b600e6020526000908152604090208054611b2d906146f2565b600b546001600160a01b03610100909104163314611cb85760405162461bcd60e51b8152600401610da3906147fe565b6000825111611d005760405162461bcd60e51b81526020600482015260146024820152734572726f723a206c69737420697320656d70747960601b6044820152606401610da3565b60005b82518110156111775760006001600160a01b0316838281518110611d2957611d29614884565b60200260200101516001600160a01b03161415611d7f5760405162461bcd60e51b815260206004820152601460248201527320b2323932b9b99031b0b73737ba10313290181760611b6044820152606401610da3565b81601d6000858481518110611d9657611d96614884565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555080611dcc906148b0565b9050611d03565b600b546001600160a01b03610100909104163314611e035760405162461bcd60e51b8152600401610da3906147fe565b6115108282613030565b600b546001600160a01b03610100909104163314611e3d5760405162461bcd60e51b8152600401610da3906147fe565b601755565b600b546001600160a01b03610100909104163314611e725760405162461bcd60e51b8152600401610da3906147fe565b601b55565b606060018054610f5b906146f2565b600b546001600160a01b03610100909104163314611eb65760405162461bcd60e51b8152600401610da3906147fe565b8160005b8251811015610ebe57816001600160a01b03166342842e0e30611eeb600b546001600160a01b036101009091041690565b868581518110611efd57611efd614884565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015611f5757600080fd5b505af1158015611f6b573d6000803e3d6000fd5b50505050336001600160a01b03167fb8dbf4ce06446b88ef02ffd28a948c2637ac80fb0bd4d3a31c70878c1046eb7f85858481518110611fad57611fad614884565b6020026020010151604051611fd79291906001600160a01b03929092168252602082015260400190565b60405180910390a280611fe9816148b0565b915050611eba565b600b5460ff16156120375760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610da3565b600061204260085490565b6014549091506001612054848461494a565b61205e9190614962565b106120bd5760405162461bcd60e51b815260206004820152602960248201527f4572726f723a2063616e6e6f74206d696e74206d6f7265207468616e20746f74604482015268616c20737570706c7960b81b6064820152608401610da3565b6000821180156120cf57506015548211155b61211b5760405162461bcd60e51b815260206004820152601760248201527f4572726f723a206d617820706172207478206c696d69740000000000000000006044820152606401610da3565b60165461212733611bae565b61213290600161494a565b11156121805760405162461bcd60e51b815260206004820152601c60248201527f4572726f723a206d6178207065722061646472657373206c696d6974000000006044820152606401610da3565b601754156121db578160175461219691906148cb565b34146121db5760405162461bcd60e51b81526020600482015260146024820152734572726f723a20696e76616c696420707269636560601b6044820152606401610da3565b60125460ff161561226b57336000908152601d602052604090205482111561226b5760405162461bcd60e51b815260206004820152603d60248201527f4572726f723a20796f7520617265206e6f742077686974656c6973746564206f60448201527f7220616d6f756e7420697320686967686572207468616e206c696d69740000006064820152608401610da3565b336000908152601e6020526040812054905b8381101561230d5761228e33612e90565b61229960018361494a565b601254909250610100900460ff1680156122bd57506013546122bb9083614979565b155b156122ca576122ca6130bb565b60125460ff16156122fb57336000908152601d602052604081208054600192906122f5908490614962565b90915550505b80612305816148b0565b91505061227d565b50336000908152601e6020526040902081905560175415611177576111773461317c565b61151033838361322f565b6123463383612bd9565b6123625760405162461bcd60e51b8152600401610da390614833565b610ebe848484846132fe565b600b546001600160a01b0361010090910416331461239e5760405162461bcd60e51b8152600401610da3906147fe565b6012805460ff19811660ff90911615179055565b600b546001600160a01b036101009091041633146123e25760405162461bcd60e51b8152600401610da3906147fe565b601555565b6060610ecf82613331565b6123fb81611a5d565b6001600160a01b0316336001600160a01b0316146124665760405162461bcd60e51b815260206004820152602260248201527f596f75206d757374206f776e2074686520746f6b656e20746f20747261766572604482015261736560f01b6064820152608401610da3565b61ffff82166000908152600e602052604081208054612484906146f2565b9050116124ea5760405162461bcd60e51b815260206004820152602e60248201527f5468697320636861696e2069732063757272656e746c7920756e617661696c6160448201526d189b1948199bdc881d1c985d995b60921b6064820152608401610da3565b6124f381612eb1565b60408051336020820152808201839052815180820383018152606082018352601b54600160f01b60808401526082808401919091528351808403909101815260a2830193849052600c5463040a7bb160e41b90945290926001926000916001600160a01b0316906340a7bb1090612576908990309089908790899060a60161498d565b6040805180830381865afa158015612592573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b691906149e1565b509050803410156126425760405162461bcd60e51b815260206004820152604a60248201527f4572726f723a206d73672e76616c7565206e6f7420656e6f75676820746f206360448201527f6f766572206d6573736167654665652e2053656e642067617320666f72206d656064820152697373616765206665657360b01b608482015260a401610da3565b600c5461ffff87166000908152600e6020526040808220905162c5803160e81b81526001600160a01b039093169263c580310092349261268d928c928b913391908b90600401614a05565b6000604051808303818588803b1580156126a657600080fd5b505af11580156126ba573d6000803e3d6000fd5b5050505050505050505050565b61ffff85166000908152600d602052604080822090516126e89087906147e2565b90815260408051602092819003830190206001600160401b038716600090815292529020600181015490915061276f5760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e6752656365697665723a206e6f2073746f726564206d60448201526565737361676560d01b6064820152608401610da3565b80548214801561279957508060010154838360405161278f929190614ae5565b6040518091039020145b6127e55760405162461bcd60e51b815260206004820152601a60248201527f4c617965725a65726f3a20696e76616c6964207061796c6f61640000000000006044820152606401610da3565b60008082556001820155604051630e1bd41160e11b81523090631c37a8229061281a9089908990899089908990600401614af5565b600060405180830381600087803b15801561283457600080fd5b505af1158015612848573d6000803e3d6000fd5b50505050505050505050565b6060600061286183611bae565b9050806128825760408051600080825260208201909252905b509392505050565b6000816001600160401b0381111561289c5761289c613f39565b6040519080825280602002602001820160405280156128c5578160200160208202803683370190505b50905060005b8281101561287a576128dd85826112fe565b8282815181106128ef576128ef614884565b6020908102919091010152612903816148b0565b90506128cb565b50919050565b600b546001600160a01b036101009091041633146129405760405162461bcd60e51b8152600401610da3906147fe565b47806129825760405162461bcd60e51b815260206004820152601160248201527008ae4e4dee47440dcde40cccacae640745607b1b6044820152606401610da3565b60005b601c5460ff821610156129e2576000601c8260ff16815481106129aa576129aa614884565b60009182526020808320909101546001600160a01b03168252601f9052604081206001015550806129da81614b56565b915050612985565b50604051339082156108fc029083906000818181858888f19350505050158015611610573d6000803e3d6000fd5b600b546001600160a01b03610100909104163314612a405760405162461bcd60e51b8152600401610da3906147fe565b61ffff83166000908152600e60205260409020610ebe908383613e63565b600b546001600160a01b03610100909104163314612a8e5760405162461bcd60e51b8152600401610da3906147fe565b6001600160a01b038116612af35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610da3565b61170281612fd6565b6000908152600260205260409020546001600160a01b0316151590565b60006001600160e01b0319821663780e9d6360e01b1480610ecf5750610ecf82613493565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b7382611a5d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008082806020019051810190612bc39190614b76565b91509150612bd182826134e3565b505050505050565b6000612be482612afc565b612c455760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610da3565b6000612c5083611a5d565b9050806001600160a01b0316846001600160a01b03161480612c8b5750836001600160a01b0316612c8084610fde565b6001600160a01b0316145b80612cbb57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612cd682611a5d565b6001600160a01b031614612d3a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610da3565b6001600160a01b038216612d9c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610da3565b612da78383836134fd565b612db2600082612b3e565b6001600160a01b0383166000908152600360205260408120805460019290612ddb908490614962565b90915550506001600160a01b0382166000908152600360205260408120805460019290612e0990849061494a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b8281101561117757612e7e82612e90565b80612e88816148b0565b915050612e6d565b600080612e9b613508565b612ea5919061494a565b905061151082826134e3565b6117028161360f565b61151082826134e3565b600b5460ff1615612f0a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610da3565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612f3f3390565b6040516001600160a01b03909116815260200160405180910390a1565b600b5460ff16612fa55760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610da3565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612f3f565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61303982612afc565b61309c5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610da3565b6000828152600a60209081526040909120825161117792840190613ddf565b6019546001600160a01b03166131135760405162461bcd60e51b815260206004820181905260248201527f4572726f723a20496e76616c696420726577617264657220636f6e74726163746044820152606401610da3565b60195460405163714dcf8560e01b8152600160048201523360248201526001600160a01b0390911690819063714dcf8590604401600060405180830381600087803b15801561316157600080fd5b505af1158015613175573d6000803e3d6000fd5b5050505050565b60005b601c5460ff82161015611510576000601c8260ff16815481106131a4576131a4614884565b60009182526020808320909101546001600160a01b0316808352601f9091526040822054909250906131e26127106131dc878561364f565b90613662565b6001600160a01b0384166000908152601f602052604081206001018054929350839290919061321290849061494a565b92505081905550505050808061322790614b56565b91505061317f565b816001600160a01b0316836001600160a01b031614156132915760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610da3565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613309848484612cc3565b6133158484848461366e565b610ebe5760405162461bcd60e51b8152600401610da390614ba4565b606061333c82612afc565b6133a25760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610da3565b6000828152600a6020526040812080546133bb906146f2565b80601f01602080910402602001604051908101604052809291908181526020018280546133e7906146f2565b80156134345780601f1061340957610100808354040283529160200191613434565b820191906000526020600020905b81548152906001019060200180831161341757829003601f168201915b50505050509050600061344561376c565b9050805160001415613458575092915050565b81511561348a578082604051602001613472929190614bf6565b60405160208183030381529060405292505050919050565b612cbb8461377b565b60006001600160e01b031982166380ac58cd60e01b14806134c457506001600160e01b03198216635b5e139f60e01b145b80610ecf57506301ffc9a760e01b6001600160e01b0319831614610ecf565b611510828260405180602001604052806000815250613845565b611177838383613878565b600080600f547f00000000000000000000000000000000000000000000000000000000000001bc6135399190614962565b9050600080600083613549613930565b6135539190614979565b905060106000613564600187614962565b8152602001908152602001600020546000141561358d57613586600185614962565b92506135ae565b6010600061359c600187614962565b81526020019081526020016000205492505b6000818152601060205260409020546135da5760008181526010602052604090208390559050806135f1565b600081815260106020526040902080549084905591505b600f8054906000613601836148b0565b909155509195945050505050565b6136188161396c565b6000818152600a602052604090208054613631906146f2565b159050611702576000818152600a6020526040812061170291613ed7565b600061365b82846148cb565b9392505050565b600061365b8284614900565b60006001600160a01b0384163b1561376157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906136b2903390899088908890600401614c25565b6020604051808303816000875af19250505080156136ed575060408051601f3d908101601f191682019092526136ea91810190614c62565b60015b613747573d80801561371b576040519150601f19603f3d011682016040523d82523d6000602084013e613720565b606091505b50805161373f5760405162461bcd60e51b8152600401610da390614ba4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612cbb565b506001949350505050565b606060118054610f5b906146f2565b606061378682612afc565b6137ea5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610da3565b60006137f461376c565b90506000815111613814576040518060200160405280600081525061365b565b8061381e84613a13565b60405160200161382f929190614bf6565b6040516020818303038152906040529392505050565b61384f8383613b10565b61385c600084848461366e565b6111775760405162461bcd60e51b8152600401610da390614ba4565b6001600160a01b0383166138d3576138ce81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6138f6565b816001600160a01b0316836001600160a01b0316146138f6576138f68382613c4f565b6001600160a01b03821661390d5761117781613cec565b826001600160a01b0316826001600160a01b031614611177576111778282613d9b565b6000444260405160200161394e929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c905090565b600061397782611a5d565b9050613985816000846134fd565b613990600083612b3e565b6001600160a01b03811660009081526003602052604081208054600192906139b9908490614962565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606081613a375750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613a615780613a4b816148b0565b9150613a5a9050600a83614900565b9150613a3b565b6000816001600160401b03811115613a7b57613a7b613f39565b6040519080825280601f01601f191660200182016040528015613aa5576020820181803683370190505b5090505b8415612cbb57613aba600183614962565b9150613ac7600a86614979565b613ad290603061494a565b60f81b818381518110613ae757613ae7614884565b60200101906001600160f81b031916908160001a905350613b09600a86614900565b9450613aa9565b6001600160a01b038216613b665760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610da3565b613b6f81612afc565b15613bbc5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610da3565b613bc8600083836134fd565b6001600160a01b0382166000908152600360205260408120805460019290613bf190849061494a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001613c5c84611bae565b613c669190614962565b600083815260076020526040902054909150808214613cb9576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613cfe90600190614962565b60008381526009602052604081205460088054939450909284908110613d2657613d26614884565b906000526020600020015490508060088381548110613d4757613d47614884565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613d7f57613d7f614c7f565b6001900381819060005260206000200160009055905550505050565b6000613da683611bae565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613deb906146f2565b90600052602060002090601f016020900481019282613e0d5760008555613e53565b82601f10613e2657805160ff1916838001178555613e53565b82800160010185558215613e53579182015b82811115613e53578251825591602001919060010190613e38565b50613e5f929150613f0d565b5090565b828054613e6f906146f2565b90600052602060002090601f016020900481019282613e915760008555613e53565b82601f10613eaa5782800160ff19823516178555613e53565b82800160010185558215613e53579182015b82811115613e53578235825591602001919060010190613ebc565b508054613ee3906146f2565b6000825580601f10613ef3575050565b601f01602090049060005260206000209081019061170291905b5b80821115613e5f5760008155600101613f0e565b803561ffff81168114613f3457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613f7757613f77613f39565b604052919050565b600082601f830112613f9057600080fd5b81356001600160401b03811115613fa957613fa9613f39565b613fbc601f8201601f1916602001613f4f565b818152846020838601011115613fd157600080fd5b816020850160208301376000918101602001919091529392505050565b80356001600160401b0381168114613f3457600080fd5b6000806000806080858703121561401b57600080fd5b61402485613f22565b935060208501356001600160401b038082111561404057600080fd5b61404c88838901613f7f565b945061405a60408801613fee565b9350606087013591508082111561407057600080fd5b5061407d87828801613f7f565b91505092959194509250565b60006020828403121561409b57600080fd5b5035919050565b6001600160e01b03198116811461170257600080fd5b6000602082840312156140ca57600080fd5b813561365b816140a2565b6001600160a01b038116811461170257600080fd5b6000602082840312156140fc57600080fd5b813561365b816140d5565b60005b8381101561412257818101518382015260200161410a565b83811115610ebe5750506000910152565b6000815180845261414b816020860160208601614107565b601f01601f19169290920160200192915050565b60208152600061365b6020830184614133565b6000806040838503121561418557600080fd5b8235614190816140d5565b946020939093013593505050565b6000806000606084860312156141b357600080fd5b83356141be816140d5565b925060208401356141ce816140d5565b929592945050506040919091013590565b60006001600160401b038211156141f8576141f8613f39565b5060051b60200190565b600082601f83011261421357600080fd5b81356020614228614223836141df565b613f4f565b82815260059290921b8401810191818101908684111561424757600080fd5b8286015b8481101561426b57803561425e816140d5565b835291830191830161424b565b509695505050505050565b6000806040838503121561428957600080fd5b82356001600160401b0381111561429f57600080fd5b6142ab85828601614202565b95602094909401359450505050565b600080604083850312156142cd57600080fd5b50508035926020909101359150565b6000602082840312156142ee57600080fd5b61365b82613f22565b60006020828403121561430957600080fd5b81356001600160401b0381111561431f57600080fd5b612cbb84828501614202565b60006020828403121561433d57600080fd5b81356001600160401b0381111561435357600080fd5b612cbb84828501613f7f565b6000806040838503121561437257600080fd5b8235915060208301356001600160401b0381111561438f57600080fd5b61439b85828601613f7f565b9150509250929050565b6000806000606084860312156143ba57600080fd5b6143c384613f22565b925060208401356001600160401b038111156143de57600080fd5b6143ea86828701613f7f565b925050604084013590509250925092565b6000806040838503121561440e57600080fd5b8235614419816140d5565b91506020838101356001600160401b0381111561443557600080fd5b8401601f8101861361444657600080fd5b8035614454614223826141df565b81815260059190911b8201830190838101908883111561447357600080fd5b928401925b8284101561449157833582529284019290840190614478565b80955050505050509250929050565b801515811461170257600080fd5b600080604083850312156144c157600080fd5b82356144cc816140d5565b915060208301356144dc816144a0565b809150509250929050565b600080600080608085870312156144fd57600080fd5b8435614508816140d5565b93506020850135614518816140d5565b92506040850135915060608501356001600160401b0381111561453a57600080fd5b61407d87828801613f7f565b6000806040838503121561455957600080fd5b61419083613f22565b60008083601f84011261457457600080fd5b5081356001600160401b0381111561458b57600080fd5b6020830191508360208285010111156112c257600080fd5b6000806000806000608086880312156145bb57600080fd5b6145c486613f22565b945060208601356001600160401b03808211156145e057600080fd5b6145ec89838a01613f7f565b95506145fa60408901613fee565b9450606088013591508082111561461057600080fd5b5061461d88828901614562565b969995985093965092949392505050565b6020808252825182820181905260009190848201906040850190845b818110156146665783518352928401929184019160010161464a565b50909695505050505050565b6000806040838503121561468557600080fd5b8235614690816140d5565b915060208301356144dc816140d5565b6000806000604084860312156146b557600080fd5b6146be84613f22565b925060208401356001600160401b038111156146d957600080fd5b6146e586828701614562565b9497909650939450505050565b600181811c9082168061470657607f821691505b6020821081141561290a57634e487b7160e01b600052602260045260246000fd5b6000808354614735816146f2565b6001828116801561474d576001811461475e5761478d565b60ff1984168752828701945061478d565b8760005260208060002060005b858110156147845781548a82015290840190820161476b565b50505082870194505b50929695505050505050565b61ffff851681526080602082015260006147b66080830186614133565b6001600160401b038516604084015282810360608401526147d78185614133565b979650505050505050565b600082516147f4818460208701614107565b9190910192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156148c4576148c461489a565b5060010190565b60008160001904831182151516156148e5576148e561489a565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261490f5761490f6148ea565b500490565b60006020828403121561492657600080fd5b5051919050565b60006020828403121561493f57600080fd5b815161365b816144a0565b6000821982111561495d5761495d61489a565b500190565b6000828210156149745761497461489a565b500390565b600082614988576149886148ea565b500690565b61ffff861681526001600160a01b038516602082015260a0604082018190526000906149bb90830186614133565b841515606084015282810360808401526149d58185614133565b98975050505050505050565b600080604083850312156149f457600080fd5b505080516020909101519092909150565b61ffff871681526000602060c08184015260008854614a23816146f2565b8060c087015260e0600180841660008114614a455760018114614a5a57614a88565b60ff1985168984015261010089019550614a88565b8d6000528660002060005b85811015614a805781548b8201860152908301908801614a65565b8a0184019650505b50505050508381036040850152614a9f8189614133565b915050614ab760608401876001600160a01b03169052565b6001600160a01b038516608084015282810360a0840152614ad88185614133565b9998505050505050505050565b8183823760009101908152919050565b61ffff86168152608060208201526000614b126080830187614133565b6001600160401b03861660408401528281036060840152838152838560208301376000602085830101526020601f19601f8601168201019150509695505050505050565b600060ff821660ff811415614b6d57614b6d61489a565b60010192915050565b60008060408385031215614b8957600080fd5b8251614b94816140d5565b6020939093015192949293505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351614c08818460208801614107565b835190830190614c1c818360208801614107565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614c5890830184614133565b9695505050505050565b600060208284031215614c7457600080fd5b815161365b816140a2565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220fb11ca577c481b10df33363d1129027ed022e834468e9da833228ae1fcdf3d7b64736f6c634300080a0033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd70000000000000000000000000000000000000000000000000000000000000002000000000000000000000000fb0ca901ec32791f435a8b5a0408923736b07cf00000000000000000000000002a9b099f4e830f5acb5e2cb82a2cd7c0ff6e3031000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000009c40000000000000000000000000000000000000000000000000000000000001d4c

-----Decoded View---------------
Arg [0] : _devList (address[]): 0xfb0Ca901ec32791f435a8b5a0408923736b07cf0,0x2a9B099f4E830F5ACB5e2cb82a2CD7C0ff6E3031
Arg [1] : _fees (uint256[]): 2500,7500
Arg [2] : _lzEndpoint (address): 0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd7
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [4] : 000000000000000000000000fb0ca901ec32791f435a8b5a0408923736b07cf0
Arg [5] : 0000000000000000000000002a9b099f4e830f5acb5e2cb82a2cd7c0ff6e3031
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [7] : 00000000000000000000000000000000000000000000000000000000000009c4
Arg [8] : 0000000000000000000000000000000000000000000000000000000000001d4c


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

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