Contract 0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xaba7fa49bd428b36e05434da471aa523c2a89438a81da9a896fe3b5cdbadbf08Update Polar Luc...160337532022-06-14 19:26:4158 days 17 hrs ago0x64761372be8fc41a45d6bf6b9098a9f11bbecfbd IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍105470775225
0x8e2e8d7c4c61bf9f5e4738f804def5fafcb63bd07976f4f4503ea89eec128f30Update Polar Luc...160336442022-06-14 19:23:0458 days 17 hrs ago0x64761372be8fc41a45d6bf6b9098a9f11bbecfbd IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍162744075225
0x832391a236bb1d949e6ef8733398b02293250e36cf816259f24258f9e0839faeUpdate Polar Luc...160271452022-06-14 15:47:3858 days 21 hrs ago0x64761372be8fc41a45d6bf6b9098a9f11bbecfbd IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍048120975225
0xcb60a48014eaf57e33b30dd92810939cfc4dee998d431df18d4783c7dab22496Add Owner156798152022-06-06 15:29:2066 days 21 hrs ago0xe09d2cf9bfad7417b75f332d930357a0eb09801d IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍001926366 26
0x2375645dd3cc8234fc7a34d2c980ce303ce80e5c079315ea58d60c03b25586fbRemove Owner156798072022-06-06 15:29:0166 days 21 hrs ago0xe09d2cf9bfad7417b75f332d930357a0eb09801d IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍001075178 26
0xeaac5656b9bd57b0108d3451307404c46ab1c0c562309a963bcc479749dba701Remove Owner156797982022-06-06 15:28:4366 days 21 hrs ago0xe09d2cf9bfad7417b75f332d930357a0eb09801d IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍001141868 26
0x3237e3cbaeaa377ecabd8800b01d99748cfc97982f0c19f4646a4120f1ee9778Add Owner156797732022-06-06 15:27:5066 days 21 hrs ago0xad383a651b78955d5a290ed47a2b3254a536c276 IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍00202098 26
0xbf27dd9fc62d20b976245e1c6277e6e8f3cbb148aa4673b74101383df6ccc6e0Update Polar Luc...156461352022-06-05 20:35:2567 days 16 hrs ago0xad383a651b78955d5a290ed47a2b3254a536c276 IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍0123222825 27.‍5
0xdd22ed1b3835a811248edea843c58d36e87e08b26c1b7e9d34ee8eb2ff8b76d8Set Handler156415852022-06-05 18:02:5767 days 18 hrs ago0xad383a651b78955d5a290ed47a2b3254a536c276 IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍0008009925 27.‍5
0x222864f50d64c0a259e0d0e025fe5d5d0bf6b52a48ca7071808a0f7ec8d3c9e8Update Polar Luc...149593412022-05-20 21:27:3683 days 15 hrs agoPolarNodes: Deployer IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍0061675075 27.‍5
0x9782b90dc657af38ca54a155eaed3b87fde995488f9cec51d79ac3ebac737161Update Polar Luc...149079452022-05-19 16:58:2984 days 19 hrs agoPolarNodes: Deployer IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍0057270675 27.‍5
0x8b39bdb78035ae458943fca4cdd92c327cf8cb3788c8108f0a37dfbbbdb05c08Update Polar Luc...149078902022-05-19 16:56:4084 days 19 hrs agoPolarNodes: Deployer IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍0061969875 27.‍5
0xe52c934d4fc53a0f071a762058298e2b7e97bbfae4fc88fb3fdd5d821ad67322Update Polar Luc...149078642022-05-19 16:55:4884 days 19 hrs agoPolarNodes: Deployer IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍0062736575 27.‍5
0x07ea1f25eb488f6b888956b52b08dd1742ae945235ccf6c517d360a0129447d8Update Polar Luc...149078162022-05-19 16:54:1284 days 20 hrs agoPolarNodes: Deployer IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍010653775 27.‍5
0x19577407daef7e177ddaeccc102ea640f6ee108afdbb81c7ccb4be0495af62ddUpdate Polar Luc...149075642022-05-19 16:45:4084 days 20 hrs agoPolarNodes: Deployer IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍01131559 27.‍5
0x9bc68393056be66b85ef4b500c25cb3f1e070f512b3892bca3f7e3694129851aTransfer From147592992022-05-16 6:10:5588 days 6 hrs ago0x974d5d8d3247e7affd6e064849af58c9ac7d7b8f IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍002802322 26.‍5
0xa13e119cd28aaea7e67bd3dc3fe2b8b94c3fa11b9c1e6f7605072f8e6cb78df2Update Polar Luc...147027972022-05-14 22:44:2789 days 14 hrs agoPolarNodes: Deployer IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍0058595075 27.‍5
0xc3d4c68b3299bd459d5779eb4fa5741c32b9c1c7174ae519a6ad4b11a5f09f79Update Polar Luc...147027852022-05-14 22:44:0389 days 14 hrs agoPolarNodes: Deployer IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍0061675075 27.‍5
0x8359fe393908964b3988dab63f207a3c2d2f6d49ef2ebd245ad3ab233c240d63Update Polar Luc...146460192022-05-13 15:13:1490 days 21 hrs agoPolarNodes: Deployer IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍011884982182 52.‍339917923
0x8ab4627594a7278a19c7d6b9c1464d36720630c104b00026b90d91d36d26a076Add Owner145210552022-05-10 17:56:3993 days 18 hrs agoPolarNodes: Deployer IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍005651562547 72.‍707610281
0x5ccf1591429f4d913446816771a21c4d1500dea753aed8bec6e829d0e52ccd2dRemove Owner144524692022-05-09 3:03:5595 days 9 hrs agoPolarNodes: Deployer IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍002510427972 60.‍707275712
0xb320ea69b7d61f70bf33874a5621674ddb59e514a62656bce4ff657f93b09f72Update Polar Luc...144057082022-05-07 23:45:2496 days 13 hrs agoPolarNodes: Deployer IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍012170990925 53.‍599463282
0x73f0c48b1fa4d410f619112538f060a0329a80621f1a3af6667fa3e90bbf2becUpdate Polar Luc...141419252022-05-01 16:30:33102 days 20 hrs ago0xad383a651b78955d5a290ed47a2b3254a536c276 IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍050154043598 65.‍982872935
0x60f89c02e3c3d80a81f7e256793b11b6ee6e35d827ecb4143a594766b132409dTransfer From139426282022-04-26 23:07:05107 days 13 hrs ago0x20b9b41027d3764bf77bd795d3521d127d401562 IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍005913931007 55.‍924755152
0x214d9403c6fd37348a39d3770f1d5ce2026be551be2c958782005ba91fa94434Transfer From139090962022-04-26 4:26:20108 days 8 hrs ago0x06e15ac032f60366e4e40a2d4627dd3883420a98 IN  0x69e7ca9f079a8c6258a15e2b46bbd95791f39e4a0 AVAX0.‍005780228532 54.‍660405234
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PolarLuckyBox

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 16 : PolarLuckyBox.sol
// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IHandler.sol";
import "./Owners.sol";


