Contract 0x4848706F42f44342b83C5Fea1dE862856c1C880e

Contract Overview

Balance:
0.08 Ether
Txn Hash
Method
Block
From
To
Value
0x8a8d641cbae963d34ec9bfa8206cbfaff2a385d65f7be89355fc62a34bd1fd2bTransfer Quad104939562022-04-12 23:02:31228 days 19 hrs ago0x9a2c6ef308f6c5c10091eb4884dfb476e1aa9034 IN  0x4848706f42f44342b83c5fea1de862856c1c880e0 Ether0.00263846 1.00000001
0xbd93ff6630017963e7fbf652253e1c65ca72e8397ae0ac8b705027a62e7d5838Mint Land2104939552022-04-12 23:02:16228 days 19 hrs ago0x9a2c6ef308f6c5c10091eb4884dfb476e1aa9034 IN  0x4848706f42f44342b83c5fea1de862856c1c880e0.02 Ether0.0285 1
0x85bc20e2b2ac3230738e814b5b5cf00b74f615567c53fa35896ffe681b4cc4ddMint Land2104841582022-04-11 5:45:46230 days 12 hrs ago0x9a2c6ef308f6c5c10091eb4884dfb476e1aa9034 IN  0x4848706f42f44342b83c5fea1de862856c1c880e0.02 Ether0.0076421 1.00000001
0x79025d6a3be785ee8647f29f59aed39aabdb819cf437a8d170f34e110914a2b1Mint Land2104840862022-04-11 5:27:43230 days 13 hrs ago0x9a2c6ef308f6c5c10091eb4884dfb476e1aa9034 IN  0x4848706f42f44342b83c5fea1de862856c1c880e0.02 Ether0.0019555 1
0x28981aed7c2384b53e31f249a693b066e7785e60bac9b582e276f7bbe17e3c89Set Approval For...104814292022-04-10 18:22:03231 days 18 mins ago0x9a2c6ef308f6c5c10091eb4884dfb476e1aa9034 IN  0x4848706f42f44342b83c5fea1de862856c1c880e0 Ether0.00011578 2.50000001
0x139c17f414c794310a85e46e31d6875eea37fb2943d5a1d84a6bd03af04f538aSet Approval For...104771762022-04-10 0:36:32231 days 18 hrs ago0xa1dc71c8d20e0c8b108a85a6baea140603e9e6a8 IN  0x4848706f42f44342b83c5fea1de862856c1c880e0 Ether0.00011578 2.5
0xd0efd8f49203db6a08ade085c3ae204a4c9bd41c55c6539c60c60b79541ca4aeTransfer Quad104765022022-04-09 21:47:40231 days 20 hrs ago0x9a2c6ef308f6c5c10091eb4884dfb476e1aa9034 IN  0x4848706f42f44342b83c5fea1de862856c1c880e0 Ether0.00024185 1
0x144676cbf5e875f1b76f69d4523eef7fab3304f4a7b4e0fb0eb3da511cdb57bdMint Land2104754582022-04-09 17:26:00232 days 1 hr ago0x9a2c6ef308f6c5c10091eb4884dfb476e1aa9034 IN  0x4848706f42f44342b83c5fea1de862856c1c880e0.02 Ether0.00053566 1.00000001
0x6f93ab0d7f98dcc86c29cd23252159dcb24eeba9957ff3ea9b130fae7c30d500Mint Land2104754392022-04-09 17:21:13232 days 1 hr ago0x9a2c6ef308f6c5c10091eb4884dfb476e1aa9034 IN  0x4848706f42f44342b83c5fea1de862856c1c880e0.02 Ether0.00021905 1.00000001
0x14272f07f6e024af05bcd3ce54308f67dfc84d9689efbd7c418558b85c6d08a70x60a06040104754052022-04-09 17:12:42232 days 1 hr ago0x10858130d017b46cd720709e85cb9577a66be146 IN  Create: GiSpaceLandBase0 Ether0.00302892 1
[ Download CSV Export 
Latest 2 internal transactions
Parent Txn Hash Block From To Value
0x0720b3e1e9ea08ab9a2a9e995ab66d3d6ee29596ce9d6352a4712d4c765c46ce104814312022-04-10 18:22:33231 days 17 mins ago 0xc26cf0f02584201c4b5040e555b38fa4f88c1e2e 0x4848706f42f44342b83c5fea1de862856c1c880e0 Ether
0x73b0a5c1183016bb5295d14ee69dae9b5eb5c9568fedfd279b5231955da3de30104771792022-04-10 0:37:17231 days 18 hrs ago 0xa7889d4895d038fef1f04decfd688ed102b5a7ad 0x4848706f42f44342b83c5fea1de862856c1c880e0 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GiSpaceLandBase

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 13 : GiSpaceLandBase.sol
// SPDX-License-Identifier: MIT

/* due to compiler0.5.9 issue*/
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
//import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./Signing.sol";

contract GiSpaceLandBase is ERC721, ERC721URIStorage, Ownable {
    //4 Apr
    //using Counters for Counters.Counter;

    uint256 constant public PRICE = 0.02 ether;

    enum SalePhase {
		Locked,
		PreSale,
		PublicSale
	}

    uint256 internal constant MAX_PARCEL = 10000;

    uint256 internal constant MAP_SIZE = 12000;

    uint256 internal constant LAYER =          0xFF00000000000000000000000000000000000000000000000000000000000000;
    uint256 internal constant LAYER_1x1 =      0x0000000000000000000000000000000000000000000000000000000000000000;
    uint256 internal constant LAYER_3x3 =      0x0100000000000000000000000000000000000000000000000000000000000000;
    //uint256 internal constant LAYER_3x3 =      500000;
    uint256 internal constant LAYER_6x6 =      0x0200000000000000000000000000000000000000000000000000000000000000;
    uint256 internal constant LAYER_12x12 =    0x0300000000000000000000000000000000000000000000000000000000000000;
    uint256 internal constant LAYER_24x24 =    0x0400000000000000000000000000000000000000000000000000000000000000;

    mapping (uint256 => uint256) public _landOwners;
    mapping (address => uint256) public _numNFTPerAddress;

    SalePhase public phase = SalePhase.Locked;

    address private immutable _adminSigner;

    mapping(address=>address) public signatures;

    string private _defaultUri;

    //4 Apr
    //Counters.Counter private _tokenIdCounter;

	/*
	 * Constructor
	 */
    constructor(address adminSigner, string memory uri) ERC721("GigaSpace", "GIS") {
        _adminSigner = adminSigner;
        _defaultUri = uri;
    }

    function _baseURI() internal pure override returns (string memory) {
        //return "https://gateway.pinata.cloud/ipfs/";
    }

	/// Advance Phase
	/// @dev Set the sale phase state by SalePhase
	/// @notice Set the sale phase state 
    function enterPhase(SalePhase _phase) external onlyOwner {
        phase = _phase;
    }

    /// @notice total width of the map
    /// @return width
    function width() external pure returns(uint256) {
        return MAP_SIZE;
    }

    /// @notice total height of the map
    /// @return height
    function height() external pure returns(uint256) {
        return MAP_SIZE;
    }

    function mintLand(address to, uint256 size, uint256 x, uint256 y, string[] memory uri) public payable {
    
    }
    
    /**
     * @notice Mint a new quad (aligned to a quad tree with size 3, 6, 12 or 24 only)
     * @param to The recipient of the new quad
     * @param size The size of the new quad
     * @param x The top left x coordinate of the new quad
     * @param y The top left y coordinate of the new quad
     * //param data extra data to pass to the transfer
     */
     function mintLand2(address to, uint256 size, uint256 x, uint256 y, string[] memory uri) public payable {
    //function mintLand(address to, uint256 size, uint256 x, uint256 y, bytes calldata data) public payable {
        require(to != address(0), "to is zero address");
        /*require(
            isMinter(msg.sender),
            "Only a minter can mint"
        ); */
        require(x % size == 0 && y % size == 0, "Invalid coordinates");
        require(x <= MAP_SIZE - size && y <= MAP_SIZE - size, "Out of bounds");

        require(msg.value >= PRICE, "The fee is 0.02 ETH, not enough ETH sent");

        uint256 quadId;
        uint256 id = x + y * MAP_SIZE;

        if (size == 1) {
            quadId = id;
        } else if (size == 3) {
            quadId = LAYER_3x3 + id;
        } else if (size == 6) {
            quadId = LAYER_6x6 + id;
        } else if (size == 12) {
            quadId = LAYER_12x12 + id;
        } else if (size == 24) {
            quadId = LAYER_24x24 + id;
        } else {
            require(false, "Invalid size");
        }

        require(_landOwners[LAYER_24x24 + (x/24) * 24 + ((y/24) * 24) * MAP_SIZE] == 0, "Already minted as 24x24");

        uint256 toX = x+size;
        uint256 toY = y+size;
        if (size <= 12) {
            require(
                _landOwners[LAYER_12x12 + (x/12) * 12 + ((y/12) * 12) * MAP_SIZE] == 0,
                "Already minted as 12x12"
            );
        } else {
            for (uint256 x12i = x; x12i < toX; x12i += 12) {
                for (uint256 y12i = y; y12i < toY; y12i += 12) {
                    uint256 id12x12 = LAYER_12x12 + x12i + y12i * MAP_SIZE;
                    require(_landOwners[id12x12] == 0, "Already minted as 12x12");
                }
            }
        }

        if (size <= 6) {
            require(_landOwners[LAYER_6x6 + (x/6) * 6 + ((y/6) * 6) * MAP_SIZE] == 0, "Already minted as 6x6");
        } else {
            for (uint256 x6i = x; x6i < toX; x6i += 6) {
                for (uint256 y6i = y; y6i < toY; y6i += 6) {
                    uint256 id6x6 = LAYER_6x6 + x6i + y6i * MAP_SIZE;
                    require(_landOwners[id6x6] == 0, "Already minted as 6x6");
                }
            }
        }

        if (size <= 3) {
            require(_landOwners[LAYER_3x3 + (x/3) * 3 + ((y/3) * 3) * MAP_SIZE] == 0, "Already minted as 3x3");
        } else {
            for (uint256 x3i = x; x3i < toX; x3i += 3) {
                for (uint256 y3i = y; y3i < toY; y3i += 3) {
                    uint256 id3x3 = LAYER_3x3 + x3i + y3i * MAP_SIZE;
                    require(_landOwners[id3x3] == 0, "Already minted as 3x3");
                }
            }
        }

        for (uint256 i = 0; i < size*size; i++) {
            //26Apr2022 
            uint256 _id = _idInPath(i, size, x, y);
            require(_landOwners[_id] == 0, "Already minted");
            //emit Transfer(address(0), to, _id);
             _safeMint(msg.sender, _id, uri[i]);

        }

        //26Mar2022 
        //_landOwners[quadId] = uint256(to);
        _landOwners[quadId] = uint256(uint160(address(to)));
        _numNFTPerAddress[to] += size * size;

        //26Mar2022 
        //_checkBatchReceiverAcceptQuad(msg.sender, address(0), to, size, x, y, data);
    }

    function _idInPath(uint256 i, uint256 size, uint256 x, uint256 y) internal pure returns(uint256) {
        uint256 row = i / size;
        if(row % 2 == 0) { // alow ids to follow a path in a quad
            return (x + (i%size)) + ((y + row) * MAP_SIZE);
        } else {
            return ((x + size) - (1 + i%size)) + ((y + row) * MAP_SIZE);
        }
    }

    /*
    function preSaleMint(uint256 amount, string memory uri, bytes memory signature) public payable {
        require(phase == SalePhase.PreSale, "Presale phase is not active");

        require(_processSignature(_adminSigner, msg.sender, signature), "Not a whitelist address");
        _safeMint(msg.sender, 0, uri);

    }    

    function mint(uint256 amount, string memory uri) public payable {
        require(phase == SalePhase.PublicSale, "Public phase is not active");

        _safeMint(msg.sender, 0, uri);

    }    
    */

    function _safeMint(address to, uint256 tokenId, string memory uri) internal {

        //msg.value is in WEI, =20000000 GWEI, =0.02 ETH
        //7 Apr 
        //require(msg.value >= PRICE, "The fee is 0.02 ETH, not enough ETH sent");
        
        uint256 _id;

        /*
        if(tokenId == 0) {
            _id = _tokenIdCounter.current();
            _tokenIdCounter.increment();
        } else {
            _id = tokenId;
        }
        */
        
        _id = tokenId;

        _safeMint(to, _id);
        _setTokenURI(_id, uri);
    }

    /// @notice transfer one quad (aligned to a quad tree with size 3, 6, 12 or 24 only)
    /// @param from current owner of the quad
    /// @param to destination
    /// @param size size of the quad
    /// @param x The top left x coordinate of the quad
    /// @param y The top left y coordinate of the quad
    /// @param data additional data
    function transferQuad(address from, address to, uint256 size, uint256 x, uint256 y, bytes calldata data) external {
        require(from != address(0), "from is zero address");
        require(to != address(0), "can't send to zero address");
   

        /* 30Mar2022
        bool metaTx = msg.sender != from && _metaTransactionContracts[msg.sender];
        if (msg.sender != from && !metaTx) {
            require(
                _superOperators[msg.sender] ||
                _operatorsForAll[from][msg.sender],
                "not authorized to transferQuad"
            );
        }
        */
        
        _transferQuad(from, to, size, x, y);
        _numNFTPerAddress[from] -= size * size;
        _numNFTPerAddress[to] += size * size;

        //_checkBatchReceiverAcceptQuad(metaTx ? from : msg.sender, from, to, size, x, y, data);
    }

    function _transferQuad(address from, address to, uint256 size, uint256 x, uint256 y) internal {
        if (size == 1) {
            uint256 id1x1 = x + y * MAP_SIZE;
            address owner = _ownerOf(id1x1);
            require(owner != address(0), "token does not exist");
            require(owner == from, "not owner in _transferQuad");
            _landOwners[id1x1] = uint256(uint160(address(to)));
        } else {
            _regroup(from, to, size, x, y);
        }
        for (uint256 i = 0; i < size*size; i++) {
            //4 Apr
            //emit Transfer(from, to, _idInPath(i, size, x, y));
            safeTransferFrom(from, to, _idInPath(i, size, x, y));

            //4 Apr
            //safeTransferFrom(from, to, _idInPath(i, size, x, y), data);
        }
    }    

    //4 Apr
   //function _ownerOf(uint256 id) internal view returns (address) {
   function _ownerOf(uint256 id) public view returns (address) {
        require(id & LAYER == 0, "Invalid token id");
        uint256 x = id % MAP_SIZE;
        uint256 y = id / MAP_SIZE;
        uint256 owner1x1 = _landOwners[id];

        if (owner1x1 != 0) {
            return address(uint160(uint256(owner1x1))); // cast to zero
        } else {
            address owner3x3 = address(uint160(uint256(_landOwners[LAYER_3x3 + (x/3) * 3 + ((y/3) * 3) * MAP_SIZE])));
            if (owner3x3 != address(0)) {
                return owner3x3;
            } else {
                address owner6x6 = address(uint160(uint256(_landOwners[LAYER_6x6 + (x/6) * 6 + ((y/6) * 6) * MAP_SIZE])));
                if (owner6x6 != address(0)) {
                    return owner6x6;
                } else {
                    address owner12x12 = address(uint160(uint256(_landOwners[LAYER_12x12 + (x/12) * 12 + ((y/12) * 12) * MAP_SIZE])));
                    if (owner12x12 != address(0)) {
                        return owner12x12;
                    } else {
                        return address(uint160(uint256(_landOwners[LAYER_24x24 + (x/24) * 24 + ((y/24) * 24) * MAP_SIZE])));
                    }
                }
            }
        }
    }

    function _checkAndClear(address from, uint256 id) internal returns(bool) {
        uint256 owner = _landOwners[id];
        if (owner != 0) {
            require(address(uint160(uint256(owner))) == from, "not owner");
            _landOwners[id] = 0;
            return true;
        }
        return false;
    }

   function _regroup(address from, address to, uint256 size, uint256 x, uint256 y) internal {
        require(x % size == 0 && y % size == 0, "Invalid coordinates");
        require(x <= MAP_SIZE - size && y <= MAP_SIZE - size, "Out of bounds");

        if (size == 3) {
            _regroup3x3(from, to, x, y, true);
        } else if (size == 6) {
            _regroup6x6(from, to, x, y, true);
        } else if (size == 12) {
            _regroup12x12(from, to, x, y, true);
        } else if (size == 24) {
            _regroup24x24(from, to, x, y, true);
        } else {
            require(false, "Invalid size");
        }
    }

    function _regroup3x3(address from, address to, uint256 x, uint256 y, bool set) internal returns (bool) {
        uint256 id = x + y * MAP_SIZE;
        uint256 quadId = LAYER_3x3 + id;
        bool ownerOfAll = true;
        for (uint256 xi = x; xi < x+3; xi++) {
            for (uint256 yi = y; yi < y+3; yi++) {
                ownerOfAll = _checkAndClear(from, xi + yi * MAP_SIZE) && ownerOfAll;
            }
        }
        if(set) {
            if(!ownerOfAll) {
                require(
                    _landOwners[quadId] == uint256(uint160(from)) ||
                    _landOwners[LAYER_6x6 + (x/6) * 6 + ((y/6) * 6) * MAP_SIZE] == uint256(uint160(from)) ||
                    _landOwners[LAYER_12x12 + (x/12) * 12 + ((y/12) * 12) * MAP_SIZE] == uint256(uint160(from)) ||
                    _landOwners[LAYER_24x24 + (x/24) * 24 + ((y/24) * 24) * MAP_SIZE] == uint256(uint160(from)),
                    "not owner of all sub quads nor parent quads"
                );
            }
            _landOwners[quadId] = uint256(uint160(to));
            return true;
        }
        return ownerOfAll;
    }

    function _regroup6x6(address from, address to, uint256 x, uint256 y, bool set) internal returns (bool) {
        uint256 id = x + y * MAP_SIZE;
        uint256 quadId = LAYER_6x6 + id;
        bool ownerOfAll = true;
        for (uint256 xi = x; xi < x+6; xi += 3) {
            for (uint256 yi = y; yi < y+6; yi += 3) {
                bool ownAllIndividual = _regroup3x3(from, to, xi, yi, false);
                uint256 id3x3 = LAYER_3x3 + xi + yi * MAP_SIZE;
                uint256 owner3x3 = _landOwners[id3x3];
                if (owner3x3 != 0) {
                    if(!ownAllIndividual) {
                        require(owner3x3 == uint256(uint160(from)), "not owner of 3x3 quad");
                    }
                    _landOwners[id3x3] = 0;
                }
                ownerOfAll = (ownAllIndividual || owner3x3 != 0) && ownerOfAll;
            }
        }
        if(set) {
            if(!ownerOfAll) {
                require(
                    _landOwners[quadId] == uint256(uint160(from)) ||
                    _landOwners[LAYER_12x12 + (x/12) * 12 + ((y/12) * 12) * MAP_SIZE] == uint256(uint160(from)) ||
                    _landOwners[LAYER_24x24 + (x/24) * 24 + ((y/24) * 24) * MAP_SIZE] == uint256(uint160(from)),
                    "not owner of all sub quads nor parent quads"
                );
            }
            _landOwners[quadId] = uint256(uint160(to));
            return true;
        }
        return ownerOfAll;
    }

    function _regroup12x12(address from, address to, uint256 x, uint256 y, bool set) internal returns (bool) {
        uint256 id = x + y * MAP_SIZE;
        uint256 quadId = LAYER_12x12 + id;
        bool ownerOfAll = true;
        for (uint256 xi = x; xi < x+12; xi += 6) {
            for (uint256 yi = y; yi < y+12; yi += 6) {
                bool ownAllIndividual = _regroup6x6(from, to, xi, yi, false);
                uint256 id6x6 = LAYER_6x6 + xi + yi * MAP_SIZE;
                uint256 owner6x6 = _landOwners[id6x6];
                if (owner6x6 != 0) {
                    if(!ownAllIndividual) {
                        require(owner6x6 == uint256(uint160(from)), "not owner of 6x6 quad");
                    }
                    _landOwners[id6x6] = 0;
                }
                ownerOfAll = (ownAllIndividual || owner6x6 != 0) && ownerOfAll;
            }
        }
        if(set) {
            if(!ownerOfAll) {
                require(
                    _landOwners[quadId] == uint256(uint160(from)) ||
                    _landOwners[LAYER_24x24 + (x/24) * 24 + ((y/24) * 24) * MAP_SIZE] == uint256(uint160(from)),
                    "not owner of all sub quads nor parent quads"
                );
            }
            _landOwners[quadId] = uint256(uint160(to));
            return true;
        }
        return ownerOfAll;
    }

    function _regroup24x24(address from, address to, uint256 x, uint256 y, bool set) internal returns (bool) {
        uint256 id = x + y * MAP_SIZE;
        uint256 quadId = LAYER_24x24 + id;
        bool ownerOfAll = true;
        for (uint256 xi = x; xi < x+24; xi += 12) {
            for (uint256 yi = y; yi < y+24; yi += 12) {
                bool ownAllIndividual = _regroup12x12(from, to, xi, yi, false);
                uint256 id12x12 = LAYER_12x12 + xi + yi * MAP_SIZE;
                uint256 owner12x12 = _landOwners[id12x12];
                if (owner12x12 != 0) {
                    if(!ownAllIndividual) {
                        require(owner12x12 == uint256(uint160(from)), "not owner of 12x12 quad");
                    }
                    _landOwners[id12x12] = 0;
                }
                ownerOfAll = (ownAllIndividual || owner12x12 != 0) && ownerOfAll;
            }
        }
        if(set) {
            if(!ownerOfAll) {
                require(
                    _landOwners[quadId] == uint256(uint160(from)),
                    "not owner of all sub quads not parent quad"
                );
            }
            _landOwners[quadId] = uint256(uint160(to));
            return true;
        }
        return ownerOfAll || _landOwners[quadId] == uint256(uint160(from));
    }

    ///@notice checks the signature
    ///@param userFrom - user creator of the signature
    ///@param userTo - user receiver of the signature
    ///@param signature - bytes with the signed message
    function _processSignature(address userFrom, address userTo, bytes memory signature) internal returns (bool) {
        if (hasSignature(userTo)) {
            return true;
        }

        bytes32 message = Signing.formMessage(userFrom, userTo);
        require(userFrom == Signing.recoverAddress(message, signature), "Invalid signature provided");
        signatures[userTo] = userFrom;
        return true;
    }

    
    function hasSignature(address sender) internal view returns (bool){
        return signatures[sender] != address(0);
    }

    // The following functions are overrides required by Solidity.
    function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
        super._burn(tokenId);
    }

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


}

