ETH Price: $1,970.55 (+1.06%)

Contract

0x303c470c0e0342a1CCDd70b0a17a14b599FF1474

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Set Approval For...2645362712024-10-16 21:16:57483 days ago1729113417IN
Tigris : GovNFT
0 ETH0.000001330.01
Set Approval For...1470230712023-11-04 11:02:29830 days ago1699095749IN
Tigris : GovNFT
0 ETH0.000029540.1
Claim1426691122023-10-21 17:55:30844 days ago1697910930IN
Tigris : GovNFT
0 ETH0.000034060.1
Claim1356928602023-09-29 6:59:23867 days ago1695970763IN
Tigris : GovNFT
0 ETH0.00002080.1
Set Approval For...1356923932023-09-29 6:57:27867 days ago1695970647IN
Tigris : GovNFT
0 ETH0.000019640.1
Set Approval For...1269139552023-09-01 4:38:02895 days ago1693543082IN
Tigris : GovNFT
0 ETH0.00002790.1
Claim1269120002023-09-01 4:28:50895 days ago1693542530IN
Tigris : GovNFT
0 ETH0.000023520.1
Set Approval For...1227059362023-08-18 20:19:21908 days ago1692389961IN
Tigris : GovNFT
0 ETH0.000056420.1
Claim1157525622023-07-28 10:13:38929 days ago1690539218IN
Tigris : GovNFT
0 ETH0.000041030.1
Set Approval For...1152543202023-07-26 21:57:12931 days ago1690408632IN
Tigris : GovNFT
0 ETH0.000061240.1
Set Approval For...1109922882023-07-14 3:23:38944 days ago1689305018IN
Tigris : GovNFT
0 ETH0.0000430.1
Claim1101529952023-07-11 15:21:58946 days ago1689088918IN
Tigris : GovNFT
0 ETH0.000069940.1
Set Approval For...1090431642023-07-08 8:11:23949 days ago1688803883IN
Tigris : GovNFT
0 ETH0.000031640.1
Set Approval For...1090388652023-07-08 7:53:27949 days ago1688802807IN
Tigris : GovNFT
0 ETH0.000030460.1
Set Approval For...1090384832023-07-08 7:51:51949 days ago1688802711IN
Tigris : GovNFT
0 ETH0.000030740.1
Set Approval For...1076590052023-07-04 3:14:47954 days ago1688440487IN
Tigris : GovNFT
0 ETH0.000034950.1
Set Approval For...1076394192023-07-04 1:50:03954 days ago1688435403IN
Tigris : GovNFT
0 ETH0.000026520.1
Set Approval For...1076391862023-07-04 1:49:01954 days ago1688435341IN
Tigris : GovNFT
0 ETH0.000028710.1
Set Approval For...1076177762023-07-04 0:11:13954 days ago1688429473IN
Tigris : GovNFT
0 ETH0.000032270.1
Set Approval For...1071229192023-07-02 12:50:16955 days ago1688302216IN
Tigris : GovNFT
0 ETH0.000032240.1
Set Approval For...1071222532023-07-02 12:47:32955 days ago1688302052IN
Tigris : GovNFT
0 ETH0.000032850.1
Claim1071066372023-07-02 11:42:02955 days ago1688298122IN
Tigris : GovNFT
0 ETH0.00002780.1
Set Approval For...1071047802023-07-02 11:34:13955 days ago1688297653IN
Tigris : GovNFT
0 ETH0.00003180.1
Set Approval For...1070855692023-07-02 10:13:19955 days ago1688292799IN
Tigris : GovNFT
0 ETH0.000030970.1
Set Approval For...1070575072023-07-02 8:15:04955 days ago1688285704IN
Tigris : GovNFT
0 ETH0.000031160.1
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
970017632023-06-02 11:15:28985 days ago1685704528
Tigris : GovNFT
0.0002534 ETH
855828762023-04-29 18:02:211019 days ago1682791341
Tigris : GovNFT
0.00027609 ETH
813699542023-04-17 10:38:421031 days ago1681727922
Tigris : GovNFT
0.00017234 ETH
812860952023-04-17 4:52:031032 days ago1681707123
Tigris : GovNFT
0.00018746 ETH
811089692023-04-16 16:32:311032 days ago1681662751
Tigris : GovNFT
0.00012717 ETH
797017612023-04-12 13:54:121036 days ago1681307652
Tigris : GovNFT
0.00023661 ETH
719323622023-03-20 23:38:031059 days ago1679355483
Tigris : GovNFT
0 ETH
719323622023-03-20 23:38:031059 days ago1679355483
Tigris : GovNFT
0 ETH
719286592023-03-20 23:22:161059 days ago1679354536
Tigris : GovNFT
0 ETH
719286592023-03-20 23:22:161059 days ago1679354536
Tigris : GovNFT
0 ETH
719286512023-03-20 23:22:141059 days ago1679354534
Tigris : GovNFT
0 ETH
719286512023-03-20 23:22:141059 days ago1679354534
Tigris : GovNFT
0 ETH
719286432023-03-20 23:22:121059 days ago1679354532
Tigris : GovNFT
0 ETH
719286432023-03-20 23:22:121059 days ago1679354532
Tigris : GovNFT
0 ETH
719286362023-03-20 23:22:101059 days ago1679354530
Tigris : GovNFT
0 ETH
719286362023-03-20 23:22:101059 days ago1679354530
Tigris : GovNFT
0 ETH
719286282023-03-20 23:22:081059 days ago1679354528
Tigris : GovNFT
0 ETH
719286282023-03-20 23:22:081059 days ago1679354528
Tigris : GovNFT
0 ETH
719276152023-03-20 23:17:521059 days ago1679354272
Tigris : GovNFT
0 ETH
719276152023-03-20 23:17:521059 days ago1679354272
Tigris : GovNFT
0 ETH
719276082023-03-20 23:17:501059 days ago1679354270
Tigris : GovNFT
0 ETH
719276082023-03-20 23:17:501059 days ago1679354270
Tigris : GovNFT
0 ETH
719276012023-03-20 23:17:481059 days ago1679354268
Tigris : GovNFT
0 ETH
719276012023-03-20 23:17:481059 days ago1679354268
Tigris : GovNFT
0 ETH
719275682023-03-20 23:17:401059 days ago1679354260
Tigris : GovNFT
0 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GovNFTBridged

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./interfaces/ILayerZeroEndpoint.sol";
import "./interfaces/ILayerZeroReceiver.sol";
import "./utils/MetaContext.sol";
import "./interfaces/IGovNFT.sol";
import "./utils/ExcessivelySafeCall.sol";