contract PolarLuckyBox is ERC721, ERC721Enumerable, Owners {
	using Counters for Counters.Counter;

	struct Box {
		uint priceTokens;
		uint[] probability;
		string[] nodeType;
		string[] feature;
		uint[] counter;
		uint[] remaining;
		uint createdBox;
		uint openBox;
		uint maxBox;
		uint maxUser;
		string attribute;
	}

	struct Map {
		string[] keys;
		mapping(string => Box) values;
		mapping(string => uint256) indexOf;
		mapping(string => bool) inserted;
	}

	Map private map;
	uint private nonce;

	address public handler;
	mapping(uint => string) public tokenIdsToType;
	mapping(string => mapping(address => uint)) public boxesUserCount;

	Counters.Counter private _tokenIdCounter;
	string private uriBase;

	mapping (address => bool) public isBlacklisted;
	bool public onlyAuthorized = true;
	mapping(address => bool) public isAuthorized;

	bool public openCreateLuckyBoxesWithTokens = false;

	constructor(
		string memory uri,
		address _handler
	) ERC721("Polar Lucky Box", "PLB") {
		uriBase = uri;
		handler = _handler;
	}

	modifier onlyHandler() {
		require(msg.sender == handler, "PolarLuckyBox: God mode not activated");
		_;
	}

	// external
	function updatePolarLuckyBox(
		string memory name,
		uint priceTokens,
		uint[] memory probability,
		string[] memory nodeType,
		string[] memory feature,
		uint[] memory remaining,
		uint maxBox,
		uint maxUser,
		string memory attribute
	)
		external
		onlyOwners
	{
		require(probability.length == nodeType.length, "PolarLuckyBox: Length mismatch");
		require(nodeType.length == feature.length, "PolarLuckyBox: Length mismatch");
		require(feature.length == remaining.length, "PolarLuckyBox: Length mismatch");
		require(feature.length > 1, "PolarLuckyBox: Length must be greater than 1");
		
		uint[] memory counter = new uint[](nodeType.length);
		Box memory box = map.values[name];

		if (map.inserted[name]) {
			for (uint i = 0; i < nodeType.length; i++) {
				for (uint j = 0; j < box.nodeType.length; j++) {
					if (strcmp(nodeType[i], box.nodeType[j]) && strcmp(feature[i], box.feature[j])) {
						counter[i] = box.counter[j];
						break;
					}
				}
			}
		}

		mapSet(name, Box({
			priceTokens: priceTokens,
			probability: _updateProbability(probability),
			nodeType: nodeType,
			feature: feature,
			counter: counter,
			remaining: remaining,
			createdBox: box.createdBox,
			openBox: box.openBox,
			maxBox: maxBox,
			maxUser: maxUser,
			attribute: attribute
		}));
		
		checkBoxIntegrity(map.values[name]);
	}

	function createLuckyBoxesWithTokens(
		string memory name,
		uint count,
		address user
	)
		external
		onlyHandler
		returns(uint)
	{

		require(openCreateLuckyBoxesWithTokens, "PolarLuckyBox: Not open");
		mintBoxes(name, user, count);

		Box storage box = map.values[name];
		require(box.createdBox <= box.maxBox, "PolarLuckyBox: Out of stock");
		require(boxesUserCount[name][user] <= map.values[name].maxUser, 
				"PolarLuckyBox: User got too many boxes of this type");

		return map.values[name].priceTokens * count;
	}
	
	function createLuckyBoxesAirDrop(
		string memory name,
		uint count,
		address user
	)
		external 
		onlyHandler
	{
		mintBoxes(name, user, count);
		
		checkBoxIntegrity(map.values[name]);
	}

	function createNodesWithLuckyBoxes(
		address user,
		uint[] memory tokenIds
	) 
		external 
		onlyHandler
		returns(
			string[] memory,
			string[] memory
		)
	{
		string[] memory nodeTypes = new string[](tokenIds.length);
		string[] memory features = new string[](tokenIds.length);

		for (uint i = 0; i < tokenIds.length; i++) {
			uint tokenId = tokenIds[i];

			require(ownerOf(tokenId) == user, "PolarLuckyBox: Not nft owner");

			Box storage box = map.values[tokenIdsToType[tokenId]];

			box.openBox++;

			uint r = _generatePseudoRandom(user);

			for (uint j = 0; j < box.probability.length; j++) {
				if (r < box.probability[j]) {
					super._burn(tokenId);
					box.counter[j]++;
					box.remaining[j]--;
					if (box.remaining[j] == 0) {
						if (j > 0) {
							uint k = j - 1;
							while (k >= 0) {
								if (box.probability[k] != 0) {
									box.probability[k] = box.probability[j];
									break;
								}
								if (k == 0)
									break;
								k--;
							}
						}
						box.probability[j] = 0;
					}

					nodeTypes[i] = box.nodeType[j];
					features[i] = box.feature[j];

					break;
				} else if (j + 1 == box.probability.length) {
					revert("PolarLuckyBox: Unexpected output");
				}
			}
		}
		return (nodeTypes, features);
	}

	// external setters
	function setBaseURI(string memory _new) external onlyOwners {
		uriBase = _new;
	}
	
	function setHandler(address _new) external onlyOwners {
		handler = _new;
	}
	
	function setIsBlacklisted(address _new, bool _value) external onlyOwners {
		isBlacklisted[_new] = _value;
	}

	function setOpenCreate(
		bool _openCreateLuckyBoxesWithTokens
	) 
		external 
		onlyOwners 
	{
		openCreateLuckyBoxesWithTokens = _openCreateLuckyBoxesWithTokens;
	}
	
	function setPolarLuckyBoxPrice(string memory name, uint _new) external onlyOwners {
		require(map.inserted[name], "PolarLuckyBox: Name doesnt exist");
		map.values[name].priceTokens = _new;
	}
	
	function setPolarLuckyBoxMaxUser(string memory name, uint _new) external onlyOwners {
		require(map.inserted[name], "PolarLuckyBox: Name doesnt exist");
		map.values[name].maxUser = _new;
	}

	function setOnlyAuthorized(bool _new) external onlyOwners {
		onlyAuthorized = _new;
	}
	
	function setIsAuthorized(address _new, bool _value) external onlyOwners {
		isAuthorized[_new] = _value;
	}

	// external view
	function baseURI() external view returns(string memory) {
		return _baseURI();
	}

	function tokensOfOwner(address user) external view returns(uint256[] memory) {
		uint256[] memory result = new uint256[](balanceOf(user));
		for(uint256 i = 0; i < balanceOf(user); i++)
			result[i] = tokenOfOwnerByIndex(user, i);
		return result;
	}

	function tokensOfOwnerByIndexesBetween(
		address user,
		uint iStart,
		uint iEnd
	)
		external
		view
		returns(uint[] memory)
	{
		uint256[] memory result = new uint256[](iEnd - iStart);
		for(uint256 i = iStart; i < iEnd; i++)
			result[i - iStart] = tokenOfOwnerByIndex(user, i);
		return result;
	}

	function getBoxSize() external view returns(uint) {
		return map.keys.length;
	}

	function getMapKeysBetweenIndexes(
		uint iStart,
		uint iEnd
	)
		external
		view
		returns(string[] memory)
	{
		string[] memory keys = new string[](iEnd - iStart);
		for (uint i = iStart; i < iEnd; i++)
			keys[i - iStart] = map.keys[i];
		return keys;
	}

	function getMapBetweenIndexes(
		uint iStart,
		uint iEnd
	)
		external
		view
		returns(Box[] memory)
	{
		Box[] memory box = new Box[](iEnd - iStart);
		for (uint i = iStart; i < iEnd; i++)
			box[i - iStart] = map.values[map.keys[i]];
		return box;
	}

	function getMapForKey(string memory key) external view returns(Box memory) {
		require(map.inserted[key], "PolarLuckyBox: Key doesnt exist");
		return map.values[key];
	}

	function getAttribute(uint tokenId) external view returns(string memory) {
		return map.values[tokenIdsToType[tokenId]].attribute;
	}

	// public

	// internal
	function _transfer(
		address from,
		address to,
		uint tokenId
	)
		internal 
		override
	{
		require(!isBlacklisted[from] && !isBlacklisted[to],
			"PolarLuckyBox: Blacklisted address");

		if (onlyAuthorized) {
			require(!_isContract(from) || isAuthorized[from], 
				"PolarLuckyBox: Unauthorized contract");
			require(!_isContract(to) || isAuthorized[to], 
				"PolarLuckyBox: Unauthorized contract");
		}

		super._transfer(from, to, tokenId);
	}

	function _isContract(address addr) internal view returns(bool) {
		uint size;
		assembly { size := extcodesize(addr) }
		return size > 0;
	}

	function mintBoxes(
		string memory name,
		address user,
		uint count
	) internal {
		require(!isBlacklisted[user], "PolarLuckyBox: Blacklisted address");
		require(map.inserted[name], "PolarLuckyBox: Box doesnt exist");

		for (uint i = 0; i < count; i++) {
			uint tokenId = _tokenIdCounter.current();
			tokenIdsToType[tokenId] = name;
			_safeMint(user, tokenId);
			_tokenIdCounter.increment();
		}

		map.values[name].createdBox += count;
		boxesUserCount[name][user] += count;
	}

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

	function strcmp(string memory s1, string memory s2) internal pure returns(bool) {
		return (keccak256(abi.encodePacked((s1))) == keccak256(abi.encodePacked((s2))));
	}

	function checkBoxIntegrity(Box memory box) internal pure {
		uint count;
		for (uint i = 0; i < box.remaining.length; i++) {
			if (box.probability[i] > 0) {
				require(box.remaining[i] > 0,
					"PolarLuckyBox: Probability must be 0 if no box remaining");
				count += box.remaining[i];
			}
		}
		uint max = (box.maxBox >= box.createdBox) ? box.maxBox : box.createdBox;
		require(count >= max - box.openBox, 
			"PolarLuckyBox: Sum remaining lower than max - open box");
	}

	function _updateProbability(
		uint[] memory probability
	)
		internal
		pure
		returns(uint[] memory)
	{
		uint last = probability[0];

		for (uint i = 1; i < probability.length; i++) {
			if (probability[i] != 0) {
				probability[i] += last;
				last = probability[i];
			}
		}

		require(
			last == 10000,
			"PolarLuckyBox: Total probability must be 100%"
		);

		return probability;
	}

	function _generatePseudoRandom(address user) internal returns(uint) {
		uint r = uint(keccak256(abi.encodePacked(nonce, user, block.difficulty, block.timestamp)));
		unchecked { nonce++; }
		return r % 10000;
	}

	function mapSet(
        string memory key,
		Box memory value
    ) private {
        if (map.inserted[key]) {
            map.values[key] = value;
        } else {
            map.inserted[key] = true;
            map.values[key] = value;
            map.indexOf[key] = map.keys.length;
            map.keys.push(key);
        }
    }

	function mapRemove(string memory key) private {
        if (!map.inserted[key]) {
            return;
        }

        delete map.inserted[key];
        delete map.values[key];

        uint256 index = map.indexOf[key];
        uint256 lastIndex = map.keys.length - 1;
        string memory lastKey = map.keys[lastIndex];

        map.indexOf[lastKey] = index;
        delete map.indexOf[key];

		if (lastIndex != index)
			map.keys[index] = lastKey;
        map.keys.pop();
    }

	// ERC721 && ERC721Enumerable required overriding
	function _beforeTokenTransfer(
		address from, 
		address to, 
		uint256 tokenId
	)
		internal
		override(ERC721, ERC721Enumerable)
	{
		super._beforeTokenTransfer(from, to, tokenId);
	}

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

	function _setApprovalForAll(
		address owner,
		address operator,
		bool approved
	)
		internal
		override(ERC721)
	{
		if (onlyAuthorized) {
			require(!_isContract(owner) || isAuthorized[owner],
				"PolarNode: Unauthorized contract");
			require(!_isContract(operator) || isAuthorized[operator],
				"PolarNode: Unauthorized contract");
		}
		super._setApprovalForAll(owner, operator, approved);
	}

	function _approve(address to, uint256 tokenId) internal override(ERC721) {
		if (onlyAuthorized) {
			require(!_isContract(to) || isAuthorized[to],
				"PolarNode: Unauthorized contract");
		}
		super._approve(to, tokenId);
	}

}