File 2 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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);
    }

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

    /**
     * @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 of token that is not own");
        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);
    }

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

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

pragma solidity ^0.8.0;

import "../ERC721.sol";

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

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

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

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

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

        return super.tokenURI(tokenId);
    }

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

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

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

File 4 of 13 : 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 5 of 13 : Signing.sol
// SPDX-License-Identifier: MIT

/* due to compiler0.5.9 issue*/
pragma solidity ^0.8.2;    
    
library Signing {

    ///@notice Returns simple message - hashed concatenation of 2 addresses
    ///@param from - address from
    ///@param to - address to
    ///@return message in a form of hash
    function formMessage(address from, address to) public pure 
        returns (bytes32)
    {
        bytes32 message = keccak256(abi.encodePacked(from, to));
        return message;
    }


    /*****
     * INTERNAL ECDSA SIGNATURE HELPERS
     *****/ 

    function hashMessage(bytes32 message) internal pure returns (bytes32) {
        bytes memory prefix = "\x19Ethereum Signed Message:\n32";
        return keccak256(abi.encodePacked(prefix, message));
    }

    function getSigner(
        bytes32 message, 
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
  
        require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,
            "invalid signature 's' value");
        require(v == 27 || v == 28, "invalid signature 'v' value");
        address signer = ecrecover(hashMessage(message), v, r, s);
        require(signer != address(0), "invalid signature");

        return signer;
    }

    function recoverAddress(
        bytes32 message,
        bytes memory signature
    ) internal pure returns (address) {
        if (signature.length != 65) {
            revert("invalid signature length");
        }
        bytes32 r;
        bytes32 s;
        uint8 v;

        assembly {
            r := mload(add(signature, 0x20))
            s := mload(add(signature, 0x40))
            v := byte(0, mload(add(signature, 0x60)))
        }

        return getSigner(message, v, r, s);
    }

}

