Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 439 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 19554874 | 257 days ago | IN | 0 ETH | 0.00061533 | ||||
Set Approval For... | 16773948 | 647 days ago | IN | 0 ETH | 0.00119512 | ||||
Set Approval For... | 16145109 | 735 days ago | IN | 0 ETH | 0.0006654 | ||||
Set Approval For... | 16014549 | 753 days ago | IN | 0 ETH | 0.00053466 | ||||
Set Approval For... | 15753671 | 790 days ago | IN | 0 ETH | 0.00073691 | ||||
Set Approval For... | 15561750 | 817 days ago | IN | 0 ETH | 0.00104129 | ||||
Set Approval For... | 15544200 | 819 days ago | IN | 0 ETH | 0.00022244 | ||||
Set Approval For... | 15471416 | 831 days ago | IN | 0 ETH | 0.00023185 | ||||
Set Approval For... | 15461571 | 833 days ago | IN | 0 ETH | 0.00039651 | ||||
Set Approval For... | 15265384 | 864 days ago | IN | 0 ETH | 0.00066871 | ||||
Set Approval For... | 15204034 | 873 days ago | IN | 0 ETH | 0.00041031 | ||||
Set Approval For... | 15183311 | 876 days ago | IN | 0 ETH | 0.00086585 | ||||
Set Approval For... | 15164221 | 879 days ago | IN | 0 ETH | 0.0008353 | ||||
Set Approval For... | 15159441 | 880 days ago | IN | 0 ETH | 0.00042196 | ||||
Set Base URI | 15143439 | 882 days ago | IN | 0 ETH | 0.00184765 | ||||
Set Approval For... | 15139140 | 883 days ago | IN | 0 ETH | 0.00035537 | ||||
Set Approval For... | 15139140 | 883 days ago | IN | 0 ETH | 0.00035537 | ||||
Set Approval For... | 15138783 | 883 days ago | IN | 0 ETH | 0.00085541 | ||||
Set Approval For... | 15137271 | 883 days ago | IN | 0 ETH | 0.00122156 | ||||
Set Approval For... | 15136688 | 884 days ago | IN | 0 ETH | 0.00128805 | ||||
Set Approval For... | 15136552 | 884 days ago | IN | 0 ETH | 0.00120908 | ||||
Set Base URI | 15135993 | 884 days ago | IN | 0 ETH | 0.00097338 | ||||
Set Approval For... | 15129041 | 885 days ago | IN | 0 ETH | 0.0019509 | ||||
Set Approval For... | 15128098 | 885 days ago | IN | 0 ETH | 0.00098762 | ||||
Set Approval For... | 15119238 | 886 days ago | IN | 0 ETH | 0.00179319 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
DarkOwlsEstate
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeCast.sol"; contract DarkOwlsEstate is ERC721, Ownable { using Counters for Counters.Counter; using SafeCast for uint256; Counters.Counter public totalSupply; DarkOwls public darkowls; string public baseURI; uint256 public cost = 0.02 ether; uint256 public costRare = 0.08 ether; uint256 public maxPublicMint = 4; bool public paused = false; bool public publicMinting = false; bool public rareByAllowance = false; bool public rareByPublic = false; bool public isFree = true; mapping(uint256 => bool) public typeAPlots; mapping(uint256 => bool) public typeBPlots; mapping(address => uint256) public rareAllowance; mapping(uint => bool) public hasMinted; address public stakingAddress; //staking params bool public stakePaused = true; mapping(uint256 => bool) public staked; struct stakeDetails { uint16 depositCycle; uint16 withdrawCycle; uint256 claimedRewards; } mapping(uint256 => stakeDetails) public detailsById; uint256 public startTimestamp; uint32 public immutable cycleLengthInSeconds; uint256 public rewardsPerCycle; address tokenAddress; uint16 public lockedCycles; event rewardsClaimed(uint256 amount, uint256 timestamp, address user); uint256 internal constant GRID_SIZE = 50; constructor() ERC721 ("Dark Owls Estate", "EOWL") { uint16[36] memory aTypePlots = [0, 14, 24, 25, 34, 49, 459, 469, 479, 489, 700, 749, 959, 989, 1200, 1224, 1225, 1249, 1250, 1274, 1275, 1299, 1459, 1489, 1700, 1749, 1959, 1969, 1979, 1989, 2450, 2464, 2474, 2475, 2484, 2499]; for (uint256 i = 0; i < aTypePlots.length; i++) { typeAPlots[aTypePlots[i]] = true; } uint16[242] memory bTypePlots = [1, 2, 23, 26, 47, 48, 50, 51, 64, 74, 75, 84, 98, 99, 100, 149, 408, 409, 410, 418, 419, 420, 428, 429, 430, 438, 439, 440, 458, 460, 468, 470, 478, 480, 488, 490, 508, 509, 510, 518, 519, 520, 528, 529, 530, 538, 539, 540, 701, 748, 908, 909, 910, 938, 939, 940, 958, 960, 974, 975, 988, 990, 1008, 1009, 1010, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1038, 1039, 1040, 1070, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1120, 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1128, 1129, 1150, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 1177, 1178, 1179, 1199, 1201, 1219, 1220, 1221, 1222, 1223, 1226, 1227, 1228, 1229, 1230, 1248, 1251, 1269, 1270, 1271, 1272, 1273, 1276, 1277, 1278, 1279, 1280, 1298, 1300, 1320, 1321, 1322, 1323, 1324, 1325, 1326, 1327, 1328, 1329, 1349, 1370, 1371, 1372, 1373, 1374, 1375, 1376, 1377, 1378, 1379, 1408, 1409, 1410, 1420, 1421, 1422, 1423, 1424, 1425, 1426, 1427, 1428, 1429, 1438, 1439, 1440, 1458, 1460, 1470, 1471, 1472, 1473, 1474, 1475, 1476, 1477, 1478, 1479, 1488, 1490, 1508, 1509, 1510, 1538, 1539, 1540, 1701, 1748, 1908, 1909, 1910, 1918, 1919, 1920, 1928, 1929, 1930, 1938, 1939, 1940, 1958, 1960, 1968, 1970, 1978, 1980, 1988, 1990, 2008, 2009, 2010, 2018, 2019, 2020, 2028, 2029, 2030, 2038, 2039, 2040, 2350, 2399, 2400, 2401, 2414, 2424, 2425, 2434, 2448, 2449, 2451, 2452, 2473, 2476, 2497, 2498]; for (uint256 i = 0; i < bTypePlots.length; i++) { typeBPlots[bTypePlots[i]] = true; } baseURI = "ipfs://Qme867emMNf2U96oZALPqG51YU6pKzaGBnGV9iQQod7WVW/"; //staking startTimestamp = block.timestamp; cycleLengthInSeconds = 86400; // 1 day rewardsPerCycle = 0.1 * 10**18; // 0.1 tokens per day lockedCycles = 30; // 30 days tokenAddress = 0xD5d86FC8d5C0Ea1aC1Ac5Dfab6E529c9967a45E9; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } // Manages the id and retrieves the coordinates of the Land Plot (x,y) function width() external pure returns(uint256) { return GRID_SIZE; } function height() external pure returns(uint256) { return GRID_SIZE; } /// x coordinate of Land token function x(uint256 id) public pure returns(uint256) { return id % GRID_SIZE; } /// y coordinate of Land token function y(uint256 id) public pure returns(uint256) { return id / GRID_SIZE; } /// ID for x and y coordinates function getTokenIdByCoordinates(uint256 _x, uint256 _y) public pure returns(uint256) { require(_x < GRID_SIZE && _y < GRID_SIZE); return _x + _y * GRID_SIZE; } //Returns true if DOWL had already minted a DarkOwlsEstate function checkOwl(uint256 _owlId) public view returns (bool){ return hasMinted[_owlId]; } function mintByCoordinates(uint256 _x, uint256 _y, uint256 _owlId, bool _stake) external payable { require(!paused, "Pause"); if (!isFree) { require(msg.value >= cost); } // Check if Owls Ids have minted a Land and is Owned by msg sender require(hasMinted[_owlId] == false, "Invalid Owl"); require(darkowls.ownerOf(_owlId) == msg.sender, "Not owner"); hasMinted[_owlId] = true; // Check if coordinates are inside grid require(_x < GRID_SIZE && _y < GRID_SIZE, "out of bounds"); _mintLand(_x + _y * GRID_SIZE, _stake); } function mintLands(uint256[] calldata _tokenIds, uint256[] calldata _owlIds, bool _stake) external payable { require(!paused, "Pause"); require(_tokenIds.length == _owlIds.length, "#lands = #owls"); require(_owlIds.length > 0, ">0"); // see if required if (!isFree) { require(msg.value >= cost * _owlIds.length, "Pay me!"); } // Check if Owls Ids have minted a Land and is Owned by msg sender for (uint256 i = 0; i < _owlIds.length; i++) { require(hasMinted[_owlIds[i]] == false, "Invalid Owl"); require(darkowls.ownerOf(_owlIds[i]) == msg.sender, "Not owner"); hasMinted[_owlIds[i]] = true; } // Check if coordinates are inside grid for (uint256 i = 0; i < _tokenIds.length; i++) { uint256 _tokenId = _tokenIds[i]; require(x(_tokenId) < GRID_SIZE && y(_tokenId) < GRID_SIZE, "out of bounds"); } _mintLand(_tokenIds, _stake); } function mintEpicPlotsOwner(address _to, uint256[] calldata _tokenIds) external onlyOwner { require(_tokenIds.length > 0, ">0"); // see if required // Requires is reserved plot and mints to _to for (uint256 i = 0; i < _tokenIds.length; i++) { uint256 _tokenId = _tokenIds[i]; require(typeAPlots[_tokenId], "Epic"); _safeMint(_to, _tokenId); totalSupply.increment(); } } function mintRarePlotsOwner(address _to, uint256[] calldata _tokenIds) external onlyOwner { require(_tokenIds.length > 0, ">0"); // see if required // Requires is reserved plot and mints to _to for (uint256 i = 0; i < _tokenIds.length; i++) { uint256 _tokenId = _tokenIds[i]; require(typeBPlots[_tokenId], "Rare"); _safeMint(_to, _tokenId); totalSupply.increment(); } } function mintRarePlots(uint256[] calldata _tokenIds, bool _stake) external payable { address sender = _msgSender(); require(!paused, "Pause"); require((rareByAllowance && !rareByPublic) || (!rareByAllowance && rareByPublic), "R"); require(_tokenIds.length > 0, ">0"); require(msg.value >= costRare * _tokenIds.length); if (rareByPublic) { for (uint256 i = 0; i < _tokenIds.length; i++) { uint256 _tokenId = _tokenIds[i]; require(typeBPlots[_tokenId], "Rare"); if (!_stake) { _safeMint(msg.sender, _tokenId); } else { require(stakingAddress != address(0), "no staking"); _safeMint(stakingAddress, _tokenId, abi.encode(msg.sender)); // Mint to the staking address } totalSupply.increment(); } } if (rareByAllowance) { for (uint256 i = 0; i < _tokenIds.length; i++) { require(rareAllowance[sender] > 0, "maxed allowed amount"); uint256 _tokenId = _tokenIds[i]; require(typeBPlots[_tokenId], "Rare"); if (!_stake) { _safeMint(msg.sender, _tokenId); } else { require(stakingAddress != address(0), "no staking"); _safeMint(stakingAddress, _tokenId, abi.encode(msg.sender)); // Mint to the staking address } rareAllowance[sender]--; totalSupply.increment(); } } } function mintByCoordinatesPublic(uint256 _x, uint256 _y, bool _stake) external payable { require(!paused, "Pause"); require(publicMinting, "Public minting disabled"); require(msg.value >= cost); // Check if coordinates are inside grid require(_x < GRID_SIZE && _y < GRID_SIZE); _mintLand(_x + _y * GRID_SIZE, _stake); } function mintLandsPublic(uint256[] calldata _tokenIds, bool _stake) external payable { require(!paused, "Pause"); require(publicMinting, "Public minting disabled"); require(_tokenIds.length > 0, ">0"); require(_tokenIds.length < maxPublicMint + 1, "Exceded the maximum minting amount by one Tx"); require(msg.value >= cost * _tokenIds.length); // Check if coordinates are inside grid for (uint256 i = 0; i < _tokenIds.length; i++) { uint256 _tokenId = _tokenIds[i]; require(x(_tokenId) < GRID_SIZE && y(_tokenId) < GRID_SIZE, "Coordinates out of bounds"); } _mintLand(_tokenIds, _stake); } function _mintLand(uint256 _tokenId, bool _stake) internal virtual { uint256[] memory _tokenIds = new uint256[](1); _tokenIds[0] = _tokenId; _mintLand(_tokenIds, _stake); } function _mintLand(uint256[] memory _tokenIds, bool _stake) internal virtual { for (uint256 i = 0; i < _tokenIds.length; i++) { uint256 _tokenId = _tokenIds[i]; require(!typeAPlots[_tokenId], "Common"); require(!typeBPlots[_tokenId], "Common"); if (!_stake) { _safeMint(msg.sender, _tokenId); } else { require(stakingAddress != address(0), "no staking"); _safeMint(stakingAddress, _tokenId, abi.encode(msg.sender)); // Mint to the staking address } totalSupply.increment(); } } //Staking functions function stakeLand(uint256 tokenID) public { require(!stakePaused, "Stake paused"); require(_isApprovedOrOwner(msg.sender, tokenID)); require(!staked[tokenID]); require(detailsById[tokenID].withdrawCycle != _getCycle(block.timestamp)); staked[tokenID] = true; detailsById[tokenID].depositCycle = _getCycle(block.timestamp); } function batchStakeLands(uint256[] memory tokensIds) external { for (uint256 i; i < tokensIds.length; i++) { uint256 tokenID = tokensIds[i]; stakeLand(tokenID); } } function unstakeLand(uint256 tokenID) external { require(ownerOf(tokenID) == msg.sender, "NOT_TOKEN_OWNER"); require(staked[tokenID]); require(detailsById[tokenID].depositCycle + lockedCycles <= _getCycle(block.timestamp), "Lock time!"); if (getRewards(tokenID) > 0) { claimSingleReward(tokenID); } staked[tokenID] = false; detailsById[tokenID] = stakeDetails({ depositCycle: 0, withdrawCycle: _getCycle(block.timestamp), claimedRewards: 0 }); } function batchUnstakeLands(uint256[] memory tokensIds) external { uint256 amount; for (uint256 i; i < tokensIds.length; i++) { uint256 tokenID = tokensIds[i]; amount += getRewards(tokenID); } if (amount > 0) { claimRewards(tokensIds); } for (uint256 i; i < tokensIds.length; i++) { uint256 tokenID = tokensIds[i]; require(ownerOf(tokenID) == msg.sender, "NOT_TOKEN_OWNER"); require(staked[tokenID]); require(detailsById[tokenID].depositCycle + lockedCycles <= _getCycle(block.timestamp), "Lock time!"); staked[tokenID] = false; detailsById[tokenID] = stakeDetails({ depositCycle: 0, withdrawCycle: _getCycle(block.timestamp), claimedRewards: 0 }); } } function claimSingleReward(uint256 tokenID) public { require(ownerOf(tokenID) == msg.sender, "NOT_TOKEN_OWNER"); require(staked[tokenID]); uint256 amount = getRewards(tokenID); require(amount > 0, "NO_REWARDS_AVAILABLE"); detailsById[tokenID].claimedRewards += amount; IERC20(tokenAddress).transfer(msg.sender, amount); emit rewardsClaimed(amount, block.timestamp, msg.sender); } function claimRewards(uint256[] memory tokensIds) public { uint256 amount; for (uint256 i; i < tokensIds.length; i++) { uint256 tokenID = tokensIds[i]; require(ownerOf(tokenID) == msg.sender, "NOT_TOKEN_OWNER"); require(staked[tokenID]); amount += getRewards(tokenID); detailsById[tokenID].claimedRewards += getRewards(tokenID); } require(amount > 0, "NO_REWARDS_AVAILABLE"); IERC20(tokenAddress).transfer(msg.sender, amount); emit rewardsClaimed(amount, block.timestamp, msg.sender); } function getRewards(uint256 tokenID) public view returns (uint256 amount) { require(detailsById[tokenID].depositCycle > 0); uint16 cyclesSinceDeposit = _getCycle(block.timestamp) - detailsById[tokenID].depositCycle; amount = (rewardsPerCycle * cyclesSinceDeposit) - detailsById[tokenID].claimedRewards; } function _getCycle(uint256 timestamp) internal view returns (uint16) { require(timestamp >= startTimestamp, "NftStaking: timestamp preceeds contract start"); return (((timestamp - startTimestamp) / uint256(cycleLengthInSeconds)) + 1).toUint16(); } // returns array of all NFTs owned by _address function tokensOfOwner(address _address) external view returns(uint256[] memory) { require(balanceOf(_address) > 0, "no tks"); uint256[] memory _tokensOfOwner = new uint256[](balanceOf(_address)); uint256 j = 0; uint256 i = 0; while (i < balanceOf(_address)) { if (_exists(j)) { if (ownerOf(j) == _address) { _tokensOfOwner[i] = j; i++; } } j++; } return _tokensOfOwner; } // returns array of all minted plots function mintedLands() external view returns (uint256[] memory) { uint256[] memory _mintedIds = new uint256[](totalSupply.current()); uint256 j = 0; uint256 i = 0; while (i < totalSupply.current()) { if (_exists(j)) { _mintedIds[i] = j; i++; } j++; } return _mintedIds; } /* ---- onlyOwner functions ---- */ function setCost(uint256 _cost) external onlyOwner { cost = _cost; } function setCostRare(uint256 _cost) external onlyOwner { costRare = _cost; } function setPause(bool _state) public onlyOwner { paused = _state; } function setStakePaused(bool _state) public onlyOwner { stakePaused = _state; } function setIsFree(bool _state) public onlyOwner { isFree = _state; } function setDarkOwlsAddress(address _darkowlsAddress) public onlyOwner { darkowls = DarkOwls(_darkowlsAddress); } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setStakingAddress(address _stakingAddress) external onlyOwner { stakingAddress = _stakingAddress; } function setPublicMinting(bool _publicMinting) public onlyOwner { publicMinting = _publicMinting; } function setRareByAllowance(bool _rareByAllowance) public onlyOwner { rareByAllowance = _rareByAllowance; require(!(rareByAllowance && rareByPublic), "rare by allowance and public true"); } function setRareByPublic(bool _rareByPublic) public onlyOwner { rareByPublic = _rareByPublic; require(!(rareByAllowance && rareByPublic), "rare by allowance and public true"); } function setMaxPublicMint(uint256 _maxPublicMint) external onlyOwner { maxPublicMint = _maxPublicMint; } function addRareAllowanceToAddress(address _to, uint256 _allowance) external onlyOwner { uint256 currentAllowance = rareAllowance[_to]; rareAllowance[_to] = currentAllowance + _allowance; } function withdraw() public payable onlyOwner { require(payable(msg.sender).send(address(this).balance)); } function setRewardsPerCycle(uint256 _rewardsPerCycle) external onlyOwner { rewardsPerCycle = _rewardsPerCycle; } function setTokenAddress(address _tokenAddress) external onlyOwner { tokenAddress = _tokenAddress; } function setLockedCycles(uint16 _lockedCycles) external onlyOwner { lockedCycles = _lockedCycles; } function retrieveTokens(address _to, uint256 _amount, address _tokenAddress) external onlyOwner { require(IERC20(_tokenAddress).transfer(_to, _amount)); } // Allows staking contract to make transfer on behalf of owner function transferFrom(address from, address to, uint256 tokenId) public virtual override { address sender = _msgSender(); require(_isApprovedOrOwner(sender, tokenId) || sender == stakingAddress, "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override { require(!staked[tokenId], "staked Land"); super._beforeTokenTransfer(from, to, tokenId); } } interface DarkOwls { function ownerOf(uint256 tokenId) external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// 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; } }
// 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeCast.sol) pragma solidity ^0.8.0; /** * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. * * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing * all math on `uint256` and `int256` and then downcasting. */ library SafeCast { /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits"); return uint224(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits"); return uint128(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits"); return uint96(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits"); return uint64(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits"); return uint32(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits"); return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits. */ function toUint8(uint256 value) internal pure returns (uint8) { require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits"); return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { require(value >= 0, "SafeCast: value must be positive"); return uint256(value); } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits * * _Available since v3.1._ */ function toInt128(int256 value) internal pure returns (int128) { require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits"); return int128(value); } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits * * _Available since v3.1._ */ function toInt64(int256 value) internal pure returns (int64) { require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits"); return int64(value); } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits * * _Available since v3.1._ */ function toInt32(int256 value) internal pure returns (int32) { require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits"); return int32(value); } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits * * _Available since v3.1._ */ function toInt16(int256 value) internal pure returns (int16) { require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits"); return int16(value); } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits. * * _Available since v3.1._ */ function toInt8(int256 value) internal pure returns (int8) { require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits"); return int8(value); } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256"); return int256(value); } }
// 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; }
// 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"rewardsClaimed","type":"event"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_allowance","type":"uint256"}],"name":"addRareAllowanceToAddress","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":"uint256[]","name":"tokensIds","type":"uint256[]"}],"name":"batchStakeLands","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokensIds","type":"uint256[]"}],"name":"batchUnstakeLands","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_owlId","type":"uint256"}],"name":"checkOwl","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokensIds","type":"uint256[]"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"claimSingleReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costRare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cycleLengthInSeconds","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"darkowls","outputs":[{"internalType":"contract DarkOwls","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"detailsById","outputs":[{"internalType":"uint16","name":"depositCycle","type":"uint16"},{"internalType":"uint16","name":"withdrawCycle","type":"uint16"},{"internalType":"uint256","name":"claimedRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"getRewards","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_x","type":"uint256"},{"internalType":"uint256","name":"_y","type":"uint256"}],"name":"getTokenIdByCoordinates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"hasMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"height","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFree","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockedCycles","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_x","type":"uint256"},{"internalType":"uint256","name":"_y","type":"uint256"},{"internalType":"uint256","name":"_owlId","type":"uint256"},{"internalType":"bool","name":"_stake","type":"bool"}],"name":"mintByCoordinates","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_x","type":"uint256"},{"internalType":"uint256","name":"_y","type":"uint256"},{"internalType":"bool","name":"_stake","type":"bool"}],"name":"mintByCoordinatesPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"mintEpicPlotsOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_owlIds","type":"uint256[]"},{"internalType":"bool","name":"_stake","type":"bool"}],"name":"mintLands","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"bool","name":"_stake","type":"bool"}],"name":"mintLandsPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"bool","name":"_stake","type":"bool"}],"name":"mintRarePlots","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"mintRarePlotsOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintedLands","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMinting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rareAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rareByAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rareByPublic","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"retrieveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsPerCycle","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":"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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCostRare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_darkowlsAddress","type":"address"}],"name":"setDarkOwlsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setIsFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_lockedCycles","type":"uint16"}],"name":"setLockedCycles","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPublicMint","type":"uint256"}],"name":"setMaxPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_publicMinting","type":"bool"}],"name":"setPublicMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_rareByAllowance","type":"bool"}],"name":"setRareByAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_rareByPublic","type":"bool"}],"name":"setRareByPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsPerCycle","type":"uint256"}],"name":"setRewardsPerCycle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setStakePaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stakingAddress","type":"address"}],"name":"setStakingAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"setTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"stakeLand","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"staked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"typeAPlots","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"typeBPlots","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"unstakeLand","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"width","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"x","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"y","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}]
Contract Creation Code
60a060405266470de4df820000600a5567011c37937e080000600b556004600c55600d805464ffffffffff19166401000000001790556012805460ff60a01b1916600160a01b1790553480156200005557600080fd5b50604080518082018252601081526f4461726b204f776c732045737461746560801b6020808301918252835180850190945260048452631153d5d360e21b908401528151919291620000aa9160009162000c74565b508051620000c090600190602084019062000c74565b505050620000dd620000d762000c1e60201b60201c565b62000c22565b60408051610480810182526000808252600e60208301526018928201929092526019606082015260226080820152603160a08201526101cb60c08201526101d560e08201526101df6101008201526101e96101208201526102bc6101408201526102ed6101608201526103bf6101808201526103dd6101a08201526104b06101c08201526104c86101e08201526104c96102008201526104e16102208201526104e26102408201526104fa6102608201526104fb6102808201526105136102a08201526105b36102c08201526105d16102e08201526106a46103008201526106d56103208201526107a76103408201526107b16103608201526107bb6103808201526107c56103a08201526109926103c08201526109a06103e08201526109aa6104008201526109ab6104208201526109b46104408201526109c3610460820152905b602481101562000295576001600e60008484602481106200025157634e487b7160e01b600052603260045260246000fd5b602002015161ffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080806200028c9062000d57565b91505062000220565b5060408051611e40810182526001815260026020820152601781830152601a6060820152602f6080820152603060a0820152603260c0820152603360e0820152610100810191909152604a610120820152604b6101408201526054610160820152606261018082015260636101a082015260646101c082015260956101e08083019190915261019861020083015261019961022083015261019a6102408301526101a26102608301526101a36102808301526101a46102a08301526101ac6102c08301526101ad6102e08301526101ae6103008301526101b66103208301526101b76103408301526101b86103608301526101ca6103808301526101cc6103a08301526101d46103c0808401919091526101d66103e08401526101de610400808501919091526104208401929092526101e86104408401526101ea610460808501919091526101fc6104808501526101fd6104a08501526101fe6104c08501526102066104e08086019190915261020761050080870191909152610208610520870152610210610540870152610211610560808801919091526102126105808089019190915261021a6105a0808a019190915261021b6105c0808b019190915261021c6105e08b01526102bd6106008b01526102ec6106208b015261038c6106408b015261038d6106608b015261038e6106808b01526103aa6106a08b01526103ab6106c08b01526103ac6106e08b01526103be6107008b01526107208a01979097526103ce6107408a01526103cf6107608a01526103dc610780808b01919091526103de6107a08b01526103f06107c08b01526103f16107e08b01526103f26108008b01526103fc6108208b01526103fd6108408b01526103fe6108608b01526103ff6108808b01526108a08a01989098526104016108c08a01526104026108e08a01526104036109008a01526104046109208a01526104056109408a015261040e610960808b019190915261040f6109808b01526104106109a08b015261042e6109c08b015261042f6109e08b0152610430610a008b0152610431610a208b0152610432610a408b0152610433610a608b0152610434610a808b0152610435610aa08b0152610436610ac08b0152610437610ae08b0152610b008a0196909652610461610b208a0152610462610b408a0152610463610b608a0152610464610b808a0152610465610ba08a0152610466610bc08a0152610467610be08a0152610468610c008a0152610469610c208a015261047e610c408a0152610492610c608a0152610493610c808a0152610494610ca08a0152610495610cc08a0152610496610ce08a0152610497610d008a0152610498610d208a0152610499610d408a015261049a610d608a015261049b610d808a01526104af610da08a01526104b1610dc08a01526104c3610de08a01526104c4610e008a01526104c5610e208a01526104c6610e408a01526104c7610e608a01526104ca610e808a01526104cb610ea08a01526104cc610ec08a01526104cd610ee08a01526104ce610f008a0152610f208901949094526104e3610f408901526104f5610f608901526104f6610f808901526104f7610fa08901526104f8610fc08901526104f9610fe08901526104fc6110008901526104fd6110208901526104fe6110408901526104ff6110608901526110808801929092526105126110a08801526105146110c08801526105286110e088015261052961110088015261052a61112088015261052b61114088015261052c61116088015261052d61118088015261052e6111a088015261052f6111c08801526105306111e088015261053161120088015261054561122088015261055a61124088015261055b61126088015261055c61128088015261055d6112a088015261055e6112c088015261055f6112e08801526113008701526105616113208701526105626113408701526105636113608701526113808601526105816113a08601526105826113c086015261058c6113e086015261058d61140086015261058e61142086015261058f6114408601526105906114608601526105916114808601526105926114a08601526105936114c08601526105946114e086015261059561150086015261059e61152086015261059f6115408601526115608501526105b26115808501526105b46115a08501526105be6115c08501526105bf6115e08501526116008401919091526105c16116208401526105c26116408401526105c36116608401526105c46116808401526105c56116a08401526105c66116c08401526105c76116e08401526105d06117008401526105d26117208401526105e46117408401526105e56117608401526105e66117808401526106026117a08401526106036117c08401526106046117e08401526106a56118008401526106d461182084015261077461184084015261077561186084015261077661188084015261077e6118a084015261077f6118c08401526118e083019190915261078861190083015261078961192083015261078a6119408301526107926119608301526107936119808301526107946119a08301526107a66119c08301526107a86119e08301526107b0611a008301526107b2611a208301526107ba611a408301526107bc611a608301526107c4611a808301526107c6611aa08301526107d8611ac08301526107d9611ae08301526107da611b008301526107e2611b208301526107e3611b408301526107e4611b608301526107ec611b808301526107ed611ba08301526107ee611bc08301526107f6611be08301526107f7611c008301526107f8611c2083015261092e611c4083015261095f611c60830152611c80820152610961611ca082015261096e611cc0820152610978611ce0820152610979611d00820152610982611d20820152610990611d40820152610991611d60820152610993611d80820152610994611da08201526109a9611dc08201526109ac611de08201526109c1611e008201526109c2611e2082015260005b60f281101562000ba4576001600f6000848460f2811062000b6057634e487b7160e01b600052603260045260246000fd5b602002015161ffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550808062000b9b9062000d57565b91505062000b2f565b506040518060600160405280603681526020016200568360369139805162000bd59160099160209091019062000c74565b505042601555506102a360e71b60805267016345785d8a0000601655601780546001600160b01b031916741ed5d86fc8d5c0ea1ac1ac5dfab6e529c9967a45e917905562000d7f565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000c829062000d1a565b90600052602060002090601f01602090048101928262000ca6576000855562000cf1565b82601f1062000cc157805160ff191683800117855562000cf1565b8280016001018555821562000cf1579182015b8281111562000cf157825182559160200191906001019062000cd4565b5062000cff92915062000d03565b5090565b5b8082111562000cff576000815560010162000d04565b600181811c9082168062000d2f57607f821691505b6020821081141562000d5157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000d7857634e487b7160e01b81526011600452602481fd5b5060010190565b60805160e01c6148de62000da560003960008181610565015261360801526148de6000f3fe6080604052600436106104685760003560e01c80636352211e1161024a578063b5e6c52d11610139578063e5b95595116100b6578063f2fde38b1161007a578063f2fde38b14610e0b578063f4e0d9ac14610e2b578063f6f45e3a14610e4b578063fb53ca8d14610e6b578063fb83c0d514610e8c57600080fd5b8063e5b9559514610d3c578063e6fd48bc14610d6c578063e97245b714610d82578063e985e9c514610da2578063f26d9f2f14610deb57600080fd5b8063c87b56dd116100fd578063c87b56dd14610ca0578063cabadaa014610cc0578063ce3402fa14610cd6578063d0c8b9cd14610d06578063d7b4be2414610d1c57600080fd5b8063b5e6c52d14610c0d578063b88d4fde14610c2d578063bc29f74b14610c4d578063bedb86fb14610c60578063c0d8012c14610c8057600080fd5b80638da5cb5b116101c75780639ededf771161018b5780639ededf77146105bc578063a07e7e9514610b97578063a22cb46514610baa578063b488432414610bca578063b599d47914610bfa57600080fd5b80638da5cb5b14610b045780638f885c5f14610b2257806395d89b4114610b425780639a2a756714610b575780639d15249c14610b7757600080fd5b8063715018a61161020e578063715018a614610a6d578063759eeb8814610a82578063785130b814610aa25780638462151c14610ac257806387a42cdc14610aef57600080fd5b80636352211e146109cb57806364b90bc4146109eb57806366ed300814610a185780636c0360eb14610a3857806370a0823114610a4d57600080fd5b80632dbe8465116103665780634f78f54c116102e35780635e1bef32116102a75780635e1bef32146109275780635eac62391461095757806360ffdc1614610977578063623a5c81146109985780636259e7e1146109ab57600080fd5b80634f78f54c1461089857806353ac010a146108b857806355f804b3146108d757806358bb07d3146108f75780635c975abb1461090d57600080fd5b806342842e0e1161032a57806342842e0e146107b157806344a0d68a146107d15780634ae75e41146107f15780634d004d00146108045780634eb75c141461086857600080fd5b80632dbe8465146107275780633c0d0cb8146107475780633ca7b2f7146107695780633ccfd60b146107895780633f4263ef1461079157600080fd5b806318160ddd116103f457806326a4e8d2116103b857806326a4e8d214610687578063270ab52c146106a75780632adfc844146106c75780632afd3bae146106e75780632ba0f0041461070757600080fd5b806318160ddd146105f05780631c4ccd131461060757806323b872dd14610627578063254a4737146106475780632659c0581461066757600080fd5b8063095ea7b31161043b578063095ea7b3146105315780630d2cb02a146105535780630ec69cba1461059c5780630ef26743146105bc57806313faede6146105da57600080fd5b806301ffc9a71461046d57806306d35b98146104a257806306fdde03146104d7578063081812fc146104f9575b600080fd5b34801561047957600080fd5b5061048d6104883660046142b9565b610eac565b60405190151581526020015b60405180910390f35b3480156104ae57600080fd5b506017546104c490600160a01b900461ffff1681565b60405161ffff9091168152602001610499565b3480156104e357600080fd5b506104ec610efe565b60405161049991906144db565b34801561050557600080fd5b50610519610514366004614359565b610f90565b6040516001600160a01b039091168152602001610499565b34801561053d57600080fd5b5061055161054c3660046140a2565b61101d565b005b34801561055f57600080fd5b506105877f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff9091168152602001610499565b3480156105a857600080fd5b50600854610519906001600160a01b031681565b3480156105c857600080fd5b5060325b604051908152602001610499565b3480156105e657600080fd5b506105cc600a5481565b3480156105fc57600080fd5b506007546105cc9081565b34801561061357600080fd5b50610551610622366004614281565b611133565b34801561063357600080fd5b50610551610642366004613f65565b61117b565b34801561065357600080fd5b50610551610662366004614281565b6111cb565b34801561067357600080fd5b506105516106823660046141d9565b61120f565b34801561069357600080fd5b506105516106a2366004613ef5565b611267565b3480156106b357600080fd5b506105516106c2366004614359565b6112b3565b3480156106d357600080fd5b506105516106e2366004614359565b6112e2565b3480156106f357600080fd5b50610551610702366004614359565b611311565b34801561071357600080fd5b50610551610722366004614281565b611340565b34801561073357600080fd5b50610551610742366004614337565b6113c2565b34801561075357600080fd5b50600d5461048d90640100000000900460ff1681565b34801561077557600080fd5b50610551610784366004614359565b61140e565b610551611566565b34801561079d57600080fd5b506105cc6107ac366004614359565b6115b6565b3480156107bd57600080fd5b506105516107cc366004613f65565b6115c3565b3480156107dd57600080fd5b506105516107ec366004614359565b6115de565b6105516107ff3660046143bf565b61160d565b34801561081057600080fd5b5061084761081f366004614359565b6014602052600090815260409020805460019091015461ffff80831692620100009004169083565b6040805161ffff948516815293909216602084015290820152606001610499565b34801561087457600080fd5b5061048d610883366004614359565b60009081526011602052604090205460ff1690565b3480156108a457600080fd5b506105516108b3366004614359565b6117df565b3480156108c457600080fd5b50600d5461048d90610100900460ff1681565b3480156108e357600080fd5b506105516108f23660046142f1565b6118ce565b34801561090357600080fd5b506105cc60165481565b34801561091957600080fd5b50600d5461048d9060ff1681565b34801561093357600080fd5b5061048d610942366004614359565b60136020526000908152604090205460ff1681565b34801561096357600080fd5b506105516109723660046141d9565b61190b565b34801561098357600080fd5b5060125461048d90600160a01b900460ff1681565b6105516109a636600461418f565b611b01565b3480156109b757600080fd5b506105cc6109c6366004614359565b611e6c565b3480156109d757600080fd5b506105196109e6366004614359565b611e79565b3480156109f757600080fd5b506105cc610a06366004613ef5565b60106020526000908152604090205481565b348015610a2457600080fd5b50610551610a33366004614281565b611ef0565b348015610a4457600080fd5b506104ec611f3a565b348015610a5957600080fd5b506105cc610a68366004613ef5565b611fc8565b348015610a7957600080fd5b5061055161204f565b348015610a8e57600080fd5b506105cc610a9d366004614371565b612083565b348015610aae57600080fd5b50610551610abd366004614281565b6120ba565b348015610ace57600080fd5b50610ae2610add366004613ef5565b612135565b6040516104999190614497565b348015610afb57600080fd5b50610ae261226e565b348015610b1057600080fd5b506006546001600160a01b0316610519565b348015610b2e57600080fd5b50610551610b3d3660046140a2565b61233d565b348015610b4e57600080fd5b506104ec6123ab565b348015610b6357600080fd5b50610551610b72366004614022565b6123ba565b348015610b8357600080fd5b50600d5461048d9062010000900460ff1681565b610551610ba5366004614392565b6124af565b348015610bb657600080fd5b50610551610bc5366004614075565b612563565b348015610bd657600080fd5b5061048d610be5366004614359565b600f6020526000908152604090205460ff1681565b610551610c0836600461418f565b61256e565b348015610c1957600080fd5b50610551610c28366004614022565b61277e565b348015610c3957600080fd5b50610551610c48366004613fa5565b61285a565b610551610c5b36600461410e565b61288c565b348015610c6c57600080fd5b50610551610c7b366004614281565b612c20565b348015610c8c57600080fd5b506105cc610c9b366004614359565b612c5d565b348015610cac57600080fd5b506104ec610cbb366004614359565b612cd1565b348015610ccc57600080fd5b506105cc600c5481565b348015610ce257600080fd5b5061048d610cf1366004614359565b600e6020526000908152604090205460ff1681565b348015610d1257600080fd5b506105cc600b5481565b348015610d2857600080fd5b50601254610519906001600160a01b031681565b348015610d4857600080fd5b5061048d610d57366004614359565b60116020526000908152604090205460ff1681565b348015610d7857600080fd5b506105cc60155481565b348015610d8e57600080fd5b50610551610d9d366004613ef5565b612d9b565b348015610dae57600080fd5b5061048d610dbd366004613f2d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610df757600080fd5b50610551610e06366004614359565b612de7565b348015610e1757600080fd5b50610551610e26366004613ef5565b612ee3565b348015610e3757600080fd5b50610551610e46366004613ef5565b612f7b565b348015610e5757600080fd5b50610551610e663660046141d9565b612fc7565b348015610e7757600080fd5b50600d5461048d906301000000900460ff1681565b348015610e9857600080fd5b50610551610ea73660046140cd565b6131c8565b60006001600160e01b031982166380ac58cd60e01b1480610edd57506001600160e01b03198216635b5e139f60e01b145b80610ef857506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610f0d906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054610f39906147c3565b8015610f865780601f10610f5b57610100808354040283529160200191610f86565b820191906000526020600020905b815481529060010190602001808311610f6957829003601f168201915b5050505050905090565b6000610f9b8261327d565b6110015760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061102882611e79565b9050806001600160a01b0316836001600160a01b031614156110965760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ff8565b336001600160a01b03821614806110b257506110b28133610dbd565b6111245760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ff8565b61112e838361329a565b505050565b6006546001600160a01b0316331461115d5760405162461bcd60e51b8152600401610ff89061459f565b60128054911515600160a01b0260ff60a01b19909216919091179055565b336111868183613308565b8061119e57506012546001600160a01b038281169116145b6111ba5760405162461bcd60e51b8152600401610ff890614615565b6111c58484846133f2565b50505050565b6006546001600160a01b031633146111f55760405162461bcd60e51b8152600401610ff89061459f565b600d80549115156101000261ff0019909216919091179055565b60005b815181101561126357600082828151811061123d57634e487b7160e01b600052603260045260246000fd5b60200260200101519050611250816117df565b508061125b816147fe565b915050611212565b5050565b6006546001600160a01b031633146112915760405162461bcd60e51b8152600401610ff89061459f565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146112dd5760405162461bcd60e51b8152600401610ff89061459f565b600c55565b6006546001600160a01b0316331461130c5760405162461bcd60e51b8152600401610ff89061459f565b601655565b6006546001600160a01b0316331461133b5760405162461bcd60e51b8152600401610ff89061459f565b600b55565b6006546001600160a01b0316331461136a5760405162461bcd60e51b8152600401610ff89061459f565b600d805463ff0000001916630100000083151502179081905560ff620100009091041680156113a25750600d546301000000900460ff165b156113bf5760405162461bcd60e51b8152600401610ff8906145d4565b50565b6006546001600160a01b031633146113ec5760405162461bcd60e51b8152600401610ff89061459f565b6017805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b3361141882611e79565b6001600160a01b03161461143e5760405162461bcd60e51b8152600401610ff890614666565b60008181526013602052604090205460ff1661145957600080fd5b61146242613599565b60175460008381526014602052604090205461ffff9283169261148f92600160a01b9004811691166146de565b61ffff1611156114ce5760405162461bcd60e51b815260206004820152600a6024820152694c6f636b2074696d652160b01b6044820152606401610ff8565b60006114d982612c5d565b11156114e8576114e881612de7565b6000818152601360209081526040808320805460ff19169055805160608101909152918252810161151842613599565b61ffff9081168252600060209283018190529384526014825260409384902083518154938501518316620100000263ffffffff19909416921691909117919091178155910151600190910155565b6006546001600160a01b031633146115905760405162461bcd60e51b8152600401610ff89061459f565b60405133904780156108fc02916000818181858888f193505050506115b457600080fd5b565b6000610ef8603283614819565b61112e8383836040518060200160405280600081525061285a565b6006546001600160a01b031633146116085760405162461bcd60e51b8152600401610ff89061459f565b600a55565b600d5460ff16156116305760405162461bcd60e51b8152600401610ff890614540565b600d54640100000000900460ff1661165157600a5434101561165157600080fd5b60008281526011602052604090205460ff161561169e5760405162461bcd60e51b815260206004820152600b60248201526a125b9d985b1a590813dddb60aa1b6044820152606401610ff8565b6008546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156116e257600080fd5b505afa1580156116f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171a9190613f11565b6001600160a01b03161461175c5760405162461bcd60e51b81526020600482015260096024820152682737ba1037bbb732b960b91b6044820152606401610ff8565b6000828152601160205260409020805460ff191660011790556032841080156117855750603283105b6117c15760405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b6044820152606401610ff8565b6111c56117cf603285614727565b6117d990866146fb565b82613655565b601254600160a01b900460ff16156118285760405162461bcd60e51b815260206004820152600c60248201526b14dd185ad9481c185d5cd95960a21b6044820152606401610ff8565b6118323382613308565b61183b57600080fd5b60008181526013602052604090205460ff161561185757600080fd5b61186042613599565b60008281526014602052604090205462010000900461ffff9081169116141561188857600080fd5b6000818152601360205260409020805460ff191660011790556118aa42613599565b600091825260146020526040909120805461ffff191661ffff909216919091179055565b6006546001600160a01b031633146118f85760405162461bcd60e51b8152600401610ff89061459f565b8051611263906009906020840190613dc3565b6000805b82518110156119f157600083828151811061193a57634e487b7160e01b600052603260045260246000fd5b60200260200101519050336001600160a01b031661195782611e79565b6001600160a01b03161461197d5760405162461bcd60e51b8152600401610ff890614666565b60008181526013602052604090205460ff1661199857600080fd5b6119a181612c5d565b6119ab90846146fb565b92506119b681612c5d565b600082815260146020526040812060010180549091906119d79084906146fb565b909155508291506119e99050816147fe565b91505061190f565b5060008111611a395760405162461bcd60e51b81526020600482015260146024820152734e4f5f524557415244535f415641494c41424c4560601b6044820152606401610ff8565b60175460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044015b602060405180830381600087803b158015611a8657600080fd5b505af1158015611a9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611abe919061429d565b5060408051828152426020820152338183015290517f7bb9bf4af273d7fcbb4844a6b169d0f88e8143be0707cd9c8ba536f4e35142e59181900360600190a15050565b600d54339060ff1615611b265760405162461bcd60e51b8152600401610ff890614540565b600d5462010000900460ff168015611b485750600d546301000000900460ff16155b80611b705750600d5462010000900460ff16158015611b705750600d546301000000900460ff165b611ba05760405162461bcd60e51b81526020600482015260016024820152602960f91b6044820152606401610ff8565b82611bbd5760405162461bcd60e51b8152600401610ff89061455f565b600b54611bcb908490614727565b341015611bd757600080fd5b600d546301000000900460ff1615611ce55760005b83811015611ce3576000858583818110611c1657634e487b7160e01b600052603260045260246000fd5b602090810292909201356000818152600f9093526040909220549192505060ff16611c535760405162461bcd60e51b8152600401610ff89061468f565b83611c6757611c6233826136af565b611cc2565b6012546001600160a01b0316611c8f5760405162461bcd60e51b8152600401610ff89061457b565b60125460408051336020820152611cc2926001600160a01b0316918491015b6040516020818303038152906040526136c5565b611cd0600780546001019055565b5080611cdb816147fe565b915050611bec565b505b600d5462010000900460ff16156111c55760005b83811015611e65576001600160a01b038216600090815260106020526040902054611d5d5760405162461bcd60e51b81526020600482015260146024820152731b585e195908185b1b1bddd95908185b5bdd5b9d60621b6044820152606401610ff8565b6000858583818110611d7f57634e487b7160e01b600052603260045260246000fd5b602090810292909201356000818152600f9093526040909220549192505060ff16611dbc5760405162461bcd60e51b8152600401610ff89061468f565b83611dd057611dcb33826136af565b611e1b565b6012546001600160a01b0316611df85760405162461bcd60e51b8152600401610ff89061457b565b60125460408051336020820152611e1b926001600160a01b031691849101611cae565b6001600160a01b0383166000908152601060205260408120805491611e3f836147ac565b9190505550611e52600780546001019055565b5080611e5d816147fe565b915050611cf9565b5050505050565b6000610ef8603283614713565b6000818152600260205260408120546001600160a01b031680610ef85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ff8565b6006546001600160a01b03163314611f1a5760405162461bcd60e51b8152600401610ff89061459f565b600d80549115156401000000000264ff0000000019909216919091179055565b60098054611f47906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054611f73906147c3565b8015611fc05780601f10611f9557610100808354040283529160200191611fc0565b820191906000526020600020905b815481529060010190602001808311611fa357829003601f168201915b505050505081565b60006001600160a01b0382166120335760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ff8565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146120795760405162461bcd60e51b8152600401610ff89061459f565b6115b460006136f8565b60006032831080156120955750603282105b61209e57600080fd5b6120a9603283614727565b6120b390846146fb565b9392505050565b6006546001600160a01b031633146120e45760405162461bcd60e51b8152600401610ff89061459f565b600d805462ff00001916620100008315158102919091179182905560ff91041680156113a25750600d546301000000900460ff16156113bf5760405162461bcd60e51b8152600401610ff8906145d4565b6060600061214283611fc8565b116121785760405162461bcd60e51b81526020600482015260066024820152656e6f20746b7360d01b6044820152606401610ff8565b600061218383611fc8565b67ffffffffffffffff8111156121a957634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156121d2578160200160208202803683370190505b5090506000805b6121e285611fc8565b811015612265576121f28261327d565b1561225357846001600160a01b031661220a83611e79565b6001600160a01b03161415612253578183828151811061223a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061224f816147fe565b9150505b8161225d816147fe565b9250506121d9565b50909392505050565b6060600061227b60075490565b67ffffffffffffffff8111156122a157634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156122ca578160200160208202803683370190505b5090506000805b600754811015612335576122e48261327d565b15612323578183828151811061230a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061231f816147fe565b9150505b8161232d816147fe565b9250506122d1565b509092915050565b6006546001600160a01b031633146123675760405162461bcd60e51b8152600401610ff89061459f565b6001600160a01b03821660009081526010602052604090205461238a82826146fb565b6001600160a01b039093166000908152601060205260409020929092555050565b606060018054610f0d906147c3565b6006546001600160a01b031633146123e45760405162461bcd60e51b8152600401610ff89061459f565b806124015760405162461bcd60e51b8152600401610ff89061455f565b60005b818110156111c557600083838381811061242e57634e487b7160e01b600052603260045260246000fd5b602090810292909201356000818152600e9093526040909220549192505060ff166124845760405162461bcd60e51b8152600401610ff8906020808252600490820152634570696360e01b604082015260600190565b61248e85826136af565b61249c600780546001019055565b50806124a7816147fe565b915050612404565b600d5460ff16156124d25760405162461bcd60e51b8152600401610ff890614540565b600d54610100900460ff166125235760405162461bcd60e51b8152602060048201526017602482015276141d589b1a58c81b5a5b9d1a5b99c8191a5cd8589b1959604a1b6044820152606401610ff8565b600a5434101561253257600080fd5b6032831080156125425750603282105b61254b57600080fd5b61112e612559603284614727565b6117d990856146fb565b61126333838361374a565b600d5460ff16156125915760405162461bcd60e51b8152600401610ff890614540565b600d54610100900460ff166125e25760405162461bcd60e51b8152602060048201526017602482015276141d589b1a58c81b5a5b9d1a5b99c8191a5cd8589b1959604a1b6044820152606401610ff8565b816125ff5760405162461bcd60e51b8152600401610ff89061455f565b600c5461260d9060016146fb565b82106126705760405162461bcd60e51b815260206004820152602c60248201527f4578636564656420746865206d6178696d756d206d696e74696e6720616d6f7560448201526b0dce840c4f240dedcca40a8f60a31b6064820152608401610ff8565b600a5461267e908390614727565b34101561268a57600080fd5b60005b8281101561273f5760008484838181106126b757634e487b7160e01b600052603260045260246000fd5b90506020020135905060326126cb826115b6565b1080156126e0575060326126de82611e6c565b105b61272c5760405162461bcd60e51b815260206004820152601960248201527f436f6f7264696e61746573206f7574206f6620626f756e6473000000000000006044820152606401610ff8565b5080612737816147fe565b91505061268d565b5061112e838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250859250613819915050565b6006546001600160a01b031633146127a85760405162461bcd60e51b8152600401610ff89061459f565b806127c55760405162461bcd60e51b8152600401610ff89061455f565b60005b818110156111c55760008383838181106127f257634e487b7160e01b600052603260045260246000fd5b602090810292909201356000818152600f9093526040909220549192505060ff1661282f5760405162461bcd60e51b8152600401610ff89061468f565b61283985826136af565b612847600780546001019055565b5080612852816147fe565b9150506127c8565b6128643383613308565b6128805760405162461bcd60e51b8152600401610ff890614615565b6111c584848484613967565b600d5460ff16156128af5760405162461bcd60e51b8152600401610ff890614540565b8382146128ef5760405162461bcd60e51b815260206004820152600e60248201526d236c616e6473203d20236f776c7360901b6044820152606401610ff8565b8161290c5760405162461bcd60e51b8152600401610ff89061455f565b600d54640100000000900460ff1661296557600a5461292c908390614727565b3410156129655760405162461bcd60e51b8152602060048201526007602482015266506179206d652160c81b6044820152606401610ff8565b60005b82811015612b3b576011600085858481811061299457634e487b7160e01b600052603260045260246000fd5b602090810292909201358352508101919091526040016000205460ff16156129ec5760405162461bcd60e51b815260206004820152600b60248201526a125b9d985b1a590813dddb60aa1b6044820152606401610ff8565b60085433906001600160a01b0316636352211e868685818110612a1f57634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b8152600401612a4491815260200190565b60206040518083038186803b158015612a5c57600080fd5b505afa158015612a70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a949190613f11565b6001600160a01b031614612ad65760405162461bcd60e51b81526020600482015260096024820152682737ba1037bbb732b960b91b6044820152606401610ff8565b600160116000868685818110612afc57634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080612b33906147fe565b915050612968565b5060005b84811015612be1576000868683818110612b6957634e487b7160e01b600052603260045260246000fd5b9050602002013590506032612b7d826115b6565b108015612b9257506032612b9082611e6c565b105b612bce5760405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b6044820152606401610ff8565b5080612bd9816147fe565b915050612b3f565b50611e65858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250859250613819915050565b6006546001600160a01b03163314612c4a5760405162461bcd60e51b8152600401610ff89061459f565b600d805460ff1916911515919091179055565b60008181526014602052604081205461ffff16612c7957600080fd5b60008281526014602052604081205461ffff16612c9542613599565b612c9f9190614746565b60008481526014602052604090206001015460165491925090612cc79061ffff841690614727565b6120b39190614769565b6060612cdc8261327d565b612d405760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ff8565b6000612d4a61399a565b90506000815111612d6a57604051806020016040528060008152506120b3565b80612d74846139a9565b604051602001612d8592919061442b565b6040516020818303038152906040529392505050565b6006546001600160a01b03163314612dc55760405162461bcd60e51b8152600401610ff89061459f565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b33612df182611e79565b6001600160a01b031614612e175760405162461bcd60e51b8152600401610ff890614666565b60008181526013602052604090205460ff16612e3257600080fd5b6000612e3d82612c5d565b905060008111612e865760405162461bcd60e51b81526020600482015260146024820152734e4f5f524557415244535f415641494c41424c4560601b6044820152606401610ff8565b60008281526014602052604081206001018054839290612ea79084906146fb565b909155505060175460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401611a6c565b6006546001600160a01b03163314612f0d5760405162461bcd60e51b8152600401610ff89061459f565b6001600160a01b038116612f725760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ff8565b6113bf816136f8565b6006546001600160a01b03163314612fa55760405162461bcd60e51b8152600401610ff89061459f565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6000805b8251811015613029576000838281518110612ff657634e487b7160e01b600052603260045260246000fd5b6020026020010151905061300981612c5d565b61301390846146fb565b9250508080613021906147fe565b915050612fcb565b508015613039576130398261190b565b60005b825181101561112e57600083828151811061306757634e487b7160e01b600052603260045260246000fd5b60200260200101519050336001600160a01b031661308482611e79565b6001600160a01b0316146130aa5760405162461bcd60e51b8152600401610ff890614666565b60008181526013602052604090205460ff166130c557600080fd5b6130ce42613599565b60175460008381526014602052604090205461ffff928316926130fb92600160a01b9004811691166146de565b61ffff16111561313a5760405162461bcd60e51b815260206004820152600a6024820152694c6f636b2074696d652160b01b6044820152606401610ff8565b6000818152601360209081526040808320805460ff19169055805160608101909152918252810161316a42613599565b61ffff9081168252600060209283018190529384526014825260409384902083518154938501518316620100000263ffffffff19909416921691909117919091178155910151600190910155806131c0816147fe565b91505061303c565b6006546001600160a01b031633146131f25760405162461bcd60e51b8152600401610ff89061459f565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905282169063a9059cbb90604401602060405180830381600087803b15801561323c57600080fd5b505af1158015613250573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613274919061429d565b61112e57600080fd5b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906132cf82611e79565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006133138261327d565b6133745760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ff8565b600061337f83611e79565b9050806001600160a01b0316846001600160a01b031614806133ba5750836001600160a01b03166133af84610f90565b6001600160a01b0316145b806133ea57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661340582611e79565b6001600160a01b0316146134695760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610ff8565b6001600160a01b0382166134cb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ff8565b6134d6838383613ac3565b6134e160008261329a565b6001600160a01b038316600090815260036020526040812080546001929061350a908490614769565b90915550506001600160a01b03821660009081526003602052604081208054600192906135389084906146fb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006015548210156136035760405162461bcd60e51b815260206004820152602d60248201527f4e66745374616b696e673a2074696d657374616d70207072656365656473206360448201526c1bdb9d1c9858dd081cdd185c9d609a1b6064820152608401610ff8565b610ef87f000000000000000000000000000000000000000000000000000000000000000063ffffffff166015548461363b9190614769565b6136459190614713565b6136509060016146fb565b613b10565b60408051600180825281830190925260009160208083019080368337019050509050828160008151811061369957634e487b7160e01b600052603260045260246000fd5b60200260200101818152505061112e8183613819565b6112638282604051806020016040528060008152505b6136cf8383613b77565b6136dc6000848484613cb6565b61112e5760405162461bcd60e51b8152600401610ff8906144ee565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156137ac5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ff8565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60005b825181101561112e57600083828151811061384757634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516000818152600e90925260409091205490915060ff161561389f5760405162461bcd60e51b815260206004820152600660248201526521b7b6b6b7b760d11b6044820152606401610ff8565b6000818152600f602052604090205460ff16156138e75760405162461bcd60e51b815260206004820152600660248201526521b7b6b6b7b760d11b6044820152606401610ff8565b826138fb576138f633826136af565b613946565b6012546001600160a01b03166139235760405162461bcd60e51b8152600401610ff89061457b565b60125460408051336020820152613946926001600160a01b031691849101611cae565b613954600780546001019055565b508061395f816147fe565b91505061381c565b6139728484846133f2565b61397e84848484613cb6565b6111c55760405162461bcd60e51b8152600401610ff8906144ee565b606060098054610f0d906147c3565b6060816139cd5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156139f757806139e1816147fe565b91506139f09050600a83614713565b91506139d1565b60008167ffffffffffffffff811115613a2057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613a4a576020820181803683370190505b5090505b84156133ea57613a5f600183614769565b9150613a6c600a86614819565b613a779060306146fb565b60f81b818381518110613a9a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613abc600a86614713565b9450613a4e565b60008181526013602052604090205460ff161561112e5760405162461bcd60e51b815260206004820152600b60248201526a1cdd185ad9590813185b9960aa1b6044820152606401610ff8565b600061ffff821115613b735760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160448201526536206269747360d01b6064820152608401610ff8565b5090565b6001600160a01b038216613bcd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ff8565b613bd68161327d565b15613c235760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ff8565b613c2f60008383613ac3565b6001600160a01b0382166000908152600360205260408120805460019290613c589084906146fb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15613db857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613cfa90339089908890889060040161445a565b602060405180830381600087803b158015613d1457600080fd5b505af1925050508015613d44575060408051601f3d908101601f19168201909252613d41918101906142d5565b60015b613d9e573d808015613d72576040519150601f19603f3d011682016040523d82523d6000602084013e613d77565b606091505b508051613d965760405162461bcd60e51b8152600401610ff8906144ee565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506133ea565b506001949350505050565b828054613dcf906147c3565b90600052602060002090601f016020900481019282613df15760008555613e37565b82601f10613e0a57805160ff1916838001178555613e37565b82800160010185558215613e37579182015b82811115613e37578251825591602001919060010190613e1c565b50613b739291505b80821115613b735760008155600101613e3f565b600067ffffffffffffffff831115613e6d57613e6d614859565b613e80601f8401601f19166020016146ad565b9050828152838383011115613e9457600080fd5b828260208301376000602084830101529392505050565b60008083601f840112613ebc578182fd5b50813567ffffffffffffffff811115613ed3578182fd5b6020830191508360208260051b8501011115613eee57600080fd5b9250929050565b600060208284031215613f06578081fd5b81356120b38161486f565b600060208284031215613f22578081fd5b81516120b38161486f565b60008060408385031215613f3f578081fd5b8235613f4a8161486f565b91506020830135613f5a8161486f565b809150509250929050565b600080600060608486031215613f79578081fd5b8335613f848161486f565b92506020840135613f948161486f565b929592945050506040919091013590565b60008060008060808587031215613fba578081fd5b8435613fc58161486f565b93506020850135613fd58161486f565b925060408501359150606085013567ffffffffffffffff811115613ff7578182fd5b8501601f81018713614007578182fd5b61401687823560208401613e53565b91505092959194509250565b600080600060408486031215614036578283fd5b83356140418161486f565b9250602084013567ffffffffffffffff81111561405c578283fd5b61406886828701613eab565b9497909650939450505050565b60008060408385031215614087578182fd5b82356140928161486f565b91506020830135613f5a81614884565b600080604083850312156140b4578182fd5b82356140bf8161486f565b946020939093013593505050565b6000806000606084860312156140e1578283fd5b83356140ec8161486f565b92506020840135915060408401356141038161486f565b809150509250925092565b600080600080600060608688031215614125578283fd5b853567ffffffffffffffff8082111561413c578485fd5b61414889838a01613eab565b90975095506020880135915080821115614160578485fd5b5061416d88828901613eab565b909450925050604086013561418181614884565b809150509295509295909350565b6000806000604084860312156141a3578081fd5b833567ffffffffffffffff8111156141b9578182fd5b6141c586828701613eab565b909450925050602084013561410381614884565b600060208083850312156141eb578182fd5b823567ffffffffffffffff80821115614202578384fd5b818501915085601f830112614215578384fd5b81358181111561422757614227614859565b8060051b91506142388483016146ad565b8181528481019084860184860187018a1015614252578788fd5b8795505b83861015614274578035835260019590950194918601918601614256565b5098975050505050505050565b600060208284031215614292578081fd5b81356120b381614884565b6000602082840312156142ae578081fd5b81516120b381614884565b6000602082840312156142ca578081fd5b81356120b381614892565b6000602082840312156142e6578081fd5b81516120b381614892565b600060208284031215614302578081fd5b813567ffffffffffffffff811115614318578182fd5b8201601f81018413614328578182fd5b6133ea84823560208401613e53565b600060208284031215614348578081fd5b813561ffff811681146120b3578182fd5b60006020828403121561436a578081fd5b5035919050565b60008060408385031215614383578182fd5b50508035926020909101359150565b6000806000606084860312156143a6578081fd5b8335925060208401359150604084013561410381614884565b600080600080608085870312156143d4578182fd5b84359350602085013592506040850135915060608501356143f481614884565b939692955090935050565b60008151808452614417816020860160208601614780565b601f01601f19169290920160200192915050565b6000835161443d818460208801614780565b835190830190614451818360208801614780565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061448d908301846143ff565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156144cf578351835292840192918401916001016144b3565b50909695505050505050565b6020815260006120b360208301846143ff565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b602080825260059082015264506175736560d81b604082015260600190565b60208082526002908201526103e360f41b604082015260600190565b6020808252600a90820152696e6f207374616b696e6760b01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f7261726520627920616c6c6f77616e636520616e64207075626c6963207472756040820152606560f81b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600f908201526e2727aa2faa27a5a2a72fa7aba722a960891b604082015260600190565b6020808252600490820152635261726560e01b604082015260600190565b604051601f8201601f1916810167ffffffffffffffff811182821017156146d6576146d6614859565b604052919050565b600061ffff8083168185168083038211156144515761445161482d565b6000821982111561470e5761470e61482d565b500190565b60008261472257614722614843565b500490565b60008160001904831182151516156147415761474161482d565b500290565b600061ffff838116908316818110156147615761476161482d565b039392505050565b60008282101561477b5761477b61482d565b500390565b60005b8381101561479b578181015183820152602001614783565b838111156111c55750506000910152565b6000816147bb576147bb61482d565b506000190190565b600181811c908216806147d757607f821691505b602082108114156147f857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156148125761481261482d565b5060010190565b60008261482857614828614843565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146113bf57600080fd5b80151581146113bf57600080fd5b6001600160e01b0319811681146113bf57600080fdfea2646970667358221220c84f23a2ce9fc06f512074cfcef8ad434d9e078b68136c0ff4aef5e20d665bec64736f6c63430008040033697066733a2f2f516d65383637656d4d4e66325539366f5a414c5071473531595536704b7a6147426e4756396951516f64375756572f
Deployed Bytecode
0x6080604052600436106104685760003560e01c80636352211e1161024a578063b5e6c52d11610139578063e5b95595116100b6578063f2fde38b1161007a578063f2fde38b14610e0b578063f4e0d9ac14610e2b578063f6f45e3a14610e4b578063fb53ca8d14610e6b578063fb83c0d514610e8c57600080fd5b8063e5b9559514610d3c578063e6fd48bc14610d6c578063e97245b714610d82578063e985e9c514610da2578063f26d9f2f14610deb57600080fd5b8063c87b56dd116100fd578063c87b56dd14610ca0578063cabadaa014610cc0578063ce3402fa14610cd6578063d0c8b9cd14610d06578063d7b4be2414610d1c57600080fd5b8063b5e6c52d14610c0d578063b88d4fde14610c2d578063bc29f74b14610c4d578063bedb86fb14610c60578063c0d8012c14610c8057600080fd5b80638da5cb5b116101c75780639ededf771161018b5780639ededf77146105bc578063a07e7e9514610b97578063a22cb46514610baa578063b488432414610bca578063b599d47914610bfa57600080fd5b80638da5cb5b14610b045780638f885c5f14610b2257806395d89b4114610b425780639a2a756714610b575780639d15249c14610b7757600080fd5b8063715018a61161020e578063715018a614610a6d578063759eeb8814610a82578063785130b814610aa25780638462151c14610ac257806387a42cdc14610aef57600080fd5b80636352211e146109cb57806364b90bc4146109eb57806366ed300814610a185780636c0360eb14610a3857806370a0823114610a4d57600080fd5b80632dbe8465116103665780634f78f54c116102e35780635e1bef32116102a75780635e1bef32146109275780635eac62391461095757806360ffdc1614610977578063623a5c81146109985780636259e7e1146109ab57600080fd5b80634f78f54c1461089857806353ac010a146108b857806355f804b3146108d757806358bb07d3146108f75780635c975abb1461090d57600080fd5b806342842e0e1161032a57806342842e0e146107b157806344a0d68a146107d15780634ae75e41146107f15780634d004d00146108045780634eb75c141461086857600080fd5b80632dbe8465146107275780633c0d0cb8146107475780633ca7b2f7146107695780633ccfd60b146107895780633f4263ef1461079157600080fd5b806318160ddd116103f457806326a4e8d2116103b857806326a4e8d214610687578063270ab52c146106a75780632adfc844146106c75780632afd3bae146106e75780632ba0f0041461070757600080fd5b806318160ddd146105f05780631c4ccd131461060757806323b872dd14610627578063254a4737146106475780632659c0581461066757600080fd5b8063095ea7b31161043b578063095ea7b3146105315780630d2cb02a146105535780630ec69cba1461059c5780630ef26743146105bc57806313faede6146105da57600080fd5b806301ffc9a71461046d57806306d35b98146104a257806306fdde03146104d7578063081812fc146104f9575b600080fd5b34801561047957600080fd5b5061048d6104883660046142b9565b610eac565b60405190151581526020015b60405180910390f35b3480156104ae57600080fd5b506017546104c490600160a01b900461ffff1681565b60405161ffff9091168152602001610499565b3480156104e357600080fd5b506104ec610efe565b60405161049991906144db565b34801561050557600080fd5b50610519610514366004614359565b610f90565b6040516001600160a01b039091168152602001610499565b34801561053d57600080fd5b5061055161054c3660046140a2565b61101d565b005b34801561055f57600080fd5b506105877f000000000000000000000000000000000000000000000000000000000001518081565b60405163ffffffff9091168152602001610499565b3480156105a857600080fd5b50600854610519906001600160a01b031681565b3480156105c857600080fd5b5060325b604051908152602001610499565b3480156105e657600080fd5b506105cc600a5481565b3480156105fc57600080fd5b506007546105cc9081565b34801561061357600080fd5b50610551610622366004614281565b611133565b34801561063357600080fd5b50610551610642366004613f65565b61117b565b34801561065357600080fd5b50610551610662366004614281565b6111cb565b34801561067357600080fd5b506105516106823660046141d9565b61120f565b34801561069357600080fd5b506105516106a2366004613ef5565b611267565b3480156106b357600080fd5b506105516106c2366004614359565b6112b3565b3480156106d357600080fd5b506105516106e2366004614359565b6112e2565b3480156106f357600080fd5b50610551610702366004614359565b611311565b34801561071357600080fd5b50610551610722366004614281565b611340565b34801561073357600080fd5b50610551610742366004614337565b6113c2565b34801561075357600080fd5b50600d5461048d90640100000000900460ff1681565b34801561077557600080fd5b50610551610784366004614359565b61140e565b610551611566565b34801561079d57600080fd5b506105cc6107ac366004614359565b6115b6565b3480156107bd57600080fd5b506105516107cc366004613f65565b6115c3565b3480156107dd57600080fd5b506105516107ec366004614359565b6115de565b6105516107ff3660046143bf565b61160d565b34801561081057600080fd5b5061084761081f366004614359565b6014602052600090815260409020805460019091015461ffff80831692620100009004169083565b6040805161ffff948516815293909216602084015290820152606001610499565b34801561087457600080fd5b5061048d610883366004614359565b60009081526011602052604090205460ff1690565b3480156108a457600080fd5b506105516108b3366004614359565b6117df565b3480156108c457600080fd5b50600d5461048d90610100900460ff1681565b3480156108e357600080fd5b506105516108f23660046142f1565b6118ce565b34801561090357600080fd5b506105cc60165481565b34801561091957600080fd5b50600d5461048d9060ff1681565b34801561093357600080fd5b5061048d610942366004614359565b60136020526000908152604090205460ff1681565b34801561096357600080fd5b506105516109723660046141d9565b61190b565b34801561098357600080fd5b5060125461048d90600160a01b900460ff1681565b6105516109a636600461418f565b611b01565b3480156109b757600080fd5b506105cc6109c6366004614359565b611e6c565b3480156109d757600080fd5b506105196109e6366004614359565b611e79565b3480156109f757600080fd5b506105cc610a06366004613ef5565b60106020526000908152604090205481565b348015610a2457600080fd5b50610551610a33366004614281565b611ef0565b348015610a4457600080fd5b506104ec611f3a565b348015610a5957600080fd5b506105cc610a68366004613ef5565b611fc8565b348015610a7957600080fd5b5061055161204f565b348015610a8e57600080fd5b506105cc610a9d366004614371565b612083565b348015610aae57600080fd5b50610551610abd366004614281565b6120ba565b348015610ace57600080fd5b50610ae2610add366004613ef5565b612135565b6040516104999190614497565b348015610afb57600080fd5b50610ae261226e565b348015610b1057600080fd5b506006546001600160a01b0316610519565b348015610b2e57600080fd5b50610551610b3d3660046140a2565b61233d565b348015610b4e57600080fd5b506104ec6123ab565b348015610b6357600080fd5b50610551610b72366004614022565b6123ba565b348015610b8357600080fd5b50600d5461048d9062010000900460ff1681565b610551610ba5366004614392565b6124af565b348015610bb657600080fd5b50610551610bc5366004614075565b612563565b348015610bd657600080fd5b5061048d610be5366004614359565b600f6020526000908152604090205460ff1681565b610551610c0836600461418f565b61256e565b348015610c1957600080fd5b50610551610c28366004614022565b61277e565b348015610c3957600080fd5b50610551610c48366004613fa5565b61285a565b610551610c5b36600461410e565b61288c565b348015610c6c57600080fd5b50610551610c7b366004614281565b612c20565b348015610c8c57600080fd5b506105cc610c9b366004614359565b612c5d565b348015610cac57600080fd5b506104ec610cbb366004614359565b612cd1565b348015610ccc57600080fd5b506105cc600c5481565b348015610ce257600080fd5b5061048d610cf1366004614359565b600e6020526000908152604090205460ff1681565b348015610d1257600080fd5b506105cc600b5481565b348015610d2857600080fd5b50601254610519906001600160a01b031681565b348015610d4857600080fd5b5061048d610d57366004614359565b60116020526000908152604090205460ff1681565b348015610d7857600080fd5b506105cc60155481565b348015610d8e57600080fd5b50610551610d9d366004613ef5565b612d9b565b348015610dae57600080fd5b5061048d610dbd366004613f2d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610df757600080fd5b50610551610e06366004614359565b612de7565b348015610e1757600080fd5b50610551610e26366004613ef5565b612ee3565b348015610e3757600080fd5b50610551610e46366004613ef5565b612f7b565b348015610e5757600080fd5b50610551610e663660046141d9565b612fc7565b348015610e7757600080fd5b50600d5461048d906301000000900460ff1681565b348015610e9857600080fd5b50610551610ea73660046140cd565b6131c8565b60006001600160e01b031982166380ac58cd60e01b1480610edd57506001600160e01b03198216635b5e139f60e01b145b80610ef857506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610f0d906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054610f39906147c3565b8015610f865780601f10610f5b57610100808354040283529160200191610f86565b820191906000526020600020905b815481529060010190602001808311610f6957829003601f168201915b5050505050905090565b6000610f9b8261327d565b6110015760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061102882611e79565b9050806001600160a01b0316836001600160a01b031614156110965760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ff8565b336001600160a01b03821614806110b257506110b28133610dbd565b6111245760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ff8565b61112e838361329a565b505050565b6006546001600160a01b0316331461115d5760405162461bcd60e51b8152600401610ff89061459f565b60128054911515600160a01b0260ff60a01b19909216919091179055565b336111868183613308565b8061119e57506012546001600160a01b038281169116145b6111ba5760405162461bcd60e51b8152600401610ff890614615565b6111c58484846133f2565b50505050565b6006546001600160a01b031633146111f55760405162461bcd60e51b8152600401610ff89061459f565b600d80549115156101000261ff0019909216919091179055565b60005b815181101561126357600082828151811061123d57634e487b7160e01b600052603260045260246000fd5b60200260200101519050611250816117df565b508061125b816147fe565b915050611212565b5050565b6006546001600160a01b031633146112915760405162461bcd60e51b8152600401610ff89061459f565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146112dd5760405162461bcd60e51b8152600401610ff89061459f565b600c55565b6006546001600160a01b0316331461130c5760405162461bcd60e51b8152600401610ff89061459f565b601655565b6006546001600160a01b0316331461133b5760405162461bcd60e51b8152600401610ff89061459f565b600b55565b6006546001600160a01b0316331461136a5760405162461bcd60e51b8152600401610ff89061459f565b600d805463ff0000001916630100000083151502179081905560ff620100009091041680156113a25750600d546301000000900460ff165b156113bf5760405162461bcd60e51b8152600401610ff8906145d4565b50565b6006546001600160a01b031633146113ec5760405162461bcd60e51b8152600401610ff89061459f565b6017805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b3361141882611e79565b6001600160a01b03161461143e5760405162461bcd60e51b8152600401610ff890614666565b60008181526013602052604090205460ff1661145957600080fd5b61146242613599565b60175460008381526014602052604090205461ffff9283169261148f92600160a01b9004811691166146de565b61ffff1611156114ce5760405162461bcd60e51b815260206004820152600a6024820152694c6f636b2074696d652160b01b6044820152606401610ff8565b60006114d982612c5d565b11156114e8576114e881612de7565b6000818152601360209081526040808320805460ff19169055805160608101909152918252810161151842613599565b61ffff9081168252600060209283018190529384526014825260409384902083518154938501518316620100000263ffffffff19909416921691909117919091178155910151600190910155565b6006546001600160a01b031633146115905760405162461bcd60e51b8152600401610ff89061459f565b60405133904780156108fc02916000818181858888f193505050506115b457600080fd5b565b6000610ef8603283614819565b61112e8383836040518060200160405280600081525061285a565b6006546001600160a01b031633146116085760405162461bcd60e51b8152600401610ff89061459f565b600a55565b600d5460ff16156116305760405162461bcd60e51b8152600401610ff890614540565b600d54640100000000900460ff1661165157600a5434101561165157600080fd5b60008281526011602052604090205460ff161561169e5760405162461bcd60e51b815260206004820152600b60248201526a125b9d985b1a590813dddb60aa1b6044820152606401610ff8565b6008546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156116e257600080fd5b505afa1580156116f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171a9190613f11565b6001600160a01b03161461175c5760405162461bcd60e51b81526020600482015260096024820152682737ba1037bbb732b960b91b6044820152606401610ff8565b6000828152601160205260409020805460ff191660011790556032841080156117855750603283105b6117c15760405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b6044820152606401610ff8565b6111c56117cf603285614727565b6117d990866146fb565b82613655565b601254600160a01b900460ff16156118285760405162461bcd60e51b815260206004820152600c60248201526b14dd185ad9481c185d5cd95960a21b6044820152606401610ff8565b6118323382613308565b61183b57600080fd5b60008181526013602052604090205460ff161561185757600080fd5b61186042613599565b60008281526014602052604090205462010000900461ffff9081169116141561188857600080fd5b6000818152601360205260409020805460ff191660011790556118aa42613599565b600091825260146020526040909120805461ffff191661ffff909216919091179055565b6006546001600160a01b031633146118f85760405162461bcd60e51b8152600401610ff89061459f565b8051611263906009906020840190613dc3565b6000805b82518110156119f157600083828151811061193a57634e487b7160e01b600052603260045260246000fd5b60200260200101519050336001600160a01b031661195782611e79565b6001600160a01b03161461197d5760405162461bcd60e51b8152600401610ff890614666565b60008181526013602052604090205460ff1661199857600080fd5b6119a181612c5d565b6119ab90846146fb565b92506119b681612c5d565b600082815260146020526040812060010180549091906119d79084906146fb565b909155508291506119e99050816147fe565b91505061190f565b5060008111611a395760405162461bcd60e51b81526020600482015260146024820152734e4f5f524557415244535f415641494c41424c4560601b6044820152606401610ff8565b60175460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044015b602060405180830381600087803b158015611a8657600080fd5b505af1158015611a9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611abe919061429d565b5060408051828152426020820152338183015290517f7bb9bf4af273d7fcbb4844a6b169d0f88e8143be0707cd9c8ba536f4e35142e59181900360600190a15050565b600d54339060ff1615611b265760405162461bcd60e51b8152600401610ff890614540565b600d5462010000900460ff168015611b485750600d546301000000900460ff16155b80611b705750600d5462010000900460ff16158015611b705750600d546301000000900460ff165b611ba05760405162461bcd60e51b81526020600482015260016024820152602960f91b6044820152606401610ff8565b82611bbd5760405162461bcd60e51b8152600401610ff89061455f565b600b54611bcb908490614727565b341015611bd757600080fd5b600d546301000000900460ff1615611ce55760005b83811015611ce3576000858583818110611c1657634e487b7160e01b600052603260045260246000fd5b602090810292909201356000818152600f9093526040909220549192505060ff16611c535760405162461bcd60e51b8152600401610ff89061468f565b83611c6757611c6233826136af565b611cc2565b6012546001600160a01b0316611c8f5760405162461bcd60e51b8152600401610ff89061457b565b60125460408051336020820152611cc2926001600160a01b0316918491015b6040516020818303038152906040526136c5565b611cd0600780546001019055565b5080611cdb816147fe565b915050611bec565b505b600d5462010000900460ff16156111c55760005b83811015611e65576001600160a01b038216600090815260106020526040902054611d5d5760405162461bcd60e51b81526020600482015260146024820152731b585e195908185b1b1bddd95908185b5bdd5b9d60621b6044820152606401610ff8565b6000858583818110611d7f57634e487b7160e01b600052603260045260246000fd5b602090810292909201356000818152600f9093526040909220549192505060ff16611dbc5760405162461bcd60e51b8152600401610ff89061468f565b83611dd057611dcb33826136af565b611e1b565b6012546001600160a01b0316611df85760405162461bcd60e51b8152600401610ff89061457b565b60125460408051336020820152611e1b926001600160a01b031691849101611cae565b6001600160a01b0383166000908152601060205260408120805491611e3f836147ac565b9190505550611e52600780546001019055565b5080611e5d816147fe565b915050611cf9565b5050505050565b6000610ef8603283614713565b6000818152600260205260408120546001600160a01b031680610ef85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ff8565b6006546001600160a01b03163314611f1a5760405162461bcd60e51b8152600401610ff89061459f565b600d80549115156401000000000264ff0000000019909216919091179055565b60098054611f47906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054611f73906147c3565b8015611fc05780601f10611f9557610100808354040283529160200191611fc0565b820191906000526020600020905b815481529060010190602001808311611fa357829003601f168201915b505050505081565b60006001600160a01b0382166120335760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ff8565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146120795760405162461bcd60e51b8152600401610ff89061459f565b6115b460006136f8565b60006032831080156120955750603282105b61209e57600080fd5b6120a9603283614727565b6120b390846146fb565b9392505050565b6006546001600160a01b031633146120e45760405162461bcd60e51b8152600401610ff89061459f565b600d805462ff00001916620100008315158102919091179182905560ff91041680156113a25750600d546301000000900460ff16156113bf5760405162461bcd60e51b8152600401610ff8906145d4565b6060600061214283611fc8565b116121785760405162461bcd60e51b81526020600482015260066024820152656e6f20746b7360d01b6044820152606401610ff8565b600061218383611fc8565b67ffffffffffffffff8111156121a957634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156121d2578160200160208202803683370190505b5090506000805b6121e285611fc8565b811015612265576121f28261327d565b1561225357846001600160a01b031661220a83611e79565b6001600160a01b03161415612253578183828151811061223a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061224f816147fe565b9150505b8161225d816147fe565b9250506121d9565b50909392505050565b6060600061227b60075490565b67ffffffffffffffff8111156122a157634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156122ca578160200160208202803683370190505b5090506000805b600754811015612335576122e48261327d565b15612323578183828151811061230a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061231f816147fe565b9150505b8161232d816147fe565b9250506122d1565b509092915050565b6006546001600160a01b031633146123675760405162461bcd60e51b8152600401610ff89061459f565b6001600160a01b03821660009081526010602052604090205461238a82826146fb565b6001600160a01b039093166000908152601060205260409020929092555050565b606060018054610f0d906147c3565b6006546001600160a01b031633146123e45760405162461bcd60e51b8152600401610ff89061459f565b806124015760405162461bcd60e51b8152600401610ff89061455f565b60005b818110156111c557600083838381811061242e57634e487b7160e01b600052603260045260246000fd5b602090810292909201356000818152600e9093526040909220549192505060ff166124845760405162461bcd60e51b8152600401610ff8906020808252600490820152634570696360e01b604082015260600190565b61248e85826136af565b61249c600780546001019055565b50806124a7816147fe565b915050612404565b600d5460ff16156124d25760405162461bcd60e51b8152600401610ff890614540565b600d54610100900460ff166125235760405162461bcd60e51b8152602060048201526017602482015276141d589b1a58c81b5a5b9d1a5b99c8191a5cd8589b1959604a1b6044820152606401610ff8565b600a5434101561253257600080fd5b6032831080156125425750603282105b61254b57600080fd5b61112e612559603284614727565b6117d990856146fb565b61126333838361374a565b600d5460ff16156125915760405162461bcd60e51b8152600401610ff890614540565b600d54610100900460ff166125e25760405162461bcd60e51b8152602060048201526017602482015276141d589b1a58c81b5a5b9d1a5b99c8191a5cd8589b1959604a1b6044820152606401610ff8565b816125ff5760405162461bcd60e51b8152600401610ff89061455f565b600c5461260d9060016146fb565b82106126705760405162461bcd60e51b815260206004820152602c60248201527f4578636564656420746865206d6178696d756d206d696e74696e6720616d6f7560448201526b0dce840c4f240dedcca40a8f60a31b6064820152608401610ff8565b600a5461267e908390614727565b34101561268a57600080fd5b60005b8281101561273f5760008484838181106126b757634e487b7160e01b600052603260045260246000fd5b90506020020135905060326126cb826115b6565b1080156126e0575060326126de82611e6c565b105b61272c5760405162461bcd60e51b815260206004820152601960248201527f436f6f7264696e61746573206f7574206f6620626f756e6473000000000000006044820152606401610ff8565b5080612737816147fe565b91505061268d565b5061112e838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250859250613819915050565b6006546001600160a01b031633146127a85760405162461bcd60e51b8152600401610ff89061459f565b806127c55760405162461bcd60e51b8152600401610ff89061455f565b60005b818110156111c55760008383838181106127f257634e487b7160e01b600052603260045260246000fd5b602090810292909201356000818152600f9093526040909220549192505060ff1661282f5760405162461bcd60e51b8152600401610ff89061468f565b61283985826136af565b612847600780546001019055565b5080612852816147fe565b9150506127c8565b6128643383613308565b6128805760405162461bcd60e51b8152600401610ff890614615565b6111c584848484613967565b600d5460ff16156128af5760405162461bcd60e51b8152600401610ff890614540565b8382146128ef5760405162461bcd60e51b815260206004820152600e60248201526d236c616e6473203d20236f776c7360901b6044820152606401610ff8565b8161290c5760405162461bcd60e51b8152600401610ff89061455f565b600d54640100000000900460ff1661296557600a5461292c908390614727565b3410156129655760405162461bcd60e51b8152602060048201526007602482015266506179206d652160c81b6044820152606401610ff8565b60005b82811015612b3b576011600085858481811061299457634e487b7160e01b600052603260045260246000fd5b602090810292909201358352508101919091526040016000205460ff16156129ec5760405162461bcd60e51b815260206004820152600b60248201526a125b9d985b1a590813dddb60aa1b6044820152606401610ff8565b60085433906001600160a01b0316636352211e868685818110612a1f57634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b8152600401612a4491815260200190565b60206040518083038186803b158015612a5c57600080fd5b505afa158015612a70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a949190613f11565b6001600160a01b031614612ad65760405162461bcd60e51b81526020600482015260096024820152682737ba1037bbb732b960b91b6044820152606401610ff8565b600160116000868685818110612afc57634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080612b33906147fe565b915050612968565b5060005b84811015612be1576000868683818110612b6957634e487b7160e01b600052603260045260246000fd5b9050602002013590506032612b7d826115b6565b108015612b9257506032612b9082611e6c565b105b612bce5760405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b6044820152606401610ff8565b5080612bd9816147fe565b915050612b3f565b50611e65858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250859250613819915050565b6006546001600160a01b03163314612c4a5760405162461bcd60e51b8152600401610ff89061459f565b600d805460ff1916911515919091179055565b60008181526014602052604081205461ffff16612c7957600080fd5b60008281526014602052604081205461ffff16612c9542613599565b612c9f9190614746565b60008481526014602052604090206001015460165491925090612cc79061ffff841690614727565b6120b39190614769565b6060612cdc8261327d565b612d405760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ff8565b6000612d4a61399a565b90506000815111612d6a57604051806020016040528060008152506120b3565b80612d74846139a9565b604051602001612d8592919061442b565b6040516020818303038152906040529392505050565b6006546001600160a01b03163314612dc55760405162461bcd60e51b8152600401610ff89061459f565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b33612df182611e79565b6001600160a01b031614612e175760405162461bcd60e51b8152600401610ff890614666565b60008181526013602052604090205460ff16612e3257600080fd5b6000612e3d82612c5d565b905060008111612e865760405162461bcd60e51b81526020600482015260146024820152734e4f5f524557415244535f415641494c41424c4560601b6044820152606401610ff8565b60008281526014602052604081206001018054839290612ea79084906146fb565b909155505060175460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401611a6c565b6006546001600160a01b03163314612f0d5760405162461bcd60e51b8152600401610ff89061459f565b6001600160a01b038116612f725760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ff8565b6113bf816136f8565b6006546001600160a01b03163314612fa55760405162461bcd60e51b8152600401610ff89061459f565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6000805b8251811015613029576000838281518110612ff657634e487b7160e01b600052603260045260246000fd5b6020026020010151905061300981612c5d565b61301390846146fb565b9250508080613021906147fe565b915050612fcb565b508015613039576130398261190b565b60005b825181101561112e57600083828151811061306757634e487b7160e01b600052603260045260246000fd5b60200260200101519050336001600160a01b031661308482611e79565b6001600160a01b0316146130aa5760405162461bcd60e51b8152600401610ff890614666565b60008181526013602052604090205460ff166130c557600080fd5b6130ce42613599565b60175460008381526014602052604090205461ffff928316926130fb92600160a01b9004811691166146de565b61ffff16111561313a5760405162461bcd60e51b815260206004820152600a6024820152694c6f636b2074696d652160b01b6044820152606401610ff8565b6000818152601360209081526040808320805460ff19169055805160608101909152918252810161316a42613599565b61ffff9081168252600060209283018190529384526014825260409384902083518154938501518316620100000263ffffffff19909416921691909117919091178155910151600190910155806131c0816147fe565b91505061303c565b6006546001600160a01b031633146131f25760405162461bcd60e51b8152600401610ff89061459f565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905282169063a9059cbb90604401602060405180830381600087803b15801561323c57600080fd5b505af1158015613250573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613274919061429d565b61112e57600080fd5b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906132cf82611e79565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006133138261327d565b6133745760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ff8565b600061337f83611e79565b9050806001600160a01b0316846001600160a01b031614806133ba5750836001600160a01b03166133af84610f90565b6001600160a01b0316145b806133ea57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661340582611e79565b6001600160a01b0316146134695760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610ff8565b6001600160a01b0382166134cb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ff8565b6134d6838383613ac3565b6134e160008261329a565b6001600160a01b038316600090815260036020526040812080546001929061350a908490614769565b90915550506001600160a01b03821660009081526003602052604081208054600192906135389084906146fb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006015548210156136035760405162461bcd60e51b815260206004820152602d60248201527f4e66745374616b696e673a2074696d657374616d70207072656365656473206360448201526c1bdb9d1c9858dd081cdd185c9d609a1b6064820152608401610ff8565b610ef87f000000000000000000000000000000000000000000000000000000000001518063ffffffff166015548461363b9190614769565b6136459190614713565b6136509060016146fb565b613b10565b60408051600180825281830190925260009160208083019080368337019050509050828160008151811061369957634e487b7160e01b600052603260045260246000fd5b60200260200101818152505061112e8183613819565b6112638282604051806020016040528060008152505b6136cf8383613b77565b6136dc6000848484613cb6565b61112e5760405162461bcd60e51b8152600401610ff8906144ee565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156137ac5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ff8565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60005b825181101561112e57600083828151811061384757634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516000818152600e90925260409091205490915060ff161561389f5760405162461bcd60e51b815260206004820152600660248201526521b7b6b6b7b760d11b6044820152606401610ff8565b6000818152600f602052604090205460ff16156138e75760405162461bcd60e51b815260206004820152600660248201526521b7b6b6b7b760d11b6044820152606401610ff8565b826138fb576138f633826136af565b613946565b6012546001600160a01b03166139235760405162461bcd60e51b8152600401610ff89061457b565b60125460408051336020820152613946926001600160a01b031691849101611cae565b613954600780546001019055565b508061395f816147fe565b91505061381c565b6139728484846133f2565b61397e84848484613cb6565b6111c55760405162461bcd60e51b8152600401610ff8906144ee565b606060098054610f0d906147c3565b6060816139cd5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156139f757806139e1816147fe565b91506139f09050600a83614713565b91506139d1565b60008167ffffffffffffffff811115613a2057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613a4a576020820181803683370190505b5090505b84156133ea57613a5f600183614769565b9150613a6c600a86614819565b613a779060306146fb565b60f81b818381518110613a9a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613abc600a86614713565b9450613a4e565b60008181526013602052604090205460ff161561112e5760405162461bcd60e51b815260206004820152600b60248201526a1cdd185ad9590813185b9960aa1b6044820152606401610ff8565b600061ffff821115613b735760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160448201526536206269747360d01b6064820152608401610ff8565b5090565b6001600160a01b038216613bcd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ff8565b613bd68161327d565b15613c235760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ff8565b613c2f60008383613ac3565b6001600160a01b0382166000908152600360205260408120805460019290613c589084906146fb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15613db857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613cfa90339089908890889060040161445a565b602060405180830381600087803b158015613d1457600080fd5b505af1925050508015613d44575060408051601f3d908101601f19168201909252613d41918101906142d5565b60015b613d9e573d808015613d72576040519150601f19603f3d011682016040523d82523d6000602084013e613d77565b606091505b508051613d965760405162461bcd60e51b8152600401610ff8906144ee565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506133ea565b506001949350505050565b828054613dcf906147c3565b90600052602060002090601f016020900481019282613df15760008555613e37565b82601f10613e0a57805160ff1916838001178555613e37565b82800160010185558215613e37579182015b82811115613e37578251825591602001919060010190613e1c565b50613b739291505b80821115613b735760008155600101613e3f565b600067ffffffffffffffff831115613e6d57613e6d614859565b613e80601f8401601f19166020016146ad565b9050828152838383011115613e9457600080fd5b828260208301376000602084830101529392505050565b60008083601f840112613ebc578182fd5b50813567ffffffffffffffff811115613ed3578182fd5b6020830191508360208260051b8501011115613eee57600080fd5b9250929050565b600060208284031215613f06578081fd5b81356120b38161486f565b600060208284031215613f22578081fd5b81516120b38161486f565b60008060408385031215613f3f578081fd5b8235613f4a8161486f565b91506020830135613f5a8161486f565b809150509250929050565b600080600060608486031215613f79578081fd5b8335613f848161486f565b92506020840135613f948161486f565b929592945050506040919091013590565b60008060008060808587031215613fba578081fd5b8435613fc58161486f565b93506020850135613fd58161486f565b925060408501359150606085013567ffffffffffffffff811115613ff7578182fd5b8501601f81018713614007578182fd5b61401687823560208401613e53565b91505092959194509250565b600080600060408486031215614036578283fd5b83356140418161486f565b9250602084013567ffffffffffffffff81111561405c578283fd5b61406886828701613eab565b9497909650939450505050565b60008060408385031215614087578182fd5b82356140928161486f565b91506020830135613f5a81614884565b600080604083850312156140b4578182fd5b82356140bf8161486f565b946020939093013593505050565b6000806000606084860312156140e1578283fd5b83356140ec8161486f565b92506020840135915060408401356141038161486f565b809150509250925092565b600080600080600060608688031215614125578283fd5b853567ffffffffffffffff8082111561413c578485fd5b61414889838a01613eab565b90975095506020880135915080821115614160578485fd5b5061416d88828901613eab565b909450925050604086013561418181614884565b809150509295509295909350565b6000806000604084860312156141a3578081fd5b833567ffffffffffffffff8111156141b9578182fd5b6141c586828701613eab565b909450925050602084013561410381614884565b600060208083850312156141eb578182fd5b823567ffffffffffffffff80821115614202578384fd5b818501915085601f830112614215578384fd5b81358181111561422757614227614859565b8060051b91506142388483016146ad565b8181528481019084860184860187018a1015614252578788fd5b8795505b83861015614274578035835260019590950194918601918601614256565b5098975050505050505050565b600060208284031215614292578081fd5b81356120b381614884565b6000602082840312156142ae578081fd5b81516120b381614884565b6000602082840312156142ca578081fd5b81356120b381614892565b6000602082840312156142e6578081fd5b81516120b381614892565b600060208284031215614302578081fd5b813567ffffffffffffffff811115614318578182fd5b8201601f81018413614328578182fd5b6133ea84823560208401613e53565b600060208284031215614348578081fd5b813561ffff811681146120b3578182fd5b60006020828403121561436a578081fd5b5035919050565b60008060408385031215614383578182fd5b50508035926020909101359150565b6000806000606084860312156143a6578081fd5b8335925060208401359150604084013561410381614884565b600080600080608085870312156143d4578182fd5b84359350602085013592506040850135915060608501356143f481614884565b939692955090935050565b60008151808452614417816020860160208601614780565b601f01601f19169290920160200192915050565b6000835161443d818460208801614780565b835190830190614451818360208801614780565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061448d908301846143ff565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156144cf578351835292840192918401916001016144b3565b50909695505050505050565b6020815260006120b360208301846143ff565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b602080825260059082015264506175736560d81b604082015260600190565b60208082526002908201526103e360f41b604082015260600190565b6020808252600a90820152696e6f207374616b696e6760b01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f7261726520627920616c6c6f77616e636520616e64207075626c6963207472756040820152606560f81b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600f908201526e2727aa2faa27a5a2a72fa7aba722a960891b604082015260600190565b6020808252600490820152635261726560e01b604082015260600190565b604051601f8201601f1916810167ffffffffffffffff811182821017156146d6576146d6614859565b604052919050565b600061ffff8083168185168083038211156144515761445161482d565b6000821982111561470e5761470e61482d565b500190565b60008261472257614722614843565b500490565b60008160001904831182151516156147415761474161482d565b500290565b600061ffff838116908316818110156147615761476161482d565b039392505050565b60008282101561477b5761477b61482d565b500390565b60005b8381101561479b578181015183820152602001614783565b838111156111c55750506000910152565b6000816147bb576147bb61482d565b506000190190565b600181811c908216806147d757607f821691505b602082108114156147f857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156148125761481261482d565b5060010190565b60008261482857614828614843565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146113bf57600080fd5b80151581146113bf57600080fd5b6001600160e01b0319811681146113bf57600080fdfea2646970667358221220c84f23a2ce9fc06f512074cfcef8ad434d9e078b68136c0ff4aef5e20d665bec64736f6c63430008040033
Loading...
Loading
Loading...
Loading
OVERVIEW
[Discord](https://discord.gg/hGuCduX9jY) | [Website](https://darkowlsgame.com/)2222 Land Parcels - Dark Owls Estate: The Very First P2E NFTWorlds Real Estate GameDevelop, Buy, Sell, Trade & Rent Metaverse Land & Real Estate.Develop your land in game, increase it's value ...Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.