File 2 of 16 : 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 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 16 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 5 of 16 : 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 6 of 16 : IHandler.sol
// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity ^0.8.0;

interface IHandler {
	function transferFrom(address from, address to, uint tokenId) external;
	function getAttribute(uint tokenId) external view returns(string memory);
}

File 7 of 16 : Owners.sol
// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity ^0.8.0;


contract Owners {
	
	address[] public owners;
	mapping(address => bool) public isOwner;

	constructor() {
		owners.push(msg.sender);
		isOwner[msg.sender] = true;
	}

	modifier onlySuperOwner() {
		require(owners[0] == msg.sender, "Owners: Only Super Owner");
		_;
	}
	
	modifier onlyOwners() {
		require(isOwner[msg.sender], "Owners: Only Owner");
		_;
	}

	function addOwner(address _new, bool _change) external onlySuperOwner {
		require(!isOwner[_new], "Owners: Already owner");
		isOwner[_new] = true;
		if (_change) {
			owners.push(owners[0]);
			owners[0] = _new;
		} else {
			owners.push(_new);
		}
	}

	function removeOwner(address _new) external onlySuperOwner {
		require(isOwner[_new], "Owners: Not owner");
		require(_new != owners[0], "Owners: Cannot remove super owner");
		for (uint i = 1; i < owners.length; i++) {
			if (owners[i] == _new) {
				owners[i] = owners[owners.length - 1];
				owners.pop();
				break;
			}
		}
		isOwner[_new] = false;
	}

	function getOwnersSize() external view returns(uint) {
		return owners.length;
	}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 16 : 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 10 of 16 : 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 11 of 16 : 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 12 of 16 : 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 13 of 16 : 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 14 of 16 : 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 15 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

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

Contract ABI

[{"inputs":[{"internalType":"string","name":"uri","type":"string"},{"internalType":"address","name":"_handler","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_new","type":"address"},{"internalType":"bool","name":"_change","type":"bool"}],"name":"addOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"address","name":"","type":"address"}],"name":"boxesUserCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"address","name":"user","type":"address"}],"name":"createLuckyBoxesAirDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"address","name":"user","type":"address"}],"name":"createLuckyBoxesWithTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"createNodesWithLuckyBoxes","outputs":[{"internalType":"string[]","name":"","type":"string[]"},{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getAttribute","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBoxSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"iStart","type":"uint256"},{"internalType":"uint256","name":"iEnd","type":"uint256"}],"name":"getMapBetweenIndexes","outputs":[{"components":[{"internalType":"uint256","name":"priceTokens","type":"uint256"},{"internalType":"uint256[]","name":"probability","type":"uint256[]"},{"internalType":"string[]","name":"nodeType","type":"string[]"},{"internalType":"string[]","name":"feature","type":"string[]"},{"internalType":"uint256[]","name":"counter","type":"uint256[]"},{"internalType":"uint256[]","name":"remaining","type":"uint256[]"},{"internalType":"uint256","name":"createdBox","type":"uint256"},{"internalType":"uint256","name":"openBox","type":"uint256"},{"internalType":"uint256","name":"maxBox","type":"uint256"},{"internalType":"uint256","name":"maxUser","type":"uint256"},{"internalType":"string","name":"attribute","type":"string"}],"internalType":"struct PolarLuckyBox.Box[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"key","type":"string"}],"name":"getMapForKey","outputs":[{"components":[{"internalType":"uint256","name":"priceTokens","type":"uint256"},{"internalType":"uint256[]","name":"probability","type":"uint256[]"},{"internalType":"string[]","name":"nodeType","type":"string[]"},{"internalType":"string[]","name":"feature","type":"string[]"},{"internalType":"uint256[]","name":"counter","type":"uint256[]"},{"internalType":"uint256[]","name":"remaining","type":"uint256[]"},{"internalType":"uint256","name":"createdBox","type":"uint256"},{"internalType":"uint256","name":"openBox","type":"uint256"},{"internalType":"uint256","name":"maxBox","type":"uint256"},{"internalType":"uint256","name":"maxUser","type":"uint256"},{"internalType":"string","name":"attribute","type":"string"}],"internalType":"struct PolarLuckyBox.Box","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"iStart","type":"uint256"},{"internalType":"uint256","name":"iEnd","type":"uint256"}],"name":"getMapKeysBetweenIndexes","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOwnersSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"handler","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAuthorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyAuthorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openCreateLuckyBoxesWithTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"owners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_new","type":"address"}],"name":"removeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_new","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new","type":"address"}],"name":"setHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"setIsAuthorized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"setIsBlacklisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_new","type":"bool"}],"name":"setOnlyAuthorized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_openCreateLuckyBoxesWithTokens","type":"bool"}],"name":"setOpenCreate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"_new","type":"uint256"}],"name":"setPolarLuckyBoxMaxUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"_new","type":"uint256"}],"name":"setPolarLuckyBoxPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdsToType","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"iStart","type":"uint256"},{"internalType":"uint256","name":"iEnd","type":"uint256"}],"name":"tokensOfOwnerByIndexesBetween","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"priceTokens","type":"uint256"},{"internalType":"uint256[]","name":"probability","type":"uint256[]"},{"internalType":"string[]","name":"nodeType","type":"string[]"},{"internalType":"string[]","name":"feature","type":"string[]"},{"internalType":"uint256[]","name":"remaining","type":"uint256[]"},{"internalType":"uint256","name":"maxBox","type":"uint256"},{"internalType":"uint256","name":"maxUser","type":"uint256"},{"internalType":"string","name":"attribute","type":"string"}],"name":"updatePolarLuckyBox","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526017805460ff199081166001179091556019805490911690553480156200002a57600080fd5b50604051620061a0380380620061a08339810160408190526200004d9162000214565b604080518082018252600f81526e0a0ded8c2e44098eac6d6f24084def608b1b60208083019182528351808501909452600384526228262160e91b9084015281519192916200009f9160009162000151565b508051620000b590600190602084019062000151565b5050600a805460018181019092557fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b031916339081179091556000908152600b60209081526040909120805460ff1916909217909155835162000129925060159185019062000151565b50601180546001600160a01b0319166001600160a01b0392909216919091179055506200034b565b8280546200015f90620002f8565b90600052602060002090601f016020900481019282620001835760008555620001ce565b82601f106200019e57805160ff1916838001178555620001ce565b82800160010185558215620001ce579182015b82811115620001ce578251825591602001919060010190620001b1565b50620001dc929150620001e0565b5090565b5b80821115620001dc5760008155600101620001e1565b80516001600160a01b03811681146200020f57600080fd5b919050565b6000806040838503121562000227578182fd5b82516001600160401b03808211156200023e578384fd5b818501915085601f83011262000252578384fd5b81518181111562000267576200026762000335565b6040516020601f8301601f19168201810184811183821017156200028f576200028f62000335565b6040528282528483018101891015620002a6578687fd5b8693505b82841015620002c95784840181015182850182015292830192620002aa565b82841115620002da57868184840101525b819650620002ea818901620001f7565b955050505050509250929050565b6002810460018216806200030d57607f821691505b602082108114156200032f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b615e45806200035b6000396000f3fe608060405234801561001057600080fd5b50600436106102a05760003560e01c80636454a0fd11610167578063a56f1f3f116100ce578063c80916d411610087578063c80916d4146105f7578063c87b56dd146105ff578063ce7180fb14610612578063e985e9c51461061a578063fe575a871461062d578063fe9fbb8014610640576102a0565b8063a56f1f3f1461056a578063a933c20f1461058a578063b3ad18e2146105ab578063b88d4fde146105be578063bac426d0146105d1578063c29f54a0146105e4576102a0565b806387568fd01161012057806387568fd0146105015780638b4db110146105145780638d0357dd1461051c57806395d89b411461053c578063a0e3849214610544578063a22cb46514610557576102a0565b80636454a0fd1461049a5780636c0360eb146104ad5780636d8850dc146104b557806370a08231146104c85780638462151c146104db5780638706d8fe146104ee576102a0565b806342842e0e1161020b57806355f804b3116101c457806355f804b3146104335780635a96ca09146104465780635d23273f1461044e5780635eec9c081461046157806363282df2146104745780636352211e14610487576102a0565b806342842e0e146103a7578063493fe80f146103ba5780634cee1e3b146103cd5780634f6ccce7146103ed5780635134fea614610400578063518e32d314610420576102a0565b8063173825d91161025d578063173825d91461034057806318160ddd1461035357806323b872dd1461035b5780632f54bf6e1461036e5780632f745c591461038157806340de1e0914610394576102a0565b806301ffc9a7146102a5578063025e7c27146102ce57806306fdde03146102ee578063081812fc14610303578063095ea7b3146103165780630c7b1d7b1461032b575b600080fd5b6102b86102b3366004614bdf565b610653565b6040516102c59190615243565b60405180910390f35b6102e16102dc366004614e2d565b610666565b6040516102c59190615151565b6102f6610690565b6040516102c5919061524e565b6102e1610311366004614e2d565b610722565b610329610324366004614b6a565b61076e565b005b610333610806565b6040516102c59190615c47565b61032961034e3660046149f7565b61080c565b610333610a5e565b610329610369366004614a43565b610a64565b6102b861037c3660046149f7565b610a9c565b61033361038f366004614b6a565b610ab1565b6103296103a2366004614c8b565b610b03565b6103296103b5366004614a43565b610b9d565b6102f66103c8366004614e2d565b610bb8565b6103e06103db366004614b93565b610c7b565b6040516102c59190615230565b6103336103fb366004614e2d565b610d3d565b61041361040e366004614e45565b610d98565b6040516102c59190615198565b61032961042e366004614b41565b610f11565b610329610441366004614c17565b6110d5565b6102b8611117565b61032961045c366004614b41565b611120565b61032961046f366004614bc5565b61117a565b610329610482366004614d21565b6111bc565b6102e1610495366004614e2d565b611c1a565b6103336104a8366004614ccd565b611c4f565b6102f6611da3565b6103296104c3366004614c8b565b611db2565b6103336104d63660046149f7565b611e49565b6103e06104e93660046149f7565b611e8d565b6103296104fc366004614ccd565b611f4c565b61033361050f366004614c49565b6121bd565b6102b86121ea565b61052f61052a366004614e45565b6121f3565b6040516102c591906151d0565b6102f661268a565b610329610552366004614b41565b612699565b610329610565366004614b41565b6126f3565b61057d610578366004614c17565b612705565b6040516102c59190615c34565b61059d610598366004614af6565b612afd565b6040516102c59291906151ab565b6102f66105b9366004614e2d565b6130d5565b6103296105cc366004614a7e565b61316f565b6103296105df3660046149f7565b6131ae565b6103296105f2366004614bc5565b6131ff565b6102e1613241565b6102f661060d366004614e2d565b613250565b6103336132d3565b6102b8610628366004614a11565b6132d9565b6102b861063b3660046149f7565b613307565b6102b861064e3660046149f7565b61331c565b600061065e82613331565b90505b919050565b600a818154811061067657600080fd5b6000918252602090912001546001600160a01b0316905081565b60606000805461069f90615d4d565b80601f01602080910402602001604051908101604052809291908181526020018280546106cb90615d4d565b80156107185780601f106106ed57610100808354040283529160200191610718565b820191906000526020600020905b8154815290600101906020018083116106fb57829003601f168201915b5050505050905090565b600061072d82613356565b6107525760405162461bcd60e51b81526004016107499061589f565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061077982611c1a565b9050806001600160a01b0316836001600160a01b031614156107ad5760405162461bcd60e51b815260040161074990615983565b806001600160a01b03166107bf613373565b6001600160a01b031614806107db57506107db81610628613373565b6107f75760405162461bcd60e51b8152600401610749906156ac565b6108018383613377565b505050565b600a5490565b336001600160a01b0316600a60008154811061083857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161461086a5760405162461bcd60e51b815260040161074990615385565b6001600160a01b0381166000908152600b602052604090205460ff166108a25760405162461bcd60e51b815260040161074990615c09565b600a6000815481106108c457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03828116911614156108fb5760405162461bcd60e51b815260040161074990615543565b60015b600a54811015610a3c57816001600160a01b0316600a828154811061093357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610a2a57600a805461095e90600190615cf3565b8154811061097c57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600a80546001600160a01b0390921691839081106109b657634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600a805480610a0357634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b0319169055019055610a3c565b80610a3481615d88565b9150506108fe565b506001600160a01b03166000908152600b60205260409020805460ff19169055565b60085490565b610a75610a6f613373565b826133d5565b610a915760405162461bcd60e51b815260040161074990615a32565b61080183838361345a565b600b6020526000908152604090205460ff1681565b6000610abc83611e49565b8210610ada5760405162461bcd60e51b8152600401610749906153f3565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b336000908152600b602052604090205460ff16610b325760405162461bcd60e51b8152600401610749906155ff565b604051600f90610b4390849061503e565b9081526040519081900360200190205460ff16610b725760405162461bcd60e51b815260040161074990615bd4565b80600c60010183604051610b86919061503e565b908152604051908190036020019020600901555050565b6108018383836040518060200160405280600081525061316f565b600081815260126020526040908190209051606091600d91610bda9190615089565b9081526020016040518091039020600a018054610bf690615d4d565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2290615d4d565b8015610c6f5780601f10610c4457610100808354040283529160200191610c6f565b820191906000526020600020905b815481529060010190602001808311610c5257829003601f168201915b50505050509050919050565b60606000610c898484615cf3565b6001600160401b03811115610cae57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610cd7578160200160208202803683370190505b509050835b83811015610d3457610cee8682610ab1565b82610cf98784615cf3565b81518110610d1757634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610d2c81615d88565b915050610cdc565b50949350505050565b6000610d47610a5e565b8210610d655760405162461bcd60e51b815260040161074990615a83565b60088281548110610d8657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b60606000610da68484615cf3565b6001600160401b03811115610dcb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610dfe57816020015b6060815260200190600190039081610de95790505b509050835b83811015610f0957600c805482908110610e2d57634e487b7160e01b600052603260045260246000fd5b906000526020600020018054610e4290615d4d565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6e90615d4d565b8015610ebb5780601f10610e9057610100808354040283529160200191610ebb565b820191906000526020600020905b815481529060010190602001808311610e9e57829003601f168201915b5050505050828683610ecd9190615cf3565b81518110610eeb57634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080610f0190615d88565b915050610e03565b509392505050565b336001600160a01b0316600a600081548110610f3d57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614610f6f5760405162461bcd60e51b815260040161074990615385565b6001600160a01b0382166000908152600b602052604090205460ff1615610fa85760405162461bcd60e51b815260040161074990615ba5565b6001600160a01b0382166000908152600b60205260409020805460ff19166001179055801561108557600a80600081548110610ff457634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910154835460018101855593835290822090920180546001600160a01b0319166001600160a01b0390931692909217909155600a805484929061105257634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506110d1565b600a80546001810182556000919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b0319166001600160a01b0384161790555b5050565b336000908152600b602052604090205460ff166111045760405162461bcd60e51b8152600401610749906155ff565b80516110d19060159060208401906146b7565b60195460ff1681565b336000908152600b602052604090205460ff1661114f5760405162461bcd60e51b8152600401610749906155ff565b6001600160a01b03919091166000908152601860205260409020805460ff1916911515919091179055565b336000908152600b602052604090205460ff166111a95760405162461bcd60e51b8152600401610749906155ff565b6019805460ff1916911515919091179055565b336000908152600b602052604090205460ff166111eb5760405162461bcd60e51b8152600401610749906155ff565b855187511461120c5760405162461bcd60e51b8152600401610749906157e0565b845186511461122d5760405162461bcd60e51b8152600401610749906157e0565b835185511461124e5760405162461bcd60e51b8152600401610749906157e0565b600185511161126f5760405162461bcd60e51b815260040161074990615339565b600086516001600160401b0381111561129857634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156112c1578160200160208202803683370190505b5090506000600c6001018b6040516112d9919061503e565b908152602001604051809103902060405180610160016040529081600082015481526020016001820180548060200260200160405190810160405280929190818152602001828054801561134c57602002820191906000526020600020905b815481526020019060010190808311611338575b5050505050815260200160028201805480602002602001604051908101604052809291908181526020016000905b8282101561142657838290600052602060002001805461139990615d4d565b80601f01602080910402602001604051908101604052809291908181526020018280546113c590615d4d565b80156114125780601f106113e757610100808354040283529160200191611412565b820191906000526020600020905b8154815290600101906020018083116113f557829003601f168201915b50505050508152602001906001019061137a565b50505050815260200160038201805480602002602001604051908101604052809291908181526020016000905b828210156114ff57838290600052602060002001805461147290615d4d565b80601f016020809104026020016040519081016040528092919081815260200182805461149e90615d4d565b80156114eb5780601f106114c0576101008083540402835291602001916114eb565b820191906000526020600020905b8154815290600101906020018083116114ce57829003601f168201915b505050505081526020019060010190611453565b5050505081526020016004820180548060200260200160405190810160405280929190818152602001828054801561155657602002820191906000526020600020905b815481526020019060010190808311611542575b50505050508152602001600582018054806020026020016040519081016040528092919081815260200182805480156115ae57602002820191906000526020600020905b81548152602001906001019080831161159a575b5050505050815260200160068201548152602001600782015481526020016008820154815260200160098201548152602001600a820180546115ef90615d4d565b80601f016020809104026020016040519081016040528092919081815260200182805461161b90615d4d565b80156116685780601f1061163d57610100808354040283529160200191611668565b820191906000526020600020905b81548152906001019060200180831161164b57829003601f168201915b5050505050815250509050600c6003018b604051611686919061503e565b9081526040519081900360200190205460ff16156117f55760005b88518110156117f35760005b8260400151518110156117e0576117168a83815181106116dd57634e487b7160e01b600052603260045260246000fd5b60200260200101518460400151838151811061170957634e487b7160e01b600052603260045260246000fd5b6020026020010151613560565b801561176c575061176c89838151811061174057634e487b7160e01b600052603260045260246000fd5b60200260200101518460600151838151811061170957634e487b7160e01b600052603260045260246000fd5b156117ce578260800151818151811061179557634e487b7160e01b600052603260045260246000fd5b60200260200101518483815181106117bd57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506117e0565b806117d881615d88565b9150506116ad565b50806117eb81615d88565b9150506116a1565b505b61185a8b6040518061016001604052808d81526020016118148d6135b9565b81526020018b81526020018a81526020018581526020018981526020018460c0015181526020018460e001518152602001888152602001878152602001868152506136c7565b611c0d600c6001018c604051611870919061503e565b90815260200160405180910390206040518061016001604052908160008201548152602001600182018054806020026020016040519081016040528092919081815260200182805480156118e357602002820191906000526020600020905b8154815260200190600101908083116118cf575b5050505050815260200160028201805480602002602001604051908101604052809291908181526020016000905b828210156119bd57838290600052602060002001805461193090615d4d565b80601f016020809104026020016040519081016040528092919081815260200182805461195c90615d4d565b80156119a95780601f1061197e576101008083540402835291602001916119a9565b820191906000526020600020905b81548152906001019060200180831161198c57829003601f168201915b505050505081526020019060010190611911565b50505050815260200160038201805480602002602001604051908101604052809291908181526020016000905b82821015611a96578382906000526020600020018054611a0990615d4d565b80601f0160208091040260200160405190810160405280929190818152602001828054611a3590615d4d565b8015611a825780601f10611a5757610100808354040283529160200191611a82565b820191906000526020600020905b815481529060010190602001808311611a6557829003601f168201915b5050505050815260200190600101906119ea565b50505050815260200160048201805480602002602001604051908101604052809291908181526020018280548015611aed57602002820191906000526020600020905b815481526020019060010190808311611ad9575b5050505050815260200160058201805480602002602001604051908101604052809291908181526020018280548015611b4557602002820191906000526020600020905b815481526020019060010190808311611b31575b5050505050815260200160068201548152602001600782015481526020016008820154815260200160098201548152602001600a82018054611b8690615d4d565b80601f0160208091040260200160405190810160405280929190818152602001828054611bb290615d4d565b8015611bff5780601f10611bd457610100808354040283529160200191611bff565b820191906000526020600020905b815481529060010190602001808311611be257829003601f168201915b505050505081525050613999565b5050505050505050505050565b6000818152600260205260408120546001600160a01b03168061065e5760405162461bcd60e51b815260040161074990615753565b6011546000906001600160a01b03163314611c7c5760405162461bcd60e51b8152600401610749906154fe565b60195460ff16611c9e5760405162461bcd60e51b8152600401610749906159fb565b611ca9848385613acb565b6000600c60010185604051611cbe919061503e565b90815260200160405180910390209050806008015481600601541115611cf65760405162461bcd60e51b8152600401610749906159c4565b604051600d90611d0790879061503e565b908152602001604051809103902060090154601386604051611d29919061503e565b90815260408051602092819003830190206001600160a01b038716600090815292529020541115611d6c5760405162461bcd60e51b81526004016107499061584c565b83600c60010186604051611d80919061503e565b90815260405190819003602001902054611d9a9190615cd4565b95945050505050565b6060611dad613c3e565b905090565b336000908152600b602052604090205460ff16611de15760405162461bcd60e51b8152600401610749906155ff565b604051600f90611df290849061503e565b9081526040519081900360200190205460ff16611e215760405162461bcd60e51b815260040161074990615bd4565b80600c60010183604051611e35919061503e565b908152604051908190036020019020555050565b60006001600160a01b038216611e715760405162461bcd60e51b815260040161074990615709565b506001600160a01b031660009081526003602052604090205490565b60606000611e9a83611e49565b6001600160401b03811115611ebf57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611ee8578160200160208202803683370190505b50905060005b611ef784611e49565b811015611f4557611f088482610ab1565b828281518110611f2857634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611f3d81615d88565b915050611eee565b5092915050565b6011546001600160a01b03163314611f765760405162461bcd60e51b8152600401610749906154fe565b611f81838284613acb565b610801600c60010184604051611f97919061503e565b908152602001604051809103902060405180610160016040529081600082015481526020016001820180548060200260200160405190810160405280929190818152602001828054801561200a57602002820191906000526020600020905b815481526020019060010190808311611ff6575b5050505050815260200160028201805480602002602001604051908101604052809291908181526020016000905b828210156120e457838290600052602060002001805461205790615d4d565b80601f016020809104026020016040519081016040528092919081815260200182805461208390615d4d565b80156120d05780601f106120a5576101008083540402835291602001916120d0565b820191906000526020600020905b8154815290600101906020018083116120b357829003601f168201915b505050505081526020019060010190612038565b50505050815260200160038201805480602002602001604051908101604052809291908181526020016000905b82821015611a9657838290600052602060002001805461213090615d4d565b80601f016020809104026020016040519081016040528092919081815260200182805461215c90615d4d565b80156121a95780601f1061217e576101008083540402835291602001916121a9565b820191906000526020600020905b81548152906001019060200180831161218c57829003601f168201915b505050505081526020019060010190612111565b81516020818401810180516013825292820194820194909420919093529091526000908152604090205481565b60175460ff1681565b606060006122018484615cf3565b6001600160401b0381111561222657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561225f57816020015b61224c61473b565b8152602001906001900390816122445790505b509050835b83811015610f0957600c8054600d91908390811061229257634e487b7160e01b600052603260045260246000fd5b906000526020600020016040516122a99190615089565b908152602001604051809103902060405180610160016040529081600082015481526020016001820180548060200260200160405190810160405280929190818152602001828054801561231c57602002820191906000526020600020905b815481526020019060010190808311612308575b5050505050815260200160028201805480602002602001604051908101604052809291908181526020016000905b828210156123f657838290600052602060002001805461236990615d4d565b80601f016020809104026020016040519081016040528092919081815260200182805461239590615d4d565b80156123e25780601f106123b7576101008083540402835291602001916123e2565b820191906000526020600020905b8154815290600101906020018083116123c557829003601f168201915b50505050508152602001906001019061234a565b50505050815260200160038201805480602002602001604051908101604052809291908181526020016000905b828210156124cf57838290600052602060002001805461244290615d4d565b80601f016020809104026020016040519081016040528092919081815260200182805461246e90615d4d565b80156124bb5780601f10612490576101008083540402835291602001916124bb565b820191906000526020600020905b81548152906001019060200180831161249e57829003601f168201915b505050505081526020019060010190612423565b5050505081526020016004820180548060200260200160405190810160405280929190818152602001828054801561252657602002820191906000526020600020905b815481526020019060010190808311612512575b505050505081526020016005820180548060200260200160405190810160405280929190818152602001828054801561257e57602002820191906000526020600020905b81548152602001906001019080831161256a575b5050505050815260200160068201548152602001600782015481526020016008820154815260200160098201548152602001600a820180546125bf90615d4d565b80601f01602080910402602001604051908101604052809291908181526020018280546125eb90615d4d565b80156126385780601f1061260d57610100808354040283529160200191612638565b820191906000526020600020905b81548152906001019060200180831161261b57829003601f168201915b50505050508152505082868361264e9190615cf3565b8151811061266c57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250808061268290615d88565b915050612264565b60606001805461069f90615d4d565b336000908152600b602052604090205460ff166126c85760405162461bcd60e51b8152600401610749906155ff565b6001600160a01b03919091166000908152601660205260409020805460ff1916911515919091179055565b6110d16126fe613373565b8383613c4d565b61270d61473b565b604051600f9061271e90849061503e565b9081526040519081900360200190205460ff1661274d5760405162461bcd60e51b8152600401610749906153bc565b604051600d9061275e90849061503e565b90815260200160405180910390206040518061016001604052908160008201548152602001600182018054806020026020016040519081016040528092919081815260200182805480156127d157602002820191906000526020600020905b8154815260200190600101908083116127bd575b5050505050815260200160028201805480602002602001604051908101604052809291908181526020016000905b828210156128ab57838290600052602060002001805461281e90615d4d565b80601f016020809104026020016040519081016040528092919081815260200182805461284a90615d4d565b80156128975780601f1061286c57610100808354040283529160200191612897565b820191906000526020600020905b81548152906001019060200180831161287a57829003601f168201915b5050505050815260200190600101906127ff565b50505050815260200160038201805480602002602001604051908101604052809291908181526020016000905b828210156129845783829060005260206000200180546128f790615d4d565b80601f016020809104026020016040519081016040528092919081815260200182805461292390615d4d565b80156129705780601f1061294557610100808354040283529160200191612970565b820191906000526020600020905b81548152906001019060200180831161295357829003601f168201915b5050505050815260200190600101906128d8565b505050508152602001600482018054806020026020016040519081016040528092919081815260200182805480156129db57602002820191906000526020600020905b8154815260200190600101908083116129c7575b5050505050815260200160058201805480602002602001604051908101604052809291908181526020018280548015612a3357602002820191906000526020600020905b815481526020019060010190808311612a1f575b5050505050815260200160068201548152602001600782015481526020016008820154815260200160098201548152602001600a82018054612a7490615d4d565b80601f0160208091040260200160405190810160405280929190818152602001828054612aa090615d4d565b8015612aed5780601f10612ac257610100808354040283529160200191612aed565b820191906000526020600020905b815481529060010190602001808311612ad057829003601f168201915b5050505050815250509050919050565b60115460609081906001600160a01b03163314612b2c5760405162461bcd60e51b8152600401610749906154fe565b600083516001600160401b03811115612b5557634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612b8857816020015b6060815260200190600190039081612b735790505b509050600084516001600160401b03811115612bb457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612be757816020015b6060815260200190600190039081612bd25790505b50905060005b85518110156130c9576000868281518110612c1857634e487b7160e01b600052603260045260246000fd5b60200260200101519050876001600160a01b0316612c3582611c1a565b6001600160a01b031614612c5b5760405162461bcd60e51b815260040161074990615490565b6000818152601260205260408082209051600d91612c7891615089565b9081526040519081900360200190206007810180549192506000612c9b83615d88565b91905055506000612cab8a613cf5565b905060005b60018301548110156130b257826001018181548110612cdf57634e487b7160e01b600052603260045260246000fd5b906000526020600020015482101561307057612cfa84613d40565b826004018181548110612d1d57634e487b7160e01b600052603260045260246000fd5b60009182526020822001805491612d3383615d88565b9190505550826005018181548110612d5b57634e487b7160e01b600052603260045260246000fd5b60009182526020822001805491612d7183615d36565b9190505550826005018181548110612d9957634e487b7160e01b600052603260045260246000fd5b906000526020600020015460001415612ea9578015612e77576000612dbf600183615cf3565b90505b836001018181548110612de557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154600014612e5957836001018281548110612e1a57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154846001018281548110612e4857634e487b7160e01b600052603260045260246000fd5b600091825260209091200155612e75565b80612e6357612e75565b80612e6d81615d36565b915050612dc2565b505b6000836001018281548110612e9c57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001555b826002018181548110612ecc57634e487b7160e01b600052603260045260246000fd5b906000526020600020018054612ee190615d4d565b80601f0160208091040260200160405190810160405280929190818152602001828054612f0d90615d4d565b8015612f5a5780601f10612f2f57610100808354040283529160200191612f5a565b820191906000526020600020905b815481529060010190602001808311612f3d57829003601f168201915b5050505050878681518110612f7f57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250826003018181548110612fad57634e487b7160e01b600052603260045260246000fd5b906000526020600020018054612fc290615d4d565b80601f0160208091040260200160405190810160405280929190818152602001828054612fee90615d4d565b801561303b5780601f106130105761010080835404028352916020019161303b565b820191906000526020600020905b81548152906001019060200180831161301e57829003601f168201915b505050505086868151811061306057634e487b7160e01b600052603260045260246000fd5b60200260200101819052506130b2565b60018084015490613082908390615ca8565b14156130a05760405162461bcd60e51b815260040161074990615261565b806130aa81615d88565b915050612cb0565b5050505080806130c190615d88565b915050612bed565b50909590945092505050565b601260205260009081526040902080546130ee90615d4d565b80601f016020809104026020016040519081016040528092919081815260200182805461311a90615d4d565b80156131675780601f1061313c57610100808354040283529160200191613167565b820191906000526020600020905b81548152906001019060200180831161314a57829003601f168201915b505050505081565b61318061317a613373565b836133d5565b61319c5760405162461bcd60e51b815260040161074990615a32565b6131a884848484613de7565b50505050565b336000908152600b602052604090205460ff166131dd5760405162461bcd60e51b8152600401610749906155ff565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152600b602052604090205460ff1661322e5760405162461bcd60e51b8152600401610749906155ff565b6017805460ff1916911515919091179055565b6011546001600160a01b031681565b606061325b82613356565b6132775760405162461bcd60e51b815260040161074990615934565b6000613281613c3e565b905060008151116132a157604051806020016040528060008152506132cc565b806132ab84613e1a565b6040516020016132bc92919061505a565b6040516020818303038152906040525b9392505050565b600c5490565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60166020526000908152604090205460ff1681565b60186020526000908152604090205460ff1681565b60006001600160e01b0319821663780e9d6360e01b148061065e575061065e82613f34565b6000908152600260205260409020546001600160a01b0316151590565b3390565b60175460ff16156133cb5761338b82613f74565b15806133af57506001600160a01b03821660009081526018602052604090205460ff165b6133cb5760405162461bcd60e51b815260040161074990615677565b6110d18282613f7a565b60006133e082613356565b6133fc5760405162461bcd60e51b81526004016107499061562b565b600061340783611c1a565b9050806001600160a01b0316846001600160a01b031614806134425750836001600160a01b031661343784610722565b6001600160a01b0316145b80613452575061345281856132d9565b949350505050565b6001600160a01b03831660009081526016602052604090205460ff1615801561349c57506001600160a01b03821660009081526016602052604090205460ff16155b6134b85760405162461bcd60e51b815260040161074990615b06565b60175460ff1615613555576134cc83613f74565b15806134f057506001600160a01b03831660009081526018602052604090205460ff165b61350c5760405162461bcd60e51b81526004016107499061579c565b61351582613f74565b158061353957506001600160a01b03821660009081526018602052604090205460ff165b6135555760405162461bcd60e51b81526004016107499061579c565b610801838383613fe8565b600081604051602001613573919061503e565b604051602081830303815290604052805190602001208360405160200161359a919061503e565b6040516020818303038152906040528051906020012014905092915050565b60606000826000815181106135de57634e487b7160e01b600052603260045260246000fd5b602002602001015190506000600190505b835181101561369e5783818151811061361857634e487b7160e01b600052603260045260246000fd5b602002602001015160001461368c578184828151811061364857634e487b7160e01b600052603260045260246000fd5b6020026020010181815161365c9190615ca8565b905250835184908290811061368157634e487b7160e01b600052603260045260246000fd5b602002602001015191505b8061369681615d88565b9150506135ef565b5080612710146136c05760405162461bcd60e51b815260040161074990615296565b5090919050565b604051600f906136d890849061503e565b9081526040519081900360200190205460ff16156137f85780600c60010183604051613704919061503e565b9081526020016040518091039020600082015181600001556020820151816001019080519060200190613738929190614795565b50604082015180516137549160028401916020909101906147cf565b50606082015180516137709160038401916020909101906147cf565b506080820151805161378c916004840191602090910190614795565b5060a082015180516137a8916005840191602090910190614795565b5060c0820151600682015560e082015160078201556101008201516008820155610120820151600982015561014082015180516137ef91600a8401916020909101906146b7565b509050506110d1565b6001600c6003018360405161380d919061503e565b908152604051908190036020018120805492151560ff19909316929092179091558190600d9061383e90859061503e565b9081526020016040518091039020600082015181600001556020820151816001019080519060200190613872929190614795565b506040820151805161388e9160028401916020909101906147cf565b50606082015180516138aa9160038401916020909101906147cf565b50608082015180516138c6916004840191602090910190614795565b5060a082015180516138e2916005840191602090910190614795565b5060c0820151600682015560e0820151600782015561010082015160088201556101208201516009820155610140820151805161392991600a8401916020909101906146b7565b5050600c54604051909150600e9061394290859061503e565b9081526040516020918190038201902091909155600c80546001810182556000919091528351610801927fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7909201918501906146b7565b6000805b8260a0015151811015613a75576000836020015182815181106139d057634e487b7160e01b600052603260045260246000fd5b60200260200101511115613a635760008360a001518281518110613a0457634e487b7160e01b600052603260045260246000fd5b602002602001015111613a295760405162461bcd60e51b815260040161074990615b48565b8260a001518181518110613a4d57634e487b7160e01b600052603260045260246000fd5b602002602001015182613a609190615ca8565b91505b80613a6d81615d88565b91505061399d565b5060008260c001518361010001511015613a93578260c00151613a9a565b8261010001515b90508260e0015181613aac9190615cf3565b8210156108015760405162461bcd60e51b8152600401610749906152e3565b6001600160a01b03821660009081526016602052604090205460ff1615613b045760405162461bcd60e51b815260040161074990615b06565b604051600f90613b1590859061503e565b9081526040519081900360200190205460ff16613b445760405162461bcd60e51b815260040161074990615acf565b60005b81811015613ba7576000613b5b6014614115565b60008181526012602090815260409091208751929350613b7f9290918801906146b7565b50613b8a8482614119565b613b946014614133565b5080613b9f81615d88565b915050613b47565b5080600c60010184604051613bbc919061503e565b90815260200160405180910390206006016000828254613bdc9190615ca8565b9250508190555080601384604051613bf4919061503e565b90815260200160405180910390206000846001600160a01b03166001600160a01b031681526020019081526020016000206000828254613c349190615ca8565b9091555050505050565b60606015805461069f90615d4d565b60175460ff1615613cea57613c6183613f74565b1580613c8557506001600160a01b03831660009081526018602052604090205460ff165b613ca15760405162461bcd60e51b815260040161074990615677565b613caa82613f74565b1580613cce57506001600160a01b03821660009081526018602052604090205460ff165b613cea5760405162461bcd60e51b815260040161074990615677565b61080183838361413c565b600080601054834442604051602001613d119493929190615124565b60408051601f19818403018152919052805160209091012060108054600101905590506132cc61271082615da3565b6000613d4b82611c1a565b9050613d59816000846141df565b613d64600083613377565b6001600160a01b0381166000908152600360205260408120805460019290613d8d908490615cf3565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b613df284848461345a565b613dfe848484846141ea565b6131a85760405162461bcd60e51b81526004016107499061543e565b606081613e3f57506040805180820190915260018152600360fc1b6020820152610661565b8160005b8115613e695780613e5381615d88565b9150613e629050600a83615cc0565b9150613e43565b6000816001600160401b03811115613e9157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613ebb576020820181803683370190505b5090505b841561345257613ed0600183615cf3565b9150613edd600a86615da3565b613ee8906030615ca8565b60f81b818381518110613f0b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613f2d600a86615cc0565b9450613ebf565b60006001600160e01b031982166380ac58cd60e01b1480613f6557506001600160e01b03198216635b5e139f60e01b145b8061065e575061065e82614305565b3b151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613faf82611c1a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b826001600160a01b0316613ffb82611c1a565b6001600160a01b0316146140215760405162461bcd60e51b8152600401610749906158eb565b6001600160a01b0382166140475760405162461bcd60e51b815260040161074990615584565b6140528383836141df565b61405d600082613377565b6001600160a01b0383166000908152600360205260408120805460019290614086908490615cf3565b90915550506001600160a01b03821660009081526003602052604081208054600192906140b4908490615ca8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b5490565b6110d182826040518060200160405280600081525061431e565b80546001019055565b816001600160a01b0316836001600160a01b0316141561416e5760405162461bcd60e51b8152600401610749906155c8565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906141d2908590615243565b60405180910390a3505050565b610801838383614351565b60006141fe846001600160a01b0316613f74565b156142fa57836001600160a01b031663150b7a0261421a613373565b8786866040518563ffffffff1660e01b815260040161423c9493929190615165565b602060405180830381600087803b15801561425657600080fd5b505af1925050508015614286575060408051601f3d908101601f1916820190925261428391810190614bfb565b60015b6142e0573d8080156142b4576040519150601f19603f3d011682016040523d82523d6000602084013e6142b9565b606091505b5080516142d85760405162461bcd60e51b81526004016107499061543e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613452565b506001949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b61432883836143da565b61433560008484846141ea565b6108015760405162461bcd60e51b81526004016107499061543e565b61435c838383610801565b6001600160a01b03831661437857614373816144b9565b61439b565b816001600160a01b0316836001600160a01b03161461439b5761439b83826144fd565b6001600160a01b0382166143b7576143b28161459a565b610801565b826001600160a01b0316826001600160a01b031614610801576108018282614673565b6001600160a01b0382166144005760405162461bcd60e51b815260040161074990615817565b61440981613356565b156144265760405162461bcd60e51b8152600401610749906154c7565b614432600083836141df565b6001600160a01b038216600090815260036020526040812080546001929061445b908490615ca8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161450a84611e49565b6145149190615cf3565b600083815260076020526040902054909150808214614567576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906145ac90600190615cf3565b600083815260096020526040812054600880549394509092849081106145e257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061461157634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061465757634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061467e83611e49565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546146c390615d4d565b90600052602060002090601f0160209004810192826146e5576000855561472b565b82601f106146fe57805160ff191683800117855561472b565b8280016001018555821561472b579182015b8281111561472b578251825591602001919060010190614710565b50614737929150614828565b5090565b60405180610160016040528060008152602001606081526020016060815260200160608152602001606081526020016060815260200160008152602001600081526020016000815260200160008152602001606081525090565b82805482825590600052602060002090810192821561472b579160200282018281111561472b578251825591602001919060010190614710565b82805482825590600052602060002090810192821561481c579160200282015b8281111561481c578251805161480c9184916020909101906146b7565b50916020019190600101906147ef565b5061473792915061483d565b5b808211156147375760008155600101614829565b80821115614737576000614851828261485a565b5060010161483d565b50805461486690615d4d565b6000825580601f106148785750614896565b601f0160209004906000526020600020908101906148969190614828565b50565b60006001600160401b038311156148b2576148b2615de3565b6148c5601f8401601f1916602001615c50565b90508281528383830111156148d957600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461066157600080fd5b600082601f830112614917578081fd5b8135602061492c61492783615c79565b615c50565b82815281810190858301855b858110156149615761494f898684358b01016149d8565b84529284019290840190600101614938565b5090979650505050505050565b600082601f83011261497e578081fd5b8135602061498e61492783615c79565b82815281810190858301838502870184018810156149aa578586fd5b855b85811015614961578135845292840192908401906001016149ac565b8035801515811461066157600080fd5b600082601f8301126149e8578081fd5b6132cc83833560208501614899565b600060208284031215614a08578081fd5b6132cc826148f0565b60008060408385031215614a23578081fd5b614a2c836148f0565b9150614a3a602084016148f0565b90509250929050565b600080600060608486031215614a57578081fd5b614a60846148f0565b9250614a6e602085016148f0565b9150604084013590509250925092565b60008060008060808587031215614a93578081fd5b614a9c856148f0565b9350614aaa602086016148f0565b92506040850135915060608501356001600160401b03811115614acb578182fd5b8501601f81018713614adb578182fd5b614aea87823560208401614899565b91505092959194509250565b60008060408385031215614b08578182fd5b614b11836148f0565b915060208301356001600160401b03811115614b2b578182fd5b614b378582860161496e565b9150509250929050565b60008060408385031215614b53578182fd5b614b5c836148f0565b9150614a3a602084016149c8565b60008060408385031215614b7c578182fd5b614b85836148f0565b946020939093013593505050565b600080600060608486031215614ba7578283fd5b614bb0846148f0565b95602085013595506040909401359392505050565b600060208284031215614bd6578081fd5b6132cc826149c8565b600060208284031215614bf0578081fd5b81356132cc81615df9565b600060208284031215614c0c578081fd5b81516132cc81615df9565b600060208284031215614c28578081fd5b81356001600160401b03811115614c3d578182fd5b613452848285016149d8565b60008060408385031215614c5b578182fd5b82356001600160401b03811115614c70578283fd5b614c7c858286016149d8565b925050614a3a602084016148f0565b60008060408385031215614c9d578182fd5b82356001600160401b03811115614cb2578283fd5b614cbe858286016149d8565b95602094909401359450505050565b600080600060608486031215614ce1578081fd5b83356001600160401b03811115614cf6578182fd5b614d02868287016149d8565b93505060208401359150614d18604085016148f0565b90509250925092565b60008060008060008060008060006101208a8c031215614d3f578687fd5b89356001600160401b0380821115614d55578889fd5b614d618d838e016149d8565b9a5060208c0135995060408c0135915080821115614d7d578889fd5b614d898d838e0161496e565b985060608c0135915080821115614d9e578687fd5b614daa8d838e01614907565b975060808c0135915080821115614dbf578687fd5b614dcb8d838e01614907565b965060a08c0135915080821115614de0578586fd5b614dec8d838e0161496e565b955060c08c0135945060e08c013593506101008c0135915080821115614e10578283fd5b50614e1d8c828d016149d8565b9150509295985092959850929598565b600060208284031215614e3e578081fd5b5035919050565b60008060408385031215614e57578182fd5b50508035926020909101359150565b6000815180845260208085018081965082840281019150828601855b85811015614eac578284038952614e9a848351614f39565b98850198935090840190600101614e82565b5091979650505050505050565b6000815180845260208085018081965082840281019150828601855b85811015614eac578284038952614eed848351614f39565b98850198935090840190600101614ed5565b6000815180845260208085019450808401835b83811015614f2e57815187529582019590820190600101614f12565b509495945050505050565b60008151808452614f51816020860160208601615d0a565b601f01601f19169290920160200192915050565b6000610160825184526020830151816020860152614f8582860182614eff565b91505060408301518482036040860152614f9f8282614e66565b91505060608301518482036060860152614fb98282614e66565b91505060808301518482036080860152614fd38282614eff565b91505060a083015184820360a0860152614fed8282614eff565b91505060c083015160c085015260e083015160e085015261010080840151818601525061012080840151818601525061014080840151858303828701526150348382614f39565b9695505050505050565b60008251615050818460208701615d0a565b9190910192915050565b6000835161506c818460208801615d0a565b835190830190615080818360208801615d0a565b01949350505050565b81546000908190600281046001808316806150a557607f831692505b60208084108214156150c557634e487b7160e01b87526022600452602487fd5b8180156150d957600181146150ea57615116565b60ff19861689528489019650615116565b6150f38a615c9c565b885b8681101561510e5781548b8201529085019083016150f5565b505084890196505b509498975050505050505050565b93845260609290921b6bffffffffffffffffffffffff191660208401526034830152605482015260740190565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061503490830184614f39565b6000602082526132cc6020830184614eb9565b6000604082526151be6040830185614eb9565b8281036020840152611d9a8185614eb9565b6000602080830181845280855180835260408601915060408482028701019250838701855b8281101561522357603f19888603018452615211858351614f65565b945092850192908501906001016151f5565b5092979650505050505050565b6000602082526132cc6020830184614eff565b901515815260200190565b6000602082526132cc6020830184614f39565b6020808252818101527f506f6c61724c75636b79426f783a20556e6578706563746564206f7574707574604082015260600190565b6020808252602d908201527f506f6c61724c75636b79426f783a20546f74616c2070726f626162696c69747960408201526c206d757374206265203130302560981b606082015260800190565b60208082526036908201527f506f6c61724c75636b79426f783a2053756d2072656d61696e696e67206c6f776040820152750cae440e8d0c2dc40dac2f0405a40dee0cadc40c4def60531b606082015260800190565b6020808252602c908201527f506f6c61724c75636b79426f783a204c656e677468206d75737420626520677260408201526b6561746572207468616e203160a01b606082015260800190565b60208082526018908201527f4f776e6572733a204f6e6c79205375706572204f776e65720000000000000000604082015260600190565b6020808252601f908201527f506f6c61724c75636b79426f783a204b657920646f65736e7420657869737400604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527f506f6c61724c75636b79426f783a204e6f74206e6674206f776e657200000000604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526025908201527f506f6c61724c75636b79426f783a20476f64206d6f6465206e6f7420616374696040820152641d985d195960da1b606082015260800190565b60208082526021908201527f4f776e6572733a2043616e6e6f742072656d6f7665207375706572206f776e656040820152603960f91b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526012908201527127bbb732b9399d1027b7363c9027bbb732b960711b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f506f6c61724e6f64653a20556e617574686f72697a656420636f6e7472616374604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526024908201527f506f6c61724c75636b79426f783a20556e617574686f72697a656420636f6e746040820152631c9858dd60e21b606082015260800190565b6020808252601e908201527f506f6c61724c75636b79426f783a204c656e677468206d69736d617463680000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526033908201527f506f6c61724c75636b79426f783a205573657220676f7420746f6f206d616e7960408201527220626f786573206f662074686973207479706560681b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252601b908201527f506f6c61724c75636b79426f783a204f7574206f662073746f636b0000000000604082015260600190565b60208082526017908201527f506f6c61724c75636b79426f783a204e6f74206f70656e000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601f908201527f506f6c61724c75636b79426f783a20426f7820646f65736e7420657869737400604082015260600190565b60208082526022908201527f506f6c61724c75636b79426f783a20426c61636b6c6973746564206164647265604082015261737360f01b606082015260800190565b60208082526038908201527f506f6c61724c75636b79426f783a2050726f626162696c697479206d7573742060408201527f62652030206966206e6f20626f782072656d61696e696e670000000000000000606082015260800190565b60208082526015908201527427bbb732b9399d1020b63932b0b23c9037bbb732b960591b604082015260600190565b6020808252818101527f506f6c61724c75636b79426f783a204e616d6520646f65736e74206578697374604082015260600190565b60208082526011908201527027bbb732b9399d102737ba1037bbb732b960791b604082015260600190565b6000602082526132cc6020830184614f65565b90815260200190565b6040518181016001600160401b0381118282101715615c7157615c71615de3565b604052919050565b60006001600160401b03821115615c9257615c92615de3565b5060209081020190565b60009081526020902090565b60008219821115615cbb57615cbb615db7565b500190565b600082615ccf57615ccf615dcd565b500490565b6000816000190483118215151615615cee57615cee615db7565b500290565b600082821015615d0557615d05615db7565b500390565b60005b83811015615d25578181015183820152602001615d0d565b838111156131a85750506000910152565b600081615d4557615d45615db7565b506000190190565b600281046001821680615d6157607f821691505b60208210811415615d8257634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415615d9c57615d9c615db7565b5060010190565b600082615db257615db2615dcd565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461489657600080fdfea264697066735822122084b5ba0dcb47c53cb3c0140788ca470424b08c88df90c56b4fdd46a13b800cf364736f6c634300080000330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000ea8129f602e0cfdd9fba116e07fb04a13afdc48a000000000000000000000000000000000000000000000000000000000000002568747470733a2f2f6170692e706f6c61722e66696e616e6369616c2f6c75636b79626f782f000000000000000000000000000000000000000000000000000000

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000ea8129f602e0cfdd9fba116e07fb04a13afdc48a000000000000000000000000000000000000000000000000000000000000002568747470733a2f2f6170692e706f6c61722e66696e616e6369616c2f6c75636b79626f782f000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : uri (string): https://api.polar.financial/luckybox/
Arg [1] : _handler (address): 0xea8129f602e0cfdd9fba116e07fb04a13afdc48a

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 000000000000000000000000ea8129f602e0cfdd9fba116e07fb04a13afdc48a
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000025
Arg [3] : 68747470733a2f2f6170692e706f6c61722e66696e616e6369616c2f6c75636b
Arg [4] : 79626f782f000000000000000000000000000000000000000000000000000000


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