File 6 of 13 : 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 7 of 13 : 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 8 of 13 : 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 9 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 10 of 13 : 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 11 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 13 of 13 : 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);
}

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"adminSigner","type":"address"},{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"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":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_landOwners","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_numNFTPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"_ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"enum GiSpaceLandBase.SalePhase","name":"_phase","type":"uint8"}],"name":"enterPhase","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":[],"name":"height","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"size","type":"uint256"},{"internalType":"uint256","name":"x","type":"uint256"},{"internalType":"uint256","name":"y","type":"uint256"},{"internalType":"string[]","name":"uri","type":"string[]"}],"name":"mintLand","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"size","type":"uint256"},{"internalType":"uint256","name":"x","type":"uint256"},{"internalType":"uint256","name":"y","type":"uint256"},{"internalType":"string[]","name":"uri","type":"string[]"}],"name":"mintLand2","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase","outputs":[{"internalType":"enum GiSpaceLandBase.SalePhase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"signatures","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"size","type":"uint256"},{"internalType":"uint256","name":"x","type":"uint256"},{"internalType":"uint256","name":"y","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferQuad","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"width","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}]

60a0604052600a805460ff191690553480156200001b57600080fd5b5060405162003795380380620037958339810160408190526200003e91620001e9565b604080518082018252600981526847696761537061636560b81b60208083019182528351808501909452600384526247495360e81b9084015281519192916200008a9160009162000143565b508051620000a090600190602084019062000143565b505050620000bd620000b7620000ed60201b60201c565b620000f1565b6001600160601b0319606083901b166080528051620000e490600c90602084019062000143565b5050506200033c565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200015190620002e9565b90600052602060002090601f016020900481019282620001755760008555620001c0565b82601f106200019057805160ff1916838001178555620001c0565b82800160010185558215620001c0579182015b82811115620001c0578251825591602001919060010190620001a3565b50620001ce929150620001d2565b5090565b5b80821115620001ce5760008155600101620001d3565b60008060408385031215620001fd57600080fd5b82516001600160a01b03811681146200021557600080fd5b602084810151919350906001600160401b03808211156200023557600080fd5b818601915086601f8301126200024a57600080fd5b8151818111156200025f576200025f62000326565b604051601f8201601f19908116603f011681019083821181831017156200028a576200028a62000326565b816040528281528986848701011115620002a357600080fd5b600093505b82841015620002c75784840186015181850187015292850192620002a8565b82841115620002d95760008684830101525b8096505050505050509250929050565b600181811c90821680620002fe57607f821691505b602082108114156200032057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c61343d620003586000396000505061343d6000f3fe6080604052600436106101775760003560e01c8063715018a6116100cc578063b1c9fe6e1161007a578063b1c9fe6e1461041e578063b88d4fde14610445578063c792f36d14610465578063c87b56dd1461049b578063e31a201f146104bb578063e985e9c5146104ce578063f2fde38b146104ee57600080fd5b8063715018a61461036e57806387826764146103835780638d859f3e146103b05780638da5cb5b146103cb57806395d89b41146103e95780639ededf771461022d578063a22cb465146103fe57600080fd5b80633835054111610129578063383505411461028c57806338bb305a146102ac5780633d2c2dbd146102cc57806342842e0e146102e157806352bb4eb2146103015780636352211e1461032e57806370a082311461034e57600080fd5b806301ffc9a71461017c57806306fdde03146101b1578063081812fc146101d3578063095ea7b31461020b5780630ef267431461022d57806323b872dd1461024c5780633123387b1461026c575b600080fd5b34801561018857600080fd5b5061019c610197366004612f58565b61050e565b60405190151581526020015b60405180910390f35b3480156101bd57600080fd5b506101c6610560565b6040516101a8919061308c565b3480156101df57600080fd5b506101f36101ee366004612fb3565b6105f2565b6040516001600160a01b0390911681526020016101a8565b34801561021757600080fd5b5061022b610226366004612e1b565b61067f565b005b34801561023957600080fd5b50612ee05b6040519081526020016101a8565b34801561025857600080fd5b5061022b610267366004612c76565b610790565b34801561027857600080fd5b5061022b610287366004612f92565b6107c1565b34801561029857600080fd5b506101f36102a7366004612fb3565b610812565b3480156102b857600080fd5b5061022b6102c7366004612d2e565b610a94565b61022b6102da366004612e45565b5050505050565b3480156102ed57600080fd5b5061022b6102fc366004612c76565b610bbc565b34801561030d57600080fd5b5061023e61031c366004612fb3565b60086020526000908152604090205481565b34801561033a57600080fd5b506101f3610349366004612fb3565b610bd7565b34801561035a57600080fd5b5061023e610369366004612c28565b610c4e565b34801561037a57600080fd5b5061022b610cd5565b34801561038f57600080fd5b5061023e61039e366004612c28565b60096020526000908152604090205481565b3480156103bc57600080fd5b5061023e66470de4df82000081565b3480156103d757600080fd5b506007546001600160a01b03166101f3565b3480156103f557600080fd5b506101c6610d0b565b34801561040a57600080fd5b5061022b610419366004612ddf565b610d1a565b34801561042a57600080fd5b50600a546104389060ff1681565b6040516101a89190613064565b34801561045157600080fd5b5061022b610460366004612cb2565b610d29565b34801561047157600080fd5b506101f3610480366004612c28565b600b602052600090815260409020546001600160a01b031681565b3480156104a757600080fd5b506101c66104b6366004612fb3565b610d61565b61022b6104c9366004612e45565b610d6c565b3480156104da57600080fd5b5061019c6104e9366004612c43565b611493565b3480156104fa57600080fd5b5061022b610509366004612c28565b6114c1565b60006001600160e01b031982166380ac58cd60e01b148061053f57506001600160e01b03198216635b5e139f60e01b145b8061055a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461056f90613319565b80601f016020809104026020016040519081016040528092919081815260200182805461059b90613319565b80156105e85780601f106105bd576101008083540402835291602001916105e8565b820191906000526020600020905b8154815290600101906020018083116105cb57829003601f168201915b5050505050905090565b60006105fd8261155c565b6106635760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061068a82610bd7565b9050806001600160a01b0316836001600160a01b031614156106f85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161065a565b336001600160a01b038216148061071457506107148133611493565b6107815760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606482015260840161065a565b61078b8383611579565b505050565b61079a33826115e7565b6107b65760405162461bcd60e51b815260040161065a906131dc565b61078b8383836116b1565b6007546001600160a01b031633146107eb5760405162461bcd60e51b815260040161065a90613180565b600a805482919060ff1916600183600281111561080a5761080a6133af565b021790555050565b60006001600160f81b031982161561085f5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a59081d1bdad95b881a5960821b604482015260640161065a565b600061086d612ee08461336f565b9050600061087d612ee0856132a3565b600085815260086020526040902054909150801561089d57949350505050565b6000600881612ee06108b06003876132a3565b6108bb9060036132b7565b6108c591906132b7565b6108d06003886132a3565b6108db9060036132b7565b6108e990600160f81b61328b565b6108f3919061328b565b815260208101919091526040016000205490506001600160a01b0381161561091e5795945050505050565b6000600881612ee06109316006886132a3565b61093c9060066132b7565b61094691906132b7565b6109516006896132a3565b61095c9060066132b7565b61096a90600160f91b61328b565b610974919061328b565b815260208101919091526040016000205490506001600160a01b038116156109a0579695505050505050565b6000600881612ee06109b3600c896132a3565b6109be90600c6132b7565b6109c891906132b7565b6109d3600c8a6132a3565b6109de90600c6132b7565b6109ec90600360f81b61328b565b6109f6919061328b565b815260208101919091526040016000205490506001600160a01b03811615610a2357979650505050505050565b60086000612ee0610a356018896132a3565b610a409060186132b7565b610a4a91906132b7565b610a5560188a6132a3565b610a609060186132b7565b610a6e90600160fa1b61328b565b610a78919061328b565b8152602001908152602001600020549650505050505050919050565b6001600160a01b038716610ae15760405162461bcd60e51b815260206004820152601460248201527366726f6d206973207a65726f206164647265737360601b604482015260640161065a565b6001600160a01b038616610b375760405162461bcd60e51b815260206004820152601a60248201527f63616e27742073656e6420746f207a65726f2061646472657373000000000000604482015260640161065a565b610b448787878787611851565b610b4e85806132b7565b6001600160a01b03881660009081526009602052604081208054909190610b769084906132d6565b90915550610b86905085806132b7565b6001600160a01b03871660009081526009602052604081208054909190610bae90849061328b565b909155505050505050505050565b61078b83838360405180602001604052806000815250610d29565b6000818152600260205260408120546001600160a01b03168061055a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161065a565b60006001600160a01b038216610cb95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161065a565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314610cff5760405162461bcd60e51b815260040161065a90613180565b610d09600061199b565b565b60606001805461056f90613319565b610d253383836119ed565b5050565b610d3333836115e7565b610d4f5760405162461bcd60e51b815260040161065a906131dc565b610d5b84848484611ab8565b50505050565b606061055a82611aeb565b6001600160a01b038516610db75760405162461bcd60e51b8152602060048201526012602482015271746f206973207a65726f206164647265737360701b604482015260640161065a565b610dc1848461336f565b158015610dd55750610dd3848361336f565b155b610df15760405162461bcd60e51b815260040161065a9061322d565b610dfd84612ee06132d6565b8311158015610e175750610e1384612ee06132d6565b8211155b610e335760405162461bcd60e51b815260040161065a906131b5565b66470de4df820000341015610e9b5760405162461bcd60e51b815260206004820152602860248201527f5468652066656520697320302e3032204554482c206e6f7420656e6f75676820604482015267115512081cd95b9d60c21b606482015260840161065a565b600080610eaa612ee0856132b7565b610eb4908661328b565b90508560011415610ec757809150610f61565b8560031415610ee557610ede81600160f81b61328b565b9150610f61565b8560061415610efc57610ede81600160f91b61328b565b85600c1415610f1357610ede81600360f81b61328b565b8560181415610f2a57610ede81600160fa1b61328b565b60405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642073697a6560a01b604482015260640161065a565b60086000612ee0610f736018886132a3565b610f7e9060186132b7565b610f8891906132b7565b610f936018896132a3565b610f9e9060186132b7565b610fac90600160fa1b61328b565b610fb6919061328b565b81526020019081526020016000205460001461100e5760405162461bcd60e51b8152602060048201526017602482015276105b1c9958591e481b5a5b9d195908185cc80c8d1e0c8d604a1b604482015260640161065a565b600061101a878761328b565b90506000611028888761328b565b9050600c88116110ba5760086000612ee0611044600c8a6132a3565b61104f90600c6132b7565b61105991906132b7565b611064600c8b6132a3565b61106f90600c6132b7565b61107d90600360f81b61328b565b611087919061328b565b8152602001908152602001600020546000146110b55760405162461bcd60e51b815260040161065a9061314f565b61114b565b865b8281101561114957865b828110156111365760006110dc612ee0836132b7565b6110ea84600360f81b61328b565b6110f4919061328b565b600081815260086020526040902054909150156111235760405162461bcd60e51b815260040161065a9061314f565b5061112f600c8261328b565b90506110c6565b50611142600c8261328b565b90506110bc565b505b600688116111db5760086000612ee061116560068a6132a3565b6111709060066132b7565b61117a91906132b7565b61118560068b6132a3565b6111909060066132b7565b61119e90600160f91b61328b565b6111a8919061328b565b8152602001908152602001600020546000146111d65760405162461bcd60e51b815260040161065a90613120565b61126c565b865b8281101561126a57865b828110156112575760006111fd612ee0836132b7565b61120b84600160f91b61328b565b611215919061328b565b600081815260086020526040902054909150156112445760405162461bcd60e51b815260040161065a90613120565b5061125060068261328b565b90506111e7565b5061126360068261328b565b90506111dd565b505b600388116112fc5760086000612ee061128660038a6132a3565b6112919060036132b7565b61129b91906132b7565b6112a660038b6132a3565b6112b19060036132b7565b6112bf90600160f81b61328b565b6112c9919061328b565b8152602001908152602001600020546000146112f75760405162461bcd60e51b815260040161065a906130f1565b61138d565b865b8281101561138b57865b8281101561137857600061131e612ee0836132b7565b61132c84600160f81b61328b565b611336919061328b565b600081815260086020526040902054909150156113655760405162461bcd60e51b815260040161065a906130f1565b5061137160038261328b565b9050611308565b5061138460038261328b565b90506112fe565b505b60005b61139a89806132b7565b8110156114365760006113af828b8b8b611c4d565b600081815260086020526040902054909150156113ff5760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b604482015260640161065a565b6114233382898581518110611416576114166133c5565b6020026020010151611ce8565b508061142e81613354565b915050611390565b5060008481526008602052604090206001600160a01b038a16905561145b88806132b7565b6001600160a01b038a166000908152600960205260408120805490919061148390849061328b565b9091555050505050505050505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6007546001600160a01b031633146114eb5760405162461bcd60e51b815260040161065a90613180565b6001600160a01b0381166115505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161065a565b6115598161199b565b50565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115ae82610bd7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006115f28261155c565b6116535760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161065a565b600061165e83610bd7565b9050806001600160a01b0316846001600160a01b031614806116995750836001600160a01b031661168e846105f2565b6001600160a01b0316145b806116a957506116a98185611493565b949350505050565b826001600160a01b03166116c482610bd7565b6001600160a01b03161461172c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161065a565b6001600160a01b03821661178e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161065a565b611799600082611579565b6001600160a01b03831660009081526003602052604081208054600192906117c29084906132d6565b90915550506001600160a01b03821660009081526003602052604081208054600192906117f090849061328b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b826001141561194f576000611868612ee0836132b7565b611872908461328b565b9050600061187f82610812565b90506001600160a01b0381166118ce5760405162461bcd60e51b81526020600482015260146024820152731d1bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b604482015260640161065a565b866001600160a01b0316816001600160a01b03161461192f5760405162461bcd60e51b815260206004820152601a60248201527f6e6f74206f776e657220696e205f7472616e7366657251756164000000000000604482015260640161065a565b5060009081526008602052604090206001600160a01b038516905561195c565b61195c8585858585611cfd565b60005b61196984806132b7565b8110156119935761198186866102fc84888888611c4d565b8061198b81613354565b91505061195f565b505050505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611a4b5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161065a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ac38484846116b1565b611acf84848484611ddb565b610d5b5760405162461bcd60e51b815260040161065a9061309f565b6060611af68261155c565b611b5c5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b606482015260840161065a565b60008281526006602052604081208054611b7590613319565b80601f0160208091040260200160405190810160405280929190818152602001828054611ba190613319565b8015611bee5780601f10611bc357610100808354040283529160200191611bee565b820191906000526020600020905b815481529060010190602001808311611bd157829003601f168201915b505050505090506000611bff606090565b9050805160001415611c12575092915050565b815115611c44578082604051602001611c2c929190612ff8565b60405160208183030381529060405292505050919050565b6116a984611ee5565b600080611c5a85876132a3565b9050611c6760028261336f565b611ca857612ee0611c78828561328b565b611c8291906132b7565b611c8c868861336f565b611c96908661328b565b611ca0919061328b565b9150506116a9565b612ee0611cb5828561328b565b611cbf91906132b7565b611cc9868861336f565b611cd490600161328b565b611cde878761328b565b611c9691906132d6565b81611cf38482611fa3565b610d5b8183611fbd565b611d07838361336f565b158015611d1b5750611d19838261336f565b155b611d375760405162461bcd60e51b815260040161065a9061322d565b611d4383612ee06132d6565b8211158015611d5d5750611d5983612ee06132d6565b8111155b611d795760405162461bcd60e51b815260040161065a906131b5565b8260031415611d9657611d90858584846001612048565b506102da565b8260061415611dad57611d90858584846001612309565b82600c1415611dc457611d9085858484600161249d565b8260181415610f2a57611d90858584846001612631565b60006001600160a01b0384163b15611edd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611e1f903390899088908890600401613027565b602060405180830381600087803b158015611e3957600080fd5b505af1925050508015611e69575060408051601f3d908101601f19168201909252611e6691810190612f75565b60015b611ec3573d808015611e97576040519150601f19603f3d011682016040523d82523d6000602084013e611e9c565b606091505b508051611ebb5760405162461bcd60e51b815260040161065a9061309f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506116a9565b5060016116a9565b6060611ef08261155c565b611f545760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161065a565b60608051611f715760405180602001604052806000815250611f9c565b80611f7b84612833565b604051602001611f8c929190612ff8565b6040516020818303038152906040525b9392505050565b610d25828260405180602001604052806000815250612931565b611fc68261155c565b6120295760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161065a565b6000828152600660209081526040909120825161078b92840190612b1b565b600080612057612ee0856132b7565b612061908661328b565b9050600061207382600160f81b61328b565b90506001865b61208488600361328b565b8110156120ee57865b61209888600361328b565b8110156120db576120be8b6120af612ee0846132b7565b6120b9908561328b565b612964565b80156120c75750825b9250806120d381613354565b91505061208d565b50806120e681613354565b915050612079565b5084156122fb57806122d6576000828152600860205260409020546001600160a01b038a16148061218a57506001600160a01b03891660086000612ee061213660068b6132a3565b6121419060066132b7565b61214b91906132b7565b61215660068c6132a3565b6121619060066132b7565b61216f90600160f91b61328b565b612179919061328b565b815260200190815260200160002054145b8061220057506001600160a01b03891660086000612ee06121ac600c8b6132a3565b6121b790600c6132b7565b6121c191906132b7565b6121cc600c8c6132a3565b6121d790600c6132b7565b6121e590600360f81b61328b565b6121ef919061328b565b815260200190815260200160002054145b8061227657506001600160a01b03891660086000612ee061222260188b6132a3565b61222d9060186132b7565b61223791906132b7565b61224260188c6132a3565b61224d9060186132b7565b61225b90600160fa1b61328b565b612265919061328b565b815260200190815260200160002054145b6122d65760405162461bcd60e51b815260206004820152602b60248201527f6e6f74206f776e6572206f6620616c6c20737562207175616473206e6f72207060448201526a6172656e7420717561647360a81b606482015260840161065a565b5060009081526008602052604090206001600160a01b03871690555060019050612300565b925050505b95945050505050565b600080612318612ee0856132b7565b612322908661328b565b9050600061233482600160f91b61328b565b90506001865b61234588600661328b565b81101561245557865b61235988600661328b565b8110156124425760006123708c8c85856000612048565b90506000612380612ee0846132b7565b61238e85600160f81b61328b565b612398919061328b565b60008181526008602052604090205490915080156124155782612405578d6001600160a01b031681146124055760405162461bcd60e51b81526020600482015260156024820152741b9bdd081bdddb995c881bd9880cde0cc81c5d5859605a1b604482015260640161065a565b6000828152600860205260408120555b828061242057508015155b80156124295750855b955050505060038161243b919061328b565b905061234e565b5061244e60038261328b565b905061233a565b5084156122fb57806122d6576000828152600860205260409020546001600160a01b038a16148061220057506001600160a01b03891660086000612ee06121ac600c8b6132a3565b6000806124ac612ee0856132b7565b6124b6908661328b565b905060006124c882600360f81b61328b565b90506001865b6124d988600c61328b565b8110156125e957865b6124ed88600c61328b565b8110156125d65760006125048c8c85856000612309565b90506000612514612ee0846132b7565b61252285600160f91b61328b565b61252c919061328b565b60008181526008602052604090205490915080156125a95782612599578d6001600160a01b031681146125995760405162461bcd60e51b81526020600482015260156024820152741b9bdd081bdddb995c881bd9880d9e0d881c5d5859605a1b604482015260640161065a565b6000828152600860205260408120555b82806125b457508015155b80156125bd5750855b95505050506006816125cf919061328b565b90506124e2565b506125e260068261328b565b90506124ce565b5084156122fb57806122d6576000828152600860205260409020546001600160a01b038a16148061227657506001600160a01b03891660086000612ee061222260188b6132a3565b600080612640612ee0856132b7565b61264a908661328b565b9050600061265c82600160fa1b61328b565b90506001865b61266d88601861328b565b81101561277f57865b61268188601861328b565b81101561276c5760006126988c8c8585600061249d565b905060006126a8612ee0846132b7565b6126b685600360f81b61328b565b6126c0919061328b565b600081815260086020526040902054909150801561273f578261272f578d6001600160a01b0316811461272f5760405162461bcd60e51b81526020600482015260176024820152761b9bdd081bdddb995c881bd9880c4c9e0c4c881c5d5859604a1b604482015260640161065a565b6000828152600860205260408120555b828061274a57508015155b80156127535750855b9550505050600c81612765919061328b565b9050612676565b50612778600c8261328b565b9050612662565b50841561280457806122d6576000828152600860205260409020546001600160a01b038a16146122d65760405162461bcd60e51b815260206004820152602a60248201527f6e6f74206f776e6572206f6620616c6c20737562207175616473206e6f742070604482015269185c995b9d081c5d585960b21b606482015260840161065a565b808061282657506000828152600860205260409020546001600160a01b038a16145b9998505050505050505050565b6060816128575750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612881578061286b81613354565b915061287a9050600a836132a3565b915061285b565b60008167ffffffffffffffff81111561289c5761289c6133db565b6040519080825280601f01601f1916602001820160405280156128c6576020820181803683370190505b5090505b84156116a9576128db6001836132d6565b91506128e8600a8661336f565b6128f390603061328b565b60f81b818381518110612908576129086133c5565b60200101906001600160f81b031916908160001a90535061292a600a866132a3565b94506128ca565b61293b83836129e8565b6129486000848484611ddb565b61078b5760405162461bcd60e51b815260040161065a9061309f565b60008181526008602052604081205480156129de57836001600160a01b0316816001600160a01b0316146129c65760405162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b604482015260640161065a565b5050600081815260086020526040812055600161055a565b5060009392505050565b6001600160a01b038216612a3e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161065a565b612a478161155c565b15612a945760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161065a565b6001600160a01b0382166000908152600360205260408120805460019290612abd90849061328b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612b2790613319565b90600052602060002090601f016020900481019282612b495760008555612b8f565b82601f10612b6257805160ff1916838001178555612b8f565b82800160010185558215612b8f579182015b82811115612b8f578251825591602001919060010190612b74565b50612b9b929150612b9f565b5090565b5b80821115612b9b5760008155600101612ba0565b600067ffffffffffffffff831115612bce57612bce6133db565b612be1601f8401601f191660200161325a565b9050828152838383011115612bf557600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612c2357600080fd5b919050565b600060208284031215612c3a57600080fd5b611f9c82612c0c565b60008060408385031215612c5657600080fd5b612c5f83612c0c565b9150612c6d60208401612c0c565b90509250929050565b600080600060608486031215612c8b57600080fd5b612c9484612c0c565b9250612ca260208501612c0c565b9150604084013590509250925092565b60008060008060808587031215612cc857600080fd5b612cd185612c0c565b9350612cdf60208601612c0c565b925060408501359150606085013567ffffffffffffffff811115612d0257600080fd5b8501601f81018713612d1357600080fd5b612d2287823560208401612bb4565b91505092959194509250565b600080600080600080600060c0888a031215612d4957600080fd5b612d5288612c0c565b9650612d6060208901612c0c565b955060408801359450606088013593506080880135925060a088013567ffffffffffffffff80821115612d9257600080fd5b818a0191508a601f830112612da657600080fd5b813581811115612db557600080fd5b8b6020828501011115612dc757600080fd5b60208301945080935050505092959891949750929550565b60008060408385031215612df257600080fd5b612dfb83612c0c565b915060208301358015158114612e1057600080fd5b809150509250929050565b60008060408385031215612e2e57600080fd5b612e3783612c0c565b946020939093013593505050565b600080600080600060a08688031215612e5d57600080fd5b612e6686612c0c565b9450602086013593506040860135925060608601359150608086013567ffffffffffffffff80821115612e9857600080fd5b818801915088601f830112612eac57600080fd5b813581811115612ebe57612ebe6133db565b8060051b612ece6020820161325a565b80838252602082019150602086018d6020858901011115612eee57600080fd5b600093505b84841015612f44578581351115612f0957600080fd5b803587018e603f820112612f1c57600080fd5b612f2e8f602083013560408401612bb4565b8452506001939093019260209283019201612ef3565b508096505050505050509295509295909350565b600060208284031215612f6a57600080fd5b8135611f9c816133f1565b600060208284031215612f8757600080fd5b8151611f9c816133f1565b600060208284031215612fa457600080fd5b813560038110611f9c57600080fd5b600060208284031215612fc557600080fd5b5035919050565b60008151808452612fe48160208601602086016132ed565b601f01601f19169290920160200192915050565b6000835161300a8184602088016132ed565b83519083019061301e8183602088016132ed565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061305a90830184612fcc565b9695505050505050565b602081016003831061308657634e487b7160e01b600052602160045260246000fd5b91905290565b602081526000611f9c6020830184612fcc565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b602080825260159082015274416c7265616479206d696e7465642061732033783360581b604082015260600190565b60208082526015908201527420b63932b0b23c9036b4b73a32b21030b9901b3c1b60591b604082015260600190565b60208082526017908201527620b63932b0b23c9036b4b73a32b21030b99018993c189960491b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600d908201526c4f7574206f6620626f756e647360981b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b602080825260139082015272496e76616c696420636f6f7264696e6174657360681b604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613283576132836133db565b604052919050565b6000821982111561329e5761329e613383565b500190565b6000826132b2576132b2613399565b500490565b60008160001904831182151516156132d1576132d1613383565b500290565b6000828210156132e8576132e8613383565b500390565b60005b838110156133085781810151838201526020016132f0565b83811115610d5b5750506000910152565b600181811c9082168061332d57607f821691505b6020821081141561334e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561336857613368613383565b5060010190565b60008261337e5761337e613399565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461155957600080fdfea26469706673582212209cd6655e3159fc9199621bbb8809cc7bd2278a93f5b7f62c5c1ae78997eef7d564736f6c6343000807003300000000000000000000000010858130d017b46cd720709e85cb9577a66be14600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000

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

00000000000000000000000010858130d017b46cd720709e85cb9577a66be14600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : adminSigner (address): 0x10858130d017b46cd720709E85Cb9577a66Be146
Arg [1] : uri (string):

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000010858130d017b46cd720709e85cb9577a66be146
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading

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