ETH Price: $2,544.16 (+3.18%)

Contract

0x012cAEb558DfFc053a6A092835a1e7F5c8EeBA8b
Transaction Hash
Method
Block
From
To
Set Approval For...1255747722024-09-19 12:18:4132 hrs ago1726748321IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000004756260.00530241
Set Approval For...1255467672024-09-18 20:45:1147 hrs ago1726692311IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000010518530.02526589
Set Approval For...1254240162024-09-16 0:33:294 days ago1726446809IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000002227910.00349155
Withdraw1253707242024-09-14 18:57:056 days ago1726340225IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000000924040.0023321
Set Approval For...1252339802024-09-11 14:58:579 days ago1726066737IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000017347410.04364853
Send From1249163752024-09-04 6:32:0716 days ago1725431527IN
0x012cAEb5...5c8EeBA8b
0.000210963824631 ETH0.0000000788430.00022672
Send From1248580072024-09-02 22:06:3117 days ago1725314791IN
0x012cAEb5...5c8EeBA8b
0.000115367782133 ETH0.0000004611510.0013468
Send From1247583982024-08-31 14:46:1320 days ago1725115573IN
0x012cAEb5...5c8EeBA8b
0.000195418783329 ETH0.0000002859890.00113044
Send From1245973092024-08-27 21:16:3523 days ago1724793395IN
0x012cAEb5...5c8EeBA8b
0.0001125416405 ETH0.000000422070.00154549
Send From1241585402024-08-17 17:30:5734 days ago1723915857IN
0x012cAEb5...5c8EeBA8b
0.000183621718428 ETH0.0000007216330.00291574
Set Approval For...1239721872024-08-13 9:59:1138 days ago1723543151IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000000792460.00108822
Set Approval For...1238403102024-08-10 8:43:1741 days ago1723279397IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000000526460.00114219
Set Approval For...1232398992024-07-27 11:09:3555 days ago1722078575IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000000621630.00134256
Set Approval For...1229562302024-07-20 21:33:5761 days ago1721511237IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000037410870.06178202
Send From1229456962024-07-20 15:42:4962 days ago1721490169IN
0x012cAEb5...5c8EeBA8b
0.000158663013536 ETH0.0000173855160.06180201
Set Approval For...1227797522024-07-16 19:31:2166 days ago1721158281IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000024313210.06069094
Set Approval For...1227716942024-07-16 15:02:4566 days ago1721142165IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000024582120.062033
Set Approval For...1227716772024-07-16 15:02:1166 days ago1721142131IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000024493520.062033
Set Approval For...1227691742024-07-16 13:38:4566 days ago1721137125IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000003679720.00780172
Set Approval For...1226431452024-07-13 15:37:4769 days ago1720885067IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000000675240.0013495
Send From1226355182024-07-13 11:23:3369 days ago1720869813IN
0x012cAEb5...5c8EeBA8b
0.00016660671876 ETH0.000000384850.00129343
Set Approval For...1226109002024-07-12 21:42:5769 days ago1720820577IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000001041130.00141001
Set Approval For...1225371272024-07-11 4:43:5171 days ago1720673031IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000000510480.00079431
Set Approval For...1225236882024-07-10 21:15:5371 days ago1720646153IN
0x012cAEb5...5c8EeBA8b
0 ETH0.0000024065910.0619492
Send From1224730112024-07-09 17:06:3973 days ago1720544799IN
0x012cAEb5...5c8EeBA8b
0.000106588710078 ETH0.0000162054170.06141727
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
1253707242024-09-14 18:57:056 days ago1726340225
0x012cAEb5...5c8EeBA8b
0.0018 ETH
1249163752024-09-04 6:32:0716 days ago1725431527
0x012cAEb5...5c8EeBA8b
0.000150963824631 ETH
1248580072024-09-02 22:06:3117 days ago1725314791
0x012cAEb5...5c8EeBA8b
0.000055367782133 ETH
1247583982024-08-31 14:46:1320 days ago1725115573
0x012cAEb5...5c8EeBA8b
0.000135418783329 ETH
1245973092024-08-27 21:16:3523 days ago1724793395
0x012cAEb5...5c8EeBA8b
0.0000525416405 ETH
1241585402024-08-17 17:30:5734 days ago1723915857
0x012cAEb5...5c8EeBA8b
0.000123621718428 ETH
1229456962024-07-20 15:42:4962 days ago1721490169
0x012cAEb5...5c8EeBA8b
0.000098663013536 ETH
1226355182024-07-13 11:23:3369 days ago1720869813
0x012cAEb5...5c8EeBA8b
0.00010660671876 ETH
1224730112024-07-09 17:06:3973 days ago1720544799
0x012cAEb5...5c8EeBA8b
0.000046588710078 ETH
1223418882024-07-06 16:15:5376 days ago1720282553
0x012cAEb5...5c8EeBA8b
0.000110897308081 ETH
1217767052024-06-23 14:16:2789 days ago1719152187
0x012cAEb5...5c8EeBA8b
0.000095404138072 ETH
1214688642024-06-16 11:15:0596 days ago1718536505
0x012cAEb5...5c8EeBA8b
0.000095453953862 ETH
1213581212024-06-13 21:43:3998 days ago1718315019
0x012cAEb5...5c8EeBA8b
0.000075902458938 ETH
1213581212024-06-13 21:43:3998 days ago1718315019
0x012cAEb5...5c8EeBA8b
0.000048669712737 ETH
1213581212024-06-13 21:43:3998 days ago1718315019
0x012cAEb5...5c8EeBA8b
0.000075902458938 ETH
1211399632024-06-08 20:31:43103 days ago1717878703
0x012cAEb5...5c8EeBA8b
0.000034675468128 ETH
1210876402024-06-07 15:27:37105 days ago1717774057
0x012cAEb5...5c8EeBA8b
0.000087348783859 ETH
1210762572024-06-07 9:08:11105 days ago1717751291
0x012cAEb5...5c8EeBA8b
0.00003446597906 ETH
1210437072024-06-06 15:03:11106 days ago1717686191
0x012cAEb5...5c8EeBA8b
0.000045472416923 ETH
1210271622024-06-06 5:51:41106 days ago1717653101
0x012cAEb5...5c8EeBA8b
0.000035101664861 ETH
1209312422024-06-04 0:34:21108 days ago1717461261
0x012cAEb5...5c8EeBA8b
0.000087218283631 ETH
1209136552024-06-03 14:48:07109 days ago1717426087
0x012cAEb5...5c8EeBA8b
0.00003446597906 ETH
1209089482024-06-03 12:11:13109 days ago1717416673
0x012cAEb5...5c8EeBA8b
0.000087342860599 ETH
1207838672024-05-31 14:41:51112 days ago1717166511
0x012cAEb5...5c8EeBA8b
0.00003446597906 ETH
1207780012024-05-31 11:26:19112 days ago1717154779
0x012cAEb5...5c8EeBA8b
0.000034747504226 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OmniAxAdventures

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 5 runs

Other Settings:
default evmVersion
File 1 of 27 : OmniAxAdventures.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8;

import "../AdvancedONFT721ATimed.sol";

contract OmniAxAdventures is AdvancedONFT721ATimed {


    uint64 public maxTokensPerMint = 20;


    constructor(
        string memory _name,
        string memory _symbol,
        address _lzEndpoint,
        uint256 _startId,
        uint256 _maxId,
        uint256 _maxGlobalId,
        string memory _baseTokenURI,
        string memory _hiddenURI,
        uint16 _tax,
        uint _price,
        address _taxRecipient
    ) AdvancedONFT721ATimed(_name, _symbol, _lzEndpoint, _startId, _maxId, _maxGlobalId, _baseTokenURI, _hiddenURI, _tax, _price, _taxRecipient) {}


    function tokenURI(uint256 _tokenId) public view virtual override(AdvancedONFT721ATimed) returns(string memory) {
        require(_exists(_tokenId));
        if (state.revealed) {
            return metadata.hiddenMetadataURI;
        }
        return metadata.baseURI;
    }

    function setMaxTokensPerMint(uint64 _maxTokensPerMint ) external onlyBenficiaryAndOwner {
        maxTokensPerMint = _maxTokensPerMint;
    }

   function mint(uint256 _nbTokens) external override payable {
        require(state.saleStarted, "Sale hasn't started");

        require(_nbTokens != 0);


        require(_nextTokenId() + _nbTokens - 1 <= maxId, "max supply reached");

        require(_nbTokens * _financeDetails.price <= msg.value, "not enough value");

        require(state.startTime + state.mintLength >= block.timestamp, "minting expired");

        require (_nbTokens <= maxTokensPerMint, "exceeded max minting limit");


        _safeMint(msg.sender, _nbTokens);


    }

}

File 2 of 27 : ILayerZeroEndpoint.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

import "./ILayerZeroUserApplicationConfig.sol";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 27 : ILayerZeroReceiver.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

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

File 4 of 27 : ILayerZeroUserApplicationConfig.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

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

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

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

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

File 5 of 27 : LzApp.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "../interfaces/ILayerZeroReceiver.sol";
import "../interfaces/ILayerZeroUserApplicationConfig.sol";
import "../interfaces/ILayerZeroEndpoint.sol";
import "../util/BytesLib.sol";

/*
 * a generic LzReceiver implementation
 */
abstract contract LzApp is Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig {
    using BytesLib for bytes;

    // ua can not send payload larger than this by default, but it can be changed by the ua owner
    uint constant public DEFAULT_PAYLOAD_SIZE_LIMIT = 10000;

    ILayerZeroEndpoint public immutable lzEndpoint;
    mapping(uint16 => bytes) public trustedRemoteLookup;
    mapping(uint16 => mapping(uint16 => uint)) public minDstGasLookup;
    mapping(uint16 => uint) public payloadSizeLimitLookup;
    address public precrime;

    event SetPrecrime(address precrime);
    event SetTrustedRemote(uint16 _remoteChainId, bytes _path);
    event SetTrustedRemoteAddress(uint16 _remoteChainId, bytes _remoteAddress);
    event SetMinDstGas(uint16 _dstChainId, uint16 _type, uint _minDstGas);

    constructor(address _endpoint) {
        lzEndpoint = ILayerZeroEndpoint(_endpoint);
    }

    function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) public virtual override {
        // lzReceive must be called by the endpoint for security
        require(_msgSender() == address(lzEndpoint), "LzApp: invalid endpoint caller");

        bytes memory trustedRemote = trustedRemoteLookup[_srcChainId];
        // if will still block the message pathway from (srcChainId, srcAddress). should not receive message from untrusted remote.
        require(_srcAddress.length == trustedRemote.length && trustedRemote.length > 0 && keccak256(_srcAddress) == keccak256(trustedRemote), "LzApp: invalid source sending contract");

        _blockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    // abstract function - the default behaviour of LayerZero is blocking. See: NonblockingLzApp if you dont need to enforce ordered messaging
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual;

    function _lzSend(uint16 _dstChainId, bytes memory _payload, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams, uint _nativeFee) internal virtual {
        bytes memory trustedRemote = trustedRemoteLookup[_dstChainId];
        require(trustedRemote.length != 0, "LzApp: destination chain is not a trusted source");
        _checkPayloadSize(_dstChainId, _payload.length);
        lzEndpoint.send{value: _nativeFee}(_dstChainId, trustedRemote, _payload, _refundAddress, _zroPaymentAddress, _adapterParams);
    }

    function _checkGasLimit(uint16 _dstChainId, uint16 _type, bytes memory _adapterParams, uint _extraGas) internal view virtual {
        uint providedGasLimit = _getGasLimit(_adapterParams);
        uint minGasLimit = minDstGasLookup[_dstChainId][_type] + _extraGas;
        require(minGasLimit > 0, "LzApp: minGasLimit not set");
        require(providedGasLimit >= minGasLimit, "LzApp: gas limit is too low");
    }

    function _getGasLimit(bytes memory _adapterParams) internal pure virtual returns (uint gasLimit) {
        require(_adapterParams.length >= 34, "LzApp: invalid adapterParams");
        assembly {
            gasLimit := mload(add(_adapterParams, 34))
        }
    }

    function _checkPayloadSize(uint16 _dstChainId, uint _payloadSize) internal view virtual {
        uint payloadSizeLimit = payloadSizeLimitLookup[_dstChainId];
        if (payloadSizeLimit == 0) { // use default if not set
            payloadSizeLimit = DEFAULT_PAYLOAD_SIZE_LIMIT;
        }
        require(_payloadSize <= payloadSizeLimit, "LzApp: payload size is too large");
    }

    //---------------------------UserApplication config----------------------------------------
    function getConfig(uint16 _version, uint16 _chainId, address, uint _configType) external view returns (bytes memory) {
        return lzEndpoint.getConfig(_version, _chainId, address(this), _configType);
    }

    // generic config for LayerZero user Application
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external override onlyOwner {
        lzEndpoint.setConfig(_version, _chainId, _configType, _config);
    }

    function setSendVersion(uint16 _version) external override onlyOwner {
        lzEndpoint.setSendVersion(_version);
    }

    function setReceiveVersion(uint16 _version) external override onlyOwner {
        lzEndpoint.setReceiveVersion(_version);
    }

    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external override onlyOwner {
        lzEndpoint.forceResumeReceive(_srcChainId, _srcAddress);
    }

    // _path = abi.encodePacked(remoteAddress, localAddress)
    // this function set the trusted path for the cross-chain communication
    function setTrustedRemote(uint16 _srcChainId, bytes calldata _path) external onlyOwner {
        trustedRemoteLookup[_srcChainId] = _path;
        emit SetTrustedRemote(_srcChainId, _path);
    }

    function setTrustedRemoteAddress(uint16 _remoteChainId, bytes calldata _remoteAddress) external onlyOwner {
        trustedRemoteLookup[_remoteChainId] = abi.encodePacked(_remoteAddress, address(this));
        emit SetTrustedRemoteAddress(_remoteChainId, _remoteAddress);
    }

    function getTrustedRemoteAddress(uint16 _remoteChainId) external view returns (bytes memory) {
        bytes memory path = trustedRemoteLookup[_remoteChainId];
        require(path.length != 0, "LzApp: no trusted path record");
        return path.slice(0, path.length - 20); // the last 20 bytes should be address(this)
    }

    function setPrecrime(address _precrime) external onlyOwner {
        precrime = _precrime;
        emit SetPrecrime(_precrime);
    }

    function setMinDstGas(uint16 _dstChainId, uint16 _packetType, uint _minGas) external onlyOwner {
        require(_minGas > 0, "LzApp: invalid minGas");
        minDstGasLookup[_dstChainId][_packetType] = _minGas;
        emit SetMinDstGas(_dstChainId, _packetType, _minGas);
    }

    // if the size is 0, it means default size limit
    function setPayloadSizeLimit(uint16 _dstChainId, uint _size) external onlyOwner {
        payloadSizeLimitLookup[_dstChainId] = _size;
    }

    //--------------------------- VIEW FUNCTION ----------------------------------------
    function isTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool) {
        bytes memory trustedSource = trustedRemoteLookup[_srcChainId];
        return keccak256(trustedSource) == keccak256(_srcAddress);
    }
}

File 6 of 27 : NonblockingLzApp.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./LzApp.sol";
import "../util/ExcessivelySafeCall.sol";

/*
 * the default LayerZero messaging behaviour is blocking, i.e. any failed message will block the channel
 * this abstract class try-catch all fail messages and store locally for future retry. hence, non-blocking
 * NOTE: if the srcAddress is not configured properly, it will still block the message pathway from (srcChainId, srcAddress)
 */
