Contract 0x3a1e4cca3d617e76ed0fc77972852230b595445b 6

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x38b243dfc2ca4e56a1469284f4b88acb4d33dadfa35040dd086dca9ff4782504Set Approval For...263706752022-09-24 10:43:009 days 20 hrs ago0x8699b998a5dd490a7bc25f4e61f6e6206acd0894 IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.00001087
0x8354be19e49922299e005b82a9a61c6cd324a275f97c73ecf7e7044324b71091Set Approval For...259684872022-09-22 13:26:0011 days 17 hrs ago0xd056c0456327ee2eeb11b438378109bfda186c42 IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000014
0xf475fb332685e716a660c373bea7f13993a331c89e604d13546580bb8511d382Set Approval For...258027492022-09-21 21:28:3612 days 9 hrs ago0xf96fd6f445dc6b20af87bd805c362e3b503ebc49 IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.0000117
0x00705970f9f13296e330821a40643e77c7075fc65e2b136acc3c5fd68ad4aeb2Set Approval For...244741292022-09-13 17:57:0220 days 12 hrs ago0x59d453cf873c71a97cdf88e180ea13f0a27376ed IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.00001699
0x77a65267ca90d93507d06f57e3f6ab77e70162ea22899e0d88e78b872bc35859Set Approval For...239843952022-09-10 19:11:1223 days 11 hrs ago0xa9f5fc8c95e762537764fb5bf7f7e7dbde5f69ba IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.00001678
0xcc56712a75b847e96a1dc90ccb2b8fbcd334f60de3af25c79fbd1adae44a8f89Set Approval For...228563442022-09-04 20:01:5829 days 10 hrs ago0x8699b998a5dd490a7bc25f4e61f6e6206acd0894 IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.00023887
0xd26281dfdcc01746ffccea745cce8ee75f9bd87d7d41e7e866686bc7bb7775bfSet Approval For...226555392022-09-03 14:04:4130 days 16 hrs ago0x04209541851a74572bb9288376445164cefe94cf IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.00015139
0x6719bef3d95306c237bdcca2bd851204d654883c4f524af87084fde93c5be94aTraverse Chains212639712022-08-25 15:38:0239 days 15 hrs ago0x00391cd2e1d397a480386eadf7540f231ad0c61c IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0.000720292146928 ETH0.000061645725 ETH
0xb29e401c193d6ad28ac30b943ab6add96a4d1eb3244fc3be1e0d64eafd0bd197Set Approval For...208203492022-08-20 22:52:0544 days 7 hrs ago0xd056c0456327ee2eeb11b438378109bfda186c42 IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000071838912 ETH
0x78fc866de4f4ce8a646418af8560486f5dbfa86f4866e63421bcf07b1f8a981aSet Approval For...203209552022-08-15 14:17:5949 days 16 hrs ago0xcb80c8682590dc75c761e6b99866038464f9d5ac IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000076290482 ETH
0xeaaa554d8e2b889af977c2b73f6dd634a8b31ba5b31566d6c5672d2b7bce96e8Set Approval For...199170102022-08-10 14:14:3954 days 16 hrs ago0xd48a3b15788a276b1ffbcceda9db796859676edb IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000099156543 ETH
0x80de20eaf54496296a60b276214ba001be68a58f30153bd814aec0a0f6a6a7aaSafe Transfer Fr...199169182022-08-10 14:14:3954 days 16 hrs ago0xd898275e8b9428429155752f89fe0899ce232830 IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000107777559 ETH
0x140531e9b62af8bb2139f3ca4fa6f6cf002f9ab2c3bbbce68d3ec7ddfa85b38fSet Approval For...194994202022-08-06 1:11:0559 days 5 hrs ago0xa2dbf27250db1740fd3fb661017e1eb7d7c3d2ac IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000071184104 ETH
0xcfe67edf8deae18f9b9cf256bd5f229069ad020b8634ad0d67e00ab0dbf157bbSet Approval For...192824882022-08-03 12:41:2361 days 18 hrs ago0xd53c34272c588fa830e56cd792bc3f01e8931146 IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000052627246 ETH
0x26d270ce29653e4669feeb697d613bf3e2ad9e32db67657ca9e302ceb4bc639eSet Approval For...192821972022-08-03 12:36:2061 days 18 hrs ago0xd53c34272c588fa830e56cd792bc3f01e8931146 IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000052628238 ETH
0x2e1b3423bab5f1a0c2f8600f731cf921a4917278b7b5fb0ccfd5e89866a1df3dSafe Transfer Fr...192789322022-08-03 11:47:2861 days 19 hrs ago0x54bff63f4eb29a3ea0a105b80d1ed50e17e6ea1f IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.00005684406 ETH
0x696d048e4d46b1a81d464a0d60f69304e4d23cbc240f50278c245f803d7c6dafSafe Transfer Fr...192762612022-08-03 11:02:5761 days 19 hrs ago0x5679be2882c87745d32e0dff134dc6f7898209eb IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000058430217 ETH
0x717cf95e7014847ac1706299b845063291451203160363903fa100719c3b74f4Safe Transfer Fr...192752512022-08-03 10:44:2661 days 20 hrs ago0xb43db5ad6d1b19d90973d1e781897ccbcd291cec IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000058426649 ETH
0x47df05408d2487ca25b9812d9f67f2352c9ec33c7b912c66e32b52399e8c64e5Safe Transfer Fr...192515682022-08-03 5:03:2762 days 1 hr ago0x8598815714cce1e31c6681ece3469be1e6ae68ca IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000069390311 ETH
0xb88d367d7bea78b0a7a1a1bb0632c19f1f1490137241ada59a9ecaf7aa1a1e26Set Approval For...191902092022-08-02 11:38:1062 days 19 hrs ago0x817b74653a57719c4532c4bbdeadada08a97fbf3 IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000060776841 ETH
0x5bcc0c62f1f2be7bdac6ace53db1cbecc7bdcbd01fe5383fbc2c72917730ad47Safe Transfer Fr...191567612022-08-02 1:13:0863 days 5 hrs ago0xb76fc4b1f7aeca872db42939ec592c60edbfb63a IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000090245669 ETH
0xbb270e63d925abf2aad96b6ef5e1ad75721d6122bfac3af40d6d6af12c75ec5cSet Approval For...191451852022-08-01 20:44:2063 days 10 hrs ago0xcd06009d0b4a024ee0ab780ddcab6922c6faee0b IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000078094177 ETH
0x90f860d063a7ccd57131e61bd4dc546f02cd1e7d25fadc642436d03e51a4ebb6Set Approval For...191200712022-08-01 13:27:3463 days 17 hrs ago0x89eb534e60cf13377eada52e30e1fd725a372b3c IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000055653131 ETH
0xb2d9502a6d0df79da3db2d06611a8227d47f9f8eada57bbb4ff20eea9d931407Set Approval For...190742782022-07-31 23:23:5764 days 7 hrs ago0xf96fd6f445dc6b20af87bd805c362e3b503ebc49 IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000054560564 ETH
0x795c2f23691ca41be38a18425b69fdbddbfbbd189999ae811fceee0452f01b67Set Approval For...189541642022-07-30 14:41:0565 days 16 hrs ago0xc7d02229a3cac3ae9c243df24881b52b8212d1f8 IN  0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH0.000055842097 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x247073b53aac761889d332f429c75c67aac39025ab678064625a16b4c4bd1914231353392022-09-06 10:44:3227 days 20 hrs ago 0xa52b1b66655c4fe238a8af066fae58ea9a58216f 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0xead9379b0e862b0596fe820619a149d79e6a35ac9254cdb85cb48b29e286273c228562982022-09-04 20:01:3029 days 10 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0x6da26bcb0477cdfc2f05a68669b204fb1503d215bb01c2797c894732fd3e923f228161462022-09-04 14:19:3929 days 16 hrs ago 0x3a1e4cca3d617e76ed0fc77972852230b595445b 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0x6da26bcb0477cdfc2f05a68669b204fb1503d215bb01c2797c894732fd3e923f228161462022-09-04 14:19:3929 days 16 hrs ago LayerZero: Arbitrum Endpoint 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0x72575dd37918c7a7f9630f83d3efe21311ff234f36a56614672600c0210e0f57228138102022-09-04 14:05:0529 days 16 hrs ago tofuNFT: Market 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0xba244abf09c863ca61d523f35d41cf44ad3eb5b321a06ce0c8d64f30bc488496228136912022-09-04 14:04:2629 days 16 hrs ago tofuNFT: Market 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0xeadd84b379bacde4d47a1a9853fa6a7614626d8ef98c10e70113887a1dd4c64c219742132022-08-30 11:31:0634 days 19 hrs ago 0x3a1e4cca3d617e76ed0fc77972852230b595445b 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0xeadd84b379bacde4d47a1a9853fa6a7614626d8ef98c10e70113887a1dd4c64c219742132022-08-30 11:31:0634 days 19 hrs ago LayerZero: Arbitrum Endpoint 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0x90d6fb8f1154566a1e1565ac16bab99330efedb0a22abeea9f32a1c0d81f7801218851482022-08-29 18:04:1535 days 12 hrs ago tofuNFT: Market 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0xa5e4f9e47d2df45b6baf2b2702e2f80aa83e222adea5b30979d8822c56bb28a9218846722022-08-29 17:58:0035 days 12 hrs ago tofuNFT: Market 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0x6719bef3d95306c237bdcca2bd851204d654883c4f524af87084fde93c5be94a212639712022-08-25 15:38:0239 days 15 hrs ago 0x3a1e4cca3d617e76ed0fc77972852230b595445bLayerZero: Arbitrum Endpoint0.000720292146928308 ETH
0x6719bef3d95306c237bdcca2bd851204d654883c4f524af87084fde93c5be94a212639712022-08-25 15:38:0239 days 15 hrs ago 0x3a1e4cca3d617e76ed0fc77972852230b595445bLayerZero: Arbitrum Endpoint0 ETH
0xdfdc093c230de067f10b0729e0baa17a4c9101a9bfde970d24f42f927ccdffdb212548412022-08-25 14:13:3539 days 16 hrs ago tofuNFT: Market 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0x05e1e99a87f1b34a0cb26d8bac9ae4be31c8fb25814f6d236b507d8a400f9f4b195231182022-08-06 8:44:0058 days 22 hrs ago 0xfbdb2dd52c20acbc2a2ac5431e4b26daedaee51c 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0x14ddf8eb4dd11a748de86658ff2fafaa67ceb1a23d450ca233414b9ee0e48266194927722022-08-05 23:04:4459 days 7 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0x9153d7fa6d7355fb6a747fb29191e1f62d2a2d1ca79a50233fabe53f05a24a46193401902022-08-04 4:08:0161 days 2 hrs ago 0x3a1e4cca3d617e76ed0fc77972852230b595445b 0xfbdb2dd52c20acbc2a2ac5431e4b26daedaee51c0 ETH
0x9153d7fa6d7355fb6a747fb29191e1f62d2a2d1ca79a50233fabe53f05a24a46193401902022-08-04 4:08:0161 days 2 hrs ago tofuNFT: Market 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0x2e1b3423bab5f1a0c2f8600f731cf921a4917278b7b5fb0ccfd5e89866a1df3d192789322022-08-03 11:47:2861 days 19 hrs ago 0x3a1e4cca3d617e76ed0fc77972852230b595445b 0x533d16362741acdbd2af69c2ea2536665394e4070 ETH
0x696d048e4d46b1a81d464a0d60f69304e4d23cbc240f50278c245f803d7c6daf192762612022-08-03 11:02:5761 days 19 hrs ago 0x3a1e4cca3d617e76ed0fc77972852230b595445b 0xad76b325fff39fa7488fe59a99e40125f35843150 ETH
0x717cf95e7014847ac1706299b845063291451203160363903fa100719c3b74f4192752512022-08-03 10:44:2661 days 20 hrs ago 0x3a1e4cca3d617e76ed0fc77972852230b595445b 0xa52b1b66655c4fe238a8af066fae58ea9a58216f0 ETH
0xfd8d0b779fc6c15cb3405e3aafc5039ffd944ccc685ec5d3810752411e0fcedc192580362022-08-03 6:39:2362 days 12 mins ago 0x3a1e4cca3d617e76ed0fc77972852230b595445b 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0xfd8d0b779fc6c15cb3405e3aafc5039ffd944ccc685ec5d3810752411e0fcedc192580362022-08-03 6:39:2362 days 12 mins ago LayerZero: Arbitrum Endpoint 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0x47df05408d2487ca25b9812d9f67f2352c9ec33c7b912c66e32b52399e8c64e5192515682022-08-03 5:03:2762 days 1 hr ago 0x3a1e4cca3d617e76ed0fc77972852230b595445b 0x091649100ee549a4fdcb42dcbe1a7fc71d524d960 ETH
0x7db1992170c5999c35d1d7441cd01cf1f03b4abe53c44d2146a291868638ddd1192515232022-08-03 5:03:2762 days 1 hr ago tofuNFT: Market 0x3a1e4cca3d617e76ed0fc77972852230b595445b0 ETH
0x5bcc0c62f1f2be7bdac6ace53db1cbecc7bdcbd01fe5383fbc2c72917730ad47191567612022-08-02 1:13:0863 days 5 hrs ago 0x3a1e4cca3d617e76ed0fc77972852230b595445b 0x188d3106b1c722ee6e19f63cf4c34d4edd5a0ad10 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GeneXProject

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 21 : GeneXProject.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.4;