contract GovNFTBridged is ERC721Enumerable, ILayerZeroReceiver, MetaContext, IGovNFT {
    using ExcessivelySafeCall for address;

    uint256 public gas = 150000;
    string public baseURI;
    uint256 public maxBridge = 20;
    ILayerZeroEndpoint public endpoint;

    mapping(uint16 => mapping(address => bool)) public isTrustedAddress;
    mapping(uint16 => mapping(bytes => mapping(uint64 => bytes32))) public failedMessages;
    event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload, bytes _reason);
    event RetryMessageSuccess(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes32 _payloadHash);
    event ReceiveNFT(
        uint16 _srcChainId,
        address _from,
        uint256[] _tokenId
    );

    constructor(
        address _endpoint,
        string memory _setBaseURI,
        string memory _name,
        string memory _symbol
    ) ERC721(_name, _symbol) {
        endpoint = ILayerZeroEndpoint(_endpoint);
        baseURI = _setBaseURI;
    }

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

    function setBaseURI(string calldata _newBaseURI) external onlyOwner {
        baseURI = _newBaseURI;
    }

    function _bridgeMint(address to, uint256 tokenId) public {
        require(msg.sender == address(this) || _msgSender() == owner(), "NotBridge");
        require(tokenId <= 10000 && tokenId != 0, "BadID");
        for (uint i=0; i<assetsLength(); i++) {
            userPaid[to][assets[i]] += accRewardsPerNFT[assets[i]];
        }
        super._mint(to, tokenId);
    }

    function _burn(uint256 tokenId) internal override {
        address owner = ownerOf(tokenId);
        for (uint i=0; i<assetsLength(); i++) {
            userDebt[owner][assets[i]] += accRewardsPerNFT[assets[i]];
            userDebt[owner][assets[i]] -= userPaid[owner][assets[i]]/balanceOf(owner);
            userPaid[owner][assets[i]] -= userPaid[owner][assets[i]]/balanceOf(owner);            
        }
        super._burn(tokenId);
    }

    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override {
        require(ownerOf(tokenId) == from, "!Owner");
        for (uint i=0; i<assetsLength(); i++) {
            userDebt[from][assets[i]] += accRewardsPerNFT[assets[i]];
            userDebt[from][assets[i]] -= userPaid[from][assets[i]]/balanceOf(from);
            userPaid[from][assets[i]] -= userPaid[from][assets[i]]/balanceOf(from);
            userPaid[to][assets[i]] += accRewardsPerNFT[assets[i]];
        }
        super._transfer(from, to, tokenId);
    }

    function setTrustedAddress(uint16 _chainId, address _contract, bool _bool) external onlyOwner {
        isTrustedAddress[_chainId][_contract] = _bool;
    }

    function crossChain(
        uint16 _dstChainId,
        bytes memory _destination,
        address _to,
        uint256[] memory tokenId
    ) public payable {
        require(tokenId.length > 0, "Not bridging");
        for (uint i=0; i<tokenId.length; i++) {
            require(_msgSender() == ownerOf(tokenId[i]), "Not the owner");
            // burn NFT
            _burn(tokenId[i]);
        }
        address targetAddress;
        assembly {
            targetAddress := mload(add(_destination, 20))
        }
        require(isTrustedAddress[_dstChainId][targetAddress], "!Trusted");
        bytes memory payload = abi.encode(_to, tokenId);
        // encode adapterParams to specify more gas for the destination
        uint16 version = 1;
        uint256 _gas = 500_000 + gas*tokenId.length;
        bytes memory adapterParams = abi.encodePacked(version, _gas);
        (uint256 messageFee, ) = endpoint.estimateFees(
            _dstChainId,
            address(this),
            payload,
            false,
            adapterParams
        );
        require(
            msg.value >= messageFee,
            "Must send enough value to cover messageFee"
        );
        endpoint.send{value: msg.value}(
            _dstChainId,
            _destination,
            payload,
            payable(_msgSender()),
            address(0x0),
            adapterParams
        );
    }
    function lzReceive(
        uint16 _srcChainId,
        bytes memory _srcAddress,
        uint64 _nonce,
        bytes memory _payload
    ) external override {
        require(_msgSender() == address(endpoint), "!Endpoint");
        (bool success, bytes memory reason) = address(this).excessivelySafeCall(gasleft()*4/5, 150, abi.encodeWithSelector(this.nonblockingLzReceive.selector, _srcChainId, _srcAddress, _nonce, _payload));
        // try-catch all errors/exceptions
        if (!success) {
            failedMessages[_srcChainId][_srcAddress][_nonce] = keccak256(_payload);
            emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload, reason);
        }
    }

    function nonblockingLzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) public {
        // only internal transaction
        require(msg.sender == address(this), "NonblockingLzApp: caller must be app");
        _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64, bytes memory _payload) internal {
        address fromAddress;
        assembly {
            fromAddress := mload(add(_srcAddress, 20))
        }
        require(isTrustedAddress[_srcChainId][fromAddress], "!TrustedAddress");
        (address toAddress, uint256[] memory tokenId) = abi.decode(
            _payload,
            (address, uint256[])
        );
        // mint the tokens
        for (uint i=0; i<tokenId.length; i++) {
            _bridgeMint(toAddress, tokenId[i]);
        }
        emit ReceiveNFT(_srcChainId, toAddress, tokenId);
    }

    function retryMessage(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) public {
        // assert there is message to retry
        bytes32 payloadHash = failedMessages[_srcChainId][_srcAddress][_nonce];
        require(payloadHash != bytes32(0), "NonblockingLzApp: no stored message");
        require(keccak256(_payload) == payloadHash, "NonblockingLzApp: invalid payload");
        // clear the stored message
        failedMessages[_srcChainId][_srcAddress][_nonce] = bytes32(0);
        // execute the message. revert if it fails again
        _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
        emit RetryMessageSuccess(_srcChainId, _srcAddress, _nonce, payloadHash);
    }

    // Endpoint.sol estimateFees() returns the fees for the message
    function estimateFees(
        uint16 _dstChainId,
        address _userApplication,
        bytes calldata _payload,
        bool _payInZRO,
        bytes calldata _adapterParams
    ) external view returns (uint256 nativeFee, uint256 zroFee) {
        return
            endpoint.estimateFees(
                _dstChainId,
                _userApplication,
                _payload,
                _payInZRO,
                _adapterParams
            );
    }

    function setGas(uint _gas) external onlyOwner {
        gas = _gas;
    }

    function setEndpoint(ILayerZeroEndpoint _endpoint) external onlyOwner {
        require(address(_endpoint) != address(0), "ZeroAddress");
        endpoint = _endpoint;
    }

    function safeTransferMany(address _to, uint[] calldata _ids) external {
        for (uint i=0; i<_ids.length; i++) {
            _transfer(_msgSender(), _to, _ids[i]);
        }
    }

    function safeTransferFromMany(address _from, address _to, uint[] calldata _ids) external {
        for (uint i=0; i<_ids.length; i++) {
            safeTransferFrom(_from, _to, _ids[i]);
        }
    }

    function approveMany(address _to, uint[] calldata _ids) external {
        for (uint i=0; i<_ids.length; i++) {
            approve(_to, _ids[i]);
        }
    }

    // Rewards
    address[] public assets;
    mapping(address => bool) private _allowedAsset;
    mapping(address => uint) private assetsIndex;
    mapping(address => mapping(address => uint256)) private userPaid;
    mapping(address => mapping(address => uint256)) private userDebt;
    mapping(address => uint256) private accRewardsPerNFT;

    function claim(address _tigAsset) external {
        address _msgsender = _msgSender();
        uint256 amount = pending(_msgsender, _tigAsset);
        userPaid[_msgsender][_tigAsset] += amount;
        IERC20(_tigAsset).transfer(_msgsender, amount);
    }

    function distribute(address _tigAsset, uint _amount) external {
        if (assets.length == 0 || assets[assetsIndex[_tigAsset]] == address(0) || totalSupply() == 0 || !_allowedAsset[_tigAsset]) return;
        try IERC20(_tigAsset).transferFrom(_msgSender(), address(this), _amount) {
            accRewardsPerNFT[_tigAsset] += _amount/totalSupply();
        } catch {
            return;
        }
    }

    function pending(address user, address _tigAsset) public view returns (uint256) {
        return userDebt[user][_tigAsset] + balanceOf(user)*accRewardsPerNFT[_tigAsset] - userPaid[user][_tigAsset]; 
    }

    function addAsset(address _asset) external onlyOwner {
        require(assets.length == 0 || assets[assetsIndex[_asset]] != _asset, "Already added");
        assetsIndex[_asset] = assets.length;
        assets.push(_asset);
        _allowedAsset[_asset] = true;
    }

    function setAllowedAsset(address _asset, bool _bool) external onlyOwner {
        _allowedAsset[_asset] = _bool;
    }

    function setMaxBridge(uint256 _max) external onlyOwner {
        maxBridge = _max;
    }

    function assetsLength() public view returns (uint256) {
        return assets.length;
    }

    function allowedAsset(address _asset) external view returns (bool) {
        return _allowedAsset[_asset];
    }

    function balanceIds(address _user) external view returns (uint[] memory) {
        uint[] memory _ids = new uint[](balanceOf(_user));
        for (uint i=0; i<_ids.length; i++) {
            _ids[i] = tokenOfOwnerByIndex(_user, i);
        }
        return _ids;
    }

    // META-TX
    function _msgSender() internal view override(Context, MetaContext) returns (address sender) {
        return MetaContext._msgSender();
    }
    function _msgData() internal view override(Context, MetaContext) returns (bytes calldata) {
        return MetaContext._msgData();
    }
}

//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";

contract MetaContext is Ownable {
    mapping(address => bool) private _isTrustedForwarder;

    function setTrustedForwarder(address _forwarder, bool _bool) external onlyOwner {
        _isTrustedForwarder[_forwarder] = _bool;
    }

    function isTrustedForwarder(address _forwarder) external view returns (bool) {
        return _isTrustedForwarder[_forwarder];
    }

    function _msgSender() internal view virtual override returns (address sender) {
        if (_isTrustedForwarder[msg.sender]) {
            // The assembly code is more direct than the Solidity version using `abi.decode`.
            /// @solidity memory-safe-assembly
            assembly {
                sender := shr(96, calldataload(sub(calldatasize(), 20)))
            }
        } else {
            return super._msgSender();
        }
    }

    function _msgData() internal view virtual override returns (bytes calldata) {
        if (_isTrustedForwarder[msg.sender]) {
            return msg.data[:msg.data.length - 20];
        } else {
            return super._msgData();
        }
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IGovNFT {
    function distribute(address _tigAsset, uint _amount) external;
}

// SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.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);
}

// SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.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;
}

// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity >=0.7.6;

library ExcessivelySafeCall {
    uint256 constant LOW_28_MASK =
    0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff;

    /// @notice Use when you _really_ really _really_ don't trust the called
    /// contract. This prevents the called contract from causing reversion of
    /// the caller in as many ways as we can.
    /// @dev The main difference between this and a solidity low-level call is
    /// that we limit the number of bytes that the callee can cause to be
    /// copied to caller memory. This prevents stupid things like malicious
    /// contracts returning 10,000,000 bytes causing a local OOG when copying
    /// to memory.
    /// @param _target The address to call
    /// @param _gas The amount of gas to forward to the remote contract
    /// @param _maxCopy The maximum number of bytes of returndata to copy
    /// to memory.
    /// @param _calldata The data to send to the remote contract
    /// @return success and returndata, as `.call()`. Returndata is capped to
    /// `_maxCopy` bytes.
    function excessivelySafeCall(
        address _target,
        uint256 _gas,
        uint16 _maxCopy,
        bytes memory _calldata
    ) internal returns (bool, bytes memory) {
        // set up for assembly call
        uint256 _toCopy;
        bool _success;
        bytes memory _returnData = new bytes(_maxCopy);
        // dispatch message to recipient
        // by assembly calling "handle" function
        // we call via assembly to avoid memcopying a very large returndata
        // returned by a malicious contract
        assembly {
            _success := call(
            _gas, // gas
            _target, // recipient
            0, // ether value
            add(_calldata, 0x20), // inloc
            mload(_calldata), // inlen
            0, // outloc
            0 // outlen
            )
        // limit our copy to 256 bytes
            _toCopy := returndatasize()
            if gt(_toCopy, _maxCopy) {
                _toCopy := _maxCopy
            }
        // Store the length of the copied bytes
            mstore(_returnData, _toCopy)
        // copy the bytes from returndata[0:_toCopy]
            returndatacopy(add(_returnData, 0x20), 0, _toCopy)
        }
        return (_success, _returnData);
    }

    /// @notice Use when you _really_ really _really_ don't trust the called
    /// contract. This prevents the called contract from causing reversion of
    /// the caller in as many ways as we can.
    /// @dev The main difference between this and a solidity low-level call is
    /// that we limit the number of bytes that the callee can cause to be
    /// copied to caller memory. This prevents stupid things like malicious
    /// contracts returning 10,000,000 bytes causing a local OOG when copying
    /// to memory.
    /// @param _target The address to call
    /// @param _gas The amount of gas to forward to the remote contract
    /// @param _maxCopy The maximum number of bytes of returndata to copy
    /// to memory.
    /// @param _calldata The data to send to the remote contract
    /// @return success and returndata, as `.call()`. Returndata is capped to
    /// `_maxCopy` bytes.
    function excessivelySafeStaticCall(
        address _target,
        uint256 _gas,
        uint16 _maxCopy,
        bytes memory _calldata
    ) internal view returns (bool, bytes memory) {
        // set up for assembly call
        uint256 _toCopy;
        bool _success;
        bytes memory _returnData = new bytes(_maxCopy);
        // dispatch message to recipient
        // by assembly calling "handle" function
        // we call via assembly to avoid memcopying a very large returndata
        // returned by a malicious contract
        assembly {
            _success := staticcall(
            _gas, // gas
            _target, // recipient
            add(_calldata, 0x20), // inloc
            mload(_calldata), // inlen
            0, // outloc
            0 // outlen
            )
        // limit our copy to 256 bytes
            _toCopy := returndatasize()
            if gt(_toCopy, _maxCopy) {
                _toCopy := _maxCopy
            }
        // Store the length of the copied bytes
            mstore(_returnData, _toCopy)
        // copy the bytes from returndata[0:_toCopy]
            returndatacopy(add(_returnData, 0x20), 0, _toCopy)
        }
        return (_success, _returnData);
    }

    /**
     * @notice Swaps function selectors in encoded contract calls
     * @dev Allows reuse of encoded calldata for functions with identical
     * argument types but different names. It simply swaps out the first 4 bytes
     * for the new selector. This function modifies memory in place, and should
     * only be used with caution.
     * @param _newSelector The new 4-byte selector
     * @param _buf The encoded contract args
     */
    function swapSelector(bytes4 _newSelector, bytes memory _buf)
    internal
    pure
    {
        require(_buf.length >= 4);
        uint256 _mask = LOW_28_MASK;
        assembly {
        // load the first word of
            let _word := mload(add(_buf, 0x20))
        // mask out the top 4 bytes
        // /x
            _word := and(_word, _mask)
            _word := or(_newSelector, _word)
            mstore(add(_buf, 0x20), _word)
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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);
    }
}

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

// SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.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;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual 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 token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

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

        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: caller is not token 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: caller is not token 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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 an {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 an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    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 {}
}

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 16 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_endpoint","type":"address"},{"internalType":"string","name":"_setBaseURI","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":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"},{"indexed":false,"internalType":"bytes","name":"_reason","type":"bytes"}],"name":"MessageFailed","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":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"_tokenId","type":"uint256[]"}],"name":"ReceiveNFT","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":"bytes32","name":"_payloadHash","type":"bytes32"}],"name":"RetryMessageSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"_bridgeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"addAsset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"allowedAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"approveMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"assets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"assetsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"balanceIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","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":"address","name":"_tigAsset","type":"address"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_destination","type":"bytes"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"tokenId","type":"uint256[]"}],"name":"crossChain","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_tigAsset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endpoint","outputs":[{"internalType":"contract ILayerZeroEndpoint","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"address","name":"_userApplication","type":"address"},{"internalType":"bytes","name":"_payload","type":"bytes"},{"internalType":"bool","name":"_payInZRO","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateFees","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"failedMessages","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"","type":"uint16"},{"internalType":"address","name":"","type":"address"}],"name":"isTrustedAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_forwarder","type":"address"}],"name":"isTrustedForwarder","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":"maxBridge","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":"nonblockingLzReceive","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":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"_tigAsset","type":"address"}],"name":"pending","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"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":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"safeTransferFromMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"safeTransferMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"bool","name":"_bool","type":"bool"}],"name":"setAllowedAsset","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":"contract ILayerZeroEndpoint","name":"_endpoint","type":"address"}],"name":"setEndpoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gas","type":"uint256"}],"name":"setGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"address","name":"_contract","type":"address"},{"internalType":"bool","name":"_bool","type":"bool"}],"name":"setTrustedAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_forwarder","type":"address"},{"internalType":"bool","name":"_bool","type":"bool"}],"name":"setTrustedForwarder","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":"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"}]