abstract contract NonblockingLzApp is LzApp {
    using ExcessivelySafeCall for address;

    constructor(address _endpoint) LzApp(_endpoint) {}

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

    // overriding the virtual function in LzReceiver
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        (bool success, bytes memory reason) = address(this).excessivelySafeCall(gasleft(), 150, abi.encodeWithSelector(this.nonblockingLzReceive.selector, _srcChainId, _srcAddress, _nonce, _payload));
        // try-catch all errors/exceptions
        if (!success) {
            _storeFailedMessage(_srcChainId, _srcAddress, _nonce, _payload, reason);
        }
    }

    function _storeFailedMessage(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload, bytes memory _reason) internal virtual {
        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 virtual {
        // only internal transaction
        require(_msgSender() == address(this), "NonblockingLzApp: caller must be LzApp");
        _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    //@notice override this function
    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual;

    function retryMessage(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) public payable virtual {
        // 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);
    }
}

File 7 of 27 : BytesLib.sol
// SPDX-License-Identifier: Unlicense
/*
 * @title Solidity Bytes Arrays Utils
 * @author Gonçalo Sá <[email protected]>
 *
 * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.
 *      The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.
 */
pragma solidity >=0.8.0 <0.9.0;


library BytesLib {
    function concat(
        bytes memory _preBytes,
        bytes memory _postBytes
    )
    internal
    pure
    returns (bytes memory)
    {
        bytes memory tempBytes;

        assembly {
        // Get a location of some free memory and store it in tempBytes as
        // Solidity does for memory variables.
            tempBytes := mload(0x40)

        // Store the length of the first bytes array at the beginning of
        // the memory for tempBytes.
            let length := mload(_preBytes)
            mstore(tempBytes, length)

        // Maintain a memory counter for the current write location in the
        // temp bytes array by adding the 32 bytes for the array length to
        // the starting location.
            let mc := add(tempBytes, 0x20)
        // Stop copying when the memory counter reaches the length of the
        // first bytes array.
            let end := add(mc, length)

            for {
            // Initialize a copy counter to the start of the _preBytes data,
            // 32 bytes into its memory.
                let cc := add(_preBytes, 0x20)
            } lt(mc, end) {
            // Increase both counters by 32 bytes each iteration.
                mc := add(mc, 0x20)
                cc := add(cc, 0x20)
            } {
            // Write the _preBytes data into the tempBytes memory 32 bytes
            // at a time.
                mstore(mc, mload(cc))
            }

        // Add the length of _postBytes to the current length of tempBytes
        // and store it as the new length in the first 32 bytes of the
        // tempBytes memory.
            length := mload(_postBytes)
            mstore(tempBytes, add(length, mload(tempBytes)))

        // Move the memory counter back from a multiple of 0x20 to the
        // actual end of the _preBytes data.
            mc := end
        // Stop copying when the memory counter reaches the new combined
        // length of the arrays.
            end := add(mc, length)

            for {
                let cc := add(_postBytes, 0x20)
            } lt(mc, end) {
                mc := add(mc, 0x20)
                cc := add(cc, 0x20)
            } {
                mstore(mc, mload(cc))
            }

        // Update the free-memory pointer by padding our last write location
        // to 32 bytes: add 31 bytes to the end of tempBytes to move to the
        // next 32 byte block, then round down to the nearest multiple of
        // 32. If the sum of the length of the two arrays is zero then add
        // one before rounding down to leave a blank 32 bytes (the length block with 0).
            mstore(0x40, and(
            add(add(end, iszero(add(length, mload(_preBytes)))), 31),
            not(31) // Round down to the nearest 32 bytes.
            ))
        }

        return tempBytes;
    }

    function concatStorage(bytes storage _preBytes, bytes memory _postBytes) internal {
        assembly {
        // Read the first 32 bytes of _preBytes storage, which is the length
        // of the array. (We don't need to use the offset into the slot
        // because arrays use the entire slot.)
            let fslot := sload(_preBytes.slot)
        // Arrays of 31 bytes or less have an even value in their slot,
        // while longer arrays have an odd value. The actual length is
        // the slot divided by two for odd values, and the lowest order
        // byte divided by two for even values.
        // If the slot is even, bitwise and the slot with 255 and divide by
        // two to get the length. If the slot is odd, bitwise and the slot
        // with -1 and divide by two.
            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
            let mlength := mload(_postBytes)
            let newlength := add(slength, mlength)
        // slength can contain both the length and contents of the array
        // if length < 32 bytes so let's prepare for that
        // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
            switch add(lt(slength, 32), lt(newlength, 32))
            case 2 {
            // Since the new array still fits in the slot, we just need to
            // update the contents of the slot.
            // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length
                sstore(
                _preBytes.slot,
                // all the modifications to the slot are inside this
                // next block
                add(
                // we can just add to the slot contents because the
                // bytes we want to change are the LSBs
                fslot,
                add(
                mul(
                div(
                // load the bytes from memory
                mload(add(_postBytes, 0x20)),
                // zero all bytes to the right
                exp(0x100, sub(32, mlength))
                ),
                // and now shift left the number of bytes to
                // leave space for the length in the slot
                exp(0x100, sub(32, newlength))
                ),
                // increase length by the double of the memory
                // bytes length
                mul(mlength, 2)
                )
                )
                )
            }
            case 1 {
            // The stored value fits in the slot, but the combined value
            // will exceed it.
            // get the keccak hash to get the contents of the array
                mstore(0x0, _preBytes.slot)
                let sc := add(keccak256(0x0, 0x20), div(slength, 32))

            // save new length
                sstore(_preBytes.slot, add(mul(newlength, 2), 1))

            // The contents of the _postBytes array start 32 bytes into
            // the structure. Our first read should obtain the `submod`
            // bytes that can fit into the unused space in the last word
            // of the stored array. To get this, we read 32 bytes starting
            // from `submod`, so the data we read overlaps with the array
            // contents by `submod` bytes. Masking the lowest-order
            // `submod` bytes allows us to add that value directly to the
            // stored value.

                let submod := sub(32, slength)
                let mc := add(_postBytes, submod)
                let end := add(_postBytes, mlength)
                let mask := sub(exp(0x100, submod), 1)

                sstore(
                sc,
                add(
                and(
                fslot,
                0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00
                ),
                and(mload(mc), mask)
                )
                )

                for {
                    mc := add(mc, 0x20)
                    sc := add(sc, 1)
                } lt(mc, end) {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } {
                    sstore(sc, mload(mc))
                }

                mask := exp(0x100, sub(mc, end))

                sstore(sc, mul(div(mload(mc), mask), mask))
            }
            default {
            // get the keccak hash to get the contents of the array
                mstore(0x0, _preBytes.slot)
            // Start copying to the last used word of the stored array.
                let sc := add(keccak256(0x0, 0x20), div(slength, 32))

            // save new length
                sstore(_preBytes.slot, add(mul(newlength, 2), 1))

            // Copy over the first `submod` bytes of the new data as in
            // case 1 above.
                let slengthmod := mod(slength, 32)
                let mlengthmod := mod(mlength, 32)
                let submod := sub(32, slengthmod)
                let mc := add(_postBytes, submod)
                let end := add(_postBytes, mlength)
                let mask := sub(exp(0x100, submod), 1)

                sstore(sc, add(sload(sc), and(mload(mc), mask)))

                for {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } lt(mc, end) {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } {
                    sstore(sc, mload(mc))
                }

                mask := exp(0x100, sub(mc, end))

                sstore(sc, mul(div(mload(mc), mask), mask))
            }
        }
    }

    function slice(
        bytes memory _bytes,
        uint256 _start,
        uint256 _length
    )
    internal
    pure
    returns (bytes memory)
    {
        require(_length + 31 >= _length, "slice_overflow");
        require(_bytes.length >= _start + _length, "slice_outOfBounds");

        bytes memory tempBytes;

        assembly {
            switch iszero(_length)
            case 0 {
            // Get a location of some free memory and store it in tempBytes as
            // Solidity does for memory variables.
                tempBytes := mload(0x40)

            // The first word of the slice result is potentially a partial
            // word read from the original array. To read it, we calculate
            // the length of that partial word and start copying that many
            // bytes into the array. The first word we copy will start with
            // data we don't care about, but the last `lengthmod` bytes will
            // land at the beginning of the contents of the new array. When
            // we're done copying, we overwrite the full first word with
            // the actual length of the slice.
                let lengthmod := and(_length, 31)

            // The multiplication in the next line is necessary
            // because when slicing multiples of 32 bytes (lengthmod == 0)
            // the following copy loop was copying the origin's length
            // and then ending prematurely not copying everything it should.
                let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod)))
                let end := add(mc, _length)

                for {
                // The multiplication in the next line has the same exact purpose
                // as the one above.
                    let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start)
                } lt(mc, end) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                    mstore(mc, mload(cc))
                }

                mstore(tempBytes, _length)

            //update free-memory pointer
            //allocating the array padded to 32 bytes like the compiler does now
                mstore(0x40, and(add(mc, 31), not(31)))
            }
            //if we want a zero-length slice let's just return a zero-length array
            default {
                tempBytes := mload(0x40)
            //zero out the 32 bytes slice we are about to return
            //we need to do it because Solidity does not garbage collect
                mstore(tempBytes, 0)

                mstore(0x40, add(tempBytes, 0x20))
            }
        }

        return tempBytes;
    }

    function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address) {
        require(_bytes.length >= _start + 20, "toAddress_outOfBounds");
        address tempAddress;

        assembly {
            tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000)
        }

        return tempAddress;
    }

    function toUint8(bytes memory _bytes, uint256 _start) internal pure returns (uint8) {
        require(_bytes.length >= _start + 1 , "toUint8_outOfBounds");
        uint8 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x1), _start))
        }

        return tempUint;
    }

    function toUint16(bytes memory _bytes, uint256 _start) internal pure returns (uint16) {
        require(_bytes.length >= _start + 2, "toUint16_outOfBounds");
        uint16 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x2), _start))
        }

        return tempUint;
    }

    function toUint32(bytes memory _bytes, uint256 _start) internal pure returns (uint32) {
        require(_bytes.length >= _start + 4, "toUint32_outOfBounds");
        uint32 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x4), _start))
        }

        return tempUint;
    }

    function toUint64(bytes memory _bytes, uint256 _start) internal pure returns (uint64) {
        require(_bytes.length >= _start + 8, "toUint64_outOfBounds");
        uint64 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x8), _start))
        }

        return tempUint;
    }

    function toUint96(bytes memory _bytes, uint256 _start) internal pure returns (uint96) {
        require(_bytes.length >= _start + 12, "toUint96_outOfBounds");
        uint96 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0xc), _start))
        }

        return tempUint;
    }

    function toUint128(bytes memory _bytes, uint256 _start) internal pure returns (uint128) {
        require(_bytes.length >= _start + 16, "toUint128_outOfBounds");
        uint128 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x10), _start))
        }

        return tempUint;
    }

    function toUint256(bytes memory _bytes, uint256 _start) internal pure returns (uint256) {
        require(_bytes.length >= _start + 32, "toUint256_outOfBounds");
        uint256 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x20), _start))
        }

        return tempUint;
    }

    function toBytes32(bytes memory _bytes, uint256 _start) internal pure returns (bytes32) {
        require(_bytes.length >= _start + 32, "toBytes32_outOfBounds");
        bytes32 tempBytes32;

        assembly {
            tempBytes32 := mload(add(add(_bytes, 0x20), _start))
        }

        return tempBytes32;
    }

    function equal(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) {
        bool success = true;

        assembly {
            let length := mload(_preBytes)

        // if lengths don't match the arrays are not equal
            switch eq(length, mload(_postBytes))
            case 1 {
            // cb is a circuit breaker in the for loop since there's
            //  no said feature for inline assembly loops
            // cb = 1 - don't breaker
            // cb = 0 - break
                let cb := 1

                let mc := add(_preBytes, 0x20)
                let end := add(mc, length)

                for {
                    let cc := add(_postBytes, 0x20)
                // the next line is the loop condition:
                // while(uint256(mc < end) + cb == 2)
                } eq(add(lt(mc, end), cb), 2) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                // if any of these checks fails then arrays are not equal
                    if iszero(eq(mload(mc), mload(cc))) {
                    // unsuccess:
                        success := 0
                        cb := 0
                    }
                }
            }
            default {
            // unsuccess:
                success := 0
            }
        }

        return success;
    }

    function equalStorage(
        bytes storage _preBytes,
        bytes memory _postBytes
    )
    internal
    view
    returns (bool)
    {
        bool success = true;

        assembly {
        // we know _preBytes_offset is 0
            let fslot := sload(_preBytes.slot)
        // Decode the length of the stored array like in concatStorage().
            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
            let mlength := mload(_postBytes)

        // if lengths don't match the arrays are not equal
            switch eq(slength, mlength)
            case 1 {
            // slength can contain both the length and contents of the array
            // if length < 32 bytes so let's prepare for that
            // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
                if iszero(iszero(slength)) {
                    switch lt(slength, 32)
                    case 1 {
                    // blank the last byte which is the length
                        fslot := mul(div(fslot, 0x100), 0x100)

                        if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) {
                        // unsuccess:
                            success := 0
                        }
                    }
                    default {
                    // cb is a circuit breaker in the for loop since there's
                    //  no said feature for inline assembly loops
                    // cb = 1 - don't breaker
                    // cb = 0 - break
                        let cb := 1

                    // get the keccak hash to get the contents of the array
                        mstore(0x0, _preBytes.slot)
                        let sc := keccak256(0x0, 0x20)

                        let mc := add(_postBytes, 0x20)
                        let end := add(mc, mlength)

                    // the next line is the loop condition:
                    // while(uint256(mc < end) + cb == 2)
                        for {} eq(add(lt(mc, end), cb), 2) {
                            sc := add(sc, 1)
                            mc := add(mc, 0x20)
                        } {
                            if iszero(eq(sload(sc), mload(mc))) {
                            // unsuccess:
                                success := 0
                                cb := 0
                            }
                        }
                    }
                }
            }
            default {
            // unsuccess:
                success := 0
            }
        }

        return success;
    }
}

File 8 of 27 : ExcessivelySafeCall.sol
// 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)
        }
    }
}

File 9 of 27 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

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

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

File 10 of 27 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 14 of 27 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

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

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

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

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

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

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

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

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 27 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

File 16 of 27 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _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) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

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

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        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] = _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);
    }

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

File 17 of 27 : ERC721ASpecific.sol
// SPDX-License-Identifier: MIT
// ERC721ASpecific Contracts v4.2.3
// Creator: Omni-X

pragma solidity ^0.8.4;