/// @creator:     GeneXProject
/// @author:      shintalha - twitter.com/shintalha

//      ___           ___           ___           ___           ___     
//     /  /\         /  /\         /__/\         /  /\         /__/|    
//    /  /:/_       /  /:/_        \  \:\       /  /:/_       |  |:|    
//   /  /:/ /\     /  /:/ /\        \  \:\     /  /:/ /\      |  |:|    
//  /  /:/_/::\   /  /:/ /:/_   _____\__\:\   /  /:/ /:/_   __|__|:|    
// /__/:/__\/\:\ /__/:/ /:/ /\ /__/::::::::\ /__/:/ /:/ /\ /__/::::\____
// \  \:\ /~~/:/ \  \:\/:/ /:/ \  \:\~~\~~\/ \  \:\/:/ /:/    ~\~~\::::/
//  \  \:\  /:/   \  \::/ /:/   \  \:\  ~~~   \  \::/ /:/      |~~|:|~~ 
//   \  \:\/:/     \  \:\/:/     \  \:\        \  \:\/:/       |  |:|   
//    \  \::/       \  \::/       \  \:\        \  \::/        |  |:|   
//     \__\/         \__\/         \__\/         \__\/         |__|/    
//
//           ___         ___           ___         ___          ___           ___                 
//     /  /\       /  /\         /  /\       /  /\        /  /\         /  /\          ___   
//    /  /::\     /  /::\       /  /::\     /  /:/       /  /:/_       /  /:/         /  /\  
//   /  /:/\:\   /  /:/\:\     /  /:/\:\   /__/::\      /  /:/ /\     /  /:/         /  /:/  
//  /  /:/~/:/  /  /:/~/:/    /  /:/  \:\  \__\/\:\    /  /:/ /:/_   /  /:/  ___    /  /:/   
// /__/:/ /:/  /__/:/ /:/___ /__/:/ \__\:\    \  \:\  /__/:/ /:/ /\ /__/:/  /  /\  /  /::\   
// \  \:\/:/   \  \:\/:::::/ \  \:\ /  /:/     \__\:\ \  \:\/:/ /:/ \  \:\ /  /:/ /__/:/\:\  
//  \  \::/     \  \::/~~~~   \  \:\  /:/      /  /:/  \  \::/ /:/   \  \:\  /:/  \__\/  \:\ 
//   \  \:\      \  \:\        \  \:\/:/      /__/:/    \  \:\/:/     \  \:\/:/        \  \:\
//    \  \:\      \  \:\        \  \::/       \__\/      \  \::/       \  \::/          \__\/
//     \__\/       \__\/         \__\/                    \__\/         \__\/                
                                                                                                    