6080604052620249f0600c556014600e553480156200001d57600080fd5b50604051620057fe380380620057fe833981016040819052620000409162000222565b8181600062000050838262000363565b5060016200005f828262000363565b5050506200007c62000076620000b060201b60201c565b620000cc565b600f80546001600160a01b0319166001600160a01b038616179055600d620000a5848262000363565b50505050506200042f565b6000620000c76200011e60201b620028ed1760201c565b905090565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b336000908152600b602052604081205460ff161562000144575060131936013560601c90565b620000c76200015960201b6200293a1760201c565b3390565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200018557600080fd5b81516001600160401b0380821115620001a257620001a26200015d565b604051601f8301601f19908116603f01168101908282118183101715620001cd57620001cd6200015d565b81604052838152602092508683858801011115620001ea57600080fd5b600091505b838210156200020e5785820183015181830184015290820190620001ef565b600093810190920192909252949350505050565b600080600080608085870312156200023957600080fd5b84516001600160a01b03811681146200025157600080fd5b60208601519094506001600160401b03808211156200026f57600080fd5b6200027d8883890162000173565b945060408701519150808211156200029457600080fd5b620002a28883890162000173565b93506060870151915080821115620002b957600080fd5b50620002c88782880162000173565b91505092959194509250565b600181811c90821680620002e957607f821691505b6020821081036200030a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200035e57600081815260208120601f850160051c81016020861015620003395750805b601f850160051c820191505b818110156200035a5782815560010162000345565b5050505b505050565b81516001600160401b038111156200037f576200037f6200015d565b6200039781620003908454620002d4565b8462000310565b602080601f831160018114620003cf5760008415620003b65750858301515b600019600386901b1c1916600185901b1785556200035a565b600085815260208120601f198616915b828110156200040057888601518255948401946001909101908401620003df565b50858210156200041f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6153bf806200043f6000396000f3fe6080604052600436106103285760003560e01c80636c0360eb116101a5578063cf35bdd0116100ec578063e691d03b11610095578063f2fde38b1161006f578063f2fde38b146109c8578063f35da34c146109e8578063f50477a214610a2e578063fb93210814610a4357600080fd5b8063e691d03b14610932578063e985e9c514610952578063ec92977d146109a857600080fd5b8063d9a3aa3c116100c6578063d9a3aa3c146108d2578063dbbb4155146108f2578063dd51faa21461091257600080fd5b8063cf35bdd014610872578063d1deba1f14610892578063d6651c70146108b257600080fd5b806399bb81341161014e578063adc82e0111610128578063adc82e0114610805578063b88d4fde14610832578063c87b56dd1461085257600080fd5b806399bb81341461078a578063a22cb465146107aa578063a914fdc6146107ca57600080fd5b8063715018a61161017f578063715018a6146107355780638da5cb5b1461074a57806395d89b411461077557600080fd5b80636c0360eb146106ea5780636ca7c216146106ff57806370a082311461071557600080fd5b80633206e3e711610274578063572b6c051161021d5780635deccd72116101f75780635deccd721461066a5780635e280f111461067d5780636352211e146106aa57806366ad5c8a146106ca57600080fd5b8063572b6c05146105b557806358c5de6a146105fb5780635b8c41e61461061b57600080fd5b8063456560f41161024e578063456560f41461055f5780634f6ccce71461057557806355f804b31461059557600080fd5b80633206e3e7146104ea57806340a7bb101461050a57806342842e0e1461053f57600080fd5b806318160ddd116102d657806323b872dd116102b057806323b872dd1461048a578063298410e5146104aa5780632f745c59146104ca57600080fd5b806318160ddd1461042b57806319bc9ae81461044a5780631e83409a1461046a57600080fd5b806306fdde031161030757806306fdde03146103a4578063081812fc146103c6578063095ea7b31461040b57600080fd5b80621d35671461032d57806301ffc9a71461034f57806304e538fd14610384575b600080fd5b34801561033957600080fd5b5061034d610348366004614442565b610a63565b005b34801561035b57600080fd5b5061036f61036a3660046144f5565b610c74565b60405190151581526020015b60405180910390f35b34801561039057600080fd5b5061034d61039f366004614534565b610cd0565b3480156103b057600080fd5b506103b9610ed5565b60405161037b91906145ce565b3480156103d257600080fd5b506103e66103e13660046145e1565b610f67565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161037b565b34801561041757600080fd5b5061034d610426366004614534565b610f9b565b34801561043757600080fd5b506008545b60405190815260200161037b565b34801561045657600080fd5b5061043c6104653660046145fa565b611146565b34801561047657600080fd5b5061034d610485366004614633565b6111e8565b34801561049657600080fd5b5061034d6104a5366004614650565b6112ed565b3480156104b657600080fd5b5061034d6104c5366004614633565b611395565b3480156104d657600080fd5b5061043c6104e5366004614534565b611528565b3480156104f657600080fd5b5061034d6105053660046146dd565b6115f7565b34801561051657600080fd5b5061052a610525366004614792565b61163e565b6040805192835260208301919091520161037b565b34801561054b57600080fd5b5061034d61055a366004614650565b6116f5565b34801561056b57600080fd5b5061043c600e5481565b34801561058157600080fd5b5061043c6105903660046145e1565b611710565b3480156105a157600080fd5b5061034d6105b036600461483a565b6117ce565b3480156105c157600080fd5b5061036f6105d0366004614633565b73ffffffffffffffffffffffffffffffffffffffff166000908152600b602052604090205460ff1690565b34801561060757600080fd5b5061034d61061636600461487c565b6117e3565b34801561062757600080fd5b5061043c6106363660046148c5565b6011602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b61034d610678366004614947565b611851565b34801561068957600080fd5b50600f546103e69073ffffffffffffffffffffffffffffffffffffffff1681565b3480156106b657600080fd5b506103e66106c53660046145e1565b611cb0565b3480156106d657600080fd5b5061034d6106e5366004614a29565b611d3c565b3480156106f657600080fd5b506103b9611e40565b34801561070b57600080fd5b5061043c600c5481565b34801561072157600080fd5b5061043c610730366004614633565b611ece565b34801561074157600080fd5b5061034d611f9c565b34801561075657600080fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff166103e6565b34801561078157600080fd5b506103b9611fb0565b34801561079657600080fd5b5061034d6107a5366004614abd565b611fbf565b3480156107b657600080fd5b5061034d6107c5366004614b12565b611ffe565b3480156107d657600080fd5b5061036f6107e5366004614b40565b601060209081526000928352604080842090915290825290205460ff1681565b34801561081157600080fd5b50610825610820366004614633565b612010565b60405161037b9190614b97565b34801561083e57600080fd5b5061034d61084d366004614baa565b6120ad565b34801561085e57600080fd5b506103b961086d3660046145e1565b612156565b34801561087e57600080fd5b506103e661088d3660046145e1565b6121bc565b34801561089e57600080fd5b5061034d6108ad366004614a29565b6121f3565b3480156108be57600080fd5b5061034d6108cd366004614abd565b612475565b3480156108de57600080fd5b5061034d6108ed366004614b12565b6124bc565b3480156108fe57600080fd5b5061034d61090d366004614633565b61251a565b34801561091e57600080fd5b5061034d61092d3660046145e1565b6125e6565b34801561093e57600080fd5b5061034d61094d366004614b12565b6125f3565b34801561095e57600080fd5b5061036f61096d3660046145fa565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109b457600080fd5b5061034d6109c33660046145e1565b612651565b3480156109d457600080fd5b5061034d6109e3366004614633565b61265e565b3480156109f457600080fd5b5061036f610a03366004614633565b73ffffffffffffffffffffffffffffffffffffffff1660009081526013602052604090205460ff1690565b348015610a3a57600080fd5b5060125461043c565b348015610a4f57600080fd5b5061034d610a5e366004614534565b612715565b600f5473ffffffffffffffffffffffffffffffffffffffff16610a8461293e565b73ffffffffffffffffffffffffffffffffffffffff1614610b06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f21456e64706f696e74000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600080610bcb60055a610b1a906004614c39565b610b249190614c7f565b60966366ad5c8a60e01b89898989604051602401610b459493929190614c93565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915230929190612948565b9150915081610c6c578280519060200120601160008861ffff1661ffff16815260200190815260200160002086604051610c059190614cdd565b90815260408051918290036020908101832067ffffffffffffffff89166000908152915220919091557fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c90610c639088908890889088908790614cf9565b60405180910390a15b505050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610cca5750610cca826129d3565b92915050565b33301480610d125750600a5473ffffffffffffffffffffffffffffffffffffffff16610cfa61293e565b73ffffffffffffffffffffffffffffffffffffffff16145b610d78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f7442726964676500000000000000000000000000000000000000000000006044820152606401610afd565b6127108111158015610d8957508015155b610def576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f42616449440000000000000000000000000000000000000000000000000000006044820152606401610afd565b60005b601254811015610ec6576017600060128381548110610e1357610e13614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff90811684528382019490945260409283018220549387168252601590529081206012805491929185908110610e6d57610e6d614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16835282019290925260400181208054909190610eae908490614d87565b90915550819050610ebe81614d9a565b915050610df2565b50610ed18282612ab6565b5050565b606060008054610ee490614dd2565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1090614dd2565b8015610f5d5780601f10610f3257610100808354040283529160200191610f5d565b820191906000526020600020905b815481529060010190602001808311610f4057829003601f168201915b5050505050905090565b6000610f7282612c84565b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610fa682611cb0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611063576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610afd565b8073ffffffffffffffffffffffffffffffffffffffff1661108261293e565b73ffffffffffffffffffffffffffffffffffffffff1614806110ab57506110ab8161096d61293e565b611137576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610afd565b6111418383612d0f565b505050565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260156020908152604080832093851683529281528282205460179091529181205490919061119085611ece565b61119a9190614c39565b73ffffffffffffffffffffffffffffffffffffffff8086166000908152601660209081526040808320938816835292905220546111d79190614d87565b6111e19190614e25565b9392505050565b60006111f261293e565b905060006112008284611146565b73ffffffffffffffffffffffffffffffffffffffff8084166000908152601560209081526040808320938816835292905290812080549293508392909190611249908490614d87565b90915550506040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af11580156112c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e79190614e38565b50505050565b6112fe6112f861293e565b82612daf565b61138a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610afd565b611141838383612e6f565b61139d6132b0565b6012541580611407575073ffffffffffffffffffffffffffffffffffffffff81166000818152601460205260409020546012805490919081106113e2576113e2614d58565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614155b61146d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f416c7265616479206164646564000000000000000000000000000000000000006044820152606401610afd565b6012805473ffffffffffffffffffffffffffffffffffffffff909216600081815260146020908152604080832086905560018087019095557fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344490950180547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905591815260139091529190912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169091179055565b600061153383611ece565b82106115c1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610afd565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205490565b60005b8181101561163757611625858585858581811061161957611619614d58565b905060200201356116f5565b8061162f81614d9a565b9150506115fa565b5050505050565b600f546040517f40a7bb10000000000000000000000000000000000000000000000000000000008152600091829173ffffffffffffffffffffffffffffffffffffffff909116906340a7bb10906116a5908c908c908c908c908c908c908c90600401614e9e565b6040805180830381865afa1580156116c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e59190614f01565b9150915097509795505050505050565b611141838383604051806020016040528060008152506120ad565b600061171b60085490565b82106117a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610afd565b600882815481106117bc576117bc614d58565b90600052602060002001549050919050565b6117d66132b0565b600d611141828483614f6b565b6117eb6132b0565b61ffff909216600090815260106020908152604080832073ffffffffffffffffffffffffffffffffffffffff90941683529290522080549115157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909216919091179055565b60008151116118bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74206272696467696e6700000000000000000000000000000000000000006044820152606401610afd565b60005b81518110156119b9576118ea8282815181106118dd576118dd614d58565b6020026020010151611cb0565b73ffffffffffffffffffffffffffffffffffffffff1661190861293e565b73ffffffffffffffffffffffffffffffffffffffff1614611985576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420746865206f776e6572000000000000000000000000000000000000006044820152606401610afd565b6119a782828151811061199a5761199a614d58565b602002602001015161336a565b806119b181614d9a565b9150506118bf565b50601483015161ffff8516600090815260106020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16611a5d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f21547275737465640000000000000000000000000000000000000000000000006044820152606401610afd565b60008383604051602001611a72929190615085565b604051602081830303815290604052905060006001905060008451600c54611a9a9190614c39565b611aa7906207a120614d87565b6040805160f085901b7fffff0000000000000000000000000000000000000000000000000000000000001660208201526022808201849052825180830390910181526042820192839052600f547f40a7bb100000000000000000000000000000000000000000000000000000000090935292935060009173ffffffffffffffffffffffffffffffffffffffff16906340a7bb1090611b51908d9030908a90879089906046016150b4565b6040805180830381865afa158015611b6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b919190614f01565b50905080341015611c24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4d7573742073656e6420656e6f7567682076616c756520746f20636f7665722060448201527f6d657373616765466565000000000000000000000000000000000000000000006064820152608401610afd565b600f5473ffffffffffffffffffffffffffffffffffffffff1663c5803100348c8c89611c4e61293e565b6000896040518863ffffffff1660e01b8152600401611c7296959493929190615107565b6000604051808303818588803b158015611c8b57600080fd5b505af1158015611c9f573d6000803e3d6000fd5b505050505050505050505050505050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610cca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610afd565b333014611dca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d75737420626560448201527f20617070000000000000000000000000000000000000000000000000000000006064820152608401610afd565b610c6c8686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f89018190048102820181019092528781528993509150879087908190840183828082843760009201919091525061366092505050565b600d8054611e4d90614dd2565b80601f0160208091040260200160405190810160405280929190818152602001828054611e7990614dd2565b8015611ec65780601f10611e9b57610100808354040283529160200191611ec6565b820191906000526020600020905b815481529060010190602001808311611ea957829003601f168201915b505050505081565b600073ffffffffffffffffffffffffffffffffffffffff8216611f73576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610afd565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b611fa46132b0565b611fae6000613793565b565b606060018054610ee490614dd2565b60005b818110156112e757611fec84848484818110611fe057611fe0614d58565b90506020020135610f9b565b80611ff681614d9a565b915050611fc2565b610ed161200961293e565b838361380a565b6060600061201d83611ece565b67ffffffffffffffff8111156120355761203561431e565b60405190808252806020026020018201604052801561205e578160200160208202803683370190505b50905060005b81518110156120a6576120778482611528565b82828151811061208957612089614d58565b60209081029190910101528061209e81614d9a565b915050612064565b5092915050565b6120be6120b861293e565b83612daf565b61214a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610afd565b6112e784848484613937565b606061216182612c84565b600061216b6139da565b9050600081511161218b57604051806020016040528060008152506111e1565b80612195846139e9565b6040516020016121a692919061517b565b6040516020818303038152906040529392505050565b601281815481106121cc57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b61ffff8616600090815260116020526040808220905161221690889088906151aa565b908152604080516020928190038301902067ffffffffffffffff8716600090815292529020549050806122cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201527f61676500000000000000000000000000000000000000000000000000000000006064820152608401610afd565b8083836040516122dc9291906151aa565b604051809103902014612371576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f6160448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610afd565b61ffff8716600090815260116020526040808220905161239490899089906151aa565b908152604080516020928190038301812067ffffffffffffffff8916600090815290845282902093909355601f8801829004820283018201905286825261242d918991899089908190840183828082843760009201919091525050604080516020601f8a018190048102820181019092528881528a93509150889088908190840183828082843760009201919091525061366092505050565b7fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e587878787856040516124649594939291906151ba565b60405180910390a150505050505050565b60005b818110156112e7576124aa61248b61293e565b8585858581811061249e5761249e614d58565b90506020020135612e6f565b806124b481614d9a565b915050612478565b6124c46132b0565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260136020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6125226132b0565b73ffffffffffffffffffffffffffffffffffffffff811661259f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f5a65726f416464726573730000000000000000000000000000000000000000006044820152606401610afd565b600f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6125ee6132b0565b600c55565b6125fb6132b0565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600b6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6126596132b0565b600e55565b6126666132b0565b73ffffffffffffffffffffffffffffffffffffffff8116612709576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610afd565b61271281613793565b50565b601254158061277e575073ffffffffffffffffffffffffffffffffffffffff821660009081526014602052604081205460128054909190811061275a5761275a614d58565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16145b806127895750600854155b806127ba575073ffffffffffffffffffffffffffffffffffffffff821660009081526013602052604090205460ff16155b156127c3575050565b8173ffffffffffffffffffffffffffffffffffffffff166323b872dd6127e761293e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152306024820152604481018490526064016020604051808303816000875af1925050508015612899575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261289691810190614e38565b60015b6128a1575050565b506008546128af9082614c7f565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260176020526040812080549091906128e4908490614d87565b90915550505050565b336000908152600b602052604081205460ff161561293057507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec36013560601c90565b503390565b905090565b3390565b60006129356128ed565b6000606060008060008661ffff1667ffffffffffffffff81111561296e5761296e61431e565b6040519080825280601f01601f191660200182016040528015612998576020820181803683370190505b50905060008087516020890160008d8df191503d9250868311156129ba578692505b828152826000602083013e909890975095505050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612a6657507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610cca57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610cca565b73ffffffffffffffffffffffffffffffffffffffff8216612b33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610afd565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615612bbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610afd565b612bcb60008383613b1e565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290612c01908490614d87565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16612712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610afd565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190612d6982611cb0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612dbb83611cb0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612e29575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b80612e6757508373ffffffffffffffffffffffffffffffffffffffff16612e4f84610f67565b73ffffffffffffffffffffffffffffffffffffffff16145b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16612e8f82611cb0565b73ffffffffffffffffffffffffffffffffffffffff1614612f0c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f214f776e657200000000000000000000000000000000000000000000000000006044820152606401610afd565b60005b6012548110156132a4576017600060128381548110612f3057612f30614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff90811684528382019490945260409283018220549388168252601690529081206012805491929185908110612f8a57612f8a614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16835282019290925260400181208054909190612fcb908490614d87565b90915550612fda905084611ece565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601560205260408120601280549192918590811061301657613016614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff1683528201929092526040019020546130529190614c7f565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601660205260408120601280549192918590811061308e5761308e614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff168352820192909252604001812080549091906130cf908490614e25565b909155506130de905084611ece565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601560205260408120601280549192918590811061311a5761311a614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff1683528201929092526040019020546131569190614c7f565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601560205260408120601280549192918590811061319257613192614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff168352820192909252604001812080549091906131d3908490614e25565b9250508190555060176000601283815481106131f1576131f1614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff9081168452838201949094526040928301822054938716825260159052908120601280549192918590811061324b5761324b614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff1683528201929092526040018120805490919061328c908490614d87565b9091555081905061329c81614d9a565b915050612f0f565b50611141838383613c24565b6132b861293e565b73ffffffffffffffffffffffffffffffffffffffff166132ed600a5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614611fae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610afd565b600061337582611cb0565b905060005b60125481101561365657601760006012838154811061339b5761339b614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff908116845283820194909452604092830182205493861682526016905290812060128054919291859081106133f5576133f5614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16835282019290925260400181208054909190613436908490614d87565b90915550613445905082611ece565b73ffffffffffffffffffffffffffffffffffffffff83166000908152601560205260408120601280549192918590811061348157613481614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff1683528201929092526040019020546134bd9190614c7f565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260166020526040812060128054919291859081106134f9576134f9614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff1683528201929092526040018120805490919061353a908490614e25565b90915550613549905082611ece565b73ffffffffffffffffffffffffffffffffffffffff83166000908152601560205260408120601280549192918590811061358557613585614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff1683528201929092526040019020546135c19190614c7f565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260156020526040812060128054919291859081106135fd576135fd614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff1683528201929092526040018120805490919061363e908490614e25565b9091555081905061364e81614d9a565b91505061337a565b50610ed182613e96565b601483015161ffff8516600090815260106020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16613703576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f21547275737465644164647265737300000000000000000000000000000000006044820152606401610afd565b6000808380602001905181019061371a91906151f6565b9150915060005b815181101561375f5761374d8383838151811061374057613740614d58565b6020026020010151610cd0565b8061375781614d9a565b915050613721565b507fd1277f109a4c2ec8d99a410396e48214f894389b6e789a231d8b7ccbb050bed78783836040516124649392919061529e565b600a805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361389f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610afd565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613942848484612e6f565b61394e84848484613f6f565b6112e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610afd565b6060600d8054610ee490614dd2565b606081600003613a2c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613a565780613a4081614d9a565b9150613a4f9050600a83614c7f565b9150613a30565b60008167ffffffffffffffff811115613a7157613a7161431e565b6040519080825280601f01601f191660200182016040528015613a9b576020820181803683370190505b5090505b8415612e6757613ab0600183614e25565b9150613abd600a866152e0565b613ac8906030614d87565b60f81b818381518110613add57613add614d58565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613b17600a86614c7f565b9450613a9f565b73ffffffffffffffffffffffffffffffffffffffff8316613b8657613b8181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613bc3565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613bc357613bc38382614150565b73ffffffffffffffffffffffffffffffffffffffff8216613be75761114181614207565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146111415761114182826142b6565b8273ffffffffffffffffffffffffffffffffffffffff16613c4482611cb0565b73ffffffffffffffffffffffffffffffffffffffff1614613ce7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610afd565b73ffffffffffffffffffffffffffffffffffffffff8216613d89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610afd565b613d94838383613b1e565b613d9f600082612d0f565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805460019290613dd5908490614e25565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290613e10908490614d87565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000613ea182611cb0565b9050613eaf81600084613b1e565b613eba600083612d0f565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600360205260408120805460019290613ef0908490614e25565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600073ffffffffffffffffffffffffffffffffffffffff84163b15614145578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613fb261293e565b8786866040518563ffffffff1660e01b8152600401613fd494939291906152f4565b6020604051808303816000875af192505050801561402d575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261402a9181019061533d565b60015b6140fa573d80801561405b576040519150601f19603f3d011682016040523d82523d6000602084013e614060565b606091505b5080516000036140f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610afd565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612e67565b506001949350505050565b6000600161415d84611ece565b6141679190614e25565b6000838152600760205260409020549091508082146141c75773ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b50600091825260076020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600681528383209183525290812055565b60085460009061421990600190614e25565b6000838152600960205260408120546008805493945090928490811061424157614241614d58565b90600052602060002001549050806008838154811061426257614262614d58565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061429a5761429a61535a565b6001900381819060005260206000200160009055905550505050565b60006142c183611ece565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b803561ffff8116811461431957600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156143945761439461431e565b604052919050565b600082601f8301126143ad57600080fd5b813567ffffffffffffffff8111156143c7576143c761431e565b6143f860207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161434d565b81815284602083860101111561440d57600080fd5b816020850160208301376000918101602001919091529392505050565b803567ffffffffffffffff8116811461431957600080fd5b6000806000806080858703121561445857600080fd5b61446185614307565b9350602085013567ffffffffffffffff8082111561447e57600080fd5b61448a8883890161439c565b94506144986040880161442a565b935060608701359150808211156144ae57600080fd5b506144bb8782880161439c565b91505092959194509250565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461271257600080fd5b60006020828403121561450757600080fd5b81356111e1816144c7565b73ffffffffffffffffffffffffffffffffffffffff8116811461271257600080fd5b6000806040838503121561454757600080fd5b823561455281614512565b946020939093013593505050565b60005b8381101561457b578181015183820152602001614563565b50506000910152565b6000815180845261459c816020860160208601614560565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006111e16020830184614584565b6000602082840312156145f357600080fd5b5035919050565b6000806040838503121561460d57600080fd5b823561461881614512565b9150602083013561462881614512565b809150509250929050565b60006020828403121561464557600080fd5b81356111e181614512565b60008060006060848603121561466557600080fd5b833561467081614512565b9250602084013561468081614512565b929592945050506040919091013590565b60008083601f8401126146a357600080fd5b50813567ffffffffffffffff8111156146bb57600080fd5b6020830191508360208260051b85010111156146d657600080fd5b9250929050565b600080600080606085870312156146f357600080fd5b84356146fe81614512565b9350602085013561470e81614512565b9250604085013567ffffffffffffffff81111561472a57600080fd5b61473687828801614691565b95989497509550505050565b60008083601f84011261475457600080fd5b50813567ffffffffffffffff81111561476c57600080fd5b6020830191508360208285010111156146d657600080fd5b801515811461271257600080fd5b600080600080600080600060a0888a0312156147ad57600080fd5b6147b688614307565b965060208801356147c681614512565b9550604088013567ffffffffffffffff808211156147e357600080fd5b6147ef8b838c01614742565b909750955060608a0135915061480482614784565b9093506080890135908082111561481a57600080fd5b506148278a828b01614742565b989b979a50959850939692959293505050565b6000806020838503121561484d57600080fd5b823567ffffffffffffffff81111561486457600080fd5b61487085828601614742565b90969095509350505050565b60008060006060848603121561489157600080fd5b61489a84614307565b925060208401356148aa81614512565b915060408401356148ba81614784565b809150509250925092565b6000806000606084860312156148da57600080fd5b6148e384614307565b9250602084013567ffffffffffffffff8111156148ff57600080fd5b61490b8682870161439c565b92505061491a6040850161442a565b90509250925092565b600067ffffffffffffffff82111561493d5761493d61431e565b5060051b60200190565b6000806000806080858703121561495d57600080fd5b61496685614307565b935060208086013567ffffffffffffffff8082111561498457600080fd5b61499089838a0161439c565b9550604088013591506149a282614512565b909350606087013590808211156149b857600080fd5b508601601f810188136149ca57600080fd5b80356149dd6149d882614923565b61434d565b81815260059190911b8201830190838101908a8311156149fc57600080fd5b928401925b82841015614a1a57833582529284019290840190614a01565b979a9699509497505050505050565b60008060008060008060808789031215614a4257600080fd5b614a4b87614307565b9550602087013567ffffffffffffffff80821115614a6857600080fd5b614a748a838b01614742565b9097509550859150614a8860408a0161442a565b94506060890135915080821115614a9e57600080fd5b50614aab89828a01614742565b979a9699509497509295939492505050565b600080600060408486031215614ad257600080fd5b8335614add81614512565b9250602084013567ffffffffffffffff811115614af957600080fd5b614b0586828701614691565b9497909650939450505050565b60008060408385031215614b2557600080fd5b8235614b3081614512565b9150602083013561462881614784565b60008060408385031215614b5357600080fd5b61461883614307565b600081518084526020808501945080840160005b83811015614b8c57815187529582019590820190600101614b70565b509495945050505050565b6020815260006111e16020830184614b5c565b60008060008060808587031215614bc057600080fd5b8435614bcb81614512565b93506020850135614bdb81614512565b925060408501359150606085013567ffffffffffffffff811115614bfe57600080fd5b6144bb8782880161439c565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417610cca57610cca614c0a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082614c8e57614c8e614c50565b500490565b61ffff85168152608060208201526000614cb06080830186614584565b67ffffffffffffffff851660408401528281036060840152614cd28185614584565b979650505050505050565b60008251614cef818460208701614560565b9190910192915050565b61ffff8616815260a060208201526000614d1660a0830187614584565b67ffffffffffffffff861660408401528281036060840152614d388186614584565b90508281036080840152614d4c8185614584565b98975050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b80820180821115610cca57610cca614c0a565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614dcb57614dcb614c0a565b5060010190565b600181811c90821680614de657607f821691505b602082108103614e1f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b81810381811115610cca57610cca614c0a565b600060208284031215614e4a57600080fd5b81516111e181614784565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b61ffff8816815273ffffffffffffffffffffffffffffffffffffffff8716602082015260a060408201526000614ed860a083018789614e55565b85151560608401528281036080840152614ef3818587614e55565b9a9950505050505050505050565b60008060408385031215614f1457600080fd5b505080516020909101519092909150565b601f82111561114157600081815260208120601f850160051c81016020861015614f4c5750805b601f850160051c820191505b81811015610c6c57828155600101614f58565b67ffffffffffffffff831115614f8357614f8361431e565b614f9783614f918354614dd2565b83614f25565b6000601f841160018114614fe95760008515614fb35750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b178355611637565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b828110156150385786850135825560209485019460019092019101615018565b5086821015615073577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b73ffffffffffffffffffffffffffffffffffffffff83168152604060208201526000612e676040830184614b5c565b61ffff8616815273ffffffffffffffffffffffffffffffffffffffff8516602082015260a0604082015260006150ed60a0830186614584565b84151560608401528281036080840152614d4c8185614584565b61ffff8716815260c06020820152600061512460c0830188614584565b82810360408401526151368188614584565b73ffffffffffffffffffffffffffffffffffffffff87811660608601528616608085015283810360a0850152905061516e8185614584565b9998505050505050505050565b6000835161518d818460208801614560565b8351908301906151a1818360208801614560565b01949350505050565b8183823760009101908152919050565b61ffff861681526080602082015260006151d8608083018688614e55565b67ffffffffffffffff94909416604083015250606001529392505050565b6000806040838503121561520957600080fd5b825161521481614512565b8092505060208084015167ffffffffffffffff81111561523357600080fd5b8401601f8101861361524457600080fd5b80516152526149d882614923565b81815260059190911b8201830190838101908883111561527157600080fd5b928401925b8284101561528f57835182529284019290840190615276565b80955050505050509250929050565b61ffff8416815273ffffffffffffffffffffffffffffffffffffffff831660208201526060604082015260006152d76060830184614b5c565b95945050505050565b6000826152ef576152ef614c50565b500690565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526153336080830184614584565b9695505050505050565b60006020828403121561534f57600080fd5b81516111e1816144c7565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122012e3e78ee75155026a62aa6811b60c87f9817d05f93fc761292f3c821b937b4064736f6c634300081100330000000000000000000000003c2269811836af69497e5f486a85d7316753cf62000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001554696772697320476f7665726e616e6365204e46540000000000000000000000000000000000000000000000000000000000000000000000000000000000000e54696772697320476f76204e4654000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103285760003560e01c80636c0360eb116101a5578063cf35bdd0116100ec578063e691d03b11610095578063f2fde38b1161006f578063f2fde38b146109c8578063f35da34c146109e8578063f50477a214610a2e578063fb93210814610a4357600080fd5b8063e691d03b14610932578063e985e9c514610952578063ec92977d146109a857600080fd5b8063d9a3aa3c116100c6578063d9a3aa3c146108d2578063dbbb4155146108f2578063dd51faa21461091257600080fd5b8063cf35bdd014610872578063d1deba1f14610892578063d6651c70146108b257600080fd5b806399bb81341161014e578063adc82e0111610128578063adc82e0114610805578063b88d4fde14610832578063c87b56dd1461085257600080fd5b806399bb81341461078a578063a22cb465146107aa578063a914fdc6146107ca57600080fd5b8063715018a61161017f578063715018a6146107355780638da5cb5b1461074a57806395d89b411461077557600080fd5b80636c0360eb146106ea5780636ca7c216146106ff57806370a082311461071557600080fd5b80633206e3e711610274578063572b6c051161021d5780635deccd72116101f75780635deccd721461066a5780635e280f111461067d5780636352211e146106aa57806366ad5c8a146106ca57600080fd5b8063572b6c05146105b557806358c5de6a146105fb5780635b8c41e61461061b57600080fd5b8063456560f41161024e578063456560f41461055f5780634f6ccce71461057557806355f804b31461059557600080fd5b80633206e3e7146104ea57806340a7bb101461050a57806342842e0e1461053f57600080fd5b806318160ddd116102d657806323b872dd116102b057806323b872dd1461048a578063298410e5146104aa5780632f745c59146104ca57600080fd5b806318160ddd1461042b57806319bc9ae81461044a5780631e83409a1461046a57600080fd5b806306fdde031161030757806306fdde03146103a4578063081812fc146103c6578063095ea7b31461040b57600080fd5b80621d35671461032d57806301ffc9a71461034f57806304e538fd14610384575b600080fd5b34801561033957600080fd5b5061034d610348366004614442565b610a63565b005b34801561035b57600080fd5b5061036f61036a3660046144f5565b610c74565b60405190151581526020015b60405180910390f35b34801561039057600080fd5b5061034d61039f366004614534565b610cd0565b3480156103b057600080fd5b506103b9610ed5565b60405161037b91906145ce565b3480156103d257600080fd5b506103e66103e13660046145e1565b610f67565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161037b565b34801561041757600080fd5b5061034d610426366004614534565b610f9b565b34801561043757600080fd5b506008545b60405190815260200161037b565b34801561045657600080fd5b5061043c6104653660046145fa565b611146565b34801561047657600080fd5b5061034d610485366004614633565b6111e8565b34801561049657600080fd5b5061034d6104a5366004614650565b6112ed565b3480156104b657600080fd5b5061034d6104c5366004614633565b611395565b3480156104d657600080fd5b5061043c6104e5366004614534565b611528565b3480156104f657600080fd5b5061034d6105053660046146dd565b6115f7565b34801561051657600080fd5b5061052a610525366004614792565b61163e565b6040805192835260208301919091520161037b565b34801561054b57600080fd5b5061034d61055a366004614650565b6116f5565b34801561056b57600080fd5b5061043c600e5481565b34801561058157600080fd5b5061043c6105903660046145e1565b611710565b3480156105a157600080fd5b5061034d6105b036600461483a565b6117ce565b3480156105c157600080fd5b5061036f6105d0366004614633565b73ffffffffffffffffffffffffffffffffffffffff166000908152600b602052604090205460ff1690565b34801561060757600080fd5b5061034d61061636600461487c565b6117e3565b34801561062757600080fd5b5061043c6106363660046148c5565b6011602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b61034d610678366004614947565b611851565b34801561068957600080fd5b50600f546103e69073ffffffffffffffffffffffffffffffffffffffff1681565b3480156106b657600080fd5b506103e66106c53660046145e1565b611cb0565b3480156106d657600080fd5b5061034d6106e5366004614a29565b611d3c565b3480156106f657600080fd5b506103b9611e40565b34801561070b57600080fd5b5061043c600c5481565b34801561072157600080fd5b5061043c610730366004614633565b611ece565b34801561074157600080fd5b5061034d611f9c565b34801561075657600080fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff166103e6565b34801561078157600080fd5b506103b9611fb0565b34801561079657600080fd5b5061034d6107a5366004614abd565b611fbf565b3480156107b657600080fd5b5061034d6107c5366004614b12565b611ffe565b3480156107d657600080fd5b5061036f6107e5366004614b40565b601060209081526000928352604080842090915290825290205460ff1681565b34801561081157600080fd5b50610825610820366004614633565b612010565b60405161037b9190614b97565b34801561083e57600080fd5b5061034d61084d366004614baa565b6120ad565b34801561085e57600080fd5b506103b961086d3660046145e1565b612156565b34801561087e57600080fd5b506103e661088d3660046145e1565b6121bc565b34801561089e57600080fd5b5061034d6108ad366004614a29565b6121f3565b3480156108be57600080fd5b5061034d6108cd366004614abd565b612475565b3480156108de57600080fd5b5061034d6108ed366004614b12565b6124bc565b3480156108fe57600080fd5b5061034d61090d366004614633565b61251a565b34801561091e57600080fd5b5061034d61092d3660046145e1565b6125e6565b34801561093e57600080fd5b5061034d61094d366004614b12565b6125f3565b34801561095e57600080fd5b5061036f61096d3660046145fa565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109b457600080fd5b5061034d6109c33660046145e1565b612651565b3480156109d457600080fd5b5061034d6109e3366004614633565b61265e565b3480156109f457600080fd5b5061036f610a03366004614633565b73ffffffffffffffffffffffffffffffffffffffff1660009081526013602052604090205460ff1690565b348015610a3a57600080fd5b5060125461043c565b348015610a4f57600080fd5b5061034d610a5e366004614534565b612715565b600f5473ffffffffffffffffffffffffffffffffffffffff16610a8461293e565b73ffffffffffffffffffffffffffffffffffffffff1614610b06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f21456e64706f696e74000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600080610bcb60055a610b1a906004614c39565b610b249190614c7f565b60966366ad5c8a60e01b89898989604051602401610b459493929190614c93565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915230929190612948565b9150915081610c6c578280519060200120601160008861ffff1661ffff16815260200190815260200160002086604051610c059190614cdd565b90815260408051918290036020908101832067ffffffffffffffff89166000908152915220919091557fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c90610c639088908890889088908790614cf9565b60405180910390a15b505050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610cca5750610cca826129d3565b92915050565b33301480610d125750600a5473ffffffffffffffffffffffffffffffffffffffff16610cfa61293e565b73ffffffffffffffffffffffffffffffffffffffff16145b610d78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f7442726964676500000000000000000000000000000000000000000000006044820152606401610afd565b6127108111158015610d8957508015155b610def576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f42616449440000000000000000000000000000000000000000000000000000006044820152606401610afd565b60005b601254811015610ec6576017600060128381548110610e1357610e13614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff90811684528382019490945260409283018220549387168252601590529081206012805491929185908110610e6d57610e6d614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16835282019290925260400181208054909190610eae908490614d87565b90915550819050610ebe81614d9a565b915050610df2565b50610ed18282612ab6565b5050565b606060008054610ee490614dd2565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1090614dd2565b8015610f5d5780601f10610f3257610100808354040283529160200191610f5d565b820191906000526020600020905b815481529060010190602001808311610f4057829003601f168201915b5050505050905090565b6000610f7282612c84565b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610fa682611cb0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611063576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610afd565b8073ffffffffffffffffffffffffffffffffffffffff1661108261293e565b73ffffffffffffffffffffffffffffffffffffffff1614806110ab57506110ab8161096d61293e565b611137576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610afd565b6111418383612d0f565b505050565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260156020908152604080832093851683529281528282205460179091529181205490919061119085611ece565b61119a9190614c39565b73ffffffffffffffffffffffffffffffffffffffff8086166000908152601660209081526040808320938816835292905220546111d79190614d87565b6111e19190614e25565b9392505050565b60006111f261293e565b905060006112008284611146565b73ffffffffffffffffffffffffffffffffffffffff8084166000908152601560209081526040808320938816835292905290812080549293508392909190611249908490614d87565b90915550506040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af11580156112c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e79190614e38565b50505050565b6112fe6112f861293e565b82612daf565b61138a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610afd565b611141838383612e6f565b61139d6132b0565b6012541580611407575073ffffffffffffffffffffffffffffffffffffffff81166000818152601460205260409020546012805490919081106113e2576113e2614d58565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614155b61146d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f416c7265616479206164646564000000000000000000000000000000000000006044820152606401610afd565b6012805473ffffffffffffffffffffffffffffffffffffffff909216600081815260146020908152604080832086905560018087019095557fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344490950180547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905591815260139091529190912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169091179055565b600061153383611ece565b82106115c1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610afd565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205490565b60005b8181101561163757611625858585858581811061161957611619614d58565b905060200201356116f5565b8061162f81614d9a565b9150506115fa565b5050505050565b600f546040517f40a7bb10000000000000000000000000000000000000000000000000000000008152600091829173ffffffffffffffffffffffffffffffffffffffff909116906340a7bb10906116a5908c908c908c908c908c908c908c90600401614e9e565b6040805180830381865afa1580156116c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e59190614f01565b9150915097509795505050505050565b611141838383604051806020016040528060008152506120ad565b600061171b60085490565b82106117a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610afd565b600882815481106117bc576117bc614d58565b90600052602060002001549050919050565b6117d66132b0565b600d611141828483614f6b565b6117eb6132b0565b61ffff909216600090815260106020908152604080832073ffffffffffffffffffffffffffffffffffffffff90941683529290522080549115157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909216919091179055565b60008151116118bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74206272696467696e6700000000000000000000000000000000000000006044820152606401610afd565b60005b81518110156119b9576118ea8282815181106118dd576118dd614d58565b6020026020010151611cb0565b73ffffffffffffffffffffffffffffffffffffffff1661190861293e565b73ffffffffffffffffffffffffffffffffffffffff1614611985576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420746865206f776e6572000000000000000000000000000000000000006044820152606401610afd565b6119a782828151811061199a5761199a614d58565b602002602001015161336a565b806119b181614d9a565b9150506118bf565b50601483015161ffff8516600090815260106020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16611a5d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f21547275737465640000000000000000000000000000000000000000000000006044820152606401610afd565b60008383604051602001611a72929190615085565b604051602081830303815290604052905060006001905060008451600c54611a9a9190614c39565b611aa7906207a120614d87565b6040805160f085901b7fffff0000000000000000000000000000000000000000000000000000000000001660208201526022808201849052825180830390910181526042820192839052600f547f40a7bb100000000000000000000000000000000000000000000000000000000090935292935060009173ffffffffffffffffffffffffffffffffffffffff16906340a7bb1090611b51908d9030908a90879089906046016150b4565b6040805180830381865afa158015611b6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b919190614f01565b50905080341015611c24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4d7573742073656e6420656e6f7567682076616c756520746f20636f7665722060448201527f6d657373616765466565000000000000000000000000000000000000000000006064820152608401610afd565b600f5473ffffffffffffffffffffffffffffffffffffffff1663c5803100348c8c89611c4e61293e565b6000896040518863ffffffff1660e01b8152600401611c7296959493929190615107565b6000604051808303818588803b158015611c8b57600080fd5b505af1158015611c9f573d6000803e3d6000fd5b505050505050505050505050505050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610cca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610afd565b333014611dca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d75737420626560448201527f20617070000000000000000000000000000000000000000000000000000000006064820152608401610afd565b610c6c8686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f89018190048102820181019092528781528993509150879087908190840183828082843760009201919091525061366092505050565b600d8054611e4d90614dd2565b80601f0160208091040260200160405190810160405280929190818152602001828054611e7990614dd2565b8015611ec65780601f10611e9b57610100808354040283529160200191611ec6565b820191906000526020600020905b815481529060010190602001808311611ea957829003601f168201915b505050505081565b600073ffffffffffffffffffffffffffffffffffffffff8216611f73576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610afd565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b611fa46132b0565b611fae6000613793565b565b606060018054610ee490614dd2565b60005b818110156112e757611fec84848484818110611fe057611fe0614d58565b90506020020135610f9b565b80611ff681614d9a565b915050611fc2565b610ed161200961293e565b838361380a565b6060600061201d83611ece565b67ffffffffffffffff8111156120355761203561431e565b60405190808252806020026020018201604052801561205e578160200160208202803683370190505b50905060005b81518110156120a6576120778482611528565b82828151811061208957612089614d58565b60209081029190910101528061209e81614d9a565b915050612064565b5092915050565b6120be6120b861293e565b83612daf565b61214a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610afd565b6112e784848484613937565b606061216182612c84565b600061216b6139da565b9050600081511161218b57604051806020016040528060008152506111e1565b80612195846139e9565b6040516020016121a692919061517b565b6040516020818303038152906040529392505050565b601281815481106121cc57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b61ffff8616600090815260116020526040808220905161221690889088906151aa565b908152604080516020928190038301902067ffffffffffffffff8716600090815292529020549050806122cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201527f61676500000000000000000000000000000000000000000000000000000000006064820152608401610afd565b8083836040516122dc9291906151aa565b604051809103902014612371576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f6160448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610afd565b61ffff8716600090815260116020526040808220905161239490899089906151aa565b908152604080516020928190038301812067ffffffffffffffff8916600090815290845282902093909355601f8801829004820283018201905286825261242d918991899089908190840183828082843760009201919091525050604080516020601f8a018190048102820181019092528881528a93509150889088908190840183828082843760009201919091525061366092505050565b7fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e587878787856040516124649594939291906151ba565b60405180910390a150505050505050565b60005b818110156112e7576124aa61248b61293e565b8585858581811061249e5761249e614d58565b90506020020135612e6f565b806124b481614d9a565b915050612478565b6124c46132b0565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260136020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6125226132b0565b73ffffffffffffffffffffffffffffffffffffffff811661259f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f5a65726f416464726573730000000000000000000000000000000000000000006044820152606401610afd565b600f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6125ee6132b0565b600c55565b6125fb6132b0565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600b6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6126596132b0565b600e55565b6126666132b0565b73ffffffffffffffffffffffffffffffffffffffff8116612709576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610afd565b61271281613793565b50565b601254158061277e575073ffffffffffffffffffffffffffffffffffffffff821660009081526014602052604081205460128054909190811061275a5761275a614d58565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16145b806127895750600854155b806127ba575073ffffffffffffffffffffffffffffffffffffffff821660009081526013602052604090205460ff16155b156127c3575050565b8173ffffffffffffffffffffffffffffffffffffffff166323b872dd6127e761293e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152306024820152604481018490526064016020604051808303816000875af1925050508015612899575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261289691810190614e38565b60015b6128a1575050565b506008546128af9082614c7f565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260176020526040812080549091906128e4908490614d87565b90915550505050565b336000908152600b602052604081205460ff161561293057507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec36013560601c90565b503390565b905090565b3390565b60006129356128ed565b6000606060008060008661ffff1667ffffffffffffffff81111561296e5761296e61431e565b6040519080825280601f01601f191660200182016040528015612998576020820181803683370190505b50905060008087516020890160008d8df191503d9250868311156129ba578692505b828152826000602083013e909890975095505050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612a6657507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610cca57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610cca565b73ffffffffffffffffffffffffffffffffffffffff8216612b33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610afd565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615612bbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610afd565b612bcb60008383613b1e565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290612c01908490614d87565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16612712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610afd565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190612d6982611cb0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612dbb83611cb0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612e29575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b80612e6757508373ffffffffffffffffffffffffffffffffffffffff16612e4f84610f67565b73ffffffffffffffffffffffffffffffffffffffff16145b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16612e8f82611cb0565b73ffffffffffffffffffffffffffffffffffffffff1614612f0c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f214f776e657200000000000000000000000000000000000000000000000000006044820152606401610afd565b60005b6012548110156132a4576017600060128381548110612f3057612f30614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff90811684528382019490945260409283018220549388168252601690529081206012805491929185908110612f8a57612f8a614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16835282019290925260400181208054909190612fcb908490614d87565b90915550612fda905084611ece565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601560205260408120601280549192918590811061301657613016614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff1683528201929092526040019020546130529190614c7f565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601660205260408120601280549192918590811061308e5761308e614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff168352820192909252604001812080549091906130cf908490614e25565b909155506130de905084611ece565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601560205260408120601280549192918590811061311a5761311a614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff1683528201929092526040019020546131569190614c7f565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601560205260408120601280549192918590811061319257613192614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff168352820192909252604001812080549091906131d3908490614e25565b9250508190555060176000601283815481106131f1576131f1614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff9081168452838201949094526040928301822054938716825260159052908120601280549192918590811061324b5761324b614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff1683528201929092526040018120805490919061328c908490614d87565b9091555081905061329c81614d9a565b915050612f0f565b50611141838383613c24565b6132b861293e565b73ffffffffffffffffffffffffffffffffffffffff166132ed600a5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614611fae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610afd565b600061337582611cb0565b905060005b60125481101561365657601760006012838154811061339b5761339b614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff908116845283820194909452604092830182205493861682526016905290812060128054919291859081106133f5576133f5614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16835282019290925260400181208054909190613436908490614d87565b90915550613445905082611ece565b73ffffffffffffffffffffffffffffffffffffffff83166000908152601560205260408120601280549192918590811061348157613481614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff1683528201929092526040019020546134bd9190614c7f565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260166020526040812060128054919291859081106134f9576134f9614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff1683528201929092526040018120805490919061353a908490614e25565b90915550613549905082611ece565b73ffffffffffffffffffffffffffffffffffffffff83166000908152601560205260408120601280549192918590811061358557613585614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff1683528201929092526040019020546135c19190614c7f565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260156020526040812060128054919291859081106135fd576135fd614d58565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff1683528201929092526040018120805490919061363e908490614e25565b9091555081905061364e81614d9a565b91505061337a565b50610ed182613e96565b601483015161ffff8516600090815260106020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16613703576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f21547275737465644164647265737300000000000000000000000000000000006044820152606401610afd565b6000808380602001905181019061371a91906151f6565b9150915060005b815181101561375f5761374d8383838151811061374057613740614d58565b6020026020010151610cd0565b8061375781614d9a565b915050613721565b507fd1277f109a4c2ec8d99a410396e48214f894389b6e789a231d8b7ccbb050bed78783836040516124649392919061529e565b600a805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361389f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610afd565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613942848484612e6f565b61394e84848484613f6f565b6112e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610afd565b6060600d8054610ee490614dd2565b606081600003613a2c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613a565780613a4081614d9a565b9150613a4f9050600a83614c7f565b9150613a30565b60008167ffffffffffffffff811115613a7157613a7161431e565b6040519080825280601f01601f191660200182016040528015613a9b576020820181803683370190505b5090505b8415612e6757613ab0600183614e25565b9150613abd600a866152e0565b613ac8906030614d87565b60f81b818381518110613add57613add614d58565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613b17600a86614c7f565b9450613a9f565b73ffffffffffffffffffffffffffffffffffffffff8316613b8657613b8181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613bc3565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613bc357613bc38382614150565b73ffffffffffffffffffffffffffffffffffffffff8216613be75761114181614207565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146111415761114182826142b6565b8273ffffffffffffffffffffffffffffffffffffffff16613c4482611cb0565b73ffffffffffffffffffffffffffffffffffffffff1614613ce7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610afd565b73ffffffffffffffffffffffffffffffffffffffff8216613d89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610afd565b613d94838383613b1e565b613d9f600082612d0f565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805460019290613dd5908490614e25565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290613e10908490614d87565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000613ea182611cb0565b9050613eaf81600084613b1e565b613eba600083612d0f565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600360205260408120805460019290613ef0908490614e25565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600073ffffffffffffffffffffffffffffffffffffffff84163b15614145578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613fb261293e565b8786866040518563ffffffff1660e01b8152600401613fd494939291906152f4565b6020604051808303816000875af192505050801561402d575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261402a9181019061533d565b60015b6140fa573d80801561405b576040519150601f19603f3d011682016040523d82523d6000602084013e614060565b606091505b5080516000036140f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610afd565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612e67565b506001949350505050565b6000600161415d84611ece565b6141679190614e25565b6000838152600760205260409020549091508082146141c75773ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b50600091825260076020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600681528383209183525290812055565b60085460009061421990600190614e25565b6000838152600960205260408120546008805493945090928490811061424157614241614d58565b90600052602060002001549050806008838154811061426257614262614d58565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061429a5761429a61535a565b6001900381819060005260206000200160009055905550505050565b60006142c183611ece565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b803561ffff8116811461431957600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156143945761439461431e565b604052919050565b600082601f8301126143ad57600080fd5b813567ffffffffffffffff8111156143c7576143c761431e565b6143f860207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161434d565b81815284602083860101111561440d57600080fd5b816020850160208301376000918101602001919091529392505050565b803567ffffffffffffffff8116811461431957600080fd5b6000806000806080858703121561445857600080fd5b61446185614307565b9350602085013567ffffffffffffffff8082111561447e57600080fd5b61448a8883890161439c565b94506144986040880161442a565b935060608701359150808211156144ae57600080fd5b506144bb8782880161439c565b91505092959194509250565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461271257600080fd5b60006020828403121561450757600080fd5b81356111e1816144c7565b73ffffffffffffffffffffffffffffffffffffffff8116811461271257600080fd5b6000806040838503121561454757600080fd5b823561455281614512565b946020939093013593505050565b60005b8381101561457b578181015183820152602001614563565b50506000910152565b6000815180845261459c816020860160208601614560565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006111e16020830184614584565b6000602082840312156145f357600080fd5b5035919050565b6000806040838503121561460d57600080fd5b823561461881614512565b9150602083013561462881614512565b809150509250929050565b60006020828403121561464557600080fd5b81356111e181614512565b60008060006060848603121561466557600080fd5b833561467081614512565b9250602084013561468081614512565b929592945050506040919091013590565b60008083601f8401126146a357600080fd5b50813567ffffffffffffffff8111156146bb57600080fd5b6020830191508360208260051b85010111156146d657600080fd5b9250929050565b600080600080606085870312156146f357600080fd5b84356146fe81614512565b9350602085013561470e81614512565b9250604085013567ffffffffffffffff81111561472a57600080fd5b61473687828801614691565b95989497509550505050565b60008083601f84011261475457600080fd5b50813567ffffffffffffffff81111561476c57600080fd5b6020830191508360208285010111156146d657600080fd5b801515811461271257600080fd5b600080600080600080600060a0888a0312156147ad57600080fd5b6147b688614307565b965060208801356147c681614512565b9550604088013567ffffffffffffffff808211156147e357600080fd5b6147ef8b838c01614742565b909750955060608a0135915061480482614784565b9093506080890135908082111561481a57600080fd5b506148278a828b01614742565b989b979a50959850939692959293505050565b6000806020838503121561484d57600080fd5b823567ffffffffffffffff81111561486457600080fd5b61487085828601614742565b90969095509350505050565b60008060006060848603121561489157600080fd5b61489a84614307565b925060208401356148aa81614512565b915060408401356148ba81614784565b809150509250925092565b6000806000606084860312156148da57600080fd5b6148e384614307565b9250602084013567ffffffffffffffff8111156148ff57600080fd5b61490b8682870161439c565b92505061491a6040850161442a565b90509250925092565b600067ffffffffffffffff82111561493d5761493d61431e565b5060051b60200190565b6000806000806080858703121561495d57600080fd5b61496685614307565b935060208086013567ffffffffffffffff8082111561498457600080fd5b61499089838a0161439c565b9550604088013591506149a282614512565b909350606087013590808211156149b857600080fd5b508601601f810188136149ca57600080fd5b80356149dd6149d882614923565b61434d565b81815260059190911b8201830190838101908a8311156149fc57600080fd5b928401925b82841015614a1a57833582529284019290840190614a01565b979a9699509497505050505050565b60008060008060008060808789031215614a4257600080fd5b614a4b87614307565b9550602087013567ffffffffffffffff80821115614a6857600080fd5b614a748a838b01614742565b9097509550859150614a8860408a0161442a565b94506060890135915080821115614a9e57600080fd5b50614aab89828a01614742565b979a9699509497509295939492505050565b600080600060408486031215614ad257600080fd5b8335614add81614512565b9250602084013567ffffffffffffffff811115614af957600080fd5b614b0586828701614691565b9497909650939450505050565b60008060408385031215614b2557600080fd5b8235614b3081614512565b9150602083013561462881614784565b60008060408385031215614b5357600080fd5b61461883614307565b600081518084526020808501945080840160005b83811015614b8c57815187529582019590820190600101614b70565b509495945050505050565b6020815260006111e16020830184614b5c565b60008060008060808587031215614bc057600080fd5b8435614bcb81614512565b93506020850135614bdb81614512565b925060408501359150606085013567ffffffffffffffff811115614bfe57600080fd5b6144bb8782880161439c565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417610cca57610cca614c0a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082614c8e57614c8e614c50565b500490565b61ffff85168152608060208201526000614cb06080830186614584565b67ffffffffffffffff851660408401528281036060840152614cd28185614584565b979650505050505050565b60008251614cef818460208701614560565b9190910192915050565b61ffff8616815260a060208201526000614d1660a0830187614584565b67ffffffffffffffff861660408401528281036060840152614d388186614584565b90508281036080840152614d4c8185614584565b98975050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b80820180821115610cca57610cca614c0a565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614dcb57614dcb614c0a565b5060010190565b600181811c90821680614de657607f821691505b602082108103614e1f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b81810381811115610cca57610cca614c0a565b600060208284031215614e4a57600080fd5b81516111e181614784565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b61ffff8816815273ffffffffffffffffffffffffffffffffffffffff8716602082015260a060408201526000614ed860a083018789614e55565b85151560608401528281036080840152614ef3818587614e55565b9a9950505050505050505050565b60008060408385031215614f1457600080fd5b505080516020909101519092909150565b601f82111561114157600081815260208120601f850160051c81016020861015614f4c5750805b601f850160051c820191505b81811015610c6c57828155600101614f58565b67ffffffffffffffff831115614f8357614f8361431e565b614f9783614f918354614dd2565b83614f25565b6000601f841160018114614fe95760008515614fb35750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b178355611637565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b828110156150385786850135825560209485019460019092019101615018565b5086821015615073577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b73ffffffffffffffffffffffffffffffffffffffff83168152604060208201526000612e676040830184614b5c565b61ffff8616815273ffffffffffffffffffffffffffffffffffffffff8516602082015260a0604082015260006150ed60a0830186614584565b84151560608401528281036080840152614d4c8185614584565b61ffff8716815260c06020820152600061512460c0830188614584565b82810360408401526151368188614584565b73ffffffffffffffffffffffffffffffffffffffff87811660608601528616608085015283810360a0850152905061516e8185614584565b9998505050505050505050565b6000835161518d818460208801614560565b8351908301906151a1818360208801614560565b01949350505050565b8183823760009101908152919050565b61ffff861681526080602082015260006151d8608083018688614e55565b67ffffffffffffffff94909416604083015250606001529392505050565b6000806040838503121561520957600080fd5b825161521481614512565b8092505060208084015167ffffffffffffffff81111561523357600080fd5b8401601f8101861361524457600080fd5b80516152526149d882614923565b81815260059190911b8201830190838101908883111561527157600080fd5b928401925b8284101561528f57835182529284019290840190615276565b80955050505050509250929050565b61ffff8416815273ffffffffffffffffffffffffffffffffffffffff831660208201526060604082015260006152d76060830184614b5c565b95945050505050565b6000826152ef576152ef614c50565b500690565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526153336080830184614584565b9695505050505050565b60006020828403121561534f57600080fd5b81516111e1816144c7565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122012e3e78ee75155026a62aa6811b60c87f9817d05f93fc761292f3c821b937b4064736f6c63430008110033

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

0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001554696772697320476f7665726e616e6365204e46540000000000000000000000000000000000000000000000000000000000000000000000000000000000000e54696772697320476f76204e4654000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _endpoint (address): 0x3c2269811836af69497E5F486A85D7316753cf62
Arg [1] : _setBaseURI (string):
Arg [2] : _name (string): Tigris Governance NFT
Arg [3] : _symbol (string): Tigris Gov NFT

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [6] : 54696772697320476f7665726e616e6365204e46540000000000000000000000
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [8] : 54696772697320476f76204e4654000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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