import './IERC721ASpecific.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721ASpecific
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs in the mint range (_startTokenId <= tokenId < _getMaxId()), will be treated in storage 
 * as ERC721A, while tokenIds in the global range but outside the mint range will be treated as OZ 721 in storage.
 * This hybrid mechanic is to allow layerZero logic to mint a specific Id on another chain if a user bridges.
 * 
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721ASpecific is IERC721ASpecific {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================
    
    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_, uint256 _startId) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startId;
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

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

    function _getMaxId() internal view virtual returns (uint256) {
        return 10000;
    }

    function _getMaxGlobalId() internal view virtual returns (uint256) {
        return 10000;
    }

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }
   

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) _revert(BalanceQueryForZeroAddress.selector);
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) _revert(URIQueryForNonexistentToken.selector);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

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

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     * This will only hold valid values for nextInitialized and burned if tokenId is within mint range (_startTokenId <= tokenId <= maxId)
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Returns whether the ownership slot at `index` is initialized.
     * An uninitialized slot does not necessarily mean that the slot has no owner.
     */
    function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) {
        return _packedOwnerships[index] != 0;
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) {
        if (_startTokenId() <= tokenId && tokenId < _currentIndex) {
            packed = _packedOwnerships[tokenId];
            // If the data at the starting slot does not exist, start the scan.
            if (packed == 0) {
                // Invariant:
                // There will always be an initialized ownership slot
                // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                // before an unintialized ownership slot
                // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                // Hence, `tokenId` will not underflow.
                //
                // We can directly compare the packed value.
                // If the address is zero, packed will be zero.
                for (;;) {
                    unchecked {
                        packed = _packedOwnerships[--tokenId];
                    }
                    if (packed == 0) continue;
                    if (packed & _BITMASK_BURNED == 0) return packed;
                    // Otherwise, the token is burned, and we must revert.
                    // This handles the case of batch burned tokens, where only the burned bit
                    // of the starting slot is set, and remaining slots are left uninitialized.
                    _revert(OwnerQueryForNonexistentToken.selector);
                }
            }
            // Otherwise, the data exists and we can skip the scan.
            // This is possible because we have already achieved the target condition.
            // This saves 2143 gas on transfers of initialized tokens.
            // If the token is not burned, return `packed`. Otherwise, revert.
            if (packed & _BITMASK_BURNED == 0) return packed;
        } else if (tokenId > 0 && tokenId <= _getMaxGlobalId()) {
            packed = _packedOwnerships[tokenId];
            if (packed != 0) return packed;
        }
        _revert(OwnerQueryForNonexistentToken.selector);
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     */
    function approve(address to, uint256 tokenId) public payable virtual override {
        _approve(to, tokenId, true);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) _revert(ApprovalQueryForNonexistentToken.selector);

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool result) {

        if (_startTokenId() <= tokenId && tokenId < _currentIndex) {
                uint256 packed;
                while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId;
                result = packed & _BITMASK_BURNED == 0;
            
        } else {
            if (tokenId > 0 && _getMaxGlobalId() >= tokenId) {
                result = _packedOwnerships[tokenId] != 0;
            }
            
        }
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================


    /**
     * @dev This function is called by and only by LayerZero ONFT721A
     * 
     * This function bypasses token approvals because of the above assumption 
     *
     * This function should act just as transferFrom (minus the approval) for tokenIds in this chains mint range
     * Otherwise this function should act just as transferFrom minus adjusting nextInitialized because Ids in this 
     * range are treated as OZ 721.
     */
    function bridgeTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal {
    
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
        from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS));
        if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector);

        if (_startTokenId() <= tokenId && tokenId <= _getMaxId()) {
            unchecked {
                // We can directly increment and decrement the balances.
                --_packedAddressData[from]; // Updates: `balance -= 1`.
                ++_packedAddressData[to]; // Updates: `balance += 1`.

                // Updates:
                // - `address` to the next owner.
                // - `startTimestamp` to the timestamp of transfering.
                // - `burned` to `false`.
                // - `nextInitialized` to `true`.
                _packedOwnerships[tokenId] = _packOwnershipData(
                    to,
                    0
                );

                // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
                if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                    uint256 nextTokenId = tokenId + 1;
                    // If the next slot's address is zero and not burned (i.e. packed value is zero).
                    if (_packedOwnerships[nextTokenId] == 0) {
                        // If the next slot is within bounds.
                        if (nextTokenId != _currentIndex) {
                            // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                            _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                        }
                    }
                }

            }

        } else {

            unchecked {
                // We can directly increment and decrement the balances.
                --_packedAddressData[from]; // Updates: `balance -= 1`.
                ++_packedAddressData[to]; // Updates: `balance += 1`.

                // Updates:
                // - `address` to the next owner.
                // - `startTimestamp` to the timestamp of transfering.
                // - `burned` to `false`.
                // - `nextInitialized` to `true`.
                _packedOwnerships[tokenId] = _packOwnershipData(
                    to,
                    0
                );

                // no need to adjust next initialized value since tokenIds not in the mint are mapped one to one with an owner (like OZ) unlike tokenIds in the mintRange

            }


        }
       
        uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;
        assembly {
            // Emit the `Transfer` event.
            log4(
                0, // Start of data (0, since no data).
                0, // End of data (0, since no data).
                _TRANSFER_EVENT_SIGNATURE, // Signature.
                from, // `from`.
                toMasked, // `to`.
                tokenId // `tokenId`.
            )
        }
        if (toMasked == 0) _revert(TransferToZeroAddress.selector);
        
    }

    
    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
        from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS));

        if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector);

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector);

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
        uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;
        assembly {
            // Emit the `Transfer` event.
            log4(
                0, // Start of data (0, since no data).
                0, // End of data (0, since no data).
                _TRANSFER_EVENT_SIGNATURE, // Signature.
                from, // `from`.
                toMasked, // `to`.
                tokenId // `tokenId`.
            )
        }
        if (toMasked == 0) _revert(TransferToZeroAddress.selector);

        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                _revert(TransferToNonERC721ReceiverImplementer.selector);
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                _revert(TransferToNonERC721ReceiverImplementer.selector);
            }
            assembly {
                revert(add(32, reason), mload(reason))
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================
    /**
     * @dev minting function only used by LZ ONFT721A contract. This 
     * function is only called in the case someone bridge to this chain
     * and the tokenId doesn't already exist and is owned by the NFT contract
     *
     *
     */
    function bridgeMint(
        address to,
        uint256 tokenId
    ) internal {
        require(tokenId > 0 && tokenId <= _getMaxGlobalId());
        require(tokenId < _startTokenId() || tokenId > _getMaxId());
        

         unchecked {
            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                0
            );
            
            // I believe these operations are unecessary since quantity is always 1
            _packedAddressData[to] += 1 * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
            uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;

            if (toMasked == 0) _revert(MintToZeroAddress.selector);

            assembly {
                    // Emit the `Transfer` event.
                    log4(
                        0, // Start of data (0, since no data).
                        0, // End of data (0, since no data).
                        _TRANSFER_EVENT_SIGNATURE, // Signature.
                        0, // `address(0)`.
                        toMasked, // `to`.
                        tokenId // `tokenId`.
                    )
            }
        }
        

    }
    

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) _revert(MintZeroQuantity.selector);

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
            uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;

            if (toMasked == 0) _revert(MintToZeroAddress.selector);

            uint256 end = startTokenId + quantity;
            uint256 tokenId = startTokenId;

            do {
                assembly {
                    // Emit the `Transfer` event.
                    log4(
                        0, // Start of data (0, since no data).
                        0, // End of data (0, since no data).
                        _TRANSFER_EVENT_SIGNATURE, // Signature.
                        0, // `address(0)`.
                        toMasked, // `to`.
                        tokenId // `tokenId`.
                    )
                }
                // The `!=` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
            } while (++tokenId != end);

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) _revert(MintToZeroAddress.selector);
        if (quantity == 0) _revert(MintZeroQuantity.selector);
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector);

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        _revert(TransferToNonERC721ReceiverImplementer.selector);
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) _revert(bytes4(0));
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                       APPROVAL OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_approve(to, tokenId, false)`.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _approve(to, tokenId, false);
    }

    /**
     * @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:
     *
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        bool approvalCheck
    ) internal virtual {
        address owner = ownerOf(tokenId);

        if (approvalCheck && _msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                _revert(ApprovalCallerNotOwnerNorApproved.selector);
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector);
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) _revert(OwnershipNotInitializedForExtraData.selector);
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }

    /**
     * @dev For more efficient reverts.
     */
    function _revert(bytes4 errorSelector) internal pure {
        assembly {
            mstore(0x00, errorSelector)
            revert(0x00, 0x04)
        }
    }
}

File 18 of 27 : AdvancedONFT721ATimed.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8;

import "../ONFT721A.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract AdvancedONFT721ATimed is ONFT721A {

    using Strings for uint;

    struct FinanceDetails {
        address payable beneficiary;
        address payable taxRecipient;
        uint16 tax; // 100% = 10000
        uint price;
    }

    struct Metadata {
        string baseURI;
        string hiddenMetadataURI;
    }

    struct NFTState {
        bool saleStarted;
        bool revealed;
        uint256 startTime; // UNIX timestampt
        uint256 mintLength; // number of seconds after start time mint is available for
    }

    uint256 public startId;
    uint256 public maxId;
    uint256 public maxGlobalId;

    FinanceDetails public _financeDetails;
    Metadata public metadata;
    NFTState public state;

    modifier onlyBenficiaryAndOwner() {
        require(msg.sender == _financeDetails.beneficiary || msg.sender == owner(), "Caller is not beneficiary or owner");
        _;
    }

    constructor(
        string memory _name,
        string memory _symbol,
        address _lzEndpoint,
        uint256 _startId,
        uint256 _maxId,
        uint256 _maxGlobalId,
        string memory _baseTokenURI,
        string memory _hiddenURI,
        uint16 _tax,
        uint _price,
        address _taxRecipient
    ) ONFT721A(_name, _symbol, 1, _lzEndpoint, _startId) {
        startId = _startId;
        maxGlobalId = _maxGlobalId;
        maxId = _maxId;
        _financeDetails = FinanceDetails(payable(msg.sender), payable(_taxRecipient), _tax, _price );
        metadata = Metadata(_baseTokenURI, _hiddenURI);
    }

    function mint(uint256 _nbTokens) external virtual payable {
        require(state.saleStarted, "Sale hasn't started");

        require(_nbTokens != 0);


        require(_nextTokenId() + _nbTokens - 1 <= maxId, "max supply reached");


        require(_nbTokens * _financeDetails.price <= msg.value, "not enough value");


        require(state.startTime + state.mintLength >= block.timestamp, "minting expired");


        _safeMint(msg.sender, _nbTokens);


    }

    function _getMaxGlobalId() internal view override returns (uint256) {
        return maxGlobalId;
    }

    function _getMaxId() internal view override returns (uint256) {
        return maxId;
    }

    function _startTokenId() internal view override returns(uint256) {
        return startId;
    }

    function setMintRange(uint32 _start, uint32 _end) external onlyOwner {
        require (_start > uint32(_totalMinted()));
        require (_end > _start);
        startId = _start;
        maxId = _end;
    }
    

    function setFinanceDetails(FinanceDetails calldata _finance) external onlyOwner {
        _financeDetails = _finance;
    }


    function setMetadata(Metadata calldata _metadata) external onlyBenficiaryAndOwner {
        metadata = _metadata;
    }

    function setNftState(NFTState calldata _state) external onlyBenficiaryAndOwner {
        state = NFTState(_state.saleStarted, _state.revealed, block.timestamp, _state.mintLength);
    }

    function withdraw() external onlyBenficiaryAndOwner {
        require(_financeDetails.beneficiary != address(0));
        require(_financeDetails.taxRecipient != address(0));
        uint balance = address(this).balance;
        uint taxFee = balance * _financeDetails.tax / 10000;
        require(payable(_financeDetails.beneficiary).send(balance - taxFee));
        require(payable(_financeDetails.taxRecipient).send(taxFee));
        require(payable(_financeDetails.beneficiary).send(address(this).balance));
    } 

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

    function tokenURI(uint256 _tokenId) public view virtual override(ERC721ASpecific, IERC721ASpecific) returns (string memory) {
        require(_exists(_tokenId));
        if (state.revealed) {
            return metadata.hiddenMetadataURI;
        } 
        return string(abi.encodePacked(_baseURI(), _tokenId.toString()));

    }

}

File 19 of 27 : IERC721ASpecific.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721ASpecific {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================



    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 20 of 27 : IONFT721A.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./IONFT721ACore.sol";
import "./IERC721ASpecific.sol";

/**
 * @dev Interface of the ONFT standard
 */
interface IONFT721A is IONFT721ACore, IERC721ASpecific {

    function supportsInterface(bytes4 interfaceId) external view override(IERC165, IERC721ASpecific) returns (bool);
}

File 21 of 27 : IONFT721ACore.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

interface IONFT721ACore is IERC165 {
 /**
     * @dev Emitted when `_tokenIds[]` are moved from the `_sender` to (`_dstChainId`, `_toAddress`)
     * `_nonce` is the outbound nonce from
     */
    event SendToChain(uint16 indexed _dstChainId, address indexed _from, bytes indexed _toAddress, uint[] _tokenIds);
    event ReceiveFromChain(uint16 indexed _srcChainId, bytes indexed _srcAddress, address indexed _toAddress, uint[] _tokenIds);
    event SetMinGasToTransferAndStore(uint256 _minGasToTransferAndStore);
    event SetDstChainIdToTransferGas(uint16 _dstChainId, uint256 _dstChainIdToTransferGas);
    event SetDstChainIdToBatchLimit(uint16 _dstChainId, uint256 _dstChainIdToBatchLimit);

    /**
     * @dev Emitted when `_payload` was received from lz, but not enough gas to deliver all tokenIds
     */
    event CreditStored(bytes32 _hashedPayload, bytes _payload);
    /**
     * @dev Emitted when `_hashedPayload` has been completely delivered
     */
    event CreditCleared(bytes32 _hashedPayload);

    /**
     * @dev send token `_tokenId` to (`_dstChainId`, `_toAddress`) from `_from`
     * `_toAddress` can be any size depending on the `dstChainId`.
     * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token)
     * `_adapterParams` is a flexible bytes array to indicate messaging adapter services
     */
    function sendFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;
    /**
     * @dev send tokens `_tokenIds[]` to (`_dstChainId`, `_toAddress`) from `_from`
     * `_toAddress` can be any size depending on the `dstChainId`.
     * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token)
     * `_adapterParams` is a flexible bytes array to indicate messaging adapter services
     */
    function sendBatchFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint[] calldata _tokenIds, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;

    /**
     * @dev estimate send token `_tokenId` to (`_dstChainId`, `_toAddress`)
     * _dstChainId - L0 defined chain id to send tokens too
     * _toAddress - dynamic bytes array which contains the address to whom you are sending tokens to on the dstChain
     * _tokenId - token Id to transfer
     * _useZro - indicates to use zro to pay L0 fees
     * _adapterParams - flexible bytes array to indicate messaging adapter services in L0
     */
    function estimateSendFee(uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee);
    /**
     * @dev estimate send token `_tokenId` to (`_dstChainId`, `_toAddress`)
     * _dstChainId - L0 defined chain id to send tokens too
     * _toAddress - dynamic bytes array which contains the address to whom you are sending tokens to on the dstChain
     * _tokenIds[] - token Ids to transfer
     * _useZro - indicates to use zro to pay L0 fees
     * _adapterParams - flexible bytes array to indicate messaging adapter services in L0
     */
    function estimateSendBatchFee(uint16 _dstChainId, bytes calldata _toAddress, uint[] calldata _tokenIds, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee);
}

File 22 of 27 : ONFT721A.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IONFT721A.sol";
import "./ONFT721ACore.sol";
import "./ERC721ASpecific.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";


contract ONFT721A is ONFT721ACore, ERC721ASpecific, IONFT721A, DefaultOperatorFilterer{
    constructor(string memory _name, string memory _symbol, uint256 _minGasToTransfer, address _lzEndpoint, uint256 _startId) ERC721ASpecific(_name, _symbol, _startId) ONFT721ACore(_minGasToTransfer, _lzEndpoint) {}

    function supportsInterface(bytes4 interfaceId) public view virtual override(ONFT721ACore, ERC721ASpecific, IONFT721A) returns (bool) {

        return interfaceId == type(IONFT721A).interfaceId || super.supportsInterface(interfaceId);
    }

    function _debitFrom(address _from, uint16, bytes memory, uint _tokenId) internal virtual override {
        bridgeTransfer(_from, address(this), _tokenId);
    }

    function _creditTo(uint16, address _toAddress, uint _tokenId) internal virtual override {
        require(!_exists(_tokenId) || (_exists(_tokenId) && ERC721ASpecific.ownerOf(_tokenId) == address(this)));
        if (!_exists(_tokenId)) {
            bridgeMint(_toAddress, _tokenId);
        } else {
            bridgeTransfer(address(this), _toAddress, _tokenId);
        }
    }

    function setApprovalForAll(address operator, bool approved) public override(ERC721ASpecific, IERC721ASpecific) onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public payable override(ERC721ASpecific, IERC721ASpecific) onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public payable override(ERC721ASpecific, IERC721ASpecific) onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public payable override(ERC721ASpecific, IERC721ASpecific) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        payable
        override(ERC721ASpecific, IERC721ASpecific)
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }
}

File 23 of 27 : ONFT721ACore.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@layerzerolabs/solidity-examples/contracts/lzApp/NonblockingLzApp.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./IONFT721ACore.sol";

 abstract contract ONFT721ACore is NonblockingLzApp, ERC165, ReentrancyGuard, IONFT721ACore {
    uint16 public constant FUNCTION_TYPE_SEND = 1;

    uint public bridgeFee;


    struct StoredCredit {
        uint16 srcChainId;
        address toAddress;
        uint256 index; // which index of the tokenIds remain
        bool creditsRemain;
    }

    uint256 public minGasToTransferAndStore; // min amount of gas required to transfer, and also store the payload
    mapping(uint16 => uint256) public dstChainIdToBatchLimit;
    mapping(uint16 => uint256) public dstChainIdToTransferGas; // per transfer amount of gas required to mint/transfer on the dst
    mapping(bytes32 => StoredCredit) public storedCredits;

    constructor(uint256 _minGasToTransferAndStore, address _lzEndpoint) NonblockingLzApp(_lzEndpoint) {
        require(_minGasToTransferAndStore > 0, "minGasToTransferAndStore must be > 0");
        minGasToTransferAndStore = _minGasToTransferAndStore;
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IONFT721ACore).interfaceId || super.supportsInterface(interfaceId);
    }
    
    function estimateSendFee(uint16 _dstChainId, bytes memory _toAddress, uint _tokenId, bool _useZro, bytes memory _adapterParams) public view virtual override returns (uint nativeFee, uint zroFee) {
        return estimateSendBatchFee(_dstChainId, _toAddress, _toSingletonArray(_tokenId), _useZro, _adapterParams);
    }

    function estimateSendBatchFee(uint16 _dstChainId, bytes memory _toAddress, uint[] memory _tokenIds, bool _useZro, bytes memory _adapterParams) public view virtual override returns (uint nativeFee, uint zroFee) {
        bytes memory payload = abi.encode(_toAddress, _tokenIds);
        return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _adapterParams);
    }

    function sendFrom(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) public payable virtual override {
        _send(_from, _dstChainId, _toAddress, _toSingletonArray(_tokenId), _refundAddress, _zroPaymentAddress, _adapterParams);
    }

    function sendBatchFrom(address _from, uint16 _dstChainId, bytes memory _toAddress, uint[] memory _tokenIds, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) public payable virtual override {
        _send(_from, _dstChainId, _toAddress, _tokenIds, _refundAddress, _zroPaymentAddress, _adapterParams);
    }


    function _send(address _from, uint16 _dstChainId, bytes memory _toAddress, uint[] memory _tokenIds, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) internal virtual {
        // allow 1 by default
        require(_tokenIds.length > 0, "tokenIds[] is empty");
        require(_tokenIds.length == 1 || _tokenIds.length <= dstChainIdToBatchLimit[_dstChainId], "batch size exceeds dst batch limit");
        

        uint length = _tokenIds.length;
        for (uint i; i < length;) {
            _debitFrom(_from, _dstChainId, _toAddress, _tokenIds[i]);
            unchecked {
                i++;
            }
        }

        bytes memory payload = abi.encode(_toAddress, _tokenIds);

        _checkGasLimit(_dstChainId, FUNCTION_TYPE_SEND, _adapterParams, dstChainIdToTransferGas[_dstChainId] * _tokenIds.length);
        _lzSend(_dstChainId, payload, _refundAddress, _zroPaymentAddress, _adapterParams, msg.value - bridgeFee);
        emit SendToChain(_dstChainId, _from, _toAddress, _tokenIds);
    }

    function setBridgeFee(uint _bridgeFee) external onlyOwner {
        bridgeFee = _bridgeFee;
    } 

    function _nonblockingLzReceive(
        uint16 _srcChainId,
        bytes memory _srcAddress,
        uint64, /*_nonce*/
        bytes memory _payload
    ) internal virtual override {
        // decode and load the toAddress
        (bytes memory toAddressBytes, uint[] memory tokenIds) = abi.decode(_payload, (bytes, uint[]));

        address toAddress;
        assembly {
            toAddress := mload(add(toAddressBytes, 20))
        }

        uint nextIndex = _creditTill(_srcChainId, toAddress, 0, tokenIds);
        if (nextIndex < tokenIds.length) {
            // not enough gas to complete transfers, store to be cleared in another tx
            bytes32 hashedPayload = keccak256(_payload);
            storedCredits[hashedPayload] = StoredCredit(_srcChainId, toAddress, nextIndex, true);
            emit CreditStored(hashedPayload, _payload);
        }

        emit ReceiveFromChain(_srcChainId, _srcAddress, toAddress, tokenIds);
    }

    // Public function for anyone to clear and deliver the remaining batch sent tokenIds
    function clearCredits(bytes memory _payload) external virtual nonReentrant {
        bytes32 hashedPayload = keccak256(_payload);
        require(storedCredits[hashedPayload].creditsRemain, "no credits stored");

        (, uint[] memory tokenIds) = abi.decode(_payload, (bytes, uint[]));

        uint nextIndex = _creditTill(storedCredits[hashedPayload].srcChainId, storedCredits[hashedPayload].toAddress, storedCredits[hashedPayload].index, tokenIds);
        require(nextIndex > storedCredits[hashedPayload].index, "not enough gas to process credit transfer");

        if (nextIndex == tokenIds.length) {
            // cleared the credits, delete the element
            delete storedCredits[hashedPayload];
            emit CreditCleared(hashedPayload);
        } else {
            // store the next index to mint
            storedCredits[hashedPayload] = StoredCredit(storedCredits[hashedPayload].srcChainId, storedCredits[hashedPayload].toAddress, nextIndex, true);
        }
    }

    // When a srcChain has the ability to transfer more chainIds in a single tx than the dst can do.
    // Needs the ability to iterate and stop if the minGasToTransferAndStore is not met
    function _creditTill(uint16 _srcChainId, address _toAddress, uint _startIndex, uint[] memory _tokenIds) internal returns (uint256){
        uint i = _startIndex;
        while (i < _tokenIds.length) {
            // if not enough gas to process, store this index for next loop
            if (gasleft() < minGasToTransferAndStore) break;

            _creditTo(_srcChainId, _toAddress, _tokenIds[i]);
            i++;
        }

        // indicates the next index to send of tokenIds,
        // if i == tokenIds.length, we are finished
        return i;
    }

    function setMinGasToTransferAndStore(uint256 _minGasToTransferAndStore) external onlyOwner {
        require(_minGasToTransferAndStore > 0, "minGasToTransferAndStore must be > 0");
        minGasToTransferAndStore = _minGasToTransferAndStore;
        emit SetMinGasToTransferAndStore(_minGasToTransferAndStore);
    }

    // ensures enough gas in adapter params to handle batch transfer gas amounts on the dst
    function setDstChainIdToTransferGas(uint16 _dstChainId, uint256 _dstChainIdToTransferGas) external onlyOwner {
        require(_dstChainIdToTransferGas > 0, "dstChainIdToTransferGas must be > 0");
        dstChainIdToTransferGas[_dstChainId] = _dstChainIdToTransferGas;
        emit SetDstChainIdToTransferGas(_dstChainId, _dstChainIdToTransferGas);
    }

    // limit on src the amount of tokens to batch send
    function setDstChainIdToBatchLimit(uint16 _dstChainId, uint256 _dstChainIdToBatchLimit) external onlyOwner {
        require(_dstChainIdToBatchLimit > 0, "dstChainIdToBatchLimit must be > 0");
        dstChainIdToBatchLimit[_dstChainId] = _dstChainIdToBatchLimit;
        emit SetDstChainIdToBatchLimit(_dstChainId, _dstChainIdToBatchLimit);
    }

    function _debitFrom(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _tokenId) internal virtual;

    function _creditTo(uint16 _srcChainId, address _toAddress, uint _tokenId) internal virtual;

    function _toSingletonArray(uint element) internal pure returns (uint[] memory) {
        uint[] memory array = new uint[](1);
        array[0] = element;
        return array;
    }
 }

File 24 of 27 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 25 of 27 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

File 26 of 27 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 27 of 27 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_lzEndpoint","type":"address"},{"internalType":"uint256","name":"_startId","type":"uint256"},{"internalType":"uint256","name":"_maxId","type":"uint256"},{"internalType":"uint256","name":"_maxGlobalId","type":"uint256"},{"internalType":"string","name":"_baseTokenURI","type":"string"},{"internalType":"string","name":"_hiddenURI","type":"string"},{"internalType":"uint16","name":"_tax","type":"uint16"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"address","name":"_taxRecipient","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"_hashedPayload","type":"bytes32"}],"name":"CreditCleared","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"_hashedPayload","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"CreditStored","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":true,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":true,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":true,"internalType":"address","name":"_toAddress","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"ReceiveFromChain","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":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"bytes","name":"_toAddress","type":"bytes"},{"indexed":false,"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"SendToChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"_dstChainIdToBatchLimit","type":"uint256"}],"name":"SetDstChainIdToBatchLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"_dstChainIdToTransferGas","type":"uint256"}],"name":"SetDstChainIdToTransferGas","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"_type","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"_minDstGas","type":"uint256"}],"name":"SetMinDstGas","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_minGasToTransferAndStore","type":"uint256"}],"name":"SetMinGasToTransferAndStore","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"precrime","type":"address"}],"name":"SetPrecrime","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_path","type":"bytes"}],"name":"SetTrustedRemote","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_remoteAddress","type":"bytes"}],"name":"SetTrustedRemoteAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_PAYLOAD_SIZE_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FUNCTION_TYPE_SEND","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_financeDetails","outputs":[{"internalType":"address payable","name":"beneficiary","type":"address"},{"internalType":"address payable","name":"taxRecipient","type":"address"},{"internalType":"uint16","name":"tax","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bridgeFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"clearCredits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"dstChainIdToBatchLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"dstChainIdToTransferGas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"bool","name":"_useZro","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateSendBatchFee","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_useZro","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateSendFee","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":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"forceResumeReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"_configType","type":"uint256"}],"name":"getConfig","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_remoteChainId","type":"uint16"}],"name":"getTrustedRemoteAddress","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"isTrustedRemote","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lzEndpoint","outputs":[{"internalType":"contract ILayerZeroEndpoint","name":"","type":"address"}],"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":"maxGlobalId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPerMint","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadata","outputs":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"hiddenMetadataURI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint16","name":"","type":"uint16"}],"name":"minDstGasLookup","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minGasToTransferAndStore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nbTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","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":"uint16","name":"","type":"uint16"}],"name":"payloadSizeLimitLookup","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"precrime","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"payable","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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"sendBatchFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"sendFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bridgeFee","type":"uint256"}],"name":"setBridgeFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"_configType","type":"uint256"},{"internalType":"bytes","name":"_config","type":"bytes"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint256","name":"_dstChainIdToBatchLimit","type":"uint256"}],"name":"setDstChainIdToBatchLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint256","name":"_dstChainIdToTransferGas","type":"uint256"}],"name":"setDstChainIdToTransferGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address payable","name":"beneficiary","type":"address"},{"internalType":"address payable","name":"taxRecipient","type":"address"},{"internalType":"uint16","name":"tax","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct AdvancedONFT721ATimed.FinanceDetails","name":"_finance","type":"tuple"}],"name":"setFinanceDetails","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_maxTokensPerMint","type":"uint64"}],"name":"setMaxTokensPerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"hiddenMetadataURI","type":"string"}],"internalType":"struct AdvancedONFT721ATimed.Metadata","name":"_metadata","type":"tuple"}],"name":"setMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint16","name":"_packetType","type":"uint16"},{"internalType":"uint256","name":"_minGas","type":"uint256"}],"name":"setMinDstGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minGasToTransferAndStore","type":"uint256"}],"name":"setMinGasToTransferAndStore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_start","type":"uint32"},{"internalType":"uint32","name":"_end","type":"uint32"}],"name":"setMintRange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"saleStarted","type":"bool"},{"internalType":"bool","name":"revealed","type":"bool"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"mintLength","type":"uint256"}],"internalType":"struct AdvancedONFT721ATimed.NFTState","name":"_state","type":"tuple"}],"name":"setNftState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint256","name":"_size","type":"uint256"}],"name":"setPayloadSizeLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_precrime","type":"address"}],"name":"setPrecrime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setReceiveVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setSendVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_path","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"internalType":"bytes","name":"_remoteAddress","type":"bytes"}],"name":"setTrustedRemoteAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"state","outputs":[{"internalType":"bool","name":"saleStarted","type":"bool"},{"internalType":"bool","name":"revealed","type":"bool"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"mintLength","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"storedCredits","outputs":[{"internalType":"uint16","name":"srcChainId","type":"uint16"},{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bool","name":"creditsRemain","type":"bool"}],"stateMutability":"view","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":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a080604052346200094b576000620059ce803803809162000022828662000950565b843982019161016081840312620009475780516001600160401b0381116200094357836200005291830162000974565b60208201519091906001600160401b0381116200093f57846200007791830162000974565b916200008660408301620009eb565b6060830151608084015160a085015160c0860151919290916001600160401b0381116200093b5789620000bb91880162000974565b60e08701519099906001600160401b038111620009375790620000e091880162000974565b966101008701519561ffff871687036200093757620001096101406101208a01519901620009eb565b8a54336001600160a01b0319821681178d55919791906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08d80a36001600160a01b0316608052600160068190556008558051906001600160401b0382116200092357600e54600181811c9116801562000918575b602082101462000904579081601f849311620008a1575b50602090601f83116001146200082a578c926200081e575b50508160011b916000199060031b1c191617600e555b8051906001600160401b0382116200080a57600f54600181811c91168015620007ff575b6020821014620007eb579081601f8493116200078b575b50602090601f83116001146200070f578b9262000703575b50508160011b916000199060031b1c191617600f555b80600c556daaeb6d7670e522a718067333cd4e3b62000655575b6014556016556015556040516001600160a01b039190911690608081016001600160401b038111828210176200063f57849160609160405233815283602082015261ffff8516604082015201523360018060a01b031960175416176017556018549161ffff60a01b9060a01b169160018060b01b0319161717601855601955604051604081019080821060018060401b038311176200063f5760409190915283815260200190815282516001600160401b0381116200062b57601a54600181811c9116801562000620575b60208210146200060c57601f8111620005b5575b506020601f8211600114620005405783948293949262000534575b50508160011b916000199060031b1c191617601a555b51805190916001600160401b0382116200052057601b54600181811c9116801562000515575b60208210146200050157601f8111620004aa575b50602090601f831160011462000437579192836200042b575b50508160011b916000199060031b1c191617601b555b601f80546001600160401b0319166014179055604051614f4d908162000a01823960805181818161062101528181610a9101528181610d46015281816117fc015281816126d401528181612a9c0152818161320f01528181613d4301526140940152f35b015190503880620003b1565b601b8152601f198316936000805160206200596e83398151915292915b858110620004915750836001951062000477575b505050811b01601b55620003c7565b015160001960f88460031b161c1916905538808062000468565b9192602060018192868501518155019401920162000454565b601b82526000805160206200596e833981519152601f840160051c81019160208510620004f6575b601f0160051c01905b818110620004ea575062000398565b828155600101620004db565b9091508190620004d2565b634e487b7160e01b82526022600452602482fd5b90607f169062000384565b634e487b7160e01b81526041600452602490fd5b01519050388062000348565b601a84526000805160206200598e83398151915290601f198316855b8181106200059c5750958360019596971062000582575b505050811b01601a556200035e565b015160001960f88460031b161c1916905538808062000573565b9192602060018192868b0151815501940192016200055c565b601a84526000805160206200598e833981519152601f830160051c8101916020841062000601575b601f0160051c01905b818110620005f557506200032d565b848155600101620005e6565b9091508190620005dd565b634e487b7160e01b84526022600452602484fd5b90607f169062000319565b634e487b7160e01b83526041600452602483fd5b634e487b7160e01b600052604160045260246000fd5b6daaeb6d7670e522a718067333cd4e3b15620006ff57604051633e9f1edf60e11b8152306004820152733cc6cdda760b79bafa08df41ecfa224f810dceb660248201528881604481836daaeb6d7670e522a718067333cd4e5af18015620006f457620006c3575b506200024e565b9097906001600160401b038111620006e0576040529638620006bc565b634e487b7160e01b82526041600452602482fd5b6040513d8b823e3d90fd5b8780fd5b0151905038806200021e565b600f8c528b9350600080516020620059ae83398151915291905b601f19841685106200076f576001945083601f1981161062000755575b505050811b01600f5562000234565b015160001960f88460031b161c1916905538808062000746565b8181015183556020948501946001909301929091019062000729565b600f8c52909150600080516020620059ae833981519152601f840160051c810160208510620007e3575b90849392915b8d601f840160051c83018210620007d55750505062000206565b8155859450600101620007bb565b5080620007b5565b634e487b7160e01b8b52602260045260248bfd5b90607f1690620001ef565b634e487b7160e01b8a52604160045260248afd5b015190503880620001b5565b600e8d526000805160206200594e8339815191529250601f1984168d5b8181106200088857509084600195949392106200086e575b505050811b01600e55620001cb565b015160001960f88460031b161c191690553880806200085f565b9293602060018192878601518155019501930162000847565b600e8d529091506000805160206200594e8339815191526005601f8501811c820160208610620008fc575b8594939291908f5b601f8501831c84018210620008ed57505050506200019d565b81558695506001018f620008d4565b5081620008cc565b634e487b7160e01b8c52602260045260248cfd5b90607f169062000186565b634e487b7160e01b8b52604160045260248bfd5b8980fd5b8880fd5b8380fd5b8280fd5b5080fd5b600080fd5b601f909101601f19168101906001600160401b038211908210176200063f57604052565b919080601f840112156200094b578251906001600160401b0382116200063f5760405191602091620009b0601f8301601f191684018562000950565b8184528282870101116200094b5760005b818110620009d757508260009394955001015290565b8581018301518482018401528201620009c1565b51906001600160a01b03821682036200094b5756fe60806040526004361015610013575b600080fd5b60003560e01c80621d35671461056257806301ffc9a71461055957806306a8e4d91461055057806306fdde031461054757806307e0db171461053e578063081812fc14610535578063095ea7b31461052c5780630b4cad4c146105235780630df374831461051a57806310ddb1371461051157806315d627901461050857806317465471146104ff57806322a3ecf9146104f657806323b872dd146104ed57806329d7e69b146104e45780632a205e3d146104db578063392f37e9146104d25780633ccfd60b146104c95780633d8b38f6146104c05780633f1f4fa4146104b757806341f43434146104ae57806342842e0e146104a557806342d65a8d1461049c57806348288190146104935780634ac3f4ff1461048a57806351905636146104815780635b8c41e6146104785780636352211e1461046f57806366ad5c8a146104665780636ecf80981461045d57806370a0823114610454578063715018a61461044b5780637533d78814610442578063796b0c5c1461043957806382b12dd7146104305780638cfd8f5c146104275780638da5cb5b1461041e5780638ffa1f2a14610415578063950c8a741461040c57806395d89b4114610403578063998cdf83146103fa5780639ea5d6b1146103f15780639f38369a146103e8578063a0712d68146103df578063a22cb465146103d6578063a6c3d165146103cd578063ab3ffb93146103c4578063af3fb21c146103bb578063b353aaa7146103b2578063b88d4fde146103a9578063baf3292d146103a0578063c19d93fb14610397578063c44618341461038e578063c5ea3c6514610385578063c7d8505a1461037c578063c87b56dd14610373578063c8a1df861461036a578063cbed8b9c14610361578063d12473a514610358578063d1deba1f1461034f578063d6603ea614610346578063df2a5b3b1461033d578063e985e9c514610334578063eb8d72b71461032b578063f235364114610322578063f2fde38b14610319578063f5ecbdbc146103105763fa25f9b61461030857600080fd5b61000e613284565b5061000e6131a1565b5061000e6130eb565b5061000e613066565b5061000e612f2e565b5061000e612ed5565b5061000e612de7565b5061000e612d30565b5061000e612c07565b5061000e612b42565b5061000e612a47565b5061000e6129e9565b5061000e6129c9565b5061000e6129aa565b5061000e61298b565b5061000e61296d565b5061000e61292b565b5061000e6128ba565b5061000e612703565b5061000e6126bd565b5061000e6126a0565b5061000e612606565b5061000e612411565b5061000e612375565b5061000e6122a0565b5061000e6121fc565b5061000e612133565b5061000e612111565b5061000e61206c565b5061000e612042565b5061000e611e61565b5061000e611e37565b5061000e611ddb565b5061000e611dbc565b5061000e611d61565b5061000e611d09565b5061000e611ca4565b5061000e611c46565b5061000e611ba7565b5061000e611a3a565b5061000e611a0a565b5061000e611987565b5061000e6118bc565b5061000e611882565b5061000e611863565b5061000e6117e1565b5061000e611634565b5061000e61160a565b5061000e6115d0565b5061000e61157a565b5061000e611448565b5061000e611350565b5061000e61116f565b5061000e611010565b5061000e610ec4565b5061000e610e39565b5061000e610def565b5061000e610da7565b5061000e610d1c565b5061000e610cdc565b5061000e610c37565b5061000e610b75565b5061000e610b10565b5061000e610a67565b5061000e610986565b5061000e6107b2565b5061000e610732565b5061000e610609565b61ffff81160361000e57565b9181601f8401121561000e578235916001600160401b03831161000e576020838186019501011161000e57565b90608060031983011261000e576004356105bd8161056b565b916001600160401b039060243582811161000e57816105de91600401610577565b93909392604435818116810361000e579260643591821161000e5761060591600401610577565b9091565b503461000e57610618366105a4565b929493919291907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633036106db5761069e6106a6926106ac9761069761067d6106788a61ffff166000526001602052604060002090565b611cee565b80519081841491826106d1575b50816106ae575b506132be565b3691611113565b923691611113565b926134e3565b005b90506106bb368486611113565b6020815191012090602081519101201438610691565b151591503861068a565b60405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c657200006044820152606490fd5b6001600160e01b031981160361000e57565b503461000e57602036600319011261000e57602060043561075281610720565b63ffffffff60e01b166301ffc9a760e01b8114908115908161077b575b50506040519015158152f35b906107a1575b8115610790575b50388061076f565b635b5e139f60e01b14905038610788565b6380ac58cd60e01b81149150610781565b503461000e576003196020368201811361000e57600435906001600160401b039081831161000e5760408360040194843603011261000e5760175461080c90336001600160a01b0391821614908115610911575b506148cb565b6108168480614922565b928311610904575b6108328361082d601a546111fb565b6133e0565b600091601f8411600114610885575092826106ac95936024936108749660009261087a575b50508160011b916000199060031b1c191617601a555b0190614922565b90614954565b013590503880610857565b601a60005291601f198416600080516020614e788339815191529382905b8282106108ec575050936024936108749693600193836106ac9a98106108d2575b505050811b01601a5561086d565b0135600019600384901b60f8161c191690553880806108c4565b806001859782949688013581550196019301906108a3565b61090c61102f565b61081e565b905060005416331438610806565b600091031261000e57565b60005b83811061093d5750506000910152565b818101518382015260200161092d565b906020916109668151809281855285808601910161092a565b601f01601f1916010190565b90602061098392818152019061094d565b90565b503461000e57600080600319360112610a645760405181600e546109a9816111fb565b80845290600190818116908115610a3c57506001146109e3575b6109df846109d3818803826110b7565b60405191829182610972565b0390f35b600e8352602094507fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd5b828410610a2957505050816109df936109d392820101936109c3565b8054858501870152928501928101610a0d565b6109df96506109d39450602092508593915060ff191682840152151560051b820101936109c3565b80fd5b503461000e5760006020366003190112610a6457600435610a878161056b565b610a8f61382d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316908290823b15610b0c57602461ffff918360405195869485936307e0db1760e01b85521660048401525af18015610aff575b610af3575080f35b610afc90611046565b80f35b610b07613380565b610aeb565b5080fd5b503461000e57602036600319011261000e57600435610b2e816139b2565b15610b53576000526012602052602060018060a01b0360406000205416604051908152f35b6333d1c03960e21b60005260046000fd5b6001600160a01b0381160361000e57565b50604036600319011261000e57600435610b8e81610b64565b602435610b9a82614d78565b6001600160a01b0380610bac836138d0565b1690813303610c07575b600083815260126020526040812080546001600160a01b0319166001600160a01b0387161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b81600052601360205260ff610c203360406000206138b9565b5416610bb6576367d9dca160e11b60005260046000fd5b503461000e57602036600319011261000e57600435610c5461382d565b8015610c8b576020817ffebbc4f8bb9ec2313950c718d43123124b15778efda4c1f1d529de2995b4f34d92600855604051908152a1005b60405162461bcd60e51b8152602060048201526024808201527f6d696e476173546f5472616e73666572416e6453746f7265206d7573742062656044820152630203e20360e41b6064820152608490fd5b503461000e57604036600319011261000e5761ffff600435610cfd8161056b565b610d0561382d565b166000526003602052602435604060002055600080f35b503461000e5760006020366003190112610a6457600435610d3c8161056b565b610d4461382d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316908290823b15610b0c57602461ffff918360405195869485936310ddb13760e01b85521660048401525af18015610aff57610af3575080f35b503461000e57600036600319011261000e57608060018060a01b0380601754169061ffff601854601954926040519485528116602085015260a01c1660408301526060820152f35b503461000e57600036600319011261000e57601f546040516001600160401b039091168152602090f35b6000526010602052604060002090565b600052600b602052604060002090565b503461000e57602036600319011261000e57600435600052600b6020526080604060002080549060ff6002600183015492015416906040519261ffff8116845260018060a01b039060101c166020840152604083015215156060820152f35b606090600319011261000e57600435610eb081610b64565b90602435610ebd81610b64565b9060443590565b50610ece36610e98565b6001600160a01b0392831692909190338403611002575b610eee836138d0565b918482841603610ff5575b610f0284613acf565b610f14610f10338984613ab7565b1590565b610fc4575b610fba575b50610f288561389f565b8054600019019055610f398161389f565b8054600101905516928391600160e11b4260a01b84178117610f5a86610e19565b55811615610f86575b50600080516020614eb8833981519152600080a415610f7e57005b6106ac613a53565b60018401610f9381610e19565b5415610fa0575b50610f63565b600c548114610f9a57610fb290610e19565b553880610f9a565b6000905538610f1e565b610fe3610f10610fdc33610fd78b613885565b6138b9565b5460ff1690565b15610f1957610ff0613a41565b610f19565b610ffd613a30565b610ef9565b61100b33614d78565b610ee5565b503461000e57600036600319011261000e576020601454604051908152f35b50634e487b7160e01b600052604160045260246000fd5b6001600160401b03811161105957604052565b61106161102f565b604052565b608081019081106001600160401b0382111761105957604052565b602081019081106001600160401b0382111761105957604052565b60c081019081106001600160401b0382111761105957604052565b601f909101601f19168101906001600160401b0382119082101761105957604052565b604051906110e782611066565b565b6020906001600160401b038111611106575b601f01601f19160190565b61110e61102f565b6110fb565b92919261111f826110e9565b9161112d60405193846110b7565b82948184528183011161000e578281602093846000960137010152565b9080601f8301121561000e5781602061098393359101611113565b8015150361000e57565b503461000e5760a036600319011261000e5760043561118d8161056b565b6001600160401b039060243582811161000e576111ae90369060040161114a565b90606435906111bc82611165565b60843593841161000e576111d76111e994369060040161114a565b926111e3604435614888565b91613cc5565b60408051928352602083019190915290f35b90600182811c9216801561122b575b602083101461121557565b634e487b7160e01b600052602260045260246000fd5b91607f169161120a565b601b5460009291611245826111fb565b90818152600192838116908160001461129f575060011461126557505050565b90929350601b6000526020928360002092846000945b83861061128b5750505050010190565b80548587018301529401938590820161127b565b91935050602093945060ff191683830152151560051b010190565b90600092918054916112cb836111fb565b91828252600193848116908160001461132d57506001146112ed575b50505050565b90919394506000526020928360002092846000945b8386106113195750505050010190388080806112e7565b805485870183015294019385908201611302565b9294505050602093945060ff191683830152151560051b010190388080806112e7565b503461000e57600080600319360112610a645760405181601a54611373816111fb565b8084529060019081811690811561142057506001146113d9575b6113cb8461139d818803826110b7565b6109df6040516113b7816113b081611235565b03826110b7565b60405193849360408552604085019061094d565b90838203602085015261094d565b601a835260209450600080516020614e788339815191525b82841061140d57505050816113cb9361139d928201019361138d565b80548585018701529285019281016113f1565b6113cb965061139d9450602092508593915060ff191682840152151560051b8201019361138d565b503461000e57600080600319360112610a64576115038180808060018060a01b036114d98280808085601754168033148015611536575b611488906148cb565b6114938115156147d8565b6114a360185497881615156147d8565b6114ca6114c36114bb61ffff479a60a01c168a613e7e565b612710900490565b80986134d6565b9082821561152d575bf16147d8565b6018546114f6906001600160a01b03165b6001600160a01b031690565b82821561152d57f16147d8565b610afc8180808061151e6114ea60175460018060a01b031690565b479082821561152d57f16147d8565b506108fc6114d3565b5081548716331461147f565b90604060031983011261000e5760043561155b8161056b565b91602435906001600160401b03821161000e5761060591600401610577565b503461000e57602061ffff6115c161159136611542565b93909116600052600184526113b06115b36040600020604051928380926112ba565b848151910120923691611113565b82815191012014604051908152f35b503461000e57602036600319011261000e5761ffff6004356115f18161056b565b1660005260036020526020604060002054604051908152f35b503461000e57600036600319011261000e5760206040516daaeb6d7670e522a718067333cd4e8152f35b5061163e36610e98565b6001600160a01b0383811633811415949290856117d3575b816040519361166485611081565b600097808987526117c5575b6117b7575b61167e826138d0565b9083818316036117aa575b8861169384613acf565b6116a1610f10338984613ab7565b611785575b61177d575b50506116b68461389f565b80546000190190556116c78861389f565b805460010190558716928391600160e11b4260a01b841781176116e986610e19565b55811615611749575b50600080516020614eb88339815191528980a41561173c575b833b611715578480f35b61172293610f1093613c2d565b61172f575b388080808480f35b611737613a65565b611727565b611744613a53565b61170b565b6001840161175681610e19565b5415611763575b506116f2565b600c54811461175d5761177590610e19565b55388061175d565b5588386116ab565b611798610f10610fdc33610fd78b613885565b156116a6576117a5613a41565b6116a6565b6117b2613a30565b611689565b6117c033614d78565b611675565b6117ce33614d78565b611670565b6117dc33614d78565b611656565b503461000e576117f036611542565b91906117fa61382d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691823b1561000e57604051928380926342d65a8d60e01b82528161185160009889978894600485016133ae565b03925af18015610aff57610af3575080f35b503461000e57600036600319011261000e576020600854604051908152f35b503461000e57602036600319011261000e5761ffff6004356118a38161056b565b1660005260096020526020604060002054604051908152f35b5060e036600319011261000e576004356118d581610b64565b6024356118e18161056b565b6001600160401b039160443583811161000e5761190290369060040161114a565b906084359061191082610b64565b60a4359261191d84610b64565b60c43595861161000e576119386106ac96369060040161114a565b94611944606435614888565b92613ec2565b60209061196492826040519483868095519384920161092a565b82019081520301902090565b9060018060401b0316600052602052604060002090565b503461000e57606036600319011261000e576004356119a58161056b565b6001600160401b0360243581811161000e576119c590369060040161114a565b90604435908116810361000e576119f46119f99261ffff6109df9516600052600560205260406000209061194a565b611970565b546040519081529081906020820190565b503461000e57602036600319011261000e5760206001600160a01b03611a316004356138d0565b16604051908152f35b503461000e57611a49366105a4565b939150303303611b4257611ab6611a8261ffff92611a7a600080516020614e58833981519152956014973691611113565b963691611113565b948551611a976020808901928901018261443f565b96015196611aa587896146a8565b87518110611ad6575b505050613e91565b93611ad160405192839260018060a01b031697169482613eb1565b0390a4005b611b28600080516020614ed8833981519152938351902091611af66110da565b61ffff8d168152906001600160a01b038c1660208301525b604082015260016060820152611b2383610e29565b6144d5565b611b3760405192839283614532565b0390a1388080611aae565b60405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608490fd5b608090600319011261000e57600490565b503461000e57608036600319011261000e576060611bc436611b96565b601754611be590336001600160a01b039182161490811561091157506148cb565b8035611bf081611165565b611c21602083013591611c0283611165565b611c0d604051611066565b151560ff8019601c54169115151617601c55565b61ff00601c5491151560081b169061ff00191617601c5542601d550135601e55600080f35b503461000e57602036600319011261000e57600435611c6481610b64565b6001600160a01b03168015611c93576000526011602052602060018060401b0360406000205416604051908152f35b6323d3ad8160e21b60005260046000fd5b503461000e57600080600319360112610a6457611cbf61382d565b80546001600160a01b03198116825581906001600160a01b0316600080516020614e988339815191528280a380f35b906110e7611d0292604051938480926112ba565b03836110b7565b503461000e57602036600319011261000e5761ffff600435611d2a8161056b565b1660005260016020526109df6113b0611d4d6040600020604051928380926112ba565b60405191829160208352602083019061094d565b503461000e57604036600319011261000e5760043563ffffffff9081811680910361000e576024359180831680930361000e57611d9c61382d565b600c5460145490031681111561000e578082111561000e57601455601555005b503461000e57600036600319011261000e576020600754604051908152f35b503461000e57604036600319011261000e576020611e2e600435611dfe8161056b565b61ffff60243591611e0e8361056b565b166000526002835260406000209061ffff16600052602052604060002090565b54604051908152f35b503461000e57600036600319011261000e576000546040516001600160a01b039091168152602090f35b503461000e57602036600319011261000e576004356001600160401b03811161000e57611e9290369060040161114a565b600260065414611ffd576002600655611ed78151602080840191822093611ecd611ec86002611ec088610e29565b015460ff1690565b6145ee565b805101019061443f565b9050611ee282610e29565b50611f1681611f03611ef385610e29565b5460101c6001600160a01b031690565b6001611f0e86610e29565b015490614746565b90611f2e6001611f2585610e29565b0154831161462e565b518103611f975750611f8981611f79611f677fd7be02b8dd0d27bd0517a9cb4d7469ce27df4313821ae5ec1ff69acc594ba23394610e29565b60026000918281558260018201550155565b6040519081529081906020820190565b0390a15b6106ac6001600655565b611b2382611fb2611faa611ff895610e29565b5461ffff1690565b92611fe7611fc2611ef384610e29565b611fd7611fcd6110da565b61ffff9097168752565b6001600160a01b03166020860152565b604084015260016060840152610e29565b611f8d565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b503461000e57600036600319011261000e576004546040516001600160a01b039091168152602090f35b503461000e57600080600319360112610a645760405181600f5461208f816111fb565b80845290600190818116908115610a3c57506001146120b8576109df846109d3818803826110b7565b600f8352602094507f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8025b8284106120fe57505050816109df936109d392820101936109c3565b80548585018701529285019281016120e2565b503461000e57602036600319011261000e5761212b61382d565b600435600755005b503461000e57604036600319011261000e576004356121518161056b565b60243561215c61382d565b80156121ac578161ffff7f7315f7654d594ead24a30160ed9ba2d23247f543016b918343591e93d7afdb6d93166000526009602052816040600020556121a760405192839283614872565b0390a1005b60405162461bcd60e51b815260206004820152602260248201527f647374436861696e4964546f42617463684c696d6974206d757374206265203e604482015261020360f41b6064820152608490fd5b503461000e57602036600319011261000e5761ffff60043561221d8161056b565b1660005260016020526113b061223d6040600020604051928380926112ba565b80511561225b576109d3816122556109df93516134b0565b906137ad565b60405162461bcd60e51b815260206004820152601d60248201527f4c7a4170703a206e6f20747275737465642070617468207265636f72640000006044820152606490fd5b50602036600319011261000e5760043560ff601c54161561233a57806122ca6106ac9215156147d8565b6122eb6122e16122dc83600c54613723565b6134c7565b6015541015614b11565b6123026122fa60195483613e7e565b341015614b52565b61231c612314601d54601e5490613723565b421115614b91565b601f54612334906001600160401b0316821115614bcf565b33614c18565b60405162461bcd60e51b815260206004820152601360248201527214d85b19481a185cdb89dd081cdd185c9d1959606a1b6044820152606490fd5b503461000e57604036600319011261000e5760043561239381610b64565b602435906123a082611165565b6123a981614d78565b3360005260136020526123d5826123c48360406000206138b9565b9060ff801983541691151516179055565b60405191151582526001600160a01b03169033907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b503461000e5761242036611542565b9061242961382d565b604051926020928083858701376124556034868381013060601b888201520360148101885201866110b7565b61ffff8216600090815260018086526040822087519296909291906001600160401b038311612575575b6124938361248d86546111fb565b8661345f565b80601f84116001146124f15750918080926124e09695948a9b600080516020614e388339815191529b946124e6575b50501b916000199060031b1c19161790555b604051938493846133ae565b0390a180f35b0151925038806124c2565b91939498601f19841661250987600052602060002090565b938a905b82821061255e57505091600080516020614e38833981519152999a959391856124e098969410612545575b505050811b0190556124d4565b015160001960f88460031b161c19169055388080612538565b80888697829497870151815501960194019061250d565b61257d61102f565b61247f565b6020906001600160401b03811161259b575b60051b0190565b6125a361102f565b612594565b81601f8201121561000e578035916125bf83612582565b926125cd60405194856110b7565b808452602092838086019260051b82010192831161000e578301905b8282106125f7575050505090565b813581529083019083016125e9565b5060e036600319011261000e5760043561261f81610b64565b6024359061262c8261056b565b6001600160401b039160443583811161000e5761264d90369060040161114a565b60643584811161000e576126659036906004016125a8565b6084359161267283610b64565b60a4359361267f85610b64565b60c43596871161000e5761269a6106ac97369060040161114a565b95613ec2565b503461000e57600036600319011261000e57602060405160018152f35b503461000e57600036600319011261000e576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50608036600319011261000e5760043561271c81610b64565b6024359061272982610b64565b6044356064356001600160401b03811161000e5761274b90369060040161114a565b906001600160a01b0383811690829033831415806128ac575b61289e575b612772826138d0565b908381831603612891575b61278683613acf565b612794610f10338884613ab7565b61286c575b612862575b506127a88461389f565b80546000190190556127b98861389f565b805460010190558716928391600160e11b4260a01b841781176127db86610e19565b5581161561282e575b50600080516020614eb8833981519152600080a415612821575b833b61280657005b61281393610f1093613c2d565b61281957005b6106ac613a65565b612829613a53565b6127fe565b6001840161283b81610e19565b5415612848575b506127e4565b600c5481146128425761285a90610e19565b553880612842565b600090553861279e565b61287f610f10610fdc33610fd78a613885565b156127995761288c613a41565b612799565b612899613a30565b61277d565b6128a733614d78565b612769565b6128b533614d78565b612764565b503461000e57602036600319011261000e577f5db758e995a17ec1ad84bdef7e8c3293a0bd6179bcce400dff5d4c3d87db726b60206004356128fb81610b64565b61290361382d565b600480546001600160a01b0319166001600160a01b03929092169182179055604051908152a1005b503461000e57600036600319011261000e576080601c54601d54601e549060ff604051938181161515855260081c161515602084015260408301526060820152f35b503461000e57600036600319011261000e5760206040516127108152f35b503461000e57600036600319011261000e576020601554604051908152f35b503461000e57600036600319011261000e576020601654604051908152f35b503461000e57602036600319011261000e576109df611d4d600435614a3f565b503461000e57602036600319011261000e576004356001600160401b0381169081900361000e57601754612a3190336001600160a01b039182161490811561091157506148cb565b601f80546001600160401b031916919091179055005b503461000e57608036600319011261000e57600435612a658161056b565b602435612a718161056b565b6064356001600160401b03811161000e57612a90903690600401610577565b9092612a9a61382d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690813b1561000e5760008094612b11604051978896879586946332fb62e760e21b865261ffff8092166004870152166024850152604435604485015260806064850152608484019161338d565b03925af18015612b35575b612b2257005b80612b2f6106ac92611046565b8061091f565b612b3d613380565b612b1c565b503461000e57604036600319011261000e57600435612b608161056b565b602435612b6b61382d565b8015612bb6578161ffff7fc46df2983228ac2d9754e94a0d565e6671665dc8ad38602bc8e544f0685a29fb9316600052600a602052816040600020556121a760405192839283614872565b60405162461bcd60e51b815260206004820152602360248201527f647374436861696e4964546f5472616e73666572476173206d7573742062652060448201526203e20360ec1b6064820152608490fd5b50612c11366105a4565b9161ffff86949296166000526005602052612c4581604060002060206040518092878b833787820190815203019020611970565b54918215612cdf57612cd384612ccc7fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e5996000612cc0876119f48d89612cba8f6121a79f8f612c99612ca69236908d611113565b6020815191012014613688565b61ffff166000526005602052604060002090565b9161366f565b5561069e36868c611113565b9087614549565b604051958695866136de565b60405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608490fd5b503461000e57608036600319011261000e576060612d4d36611b96565b612d5561382d565b8035612d6081610b64565b601780546001600160a01b0319166001600160a01b0392909216919091179055612db36020820135612d9181610b64565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6040810135612dc18161056b565b6018805461ffff60a01b191660a09290921b61ffff60a01b169190911790550135601955005b503461000e57606036600319011261000e57600435612e058161056b565b602435612e118161056b565b60443591612e1d61382d565b8215612e98576121a77f9d5c7c0b934da8fefa9c7760c98383778a12dfbfc0c3b3106518f43fb9508ac09361ffff8316600052600260205280612e728560406000209061ffff16600052602052604060002090565b556040519384938460409194939294606082019561ffff80921683521660208201520152565b60405162461bcd60e51b81526020600482015260156024820152744c7a4170703a20696e76616c6964206d696e47617360581b6044820152606490fd5b503461000e57604036600319011261000e57602060ff612f22600435612efa81610b64565b60243590612f0782610b64565b6001600160a01b0316600090815260138552604090206138b9565b54166040519015158152f35b503461000e57612f3d36611542565b9190612f4761382d565b61ffff82166000908152600160208181526040832092949291906001600160401b038711613059575b612f8487612f7e85546111fb565b8561345f565b8590601f8811600114612fd957509186808798936124e095600080516020614ef88339815191529993612fce575b501b906000198460031b1c1916179055604051938493846133ae565b880135925038612fb2565b90601f198816612fee85600052602060002090565b9288905b82821061304257505091889391600080516020614ef883398151915298996124e0969410613028575b505082811b0190556124d4565b870135600019600386901b60f8161c19169055388061301b565b808685968294968c01358155019501930190612ff2565b61306161102f565b612f70565b503461000e5760a036600319011261000e576004356130848161056b565b6001600160401b039060243582811161000e576130a590369060040161114a565b60443583811161000e576130bd9036906004016125a8565b606435916130ca83611165565b60843594851161000e576130e56111e995369060040161114a565b93613cc5565b503461000e57602036600319011261000e5760043561310981610b64565b61311161382d565b6001600160a01b03908116801561314d57600080546001600160a01b0319811683178255909216600080516020614e988339815191528380a380f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b503461000e57608036600319011261000e576109df6004356131c28161056b565b602435906131cf8261056b565b6131da604435610b64565b604051633d7b2f6f60e21b815261ffff91821660048201529116602482015230604482015260648035908201526000816084817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa908115613277575b600091613256575b5060405191829182610972565b613271913d8091833e61326981836110b7565b81019061335b565b38613249565b61327f613380565b613241565b503461000e57602036600319011261000e5761ffff6004356132a58161056b565b16600052600a6020526020604060002054604051908152f35b156132c557565b60405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608490fd5b81601f8201121561000e57805161332f816110e9565b9261333d60405194856110b7565b8184526020828401011161000e57610983916020808501910161092a565b9060208282031261000e5781516001600160401b03811161000e576109839201613319565b506040513d6000823e3d90fd5b908060209392818452848401376000828201840152601f01601f1916010190565b60409061ffff6109839593168152816020820152019161338d565b8181106133d4575050565b600081556001016133c9565b90601f82116133ed575050565b6110e791601a6000526020600020906020601f840160051c8301931061341b575b601f0160051c01906133c9565b909150819061340e565b90601f8211613432575050565b6110e791601b6000526020600020906020601f840160051c8301931061341b57601f0160051c01906133c9565b9190601f811161346e57505050565b6110e7926000526020600020906020601f840160051c8301931061341b57601f0160051c01906133c9565b50634e487b7160e01b600052601160045260246000fd5b6013198101919082116134bf57565b6110e7613499565b6000198101919082116134bf57565b919082039182116134bf57565b9290915a604051633356ae4560e11b6020820190815261ffff8716602483015260806044830152949161354f8261354161352060a483018761094d565b6001600160401b03881660648401528281036023190160848401528861094d565b03601f1981018452836110b7565b60008091604051976135608961109c565b609689528260208a019560a036883751923090f1903d90609682116135a7575b6000908288523e15613594575b5050505050565b61359d946135b0565b388080808061358d565b60969150613580565b919361365c7fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c9561366a939561ffff815160208301209616958660005260056020526136228361361460208b6040600020826040519483868095519384920161092a565b820190815203019020611970565b5561363f604051978897885260a0602089015260a088019061094d565b6001600160401b039092166040870152858203606087015261094d565b90838203608085015261094d565b0390a1565b6020919283604051948593843782019081520301902090565b1561368f57565b60405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608490fd5b9160609361ffff613701939897969816845260806020850152608084019161338d565b6001600160401b0390951660408201520152565b90601f82018092116134bf57565b919082018092116134bf57565b1561373757565b60405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b6044820152606490fd5b1561377457565b60405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b6044820152606490fd5b6137c1826137ba81613715565b1015613730565b6137ce828251101561376d565b816137e6575050604051600081526020810160405290565b60405191601f811691821560051b808486010193838501920101905b80841061381a5750508252601f01601f191660405290565b9092835181526020809101930190613802565b6000546001600160a01b0316330361384157565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b0316600090815260136020526040902090565b6001600160a01b0316600090815260116020526040902090565b9060018060a01b0316600052602052604060002090565b9060008260145411158061398c575b1561395357506138ee82610e19565b5491821561390c5750600160e01b8216156110e7575b6110e7613a77565b9091505b6000190161391d81610e19565b5490811561394957600160e01b8216156139455761391d915061393e613a77565b9050613910565b5090565b61391d915061393e565b9180151580613980575b613968575b50613904565b613973919250610e19565b5490816110e75738613962565b5060165481111561395d565b50600c5483106138df565b80156139a5575b6000190190565b6139ad613499565b61399e565b600081601454111580613a25575b156139f157505b6139d081610e19565b5490816139e6576139e19150613997565b6139c7565b50600160e01b161590565b919080151580613a19575b613a035750565b9091506000526010602052604060002054151590565b508060165410156139fc565b50600c5482106139c0565b5062a1148160e81b60005260046000fd5b50632ce44b5f60e11b60005260046000fd5b50633a954ecd60e21b60005260046000fd5b506368d2bf6b60e11b60005260046000fd5b50636f96cda160e11b60005260046000fd5b50622e076360e81b60005260046000fd5b5063b562e8dd60e01b60005260046000fd5b506000805260046000fd5b6001600160a01b039182169190921690811491141790565b6000526012602052604060002090815490565b9081602091031261000e575161098381610720565b610983939260809260018060a01b03168252600060208301526040820152816060820152019061094d565b6001600160a01b0391821681529116602082015260408101919091526080606082018190526109839291019061094d565b3d15613b7e573d90613b64826110e9565b91613b7260405193846110b7565b82523d6000602084013e565b606090565b613bac60209160009394604051948580948193630a85bd0160e11b998a84523360048501613af7565b03926001600160a01b03165af160009181613bfd575b50613bef57613bcf613b53565b805115613bde57805190602001fd5b6368d2bf6b60e11b60005260046000fd5b6001600160e01b0319161490565b613c1f91925060203d8111613c26575b613c1781836110b7565b810190613ae2565b9038613bc2565b503d613c0d565b92602091613bac936000604051809681958294630a85bd0160e11b9a8b85523360048601613b22565b90815180825260208080930193019160005b828110613c76575050505090565b835185529381019392810192600101613c68565b9091613ca16109839360408452604084019061094d565b916020818403910152613c56565b919082604091031261000e576020825192015190565b9060409361ffff939695613cf5613d3f93613ce788519a8b9260208401613c8a565b03601f1981018a52896110b7565b613d268651988996879663040a7bb160e41b885216600487015230602487015260a0604487015260a486019061094d565b911515606485015283820360031901608485015261094d565b03817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa918215613dae575b6000908193613d8357509190565b905061060591925060403d8111613da7575b613d9f81836110b7565b810190613caf565b503d613d95565b613db6613380565b613d75565b15613dc257565b60405162461bcd60e51b8152602060048201526013602482015272746f6b656e4964735b5d20697320656d70747960681b6044820152606490fd5b15613e0457565b60405162461bcd60e51b815260206004820152602260248201527f62617463682073697a65206578636565647320647374206261746368206c696d6044820152611a5d60f21b6064820152608490fd5b8051821015613e685760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b818102929181159184041417156134bf57565b613ea99060206040519282848094519384920161092a565b810103902090565b906020610983928181520190613c56565b95909493919293613ed585511515613dbb565b8451613eee600191828114908115613fd5575b50613dfd565b855160005b818110613fb95750505092613f9061ffff93613f95937fe1b87c47fdeb4f9cbadbca9df3af7aba453bb6e501075d0440d88125b711522a9660405192613f4f84613f418c8960208401613c8a565b03601f1981018652856110b7565b613f7d613f76613f6d8d61ffff16600052600a602052604060002090565b548c5190613e7e565b848d614204565b613f89600754346134d6565b938b614050565b613e91565b60405190956001600160a01b031694909116928190613fb49082613eb1565b0390a4565b80613fcf613fc885938b613e54565b518c614315565b01613ef3565b9050613fef8961ffff166000526009602052604060002090565b54101538613ee8565b9261401d61098397959361ffff61402b9416865260c0602087015260c086019061094d565b90848203604086015261094d565b6001600160a01b0391821660608401529316608082015280830360a09091015261094d565b946140799193929561ffff811660005260016020526140806040600020604051948580926112ba565b03846110b7565b825115614113576140928551826142a6565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031693843b1561000e576000966140e791604051998a988997889662c5803160e81b885260048801613ff8565b03925af18015614106575b6140f95750565b80612b2f6110e792611046565b61410e613380565b6140f2565b60405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608490fd5b1561417857565b60405162461bcd60e51b815260206004820152601a602482015279131e905c1c0e881b5a5b91d85cd31a5b5a5d081b9bdd081cd95d60321b6044820152606490fd5b156141c157565b60405162461bcd60e51b815260206004820152601b60248201527a4c7a4170703a20676173206c696d697420697320746f6f206c6f7760281b6044820152606490fd5b91909160228351106142625761ffff60226110e79401519116600052600260205260406000206001600052602052604060002054918201809211614255575b61424e821515614171565b10156141ba565b61425d613499565b614243565b60405162461bcd60e51b815260206004820152601c60248201527b4c7a4170703a20696e76616c69642061646170746572506172616d7360201b6044820152606490fd5b61ffff16600052600360205260406000205490811561430b575b116142c757565b606460405162461bcd60e51b815260206004820152602060248201527f4c7a4170703a207061796c6f61642073697a6520697320746f6f206c617267656044820152fd5b61271091506142c0565b906110e79130905b919091614329826138d0565b6001600160a01b039182169390828116859003614432575b83601454111580614426575b156143ed5761435b8561389f565b805460001901905561436c8261389f565b805460010190554260a01b8383161761438485610e19565b55600160e11b8116156143b9575b505b168092600080516020614eb8833981519152600080a4156143b157565b6110e7613a53565b600184016143c681610e19565b54156143d3575b50614392565b600c5481146143cd576143e590610e19565b5538806143cd565b506143f78461389f565b80546000190190556144088161389f565b805460010190554260a01b8282161761442084610e19565b55614394565b5060155484111561434d565b61443a613a30565b614341565b919060408382031261000e5782516001600160401b03939084811161000e578261446a918301613319565b936020918281015191821161000e57019180601f8401121561000e57825161449181612582565b9361449f60405195866110b7565b818552838086019260051b82010192831161000e578301905b8282106144c6575050505090565b815181529083019083016144b8565b600260606110e79361ffff8151168454908061ffff19831617865562010000600160b01b03602084015160101b169160018060b01b03191617178455604081015160018501550151151591019060ff801983541691151516179055565b60409061098393928152816020820152019061094d565b9190600080516020614e5883398151915261ffff61459560149385516145776020808901928901018261443f565b9601519661458587896146a8565b875181106145b057505050613e91565b93613fb460405192839260018060a01b031697169482613eb1565b611b28600080516020614ed8833981519152938351902091604051906145d582611066565b8c891682526001600160a01b038c166020830152611b0e565b156145f557565b60405162461bcd60e51b81526020600482015260116024820152701b9bc818dc99591a5d1cc81cdd1bdc9959607a1b6044820152606490fd5b1561463557565b60405162461bcd60e51b815260206004820152602960248201527f6e6f7420656e6f7567682067617320746f2070726f6365737320637265646974604482015268103a3930b739b332b960b91b6064820152608490fd5b600190600019811461469c570190565b6146a4613499565b0190565b60009291835b8151811015614740575a60085411614740576146ca8183613e54565b51906146d5826139b2565b158015614716575b1561471257816146ef614702936139b2565b614707576146fd90856147df565b61468c565b6146ae565b6146fd90853061431d565b8580fd5b50614720826139b2565b80156146dd57506001600160a01b03614738836138d0565b1630146146dd565b93505050565b9291905b81518110156147d3575a600854116147d3576147668183613e54565b5190614771826139b2565b1580156147a9575b1561000e578161478b614799936139b2565b61479e576146fd90866147df565b61474a565b6146fd90863061431d565b506147b3826139b2565b801561477957506001600160a01b036147cb836138d0565b163014614779565b925050565b1561000e57565b81151580614866575b1561000e576014548210801561485b575b1561000e576001600160a01b03811690614822904260a01b831761481c85610e19565b5561389f565b80546001600160401b01019055801561484b576000600080516020614eb88339815191528180a4565b622e076360e81b60005260046000fd5b5060155482116147f9565b506016548211156147e8565b6020909392919361ffff60408201951681520152565b60408051919082016001600160401b038111838210176148be575b60405260018252602082016020368237825115613e68575290565b6148c661102f565b6148a3565b156148d257565b60405162461bcd60e51b815260206004820152602260248201527f43616c6c6572206973206e6f742062656e6566696369617279206f72206f776e60448201526132b960f11b6064820152608490fd5b903590601e198136030182121561000e57018035906001600160401b03821161000e5760200191813603831361000e57565b91906001600160401b038111614a32575b61497981614974601b546111fb565b613425565b6000601f82116001146149b3578192936000926149a8575b50508160011b916000199060031b1c191617601b55565b013590503880614991565b601b600052601f198216937f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc191805b868110614a1a5750836001959610614a00575b505050811b01601b55565b0135600019600384901b60f8161c191690553880806149f5565b909260206001819286860135815501940191016149e2565b614a3a61102f565b614965565b614a48906139b2565b1561000e5760ff601c5460081c16614b0157604051601a54816000614a6c836111fb565b808352600193808516908115614ae05750600114614a92575b50610983925003826110b7565b601a6000908152600080516020614e7883398151915294602093509091905b818310614ac8575050610983935082010138614a85565b85548784018501529485019486945091830191614ab1565b905061098394506020925060ff191682840152151560051b82010138614a85565b604051610983816113b081611235565b15614b1857565b60405162461bcd60e51b81526020600482015260126024820152711b585e081cdd5c1c1b1e481c995858da195960721b6044820152606490fd5b15614b5957565b60405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f7567682076616c756560801b6044820152606490fd5b15614b9857565b60405162461bcd60e51b815260206004820152600f60248201526e1b5a5b9d1a5b99c8195e1c1a5c9959608a1b6044820152606490fd5b15614bd657565b60405162461bcd60e51b815260206004820152601a602482015279195e18d959591959081b585e081b5a5b9d1a5b99c81b1a5b5a5d60321b6044820152606490fd5b60405190614c2582611081565b600090818352600c548415614d56575b6001906001600160a01b0383164260a01b87841460e11b178117614c5883610e19565b55614c628461389f565b80546001600160401b0189020190558015614d49575b86820191908380805b614d0c575b50505050614c9390600c55565b813b614ca0575050505050565b600c549485039281805b614cd4575b505050505050600c5403614cc757388080808061358d565b614ccf613aac565b61359d565b15614cff575b8082614ced610f10888389019888613b83565b15614caa57614cfa613a65565b614caa565b858410614cda5780614caf565b15614d31575b508584838389600080516020614eb88339815191528180a49081614c81565b90910190828214614d425783614d12565b8381614c86565b614d51613a89565b614c78565b614d5e613a9a565b614c35565b9081602091031261000e575161098381611165565b6daaeb6d7670e522a718067333cd4e803b614d91575050565b604051633185c44d60e21b81523060048201526001600160a01b038316602482015290602090829060449082905afa908115614e2a575b600091614dfc575b5015614dd95750565b604051633b79c77360e21b81526001600160a01b03919091166004820152602490fd5b614e1d915060203d8111614e23575b614e1581836110b7565b810190614d63565b38614dd0565b503d614e0b565b614e32613380565b614dc856fe8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce5b821db8a46f8ecbe1941ba2f51cfeea9643268b56631f70d45e2a745d990265057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef10e0b70d256bccc84b7027506978bd8b68984a870788b93b479def144c839ad7fa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470daba26469706673582212203d88a5321bcbd2519cf2f79c5ed1e8b7b5ef3047df6c1e80301e677c6545305864736f6c63430008110033bb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc1057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000003c2269811836af69497e5f486a85d7316753cf6200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000989680000000000000000000000000000000000000000000000000000000000098968000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008636fa411113d1b40b5d76f6766d16b3aa829d3000000000000000000000000000000000000000000000000000000000000000124f6d6e6920417820416476656e7475726573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044f4158410000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361015610013575b600080fd5b60003560e01c80621d35671461056257806301ffc9a71461055957806306a8e4d91461055057806306fdde031461054757806307e0db171461053e578063081812fc14610535578063095ea7b31461052c5780630b4cad4c146105235780630df374831461051a57806310ddb1371461051157806315d627901461050857806317465471146104ff57806322a3ecf9146104f657806323b872dd146104ed57806329d7e69b146104e45780632a205e3d146104db578063392f37e9146104d25780633ccfd60b146104c95780633d8b38f6146104c05780633f1f4fa4146104b757806341f43434146104ae57806342842e0e146104a557806342d65a8d1461049c57806348288190146104935780634ac3f4ff1461048a57806351905636146104815780635b8c41e6146104785780636352211e1461046f57806366ad5c8a146104665780636ecf80981461045d57806370a0823114610454578063715018a61461044b5780637533d78814610442578063796b0c5c1461043957806382b12dd7146104305780638cfd8f5c146104275780638da5cb5b1461041e5780638ffa1f2a14610415578063950c8a741461040c57806395d89b4114610403578063998cdf83146103fa5780639ea5d6b1146103f15780639f38369a146103e8578063a0712d68146103df578063a22cb465146103d6578063a6c3d165146103cd578063ab3ffb93146103c4578063af3fb21c146103bb578063b353aaa7146103b2578063b88d4fde146103a9578063baf3292d146103a0578063c19d93fb14610397578063c44618341461038e578063c5ea3c6514610385578063c7d8505a1461037c578063c87b56dd14610373578063c8a1df861461036a578063cbed8b9c14610361578063d12473a514610358578063d1deba1f1461034f578063d6603ea614610346578063df2a5b3b1461033d578063e985e9c514610334578063eb8d72b71461032b578063f235364114610322578063f2fde38b14610319578063f5ecbdbc146103105763fa25f9b61461030857600080fd5b61000e613284565b5061000e6131a1565b5061000e6130eb565b5061000e613066565b5061000e612f2e565b5061000e612ed5565b5061000e612de7565b5061000e612d30565b5061000e612c07565b5061000e612b42565b5061000e612a47565b5061000e6129e9565b5061000e6129c9565b5061000e6129aa565b5061000e61298b565b5061000e61296d565b5061000e61292b565b5061000e6128ba565b5061000e612703565b5061000e6126bd565b5061000e6126a0565b5061000e612606565b5061000e612411565b5061000e612375565b5061000e6122a0565b5061000e6121fc565b5061000e612133565b5061000e612111565b5061000e61206c565b5061000e612042565b5061000e611e61565b5061000e611e37565b5061000e611ddb565b5061000e611dbc565b5061000e611d61565b5061000e611d09565b5061000e611ca4565b5061000e611c46565b5061000e611ba7565b5061000e611a3a565b5061000e611a0a565b5061000e611987565b5061000e6118bc565b5061000e611882565b5061000e611863565b5061000e6117e1565b5061000e611634565b5061000e61160a565b5061000e6115d0565b5061000e61157a565b5061000e611448565b5061000e611350565b5061000e61116f565b5061000e611010565b5061000e610ec4565b5061000e610e39565b5061000e610def565b5061000e610da7565b5061000e610d1c565b5061000e610cdc565b5061000e610c37565b5061000e610b75565b5061000e610b10565b5061000e610a67565b5061000e610986565b5061000e6107b2565b5061000e610732565b5061000e610609565b61ffff81160361000e57565b9181601f8401121561000e578235916001600160401b03831161000e576020838186019501011161000e57565b90608060031983011261000e576004356105bd8161056b565b916001600160401b039060243582811161000e57816105de91600401610577565b93909392604435818116810361000e579260643591821161000e5761060591600401610577565b9091565b503461000e57610618366105a4565b929493919291907f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b031633036106db5761069e6106a6926106ac9761069761067d6106788a61ffff166000526001602052604060002090565b611cee565b80519081841491826106d1575b50816106ae575b506132be565b3691611113565b923691611113565b926134e3565b005b90506106bb368486611113565b6020815191012090602081519101201438610691565b151591503861068a565b60405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c657200006044820152606490fd5b6001600160e01b031981160361000e57565b503461000e57602036600319011261000e57602060043561075281610720565b63ffffffff60e01b166301ffc9a760e01b8114908115908161077b575b50506040519015158152f35b906107a1575b8115610790575b50388061076f565b635b5e139f60e01b14905038610788565b6380ac58cd60e01b81149150610781565b503461000e576003196020368201811361000e57600435906001600160401b039081831161000e5760408360040194843603011261000e5760175461080c90336001600160a01b0391821614908115610911575b506148cb565b6108168480614922565b928311610904575b6108328361082d601a546111fb565b6133e0565b600091601f8411600114610885575092826106ac95936024936108749660009261087a575b50508160011b916000199060031b1c191617601a555b0190614922565b90614954565b013590503880610857565b601a60005291601f198416600080516020614e788339815191529382905b8282106108ec575050936024936108749693600193836106ac9a98106108d2575b505050811b01601a5561086d565b0135600019600384901b60f8161c191690553880806108c4565b806001859782949688013581550196019301906108a3565b61090c61102f565b61081e565b905060005416331438610806565b600091031261000e57565b60005b83811061093d5750506000910152565b818101518382015260200161092d565b906020916109668151809281855285808601910161092a565b601f01601f1916010190565b90602061098392818152019061094d565b90565b503461000e57600080600319360112610a645760405181600e546109a9816111fb565b80845290600190818116908115610a3c57506001146109e3575b6109df846109d3818803826110b7565b60405191829182610972565b0390f35b600e8352602094507fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd5b828410610a2957505050816109df936109d392820101936109c3565b8054858501870152928501928101610a0d565b6109df96506109d39450602092508593915060ff191682840152151560051b820101936109c3565b80fd5b503461000e5760006020366003190112610a6457600435610a878161056b565b610a8f61382d565b7f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b0316908290823b15610b0c57602461ffff918360405195869485936307e0db1760e01b85521660048401525af18015610aff575b610af3575080f35b610afc90611046565b80f35b610b07613380565b610aeb565b5080fd5b503461000e57602036600319011261000e57600435610b2e816139b2565b15610b53576000526012602052602060018060a01b0360406000205416604051908152f35b6333d1c03960e21b60005260046000fd5b6001600160a01b0381160361000e57565b50604036600319011261000e57600435610b8e81610b64565b602435610b9a82614d78565b6001600160a01b0380610bac836138d0565b1690813303610c07575b600083815260126020526040812080546001600160a01b0319166001600160a01b0387161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b81600052601360205260ff610c203360406000206138b9565b5416610bb6576367d9dca160e11b60005260046000fd5b503461000e57602036600319011261000e57600435610c5461382d565b8015610c8b576020817ffebbc4f8bb9ec2313950c718d43123124b15778efda4c1f1d529de2995b4f34d92600855604051908152a1005b60405162461bcd60e51b8152602060048201526024808201527f6d696e476173546f5472616e73666572416e6453746f7265206d7573742062656044820152630203e20360e41b6064820152608490fd5b503461000e57604036600319011261000e5761ffff600435610cfd8161056b565b610d0561382d565b166000526003602052602435604060002055600080f35b503461000e5760006020366003190112610a6457600435610d3c8161056b565b610d4461382d565b7f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b0316908290823b15610b0c57602461ffff918360405195869485936310ddb13760e01b85521660048401525af18015610aff57610af3575080f35b503461000e57600036600319011261000e57608060018060a01b0380601754169061ffff601854601954926040519485528116602085015260a01c1660408301526060820152f35b503461000e57600036600319011261000e57601f546040516001600160401b039091168152602090f35b6000526010602052604060002090565b600052600b602052604060002090565b503461000e57602036600319011261000e57600435600052600b6020526080604060002080549060ff6002600183015492015416906040519261ffff8116845260018060a01b039060101c166020840152604083015215156060820152f35b606090600319011261000e57600435610eb081610b64565b90602435610ebd81610b64565b9060443590565b50610ece36610e98565b6001600160a01b0392831692909190338403611002575b610eee836138d0565b918482841603610ff5575b610f0284613acf565b610f14610f10338984613ab7565b1590565b610fc4575b610fba575b50610f288561389f565b8054600019019055610f398161389f565b8054600101905516928391600160e11b4260a01b84178117610f5a86610e19565b55811615610f86575b50600080516020614eb8833981519152600080a415610f7e57005b6106ac613a53565b60018401610f9381610e19565b5415610fa0575b50610f63565b600c548114610f9a57610fb290610e19565b553880610f9a565b6000905538610f1e565b610fe3610f10610fdc33610fd78b613885565b6138b9565b5460ff1690565b15610f1957610ff0613a41565b610f19565b610ffd613a30565b610ef9565b61100b33614d78565b610ee5565b503461000e57600036600319011261000e576020601454604051908152f35b50634e487b7160e01b600052604160045260246000fd5b6001600160401b03811161105957604052565b61106161102f565b604052565b608081019081106001600160401b0382111761105957604052565b602081019081106001600160401b0382111761105957604052565b60c081019081106001600160401b0382111761105957604052565b601f909101601f19168101906001600160401b0382119082101761105957604052565b604051906110e782611066565b565b6020906001600160401b038111611106575b601f01601f19160190565b61110e61102f565b6110fb565b92919261111f826110e9565b9161112d60405193846110b7565b82948184528183011161000e578281602093846000960137010152565b9080601f8301121561000e5781602061098393359101611113565b8015150361000e57565b503461000e5760a036600319011261000e5760043561118d8161056b565b6001600160401b039060243582811161000e576111ae90369060040161114a565b90606435906111bc82611165565b60843593841161000e576111d76111e994369060040161114a565b926111e3604435614888565b91613cc5565b60408051928352602083019190915290f35b90600182811c9216801561122b575b602083101461121557565b634e487b7160e01b600052602260045260246000fd5b91607f169161120a565b601b5460009291611245826111fb565b90818152600192838116908160001461129f575060011461126557505050565b90929350601b6000526020928360002092846000945b83861061128b5750505050010190565b80548587018301529401938590820161127b565b91935050602093945060ff191683830152151560051b010190565b90600092918054916112cb836111fb565b91828252600193848116908160001461132d57506001146112ed575b50505050565b90919394506000526020928360002092846000945b8386106113195750505050010190388080806112e7565b805485870183015294019385908201611302565b9294505050602093945060ff191683830152151560051b010190388080806112e7565b503461000e57600080600319360112610a645760405181601a54611373816111fb565b8084529060019081811690811561142057506001146113d9575b6113cb8461139d818803826110b7565b6109df6040516113b7816113b081611235565b03826110b7565b60405193849360408552604085019061094d565b90838203602085015261094d565b601a835260209450600080516020614e788339815191525b82841061140d57505050816113cb9361139d928201019361138d565b80548585018701529285019281016113f1565b6113cb965061139d9450602092508593915060ff191682840152151560051b8201019361138d565b503461000e57600080600319360112610a64576115038180808060018060a01b036114d98280808085601754168033148015611536575b611488906148cb565b6114938115156147d8565b6114a360185497881615156147d8565b6114ca6114c36114bb61ffff479a60a01c168a613e7e565b612710900490565b80986134d6565b9082821561152d575bf16147d8565b6018546114f6906001600160a01b03165b6001600160a01b031690565b82821561152d57f16147d8565b610afc8180808061151e6114ea60175460018060a01b031690565b479082821561152d57f16147d8565b506108fc6114d3565b5081548716331461147f565b90604060031983011261000e5760043561155b8161056b565b91602435906001600160401b03821161000e5761060591600401610577565b503461000e57602061ffff6115c161159136611542565b93909116600052600184526113b06115b36040600020604051928380926112ba565b848151910120923691611113565b82815191012014604051908152f35b503461000e57602036600319011261000e5761ffff6004356115f18161056b565b1660005260036020526020604060002054604051908152f35b503461000e57600036600319011261000e5760206040516daaeb6d7670e522a718067333cd4e8152f35b5061163e36610e98565b6001600160a01b0383811633811415949290856117d3575b816040519361166485611081565b600097808987526117c5575b6117b7575b61167e826138d0565b9083818316036117aa575b8861169384613acf565b6116a1610f10338984613ab7565b611785575b61177d575b50506116b68461389f565b80546000190190556116c78861389f565b805460010190558716928391600160e11b4260a01b841781176116e986610e19565b55811615611749575b50600080516020614eb88339815191528980a41561173c575b833b611715578480f35b61172293610f1093613c2d565b61172f575b388080808480f35b611737613a65565b611727565b611744613a53565b61170b565b6001840161175681610e19565b5415611763575b506116f2565b600c54811461175d5761177590610e19565b55388061175d565b5588386116ab565b611798610f10610fdc33610fd78b613885565b156116a6576117a5613a41565b6116a6565b6117b2613a30565b611689565b6117c033614d78565b611675565b6117ce33614d78565b611670565b6117dc33614d78565b611656565b503461000e576117f036611542565b91906117fa61382d565b7f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b031691823b1561000e57604051928380926342d65a8d60e01b82528161185160009889978894600485016133ae565b03925af18015610aff57610af3575080f35b503461000e57600036600319011261000e576020600854604051908152f35b503461000e57602036600319011261000e5761ffff6004356118a38161056b565b1660005260096020526020604060002054604051908152f35b5060e036600319011261000e576004356118d581610b64565b6024356118e18161056b565b6001600160401b039160443583811161000e5761190290369060040161114a565b906084359061191082610b64565b60a4359261191d84610b64565b60c43595861161000e576119386106ac96369060040161114a565b94611944606435614888565b92613ec2565b60209061196492826040519483868095519384920161092a565b82019081520301902090565b9060018060401b0316600052602052604060002090565b503461000e57606036600319011261000e576004356119a58161056b565b6001600160401b0360243581811161000e576119c590369060040161114a565b90604435908116810361000e576119f46119f99261ffff6109df9516600052600560205260406000209061194a565b611970565b546040519081529081906020820190565b503461000e57602036600319011261000e5760206001600160a01b03611a316004356138d0565b16604051908152f35b503461000e57611a49366105a4565b939150303303611b4257611ab6611a8261ffff92611a7a600080516020614e58833981519152956014973691611113565b963691611113565b948551611a976020808901928901018261443f565b96015196611aa587896146a8565b87518110611ad6575b505050613e91565b93611ad160405192839260018060a01b031697169482613eb1565b0390a4005b611b28600080516020614ed8833981519152938351902091611af66110da565b61ffff8d168152906001600160a01b038c1660208301525b604082015260016060820152611b2383610e29565b6144d5565b611b3760405192839283614532565b0390a1388080611aae565b60405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608490fd5b608090600319011261000e57600490565b503461000e57608036600319011261000e576060611bc436611b96565b601754611be590336001600160a01b039182161490811561091157506148cb565b8035611bf081611165565b611c21602083013591611c0283611165565b611c0d604051611066565b151560ff8019601c54169115151617601c55565b61ff00601c5491151560081b169061ff00191617601c5542601d550135601e55600080f35b503461000e57602036600319011261000e57600435611c6481610b64565b6001600160a01b03168015611c93576000526011602052602060018060401b0360406000205416604051908152f35b6323d3ad8160e21b60005260046000fd5b503461000e57600080600319360112610a6457611cbf61382d565b80546001600160a01b03198116825581906001600160a01b0316600080516020614e988339815191528280a380f35b906110e7611d0292604051938480926112ba565b03836110b7565b503461000e57602036600319011261000e5761ffff600435611d2a8161056b565b1660005260016020526109df6113b0611d4d6040600020604051928380926112ba565b60405191829160208352602083019061094d565b503461000e57604036600319011261000e5760043563ffffffff9081811680910361000e576024359180831680930361000e57611d9c61382d565b600c5460145490031681111561000e578082111561000e57601455601555005b503461000e57600036600319011261000e576020600754604051908152f35b503461000e57604036600319011261000e576020611e2e600435611dfe8161056b565b61ffff60243591611e0e8361056b565b166000526002835260406000209061ffff16600052602052604060002090565b54604051908152f35b503461000e57600036600319011261000e576000546040516001600160a01b039091168152602090f35b503461000e57602036600319011261000e576004356001600160401b03811161000e57611e9290369060040161114a565b600260065414611ffd576002600655611ed78151602080840191822093611ecd611ec86002611ec088610e29565b015460ff1690565b6145ee565b805101019061443f565b9050611ee282610e29565b50611f1681611f03611ef385610e29565b5460101c6001600160a01b031690565b6001611f0e86610e29565b015490614746565b90611f2e6001611f2585610e29565b0154831161462e565b518103611f975750611f8981611f79611f677fd7be02b8dd0d27bd0517a9cb4d7469ce27df4313821ae5ec1ff69acc594ba23394610e29565b60026000918281558260018201550155565b6040519081529081906020820190565b0390a15b6106ac6001600655565b611b2382611fb2611faa611ff895610e29565b5461ffff1690565b92611fe7611fc2611ef384610e29565b611fd7611fcd6110da565b61ffff9097168752565b6001600160a01b03166020860152565b604084015260016060840152610e29565b611f8d565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b503461000e57600036600319011261000e576004546040516001600160a01b039091168152602090f35b503461000e57600080600319360112610a645760405181600f5461208f816111fb565b80845290600190818116908115610a3c57506001146120b8576109df846109d3818803826110b7565b600f8352602094507f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8025b8284106120fe57505050816109df936109d392820101936109c3565b80548585018701529285019281016120e2565b503461000e57602036600319011261000e5761212b61382d565b600435600755005b503461000e57604036600319011261000e576004356121518161056b565b60243561215c61382d565b80156121ac578161ffff7f7315f7654d594ead24a30160ed9ba2d23247f543016b918343591e93d7afdb6d93166000526009602052816040600020556121a760405192839283614872565b0390a1005b60405162461bcd60e51b815260206004820152602260248201527f647374436861696e4964546f42617463684c696d6974206d757374206265203e604482015261020360f41b6064820152608490fd5b503461000e57602036600319011261000e5761ffff60043561221d8161056b565b1660005260016020526113b061223d6040600020604051928380926112ba565b80511561225b576109d3816122556109df93516134b0565b906137ad565b60405162461bcd60e51b815260206004820152601d60248201527f4c7a4170703a206e6f20747275737465642070617468207265636f72640000006044820152606490fd5b50602036600319011261000e5760043560ff601c54161561233a57806122ca6106ac9215156147d8565b6122eb6122e16122dc83600c54613723565b6134c7565b6015541015614b11565b6123026122fa60195483613e7e565b341015614b52565b61231c612314601d54601e5490613723565b421115614b91565b601f54612334906001600160401b0316821115614bcf565b33614c18565b60405162461bcd60e51b815260206004820152601360248201527214d85b19481a185cdb89dd081cdd185c9d1959606a1b6044820152606490fd5b503461000e57604036600319011261000e5760043561239381610b64565b602435906123a082611165565b6123a981614d78565b3360005260136020526123d5826123c48360406000206138b9565b9060ff801983541691151516179055565b60405191151582526001600160a01b03169033907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b503461000e5761242036611542565b9061242961382d565b604051926020928083858701376124556034868381013060601b888201520360148101885201866110b7565b61ffff8216600090815260018086526040822087519296909291906001600160401b038311612575575b6124938361248d86546111fb565b8661345f565b80601f84116001146124f15750918080926124e09695948a9b600080516020614e388339815191529b946124e6575b50501b916000199060031b1c19161790555b604051938493846133ae565b0390a180f35b0151925038806124c2565b91939498601f19841661250987600052602060002090565b938a905b82821061255e57505091600080516020614e38833981519152999a959391856124e098969410612545575b505050811b0190556124d4565b015160001960f88460031b161c19169055388080612538565b80888697829497870151815501960194019061250d565b61257d61102f565b61247f565b6020906001600160401b03811161259b575b60051b0190565b6125a361102f565b612594565b81601f8201121561000e578035916125bf83612582565b926125cd60405194856110b7565b808452602092838086019260051b82010192831161000e578301905b8282106125f7575050505090565b813581529083019083016125e9565b5060e036600319011261000e5760043561261f81610b64565b6024359061262c8261056b565b6001600160401b039160443583811161000e5761264d90369060040161114a565b60643584811161000e576126659036906004016125a8565b6084359161267283610b64565b60a4359361267f85610b64565b60c43596871161000e5761269a6106ac97369060040161114a565b95613ec2565b503461000e57600036600319011261000e57602060405160018152f35b503461000e57600036600319011261000e576040517f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b03168152602090f35b50608036600319011261000e5760043561271c81610b64565b6024359061272982610b64565b6044356064356001600160401b03811161000e5761274b90369060040161114a565b906001600160a01b0383811690829033831415806128ac575b61289e575b612772826138d0565b908381831603612891575b61278683613acf565b612794610f10338884613ab7565b61286c575b612862575b506127a88461389f565b80546000190190556127b98861389f565b805460010190558716928391600160e11b4260a01b841781176127db86610e19565b5581161561282e575b50600080516020614eb8833981519152600080a415612821575b833b61280657005b61281393610f1093613c2d565b61281957005b6106ac613a65565b612829613a53565b6127fe565b6001840161283b81610e19565b5415612848575b506127e4565b600c5481146128425761285a90610e19565b553880612842565b600090553861279e565b61287f610f10610fdc33610fd78a613885565b156127995761288c613a41565b612799565b612899613a30565b61277d565b6128a733614d78565b612769565b6128b533614d78565b612764565b503461000e57602036600319011261000e577f5db758e995a17ec1ad84bdef7e8c3293a0bd6179bcce400dff5d4c3d87db726b60206004356128fb81610b64565b61290361382d565b600480546001600160a01b0319166001600160a01b03929092169182179055604051908152a1005b503461000e57600036600319011261000e576080601c54601d54601e549060ff604051938181161515855260081c161515602084015260408301526060820152f35b503461000e57600036600319011261000e5760206040516127108152f35b503461000e57600036600319011261000e576020601554604051908152f35b503461000e57600036600319011261000e576020601654604051908152f35b503461000e57602036600319011261000e576109df611d4d600435614a3f565b503461000e57602036600319011261000e576004356001600160401b0381169081900361000e57601754612a3190336001600160a01b039182161490811561091157506148cb565b601f80546001600160401b031916919091179055005b503461000e57608036600319011261000e57600435612a658161056b565b602435612a718161056b565b6064356001600160401b03811161000e57612a90903690600401610577565b9092612a9a61382d565b7f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b031690813b1561000e5760008094612b11604051978896879586946332fb62e760e21b865261ffff8092166004870152166024850152604435604485015260806064850152608484019161338d565b03925af18015612b35575b612b2257005b80612b2f6106ac92611046565b8061091f565b612b3d613380565b612b1c565b503461000e57604036600319011261000e57600435612b608161056b565b602435612b6b61382d565b8015612bb6578161ffff7fc46df2983228ac2d9754e94a0d565e6671665dc8ad38602bc8e544f0685a29fb9316600052600a602052816040600020556121a760405192839283614872565b60405162461bcd60e51b815260206004820152602360248201527f647374436861696e4964546f5472616e73666572476173206d7573742062652060448201526203e20360ec1b6064820152608490fd5b50612c11366105a4565b9161ffff86949296166000526005602052612c4581604060002060206040518092878b833787820190815203019020611970565b54918215612cdf57612cd384612ccc7fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e5996000612cc0876119f48d89612cba8f6121a79f8f612c99612ca69236908d611113565b6020815191012014613688565b61ffff166000526005602052604060002090565b9161366f565b5561069e36868c611113565b9087614549565b604051958695866136de565b60405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608490fd5b503461000e57608036600319011261000e576060612d4d36611b96565b612d5561382d565b8035612d6081610b64565b601780546001600160a01b0319166001600160a01b0392909216919091179055612db36020820135612d9181610b64565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6040810135612dc18161056b565b6018805461ffff60a01b191660a09290921b61ffff60a01b169190911790550135601955005b503461000e57606036600319011261000e57600435612e058161056b565b602435612e118161056b565b60443591612e1d61382d565b8215612e98576121a77f9d5c7c0b934da8fefa9c7760c98383778a12dfbfc0c3b3106518f43fb9508ac09361ffff8316600052600260205280612e728560406000209061ffff16600052602052604060002090565b556040519384938460409194939294606082019561ffff80921683521660208201520152565b60405162461bcd60e51b81526020600482015260156024820152744c7a4170703a20696e76616c6964206d696e47617360581b6044820152606490fd5b503461000e57604036600319011261000e57602060ff612f22600435612efa81610b64565b60243590612f0782610b64565b6001600160a01b0316600090815260138552604090206138b9565b54166040519015158152f35b503461000e57612f3d36611542565b9190612f4761382d565b61ffff82166000908152600160208181526040832092949291906001600160401b038711613059575b612f8487612f7e85546111fb565b8561345f565b8590601f8811600114612fd957509186808798936124e095600080516020614ef88339815191529993612fce575b501b906000198460031b1c1916179055604051938493846133ae565b880135925038612fb2565b90601f198816612fee85600052602060002090565b9288905b82821061304257505091889391600080516020614ef883398151915298996124e0969410613028575b505082811b0190556124d4565b870135600019600386901b60f8161c19169055388061301b565b808685968294968c01358155019501930190612ff2565b61306161102f565b612f70565b503461000e5760a036600319011261000e576004356130848161056b565b6001600160401b039060243582811161000e576130a590369060040161114a565b60443583811161000e576130bd9036906004016125a8565b606435916130ca83611165565b60843594851161000e576130e56111e995369060040161114a565b93613cc5565b503461000e57602036600319011261000e5760043561310981610b64565b61311161382d565b6001600160a01b03908116801561314d57600080546001600160a01b0319811683178255909216600080516020614e988339815191528380a380f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b503461000e57608036600319011261000e576109df6004356131c28161056b565b602435906131cf8261056b565b6131da604435610b64565b604051633d7b2f6f60e21b815261ffff91821660048201529116602482015230604482015260648035908201526000816084817f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b03165afa908115613277575b600091613256575b5060405191829182610972565b613271913d8091833e61326981836110b7565b81019061335b565b38613249565b61327f613380565b613241565b503461000e57602036600319011261000e5761ffff6004356132a58161056b565b16600052600a6020526020604060002054604051908152f35b156132c557565b60405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608490fd5b81601f8201121561000e57805161332f816110e9565b9261333d60405194856110b7565b8184526020828401011161000e57610983916020808501910161092a565b9060208282031261000e5781516001600160401b03811161000e576109839201613319565b506040513d6000823e3d90fd5b908060209392818452848401376000828201840152601f01601f1916010190565b60409061ffff6109839593168152816020820152019161338d565b8181106133d4575050565b600081556001016133c9565b90601f82116133ed575050565b6110e791601a6000526020600020906020601f840160051c8301931061341b575b601f0160051c01906133c9565b909150819061340e565b90601f8211613432575050565b6110e791601b6000526020600020906020601f840160051c8301931061341b57601f0160051c01906133c9565b9190601f811161346e57505050565b6110e7926000526020600020906020601f840160051c8301931061341b57601f0160051c01906133c9565b50634e487b7160e01b600052601160045260246000fd5b6013198101919082116134bf57565b6110e7613499565b6000198101919082116134bf57565b919082039182116134bf57565b9290915a604051633356ae4560e11b6020820190815261ffff8716602483015260806044830152949161354f8261354161352060a483018761094d565b6001600160401b03881660648401528281036023190160848401528861094d565b03601f1981018452836110b7565b60008091604051976135608961109c565b609689528260208a019560a036883751923090f1903d90609682116135a7575b6000908288523e15613594575b5050505050565b61359d946135b0565b388080808061358d565b60969150613580565b919361365c7fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c9561366a939561ffff815160208301209616958660005260056020526136228361361460208b6040600020826040519483868095519384920161092a565b820190815203019020611970565b5561363f604051978897885260a0602089015260a088019061094d565b6001600160401b039092166040870152858203606087015261094d565b90838203608085015261094d565b0390a1565b6020919283604051948593843782019081520301902090565b1561368f57565b60405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608490fd5b9160609361ffff613701939897969816845260806020850152608084019161338d565b6001600160401b0390951660408201520152565b90601f82018092116134bf57565b919082018092116134bf57565b1561373757565b60405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b6044820152606490fd5b1561377457565b60405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b6044820152606490fd5b6137c1826137ba81613715565b1015613730565b6137ce828251101561376d565b816137e6575050604051600081526020810160405290565b60405191601f811691821560051b808486010193838501920101905b80841061381a5750508252601f01601f191660405290565b9092835181526020809101930190613802565b6000546001600160a01b0316330361384157565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b0316600090815260136020526040902090565b6001600160a01b0316600090815260116020526040902090565b9060018060a01b0316600052602052604060002090565b9060008260145411158061398c575b1561395357506138ee82610e19565b5491821561390c5750600160e01b8216156110e7575b6110e7613a77565b9091505b6000190161391d81610e19565b5490811561394957600160e01b8216156139455761391d915061393e613a77565b9050613910565b5090565b61391d915061393e565b9180151580613980575b613968575b50613904565b613973919250610e19565b5490816110e75738613962565b5060165481111561395d565b50600c5483106138df565b80156139a5575b6000190190565b6139ad613499565b61399e565b600081601454111580613a25575b156139f157505b6139d081610e19565b5490816139e6576139e19150613997565b6139c7565b50600160e01b161590565b919080151580613a19575b613a035750565b9091506000526010602052604060002054151590565b508060165410156139fc565b50600c5482106139c0565b5062a1148160e81b60005260046000fd5b50632ce44b5f60e11b60005260046000fd5b50633a954ecd60e21b60005260046000fd5b506368d2bf6b60e11b60005260046000fd5b50636f96cda160e11b60005260046000fd5b50622e076360e81b60005260046000fd5b5063b562e8dd60e01b60005260046000fd5b506000805260046000fd5b6001600160a01b039182169190921690811491141790565b6000526012602052604060002090815490565b9081602091031261000e575161098381610720565b610983939260809260018060a01b03168252600060208301526040820152816060820152019061094d565b6001600160a01b0391821681529116602082015260408101919091526080606082018190526109839291019061094d565b3d15613b7e573d90613b64826110e9565b91613b7260405193846110b7565b82523d6000602084013e565b606090565b613bac60209160009394604051948580948193630a85bd0160e11b998a84523360048501613af7565b03926001600160a01b03165af160009181613bfd575b50613bef57613bcf613b53565b805115613bde57805190602001fd5b6368d2bf6b60e11b60005260046000fd5b6001600160e01b0319161490565b613c1f91925060203d8111613c26575b613c1781836110b7565b810190613ae2565b9038613bc2565b503d613c0d565b92602091613bac936000604051809681958294630a85bd0160e11b9a8b85523360048601613b22565b90815180825260208080930193019160005b828110613c76575050505090565b835185529381019392810192600101613c68565b9091613ca16109839360408452604084019061094d565b916020818403910152613c56565b919082604091031261000e576020825192015190565b9060409361ffff939695613cf5613d3f93613ce788519a8b9260208401613c8a565b03601f1981018a52896110b7565b613d268651988996879663040a7bb160e41b885216600487015230602487015260a0604487015260a486019061094d565b911515606485015283820360031901608485015261094d565b03817f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b03165afa918215613dae575b6000908193613d8357509190565b905061060591925060403d8111613da7575b613d9f81836110b7565b810190613caf565b503d613d95565b613db6613380565b613d75565b15613dc257565b60405162461bcd60e51b8152602060048201526013602482015272746f6b656e4964735b5d20697320656d70747960681b6044820152606490fd5b15613e0457565b60405162461bcd60e51b815260206004820152602260248201527f62617463682073697a65206578636565647320647374206261746368206c696d6044820152611a5d60f21b6064820152608490fd5b8051821015613e685760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b818102929181159184041417156134bf57565b613ea99060206040519282848094519384920161092a565b810103902090565b906020610983928181520190613c56565b95909493919293613ed585511515613dbb565b8451613eee600191828114908115613fd5575b50613dfd565b855160005b818110613fb95750505092613f9061ffff93613f95937fe1b87c47fdeb4f9cbadbca9df3af7aba453bb6e501075d0440d88125b711522a9660405192613f4f84613f418c8960208401613c8a565b03601f1981018652856110b7565b613f7d613f76613f6d8d61ffff16600052600a602052604060002090565b548c5190613e7e565b848d614204565b613f89600754346134d6565b938b614050565b613e91565b60405190956001600160a01b031694909116928190613fb49082613eb1565b0390a4565b80613fcf613fc885938b613e54565b518c614315565b01613ef3565b9050613fef8961ffff166000526009602052604060002090565b54101538613ee8565b9261401d61098397959361ffff61402b9416865260c0602087015260c086019061094d565b90848203604086015261094d565b6001600160a01b0391821660608401529316608082015280830360a09091015261094d565b946140799193929561ffff811660005260016020526140806040600020604051948580926112ba565b03846110b7565b825115614113576140928551826142a6565b7f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b031693843b1561000e576000966140e791604051998a988997889662c5803160e81b885260048801613ff8565b03925af18015614106575b6140f95750565b80612b2f6110e792611046565b61410e613380565b6140f2565b60405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608490fd5b1561417857565b60405162461bcd60e51b815260206004820152601a602482015279131e905c1c0e881b5a5b91d85cd31a5b5a5d081b9bdd081cd95d60321b6044820152606490fd5b156141c157565b60405162461bcd60e51b815260206004820152601b60248201527a4c7a4170703a20676173206c696d697420697320746f6f206c6f7760281b6044820152606490fd5b91909160228351106142625761ffff60226110e79401519116600052600260205260406000206001600052602052604060002054918201809211614255575b61424e821515614171565b10156141ba565b61425d613499565b614243565b60405162461bcd60e51b815260206004820152601c60248201527b4c7a4170703a20696e76616c69642061646170746572506172616d7360201b6044820152606490fd5b61ffff16600052600360205260406000205490811561430b575b116142c757565b606460405162461bcd60e51b815260206004820152602060248201527f4c7a4170703a207061796c6f61642073697a6520697320746f6f206c617267656044820152fd5b61271091506142c0565b906110e79130905b919091614329826138d0565b6001600160a01b039182169390828116859003614432575b83601454111580614426575b156143ed5761435b8561389f565b805460001901905561436c8261389f565b805460010190554260a01b8383161761438485610e19565b55600160e11b8116156143b9575b505b168092600080516020614eb8833981519152600080a4156143b157565b6110e7613a53565b600184016143c681610e19565b54156143d3575b50614392565b600c5481146143cd576143e590610e19565b5538806143cd565b506143f78461389f565b80546000190190556144088161389f565b805460010190554260a01b8282161761442084610e19565b55614394565b5060155484111561434d565b61443a613a30565b614341565b919060408382031261000e5782516001600160401b03939084811161000e578261446a918301613319565b936020918281015191821161000e57019180601f8401121561000e57825161449181612582565b9361449f60405195866110b7565b818552838086019260051b82010192831161000e578301905b8282106144c6575050505090565b815181529083019083016144b8565b600260606110e79361ffff8151168454908061ffff19831617865562010000600160b01b03602084015160101b169160018060b01b03191617178455604081015160018501550151151591019060ff801983541691151516179055565b60409061098393928152816020820152019061094d565b9190600080516020614e5883398151915261ffff61459560149385516145776020808901928901018261443f565b9601519661458587896146a8565b875181106145b057505050613e91565b93613fb460405192839260018060a01b031697169482613eb1565b611b28600080516020614ed8833981519152938351902091604051906145d582611066565b8c891682526001600160a01b038c166020830152611b0e565b156145f557565b60405162461bcd60e51b81526020600482015260116024820152701b9bc818dc99591a5d1cc81cdd1bdc9959607a1b6044820152606490fd5b1561463557565b60405162461bcd60e51b815260206004820152602960248201527f6e6f7420656e6f7567682067617320746f2070726f6365737320637265646974604482015268103a3930b739b332b960b91b6064820152608490fd5b600190600019811461469c570190565b6146a4613499565b0190565b60009291835b8151811015614740575a60085411614740576146ca8183613e54565b51906146d5826139b2565b158015614716575b1561471257816146ef614702936139b2565b614707576146fd90856147df565b61468c565b6146ae565b6146fd90853061431d565b8580fd5b50614720826139b2565b80156146dd57506001600160a01b03614738836138d0565b1630146146dd565b93505050565b9291905b81518110156147d3575a600854116147d3576147668183613e54565b5190614771826139b2565b1580156147a9575b1561000e578161478b614799936139b2565b61479e576146fd90866147df565b61474a565b6146fd90863061431d565b506147b3826139b2565b801561477957506001600160a01b036147cb836138d0565b163014614779565b925050565b1561000e57565b81151580614866575b1561000e576014548210801561485b575b1561000e576001600160a01b03811690614822904260a01b831761481c85610e19565b5561389f565b80546001600160401b01019055801561484b576000600080516020614eb88339815191528180a4565b622e076360e81b60005260046000fd5b5060155482116147f9565b506016548211156147e8565b6020909392919361ffff60408201951681520152565b60408051919082016001600160401b038111838210176148be575b60405260018252602082016020368237825115613e68575290565b6148c661102f565b6148a3565b156148d257565b60405162461bcd60e51b815260206004820152602260248201527f43616c6c6572206973206e6f742062656e6566696369617279206f72206f776e60448201526132b960f11b6064820152608490fd5b903590601e198136030182121561000e57018035906001600160401b03821161000e5760200191813603831361000e57565b91906001600160401b038111614a32575b61497981614974601b546111fb565b613425565b6000601f82116001146149b3578192936000926149a8575b50508160011b916000199060031b1c191617601b55565b013590503880614991565b601b600052601f198216937f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc191805b868110614a1a5750836001959610614a00575b505050811b01601b55565b0135600019600384901b60f8161c191690553880806149f5565b909260206001819286860135815501940191016149e2565b614a3a61102f565b614965565b614a48906139b2565b1561000e5760ff601c5460081c16614b0157604051601a54816000614a6c836111fb565b808352600193808516908115614ae05750600114614a92575b50610983925003826110b7565b601a6000908152600080516020614e7883398151915294602093509091905b818310614ac8575050610983935082010138614a85565b85548784018501529485019486945091830191614ab1565b905061098394506020925060ff191682840152151560051b82010138614a85565b604051610983816113b081611235565b15614b1857565b60405162461bcd60e51b81526020600482015260126024820152711b585e081cdd5c1c1b1e481c995858da195960721b6044820152606490fd5b15614b5957565b60405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f7567682076616c756560801b6044820152606490fd5b15614b9857565b60405162461bcd60e51b815260206004820152600f60248201526e1b5a5b9d1a5b99c8195e1c1a5c9959608a1b6044820152606490fd5b15614bd657565b60405162461bcd60e51b815260206004820152601a602482015279195e18d959591959081b585e081b5a5b9d1a5b99c81b1a5b5a5d60321b6044820152606490fd5b60405190614c2582611081565b600090818352600c548415614d56575b6001906001600160a01b0383164260a01b87841460e11b178117614c5883610e19565b55614c628461389f565b80546001600160401b0189020190558015614d49575b86820191908380805b614d0c575b50505050614c9390600c55565b813b614ca0575050505050565b600c549485039281805b614cd4575b505050505050600c5403614cc757388080808061358d565b614ccf613aac565b61359d565b15614cff575b8082614ced610f10888389019888613b83565b15614caa57614cfa613a65565b614caa565b858410614cda5780614caf565b15614d31575b508584838389600080516020614eb88339815191528180a49081614c81565b90910190828214614d425783614d12565b8381614c86565b614d51613a89565b614c78565b614d5e613a9a565b614c35565b9081602091031261000e575161098381611165565b6daaeb6d7670e522a718067333cd4e803b614d91575050565b604051633185c44d60e21b81523060048201526001600160a01b038316602482015290602090829060449082905afa908115614e2a575b600091614dfc575b5015614dd95750565b604051633b79c77360e21b81526001600160a01b03919091166004820152602490fd5b614e1d915060203d8111614e23575b614e1581836110b7565b810190614d63565b38614dd0565b503d614e0b565b614e32613380565b614dc856fe8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce5b821db8a46f8ecbe1941ba2f51cfeea9643268b56631f70d45e2a745d990265057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef10e0b70d256bccc84b7027506978bd8b68984a870788b93b479def144c839ad7fa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470daba26469706673582212203d88a5321bcbd2519cf2f79c5ed1e8b7b5ef3047df6c1e80301e677c6545305864736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000003c2269811836af69497e5f486a85d7316753cf6200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000989680000000000000000000000000000000000000000000000000000000000098968000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008636fa411113d1b40b5d76f6766d16b3aa829d3000000000000000000000000000000000000000000000000000000000000000124f6d6e6920417820416476656e7475726573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044f4158410000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Omni Ax Adventures
Arg [1] : _symbol (string): OAXA
Arg [2] : _lzEndpoint (address): 0x3c2269811836af69497E5F486A85D7316753cf62
Arg [3] : _startId (uint256): 0
Arg [4] : _maxId (uint256): 10000000
Arg [5] : _maxGlobalId (uint256): 10000000
Arg [6] : _baseTokenURI (string):
Arg [7] : _hiddenURI (string):
Arg [8] : _tax (uint16): 0
Arg [9] : _price (uint256): 0
Arg [10] : _taxRecipient (address): 0x8636FA411113D1b40B5D76F6766D16b3aA829D30

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [2] : 0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000989680
Arg [5] : 0000000000000000000000000000000000000000000000000000000000989680
Arg [6] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000008636fa411113d1b40b5d76f6766d16b3aa829d30
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [12] : 4f6d6e6920417820416476656e74757265730000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [14] : 4f41584100000000000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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