import "../token/onft/ONFT721.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract GeneXProject is ONFT721 {
    uint public nextMintId;
    uint public maxMintId;
    
    bool public revealed = false;
    string BASE_URI;
    string HIDDEN_URI;

    bytes32 public merkleroot;
    bool public PUBLIC_SALE_STATE = false;
    bool public WL_SALE_STATE = false;

    uint constant maxTokenPerWallet = 2;

    uint gasLzReceive = 350000;

    mapping (address => uint) addressToMintCount;
    
    constructor(address _layerZerolzEndpoint, uint _startMintId, uint _endMintId) ONFT721("GeneXProject", "GXP", _layerZerolzEndpoint) 
    {
        nextMintId = _startMintId;
        maxMintId = _endMintId;
    }

    function mint() 
    internal 
    {
        _safeMint(msg.sender, nextMintId);
        nextMintId++;
    }

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

    function setMerkleRoot(bytes32 _merkleroot) 
    onlyOwner 
    public 
    {
        merkleroot = _merkleroot;
    }

    function setBaseURI(string memory NEW_BASE_URI) 
    public 
    onlyOwner 
    {
        BASE_URI = NEW_BASE_URI;
    }

    function setHiddenURI(string memory NEW_HIDDEN_URI) 
    public 
    onlyOwner 
    {
        HIDDEN_URI = NEW_HIDDEN_URI;
    }

    function tokenURI(uint256 tokenId)
    public
    view
    virtual
    override
    returns (string memory)
    {
        require(_exists(tokenId),"ONFT721Metadata: URI query for nonexistent token");
        if(revealed == false) 
            return HIDDEN_URI;

        return bytes(_baseURI()).length != 0 ? string(abi.encodePacked(_baseURI(),  Strings.toString(tokenId), ".json")) : '';
    }

    function ownerMint(uint256 numberOfTokens) 
    public 
    onlyOwner 
    {
        require((nextMintId + numberOfTokens) - 1 <= maxMintId, "Exceeds total supply for this chain.");
        for (uint i = 0; i < numberOfTokens; i++) 
        {
            mint();   
        }
    }

    function bool_PUBLIC_SALE() public 
    onlyOwner 
    {
        PUBLIC_SALE_STATE = !PUBLIC_SALE_STATE;
    }

    function bool_WL_SALE() public 
    onlyOwner 
    {
        WL_SALE_STATE = !WL_SALE_STATE;
    }

    function reveal() public onlyOwner {
        revealed = true;
    }

    modifier onlyAccounts () 
    {
        require(msg.sender == tx.origin, "Not allowed origin");
        _;
    }

    function _leafHash(address account)
    internal pure returns (bytes32)
    {
        return keccak256(abi.encodePacked(account));
    }
    
    function _verifyHash(bytes32 leaf, bytes32[] memory proof)
    internal view returns (bool)
    {
        return MerkleProof.verify(proof, merkleroot, leaf);
    }

    function whitelistMint(uint256 numberOfTokens, bytes32[] calldata proof)
    public
    onlyAccounts
    {
        require(WL_SALE_STATE, "Whitelist sale is not started.");
        require(numberOfTokens <= maxTokenPerWallet, "Too many requested");
        require((nextMintId + numberOfTokens) - 1 <= maxMintId, "Exceeds total supply for this chain.");
        require(addressToMintCount[msg.sender] + numberOfTokens <= maxTokenPerWallet, "Exceeds allowed mint number.");
        require(_verifyHash(_leafHash(msg.sender), proof), "Merkle proof is denied.");
        addressToMintCount[msg.sender] += numberOfTokens; 
        for (uint i = 0; i < numberOfTokens; i++) 
        {
            mint();   
        }
    }

    function publicMint(uint256 numberOfTokens) 
    public 
    onlyAccounts
    {
        require(PUBLIC_SALE_STATE, "Sale haven't started");
        require(numberOfTokens <= maxTokenPerWallet, "Too many requested");
        require((nextMintId + numberOfTokens) - 1 <= maxMintId, "Exceeds total supply");
        require(addressToMintCount[msg.sender] + numberOfTokens <= maxTokenPerWallet, "Exceeds allowance");
        addressToMintCount[msg.sender] += numberOfTokens;
        for (uint i = 0; i < numberOfTokens; i++) 
        {
            mint();   
        }
    }
    
    function _withdraw(address _address, uint256 _amount)
    private 
    {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Transfer failed.");
    }

    function withdrawAll() 
    public 
    onlyOwner 
    {
        uint256 balance_ = address(this).balance;
        require(balance_ > 0);
        _withdraw(owner(), balance_);
    }

    function traverseChains(uint16 _chainId, uint tokenId) public payable 
    {
        // _chainId is the Id of destination chain. Ids of available chains are like that:
        // ethereum: 1
        // bsc: 2
        // avalanche: 6
        // polygon: 9
        // arbitrum: 10
        // optimism: 11
        // antom: 12

        require(msg.sender == ownerOf(tokenId), "You don't own this ONFT.");
        require(trustedRemoteLookup[_chainId].length > 0, "You cannot make your ONFT to travel to this chain right now.");

        // When you transfer your nft to another chain, it must be destroyed(burned) on current chain.
        _burn(tokenId);

        bytes memory payload = abi.encode(msg.sender, tokenId);

        
        uint16 version = 1;
        bytes memory adapterParams = abi.encodePacked(version, gasLzReceive);

        // Getting the fees needed to pay to LayerZero + Relayer to cover message delivery. You will be refunded for extra gas paid.
        (uint messageFee, ) = lzEndpoint.estimateFees(_chainId, address(this), payload, false, adapterParams);
        
        require(msg.value >= messageFee, "GG: msg.value not enough to cover messageFee. Send gas for message fees");

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

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

    function setGasLzReceive(uint newVal) 
    external 
    onlyOwner 
    {
        gasLzReceive = newVal;
    }  

}

File 2 of 21 : ONFT721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IONFT721.sol";
import "./ONFT721Core.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

// NOTE: this ONFT contract has no public minting logic.
// must implement your own minting logic in child classes
contract ONFT721 is ONFT721Core, ERC721, IONFT721 {
    constructor(string memory _name, string memory _symbol, address _lzEndpoint) ERC721(_name, _symbol) ONFT721Core(_lzEndpoint) {}

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

    function _debitFrom(address _from, uint16, bytes memory, uint _tokenId) internal virtual override {
        require(_isApprovedOrOwner(_msgSender(), _tokenId), "ONFT721: send caller is not owner nor approved");
        require(ERC721.ownerOf(_tokenId) == _from, "ONFT721: send from incorrect owner");
        _burn(_tokenId);
    }

    function _creditTo(uint16, address _toAddress, uint _tokenId) internal virtual override {
        _safeMint(_toAddress, _tokenId);
    }
}

File 3 of 21 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 4 of 21 : IONFT721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IONFT721Core.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

/**
 * @dev Interface of the ONFT standard
 */
interface IONFT721 is IONFT721Core, IERC721 {

}

File 5 of 21 : ONFT721Core.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IONFT721Core.sol";
import "../../lzApp/NonblockingLzApp.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

abstract contract ONFT721Core is NonblockingLzApp, ERC165, IONFT721Core {
    constructor(address _lzEndpoint) NonblockingLzApp(_lzEndpoint) {}

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IONFT721Core).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) {
        // mock the payload for send()
        bytes memory payload = abi.encode(_toAddress, _tokenId);
        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, _tokenId, _refundAddress, _zroPaymentAddress, _adapterParams);
    }

    function _send(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) internal virtual {
        _debitFrom(_from, _dstChainId, _toAddress, _tokenId);

        bytes memory payload = abi.encode(_toAddress, _tokenId);
        _lzSend(_dstChainId, payload, _refundAddress, _zroPaymentAddress, _adapterParams);

        uint64 nonce = lzEndpoint.getOutboundNonce(_dstChainId, address(this));
        emit SendToChain(_from, _dstChainId, _toAddress, _tokenId, nonce);
    }

    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        // decode and load the toAddress
        (bytes memory toAddressBytes, uint tokenId) = abi.decode(_payload, (bytes, uint));
        address toAddress;
        assembly {
            toAddress := mload(add(toAddressBytes, 20))
        }

        _creditTo(_srcChainId, toAddress, tokenId);

        emit ReceiveFromChain(_srcChainId, _srcAddress, toAddress, tokenId, _nonce);
    }

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 7 of 21 : IONFT721Core.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Interface of the ONFT Core standard
 */
interface IONFT721Core is IERC165 {
    /**
     * @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 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 Emitted when `_tokenId` are moved from the `_sender` to (`_dstChainId`, `_toAddress`)
     * `_nonce` is the outbound nonce from
     */
    event SendToChain(address indexed _sender, uint16 indexed _dstChainId, bytes indexed _toAddress, uint _tokenId, uint64 _nonce);

    /**
     * @dev Emitted when `_tokenId` are sent from `_srcChainId` to the `_toAddress` at this chain. `_nonce` is the inbound nonce.
     */
    event ReceiveFromChain(uint16 indexed _srcChainId, bytes indexed _srcAddress, address indexed _toAddress, uint _tokenId, uint64 _nonce);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 21 : 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 10 of 21 : NonblockingLzApp.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./LzApp.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 {
    constructor(address _endpoint) LzApp(_endpoint) {}

    mapping(uint16 => mapping(bytes => mapping(uint64 => bytes32))) public failedMessages;

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

    // overriding the virtual function in LzReceiver
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        // try-catch all errors/exceptions
        try this.nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload) {
            // do nothing
        } catch {
            // error / exception
            failedMessages[_srcChainId][_srcAddress][_nonce] = keccak256(_payload);
            emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload);
        }
    }

    function nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _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 memory _srcAddress, uint64 _nonce, bytes memory _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);
    }
}

File 11 of 21 : 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 12 of 21 : 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";

/*
 * a generic LzReceiver implementation
 */
abstract contract LzApp is Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig {
    ILayerZeroEndpoint public immutable lzEndpoint;

    mapping(uint16 => bytes) public trustedRemoteLookup;

    event SetTrustedRemote(uint16 _srcChainId, bytes _srcAddress);

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

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

        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 && 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) internal virtual {
        bytes memory trustedRemote = trustedRemoteLookup[_dstChainId];
        require(trustedRemote.length != 0, "LzApp: destination chain is not a trusted source");
        lzEndpoint.send{value: msg.value}(_dstChainId, trustedRemote, _payload, _refundAddress, _zroPaymentAddress, _adapterParams);
    }

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

    // allow owner to set it multiple times.
    function setTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external onlyOwner {
        trustedRemoteLookup[_srcChainId] = _srcAddress;
        emit SetTrustedRemote(_srcChainId, _srcAddress);
    }

    //--------------------------- VIEW FUNCTION ----------------------------------------

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 14 of 21 : 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 15 of 21 : 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 16 of 21 : 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 17 of 21 : 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 18 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_layerZerolzEndpoint","type":"address"},{"internalType":"uint256","name":"_startMintId","type":"uint256"},{"internalType":"uint256","name":"_endMintId","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"MessageFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"ReceiveFromChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_sender","type":"address"},{"indexed":true,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":true,"internalType":"bytes","name":"_toAddress","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"SendToChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"SetTrustedRemote","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":"PUBLIC_SALE_STATE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_SALE_STATE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bool_PUBLIC_SALE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bool_WL_SALE","outputs":[],"stateMutability":"nonpayable","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":"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":"maxMintId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleroot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextMintId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"numberOfTokens","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"retryMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_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":"string","name":"NEW_BASE_URI","type":"string"}],"name":"setBaseURI","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":"uint256","name":"newVal","type":"uint256"}],"name":"setGasLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"NEW_HIDDEN_URI","type":"string"}],"name":"setHiddenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleroot","type":"bytes32"}],"name":"setMerkleRoot","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":"_srcAddress","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"traverseChains","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a0604052600b805460ff19169055600f805461ffff19169055620557306010553480156200002d57600080fd5b50604051620043a1380380620043a18339810160408190526200005091620001ff565b6040518060400160405280600c81526020016b11d95b9956141c9bda9958dd60a21b8152506040518060400160405280600381526020016204758560ec1b815250848282828080620000b1620000ab6200010560201b60201c565b62000109565b60601b6001600160601b03191660805250508151620000d890600390602085019062000159565b508051620000ee90600490602084019062000159565b5050506009949094555050600a55506200027f9050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001679062000242565b90600052602060002090601f0160209004810192826200018b5760008555620001d6565b82601f10620001a657805160ff1916838001178555620001d6565b82800160010185558215620001d6579182015b82811115620001d6578251825591602001919060010190620001b9565b50620001e4929150620001e8565b5090565b5b80821115620001e45760008155600101620001e9565b60008060006060848603121562000214578283fd5b83516001600160a01b03811681146200022b578384fd5b602085015160409095015190969495509392505050565b600181811c908216806200025757607f821691505b602082108114156200027957634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c6140b6620002eb600039600081816106ff015281816108ff01528181610b9601528181610de501528181610e8d015281816112330152818161186e01528181611a4401528181611b8a015281816121f1015281816127340152612e6f01526140b66000f3fe6080604052600436106102ad5760003560e01c8063715018a611610175578063bbaac02f116100dc578063e1d4c87011610095578063f19e75d41161006f578063f19e75d41461087c578063f2fde38b1461089c578063f577ae00146108bc578063f5ecbdbc146108dc57600080fd5b8063e1d4c870146107fd578063e985e9c514610813578063eb8d72b71461085c57600080fd5b8063bbaac02f14610757578063c87b56dd14610777578063cbed8b9c14610797578063cf89fa03146107b7578063d1deba1f146107ca578063d2cab056146107dd57600080fd5b8063982ae23d1161012e578063982ae23d146106a3578063a22cb465146106b8578063a475b5dd146106d8578063b353aaa7146106ed578063b6c7ecf514610721578063b88d4fde1461073757600080fd5b8063715018a6146106065780637533d7881461061b5780637cb647591461063b578063853828b61461065b5780638da5cb5b1461067057806395d89b411461068e57600080fd5b80633a85f7d81161021957806355f804b3116101d257806355f804b3146105135780635b8c41e6146105335780636352211e1461059057806366ad5c8a146105b05780636aa99da3146105d057806370a08231146105e657600080fd5b80633a85f7d8146104675780633d8b38f61461048657806342842e0e146104a657806342d65a8d146104c657806351830227146104e6578063519056361461050057600080fd5b8063095ea7b31161026b578063095ea7b3146103985780630e7a609d146103b857806310ddb137146103d257806323b872dd146103f25780632a205e3d146104125780632db115441461044757600080fd5b80621d3567146102b25780630135a4f9146102d457806301ffc9a7146102e957806306fdde031461031e57806307e0db1714610340578063081812fc14610360575b600080fd5b3480156102be57600080fd5b506102d26102cd366004613838565b6108fc565b005b3480156102e057600080fd5b506102d2610a60565b3480156102f557600080fd5b506103096103043660046135f5565b610a9e565b60405190151581526020015b60405180910390f35b34801561032a57600080fd5b50610333610ac1565b6040516103159190613b39565b34801561034c57600080fd5b506102d261035b3660046136e4565b610b53565b34801561036c57600080fd5b5061038061037b3660046135dd565b610bf7565b6040516001600160a01b039091168152602001610315565b3480156103a457600080fd5b506102d26103b33660046135b2565b610c8c565b3480156103c457600080fd5b50600f546103099060ff1681565b3480156103de57600080fd5b506102d26103ed3660046136e4565b610da2565b3480156103fe57600080fd5b506102d261040d36600461341f565b610e1c565b34801561041e57600080fd5b5061043261042d36600461374e565b610e4e565b60408051928352602083019190915201610315565b34801561045357600080fd5b506102d26104623660046135dd565b610f28565b34801561047357600080fd5b50600f5461030990610100900460ff1681565b34801561049257600080fd5b506103096104a13660046136fe565b61110b565b3480156104b257600080fd5b506102d26104c136600461341f565b6111d7565b3480156104d257600080fd5b506102d26104e13660046136fe565b6111f2565b3480156104f257600080fd5b50600b546103099060ff1681565b6102d261050e3660046134fc565b6112a3565b34801561051f57600080fd5b506102d261052e36600461369f565b6112b2565b34801561053f57600080fd5b5061058261054e3660046137d9565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b604051908152602001610315565b34801561059c57600080fd5b506103806105ab3660046135dd565b6112ef565b3480156105bc57600080fd5b506102d26105cb366004613838565b611366565b3480156105dc57600080fd5b5061058260095481565b3480156105f257600080fd5b5061058261060136600461339e565b6113d6565b34801561061257600080fd5b506102d261145d565b34801561062757600080fd5b506103336106363660046136e4565b611493565b34801561064757600080fd5b506102d26106563660046135dd565b61152d565b34801561066757600080fd5b506102d261155c565b34801561067c57600080fd5b506000546001600160a01b0316610380565b34801561069a57600080fd5b506103336115af565b3480156106af57600080fd5b506102d26115be565b3480156106c457600080fd5b506102d26106d33660046134c8565b611605565b3480156106e457600080fd5b506102d2611610565b3480156106f957600080fd5b506103807f000000000000000000000000000000000000000000000000000000000000000081565b34801561072d57600080fd5b50610582600e5481565b34801561074357600080fd5b506102d261075236600461345f565b611649565b34801561076357600080fd5b506102d261077236600461369f565b61167b565b34801561078357600080fd5b506103336107923660046135dd565b6116b8565b3480156107a357600080fd5b506102d26107b23660046138fd565b61182d565b6102d26107c5366004613969565b6118e4565b6102d26107d8366004613838565b611c02565b3480156107e957600080fd5b506102d26107f8366004613984565b611d54565b34801561080957600080fd5b50610582600a5481565b34801561081f57600080fd5b5061030961082e3660046133e7565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561086857600080fd5b506102d26108773660046136fe565b611fe6565b34801561088857600080fd5b506102d26108973660046135dd565b61206f565b3480156108a857600080fd5b506102d26108b736600461339e565b6120f9565b3480156108c857600080fd5b506102d26108d73660046135dd565b612191565b3480156108e857600080fd5b506103336108f73660046138b1565b6121c0565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161461093157600080fd5b61ffff84166000908152600160205260408120805461094f90613f94565b80601f016020809104026020016040519081016040528092919081815260200182805461097b90613f94565b80156109c85780601f1061099d576101008083540402835291602001916109c8565b820191906000526020600020905b8154815290600101906020018083116109ab57829003601f168201915b50505050509050805184511480156109ed575080805190602001208480519060200120145b610a4d5760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b610a5985858585612282565b5050505050565b6000546001600160a01b03163314610a8a5760405162461bcd60e51b8152600401610a4490613c04565b600f805460ff19811660ff90911615179055565b60006001600160e01b031982161580610abb5750610abb82612373565b92915050565b606060038054610ad090613f94565b80601f0160208091040260200160405190810160405280929190818152602001828054610afc90613f94565b8015610b495780601f10610b1e57610100808354040283529160200191610b49565b820191906000526020600020905b815481529060010190602001808311610b2c57829003601f168201915b5050505050905090565b6000546001600160a01b03163314610b7d5760405162461bcd60e51b8152600401610a4490613c04565b6040516307e0db1760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906307e0db17906024015b600060405180830381600087803b158015610be357600080fd5b505af1158015610a59573d6000803e3d6000fd5b6000818152600560205260408120546001600160a01b0316610c705760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a44565b506000908152600760205260409020546001600160a01b031690565b6000610c97826112ef565b9050806001600160a01b0316836001600160a01b03161415610d055760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a44565b336001600160a01b0382161480610d215750610d21813361082e565b610d935760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a44565b610d9d83836123b3565b505050565b6000546001600160a01b03163314610dcc5760405162461bcd60e51b8152600401610a4490613c04565b6040516310ddb13760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906310ddb13790602401610bc9565b610e27335b82612421565b610e435760405162461bcd60e51b8152600401610a4490613c39565b610d9d838383612514565b60008060008686604051602001610e66929190613b4c565b60408051601f198184030181529082905263040a7bb160e41b825291506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906340a7bb1090610eca908b90309086908b908b90600401613c8a565b604080518083038186803b158015610ee157600080fd5b505afa158015610ef5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1991906139fd565b92509250509550959350505050565b333214610f6c5760405162461bcd60e51b81526020600482015260126024820152712737ba1030b63637bbb2b21037b934b3b4b760711b6044820152606401610a44565b600f5460ff16610fb55760405162461bcd60e51b815260206004820152601460248201527314d85b19481a185d995b89dd081cdd185c9d195960621b6044820152606401610a44565b6002811115610ffb5760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b6044820152606401610a44565b600a5460018260095461100e9190613f25565b6110189190613f51565b111561105d5760405162461bcd60e51b81526020600482015260146024820152734578636565647320746f74616c20737570706c7960601b6044820152606401610a44565b3360009081526011602052604090205460029061107b908390613f25565b11156110bd5760405162461bcd60e51b81526020600482015260116024820152704578636565647320616c6c6f77616e636560781b6044820152606401610a44565b33600090815260116020526040812080548392906110dc908490613f25565b90915550600090505b81811015611107576110f56126b0565b806110ff81613fcf565b9150506110e5565b5050565b61ffff83166000908152600160205260408120805482919061112c90613f94565b80601f016020809104026020016040519081016040528092919081815260200182805461115890613f94565b80156111a55780601f1061117a576101008083540402835291602001916111a5565b820191906000526020600020905b81548152906001019060200180831161118857829003601f168201915b5050505050905083836040516111bc929190613a91565b60405180910390208180519060200120149150509392505050565b610d9d83838360405180602001604052806000815250611649565b6000546001600160a01b0316331461121c5760405162461bcd60e51b8152600401610a4490613c04565b6040516342d65a8d60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342d65a8d9061126c90869086908690600401613cde565b600060405180830381600087803b15801561128657600080fd5b505af115801561129a573d6000803e3d6000fd5b50505050505050565b61129a878787878787876126d3565b6000546001600160a01b031633146112dc5760405162461bcd60e51b8152600401610a4490613c04565b805161110790600c9060208401906131c7565b6000818152600560205260408120546001600160a01b031680610abb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a44565b3330146113c45760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608401610a44565b6113d08484848461282a565b50505050565b60006001600160a01b0382166114415760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a44565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b031633146114875760405162461bcd60e51b8152600401610a4490613c04565b6114916000612857565b565b600160205260009081526040902080546114ac90613f94565b80601f01602080910402602001604051908101604052809291908181526020018280546114d890613f94565b80156115255780601f106114fa57610100808354040283529160200191611525565b820191906000526020600020905b81548152906001019060200180831161150857829003601f168201915b505050505081565b6000546001600160a01b031633146115575760405162461bcd60e51b8152600401610a4490613c04565b600e55565b6000546001600160a01b031633146115865760405162461bcd60e51b8152600401610a4490613c04565b478061159157600080fd5b6115ac6115a66000546001600160a01b031690565b826128a7565b50565b606060048054610ad090613f94565b6000546001600160a01b031633146115e85760405162461bcd60e51b8152600401610a4490613c04565b600f805461ff001981166101009182900460ff1615909102179055565b61110733838361293d565b6000546001600160a01b0316331461163a5760405162461bcd60e51b8152600401610a4490613c04565b600b805460ff19166001179055565b6116533383612421565b61166f5760405162461bcd60e51b8152600401610a4490613c39565b6113d084848484612a0c565b6000546001600160a01b031633146116a55760405162461bcd60e51b8152600401610a4490613c04565b805161110790600d9060208401906131c7565b6000818152600560205260409020546060906001600160a01b03166117385760405162461bcd60e51b815260206004820152603060248201527f4f4e46543732314d657461646174613a2055524920717565727920666f72206e60448201526f37b732bc34b9ba32b73a103a37b5b2b760811b6064820152608401610a44565b600b5460ff166117d457600d805461174f90613f94565b80601f016020809104026020016040519081016040528092919081815260200182805461177b90613f94565b80156117c85780601f1061179d576101008083540402835291602001916117c8565b820191906000526020600020905b8154815290600101906020018083116117ab57829003601f168201915b50505050509050919050565b6117dc612a3f565b516117f65760405180602001604052806000815250610abb565b6117fe612a3f565b61180783612a4e565b604051602001611818929190613abd565b60405160208183030381529060405292915050565b6000546001600160a01b031633146118575760405162461bcd60e51b8152600401610a4490613c04565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c906118ab9088908890889088908890600401613ea0565b600060405180830381600087803b1580156118c557600080fd5b505af11580156118d9573d6000803e3d6000fd5b505050505050505050565b6118ed816112ef565b6001600160a01b0316336001600160a01b03161461194d5760405162461bcd60e51b815260206004820152601860248201527f596f7520646f6e2774206f776e2074686973204f4e46542e00000000000000006044820152606401610a44565b61ffff82166000908152600160205260408120805461196b90613f94565b9050116119e05760405162461bcd60e51b815260206004820152603c60248201527f596f752063616e6e6f74206d616b6520796f7572204f4e465420746f2074726160448201527f76656c20746f207468697320636861696e207269676874206e6f772e000000006064820152608401610a44565b6119e981612b67565b60408051336020820152808201839052815180820383018152606082018352601054600160f01b60808401526082808401919091528351808403909101815260a283019384905263040a7bb160e41b909352916001916000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906340a7bb1090611a89908990309089908790899060a601613c8a565b604080518083038186803b158015611aa057600080fd5b505afa158015611ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad891906139fd565b50905080341015611b615760405162461bcd60e51b815260206004820152604760248201527f47473a206d73672e76616c7565206e6f7420656e6f75676820746f20636f766560448201527f72206d6573736167654665652e2053656e642067617320666f72206d657373616064820152666765206665657360c81b608482015260a401610a44565b61ffff8616600090815260016020526040808220905162c5803160e81b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169263c5803100923492611bc8928c92918b9133918b90600401613dac565b6000604051808303818588803b158015611be157600080fd5b505af1158015611bf5573d6000803e3d6000fd5b5050505050505050505050565b61ffff84166000908152600260205260408082209051611c23908690613aa1565b90815260408051602092819003830190206001600160401b03861660009081529252902054905080611ca35760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608401610a44565b815160208301208114611d025760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608401610a44565b61ffff85166000908152600260205260408082209051611d23908790613aa1565b90815260408051602092819003830190206001600160401b03871660009081529252902055610a598585858561282a565b333214611d985760405162461bcd60e51b81526020600482015260126024820152712737ba1030b63637bbb2b21037b934b3b4b760711b6044820152606401610a44565b600f54610100900460ff16611def5760405162461bcd60e51b815260206004820152601e60248201527f57686974656c6973742073616c65206973206e6f7420737461727465642e00006044820152606401610a44565b6002831115611e355760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b6044820152606401610a44565b600a54600184600954611e489190613f25565b611e529190613f51565b1115611e705760405162461bcd60e51b8152600401610a4490613b6e565b33600090815260116020526040902054600290611e8e908590613f25565b1115611edc5760405162461bcd60e51b815260206004820152601c60248201527f4578636565647320616c6c6f776564206d696e74206e756d6265722e000000006044820152606401610a44565b604080513360601b6bffffffffffffffffffffffff19166020808301919091528251601481840301815260349092019092528051910120611f5090838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612c0292505050565b611f9c5760405162461bcd60e51b815260206004820152601760248201527f4d65726b6c652070726f6f662069732064656e6965642e0000000000000000006044820152606401610a44565b3360009081526011602052604081208054859290611fbb908490613f25565b90915550600090505b838110156113d057611fd46126b0565b80611fde81613fcf565b915050611fc4565b6000546001600160a01b031633146120105760405162461bcd60e51b8152600401610a4490613c04565b61ffff8316600090815260016020526040902061202e90838361324b565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab83838360405161206293929190613cde565b60405180910390a1505050565b6000546001600160a01b031633146120995760405162461bcd60e51b8152600401610a4490613c04565b600a546001826009546120ac9190613f25565b6120b69190613f51565b11156120d45760405162461bcd60e51b8152600401610a4490613b6e565b60005b81811015611107576120e76126b0565b806120f181613fcf565b9150506120d7565b6000546001600160a01b031633146121235760405162461bcd60e51b8152600401610a4490613c04565b6001600160a01b0381166121885760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a44565b6115ac81612857565b6000546001600160a01b031633146121bb5760405162461bcd60e51b8152600401610a4490613c04565b601055565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f5ecbdbc9060840160006040518083038186803b15801561223b57600080fd5b505afa15801561224f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612277919081019061362d565b90505b949350505050565b604051633356ae4560e11b815230906366ad5c8a906122ab908790879087908790600401613d63565b600060405180830381600087803b1580156122c557600080fd5b505af19250505080156122d6575060015b6113d0578080519060200120600260008661ffff1661ffff1681526020019081526020016000208460405161230b9190613aa1565b9081526040805191829003602090810183206001600160401b0387166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90612366908690869086908690613d63565b60405180910390a16113d0565b60006001600160e01b031982166380ac58cd60e01b14806123a457506001600160e01b03198216635b5e139f60e01b145b80610abb5750610abb82612c18565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123e8826112ef565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b031661249a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a44565b60006124a5836112ef565b9050806001600160a01b0316846001600160a01b031614806124e05750836001600160a01b03166124d584610bf7565b6001600160a01b0316145b8061227a57506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff1661227a565b826001600160a01b0316612527826112ef565b6001600160a01b03161461258b5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610a44565b6001600160a01b0382166125ed5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a44565b6125f86000826123b3565b6001600160a01b0383166000908152600660205260408120805460019290612621908490613f51565b90915550506001600160a01b038216600090815260066020526040812080546001929061264f908490613f25565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6126bc33600954612c4d565b600980549060006126cc83613fcf565b9190505550565b6126df87878787612c67565b600085856040516020016126f4929190613b4c565b60405160208183030381529060405290506127128782868686612d50565b604051630f428ae960e31b815261ffff881660048201523060248201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637a1457489060440160206040518083038186803b15801561277e57600080fd5b505afa158015612792573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127b69190613a20565b9050866040516127c69190613aa1565b604080519182900382208883526001600160401b03841660208401529161ffff8b16916001600160a01b038d16917f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce1543910160405180910390a4505050505050505050565b6000808280602001905181019061284191906133ba565b9150915061284f8282612c4d565b505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146128f4576040519150601f19603f3d011682016040523d82523d6000602084013e6128f9565b606091505b5050905080610d9d5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610a44565b816001600160a01b0316836001600160a01b0316141561299f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a44565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612a17848484612514565b612a2384848484612eb0565b6113d05760405162461bcd60e51b8152600401610a4490613bb2565b6060600c8054610ad090613f94565b606081612a725750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a9c5780612a8681613fcf565b9150612a959050600a83613f3d565b9150612a76565b6000816001600160401b03811115612ac457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612aee576020820181803683370190505b5090505b841561227a57612b03600183613f51565b9150612b10600a86613fea565b612b1b906030613f25565b60f81b818381518110612b3e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612b60600a86613f3d565b9450612af2565b6000612b72826112ef565b9050612b7f6000836123b3565b6001600160a01b0381166000908152600660205260408120805460019290612ba8908490613f51565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000612c1182600e5485612fba565b9392505050565b60006001600160e01b03198216637bb0080b60e01b1480610abb57506301ffc9a760e01b6001600160e01b0319831614610abb565b611107828260405180602001604052806000815250612fd0565b612c7033610e21565b612cd35760405162461bcd60e51b815260206004820152602e60248201527f4f4e46543732313a2073656e642063616c6c6572206973206e6f74206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b6064820152608401610a44565b836001600160a01b0316612ce6826112ef565b6001600160a01b031614612d475760405162461bcd60e51b815260206004820152602260248201527f4f4e46543732313a2073656e642066726f6d20696e636f7272656374206f776e60448201526132b960f11b6064820152608401610a44565b6113d081612b67565b61ffff851660009081526001602052604081208054612d6e90613f94565b80601f0160208091040260200160405190810160405280929190818152602001828054612d9a90613f94565b8015612de75780601f10612dbc57610100808354040283529160200191612de7565b820191906000526020600020905b815481529060010190602001808311612dca57829003601f168201915b50505050509050805160001415612e595760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608401610a44565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c5803100903490611bc8908a9086908b908b908b908b90600401613cfc565b60006001600160a01b0384163b15612fb257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612ef4903390899088908890600401613afc565b602060405180830381600087803b158015612f0e57600080fd5b505af1925050508015612f3e575060408051601f3d908101601f19168201909252612f3b91810190613611565b60015b612f98573d808015612f6c576040519150601f19603f3d011682016040523d82523d6000602084013e612f71565b606091505b508051612f905760405162461bcd60e51b8152600401610a4490613bb2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061227a565b50600161227a565b600082612fc78584613003565b14949350505050565b612fda8383613085565b612fe76000848484612eb0565b610d9d5760405162461bcd60e51b8152600401610a4490613bb2565b600081815b845181101561307d57600085828151811061303357634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311613059576000838152602082905260409020925061306a565b600081815260208490526040902092505b508061307581613fcf565b915050613008565b509392505050565b6001600160a01b0382166130db5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a44565b6000818152600560205260409020546001600160a01b0316156131405760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a44565b6001600160a01b0382166000908152600660205260408120805460019290613169908490613f25565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546131d390613f94565b90600052602060002090601f0160209004810192826131f5576000855561323b565b82601f1061320e57805160ff191683800117855561323b565b8280016001018555821561323b579182015b8281111561323b578251825591602001919060010190613220565b506132479291506132bf565b5090565b82805461325790613f94565b90600052602060002090601f016020900481019282613279576000855561323b565b82601f106132925782800160ff1982351617855561323b565b8280016001018555821561323b579182015b8281111561323b5782358255916020019190600101906132a4565b5b8082111561324757600081556001016132c0565b60006132e76132e284613efe565b613ece565b90508281528383830111156132fb57600080fd5b828260208301376000602084830101529392505050565b8035801515811461332257600080fd5b919050565b60008083601f840112613338578182fd5b5081356001600160401b0381111561334e578182fd5b60208301915083602082850101111561336657600080fd5b9250929050565b600082601f83011261337d578081fd5b612c11838335602085016132d4565b803561ffff8116811461332257600080fd5b6000602082840312156133af578081fd5b8135612c1181614040565b600080604083850312156133cc578081fd5b82516133d781614040565b6020939093015192949293505050565b600080604083850312156133f9578182fd5b823561340481614040565b9150602083013561341481614040565b809150509250929050565b600080600060608486031215613433578081fd5b833561343e81614040565b9250602084013561344e81614040565b929592945050506040919091013590565b60008060008060808587031215613474578081fd5b843561347f81614040565b9350602085013561348f81614040565b92506040850135915060608501356001600160401b038111156134b0578182fd5b6134bc8782880161336d565b91505092959194509250565b600080604083850312156134da578182fd5b82356134e581614040565b91506134f360208401613312565b90509250929050565b600080600080600080600060e0888a031215613516578485fd5b873561352181614040565b965061352f6020890161338c565b955060408801356001600160401b038082111561354a578687fd5b6135568b838c0161336d565b965060608a0135955060808a0135915061356f82614040565b90935060a08901359061358182614040565b90925060c08901359080821115613596578283fd5b506135a38a828b0161336d565b91505092959891949750929550565b600080604083850312156135c4578182fd5b82356135cf81614040565b946020939093013593505050565b6000602082840312156135ee578081fd5b5035919050565b600060208284031215613606578081fd5b8135612c1181614055565b600060208284031215613622578081fd5b8151612c1181614055565b60006020828403121561363e578081fd5b81516001600160401b03811115613653578182fd5b8201601f81018413613663578182fd5b80516136716132e282613efe565b818152856020838501011115613685578384fd5b613696826020830160208601613f68565b95945050505050565b6000602082840312156136b0578081fd5b81356001600160401b038111156136c5578182fd5b8201601f810184136136d5578182fd5b61227a848235602084016132d4565b6000602082840312156136f5578081fd5b612c118261338c565b600080600060408486031215613712578081fd5b61371b8461338c565b925060208401356001600160401b03811115613735578182fd5b61374186828701613327565b9497909650939450505050565b600080600080600060a08688031215613765578283fd5b61376e8661338c565b945060208601356001600160401b0380821115613789578485fd5b61379589838a0161336d565b9550604088013594506137aa60608901613312565b935060808801359150808211156137bf578283fd5b506137cc8882890161336d565b9150509295509295909350565b6000806000606084860312156137ed578081fd5b6137f68461338c565b925060208401356001600160401b03811115613810578182fd5b61381c8682870161336d565b925050604084013561382d8161406b565b809150509250925092565b6000806000806080858703121561384d578182fd5b6138568561338c565b935060208501356001600160401b0380821115613871578384fd5b61387d8883890161336d565b94506040870135915061388f8261406b565b909250606086013590808211156138a4578283fd5b506134bc8782880161336d565b600080600080608085870312156138c6578182fd5b6138cf8561338c565b93506138dd6020860161338c565b925060408501356138ed81614040565b9396929550929360600135925050565b600080600080600060808688031215613914578283fd5b61391d8661338c565b945061392b6020870161338c565b93506040860135925060608601356001600160401b0381111561394c578182fd5b61395888828901613327565b969995985093965092949392505050565b6000806040838503121561397b578182fd5b6135cf8361338c565b600080600060408486031215613998578081fd5b8335925060208401356001600160401b03808211156139b5578283fd5b818601915086601f8301126139c8578283fd5b8135818111156139d6578384fd5b8760208260051b85010111156139ea578384fd5b6020830194508093505050509250925092565b60008060408385031215613a0f578182fd5b505080516020909101519092909150565b600060208284031215613a31578081fd5b8151612c118161406b565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60008151808452613a7d816020860160208601613f68565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b60008251613ab3818460208701613f68565b9190910192915050565b60008351613acf818460208801613f68565b835190830190613ae3818360208801613f68565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b2f90830184613a65565b9695505050505050565b602081526000612c116020830184613a65565b604081526000613b5f6040830185613a65565b90508260208301529392505050565b60208082526024908201527f4578636565647320746f74616c20737570706c7920666f72207468697320636860408201526330b4b71760e11b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b61ffff861681526001600160a01b038516602082015260a060408201819052600090613cb890830186613a65565b84151560608401528281036080840152613cd28185613a65565b98975050505050505050565b61ffff84168152604060208201526000612277604083018486613a3c565b61ffff8716815260c060208201526000613d1960c0830188613a65565b8281036040840152613d2b8188613a65565b6001600160a01b0387811660608601528616608085015283810360a08501529050613d568185613a65565b9998505050505050505050565b61ffff85168152608060208201526000613d806080830186613a65565b6001600160401b03851660408401528281036060840152613da18185613a65565b979650505050505050565b61ffff871681526000602060c08184015281885483600182811c915080831680613dd757607f831692505b858310811415613df557634e487b7160e01b87526022600452602487fd5b60c0880183905260e08801818015613e145760018114613e2557613e4f565b60ff19861682528782019650613e4f565b60008f815260209020895b86811015613e4957815484820152908501908901613e30565b83019750505b5050505050508381036040850152613e678189613a65565b915050613e7f60608401876001600160a01b03169052565b6001600160a01b038516608084015282810360a0840152613d568185613a65565b600061ffff808816835280871660208401525084604083015260806060830152613da1608083018486613a3c565b604051601f8201601f191681016001600160401b0381118282101715613ef657613ef661402a565b604052919050565b60006001600160401b03821115613f1757613f1761402a565b50601f01601f191660200190565b60008219821115613f3857613f38613ffe565b500190565b600082613f4c57613f4c614014565b500490565b600082821015613f6357613f63613ffe565b500390565b60005b83811015613f83578181015183820152602001613f6b565b838111156113d05750506000910152565b600181811c90821680613fa857607f821691505b60208210811415613fc957634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613fe357613fe3613ffe565b5060010190565b600082613ff957613ff9614014565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146115ac57600080fd5b6001600160e01b0319811681146115ac57600080fd5b6001600160401b03811681146115ac57600080fdfea26469706673582212205ac7bd8a3607964cca0f0205e33eb1a29d7b6a1e541f9fad4b072cb5d348228d64736f6c634300080400330000000000000000000000003c2269811836af69497e5f486a85d7316753cf62000000000000000000000000000000000000000000000000000000000000148800000000000000000000000000000000000000000000000000000000000014eb

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

0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62000000000000000000000000000000000000000000000000000000000000148800000000000000000000000000000000000000000000000000000000000014eb

-----Decoded View---------------
Arg [0] : _layerZerolzEndpoint (address): 0x3c2269811836af69497e5f486a85d7316753cf62
Arg [1] : _startMintId (uint256): 5256
Arg [2] : _endMintId (uint256): 5355

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62
Arg [1] : 0000000000000000000000000000000000000000000000000000000000001488
Arg [2] : 00000000000000000000000000000000000000000000000000000000000014eb


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.