Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
313 CRWLR
Holders
136
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 CRWLRLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract contains unverified libraries: ECDSA
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
CrawlerToken
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // // ██████████ // █ █ // █ █ // █ █ // █ █ // █ ░░░░ █ // █ ▓▓▓▓▓▓ █ // █ ████████ █ // // https://endlesscrawler.io // @EndlessCrawler // /// @title Endless Crawler Chamber Minter /// @author Studio Avante /// @notice Mints new Chambers for Endless Crawler /// @dev Depends on upgradeable ICrawlerIndex and ICrawlerPlayer // pragma solidity ^0.8.16; import { DefaultOperatorFilterer } from "operator-filter-registry/src/DefaultOperatorFilterer.sol"; import { ERC721, IERC721, IERC165, IERC721Metadata } from '@openzeppelin/contracts/token/ERC721/ERC721.sol'; import { Ownable } from '@openzeppelin/contracts/access/Ownable.sol'; import { ECDSA } from './extras/ECDSA.sol'; import { ERC721Enumerable } from './extras/ERC721Enumerable.sol'; import { ICrawlerIndex } from './ICrawlerIndex.sol'; import { ICrawlerPlayer } from './ICrawlerPlayer.sol'; import { ICrawlerToken } from './ICrawlerToken.sol'; import { Crawl } from './Crawl.sol'; contract CrawlerToken is ERC721, ERC721Enumerable, DefaultOperatorFilterer, Ownable, ICrawlerToken { error MintingIsPaused(); error InvalidFromChamber(); error InvalidDoor(); error InvalidSignature(); error InvalidValue(); error InvalidTokenId(); ICrawlerIndex private _index; ICrawlerPlayer private _player; address private _signerAddress; uint256 private _mintedCount; uint256 private _priceInPwei; uint256 private _priceInWei; bool private _paused = true; mapping(uint256 => uint256) private _tokenIdToCoord; mapping(uint256 => Crawl.ChamberSeed) private _coordToSeed; event Paused(bool indexed paused); event Minted(address indexed to, uint256 indexed tokenId, uint256 indexed coord); constructor(address index_, address player_, address signer_) ERC721('Endless Crawler', 'CRWLR') { setIndexContract(index_); setPlayerContract(player_); setSigner(signer_); setPrice(10); // Mint origins, Yonder 1, as... // 2 Water | 3 Air // --------|-------- // 1 Earth | 4 Fire _mint((1 << 64) + 1, 1, Crawl.Terrain.Earth, Crawl.Dir.East); // same as Crawl.makeCoord(0, 0, 1, 1) or __WS _mint((1 << 192) + (1 << 64), 1, Crawl.Terrain.Water, Crawl.Dir.South); // same as Crawl.makeCoord(1, 0, 1, 0) or N_W_ _mint((1 << 192) + (1 << 128), 1, Crawl.Terrain.Air, Crawl.Dir.West); // same as Crawl.makeCoord(1, 1, 0, 0) or NE__ _mint((1 << 128) + 1, 1, Crawl.Terrain.Fire, Crawl.Dir.North); // same as Crawl.makeCoord(0, 1, 0, 1) or _E_S } /// @dev Required by ERC721 interfaces function supportsInterface(bytes4 interfaceId) public view override (IERC165, ERC721, ERC721Enumerable) returns (bool) { return ERC721Enumerable.supportsInterface(interfaceId); } /// @dev Required by ERC721 interfaces function _beforeTokenTransfer(address from, address to, uint256 tokenId, uint256 batchSize) internal override (ERC721, ERC721Enumerable) { ERC721Enumerable._beforeTokenTransfer(from, to, tokenId, batchSize); _player.transferChamberHoard(from, to, tokenIdToHoard(tokenId)); } /// @dev Required by ERC721 interfaces function _totalSupply() public view override returns (uint256) { return _mintedCount; } /// @dev Required by OpenSea operator-filter-registry function setApprovalForAll(address operator, bool approved) public override(ERC721, IERC721) onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } /// @dev Required by OpenSea operator-filter-registry function approve(address operator, uint256 tokenId) public override(ERC721, IERC721) onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } /// @dev Required by OpenSea operator-filter-registry function transferFrom(address from, address to, uint256 tokenId) public override(ERC721, IERC721) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } /// @dev Required by OpenSea operator-filter-registry function safeTransferFrom(address from, address to, uint256 tokenId) public override(ERC721, IERC721) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } /// @dev Required by OpenSea operator-filter-registry function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override(ERC721, IERC721) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } //--------------- // Admin // /// @notice Admin function function setIndexContract(address index_) public onlyOwner { _index = ICrawlerIndex(index_); } /// @notice Admin function function setPlayerContract(address player_) public onlyOwner { _player = ICrawlerPlayer(player_); } /// @notice Admin function function setSigner(address signer_) public onlyOwner { _signerAddress = signer_; } /// @notice Admin function function setPrice(uint256 priceInPwei_) public onlyOwner { _priceInPwei = priceInPwei_; _priceInWei = priceInPwei_ * 1_000_000_000_000_000; } /// @notice Admin function function setPaused(bool paused_) public onlyOwner { _paused = paused_; emit Paused(_paused); } /// @notice Admin function function checkout(uint256 eth) public onlyOwner { payable(msg.sender).transfer(Crawl.min(eth * 1_000_000_000_000_000_000, address(this).balance)); } //--------------- // Public // /// @notice Return the current pause status /// @return paused True if paused (cannot mint), False if not (can mint) function isPaused() public view override returns (bool) { return _paused; } /// @notice Return the current Index contract /// @return paused Contract address function getIndexContract() public view returns(ICrawlerIndex) { return _index; } /// @notice Return the current Player contract /// @return paused Contract address function getPlayerContract() public view returns(ICrawlerPlayer) { return _player; } /// @notice Return the current mint prices /// @return prices Prices in WEI (for msg.value), and PWEI (stored, 1 pwei = ETH/1000) function getPrices() public view override returns (uint256, uint256) { return (_priceInWei, _priceInPwei); } /// @notice Return the current mint prices /// Price is FREE for the first token /// Price is FREE when minted in-game, provided signature /// Otherwise, price is _priceInPwei /// @param to Account for which price will be calculated /// @return price Token price for account, in WEI function calculateMintPrice(address to) public view override returns (uint256) { return balanceOf(to) == 0 || to == owner() ? 0 : _priceInWei; } /// @notice Returns a Chamber coordinate /// @param tokenId Token id /// @return result Chamber coordinate function tokenIdToCoord(uint256 tokenId) public view override returns (uint256) { return _tokenIdToCoord[tokenId]; } /// @notice Returns a Chamber static immutable data /// @param coord Chamber coordinate /// @return result Crawl.ChamberSeed struct function coordToSeed(uint256 coord) public view override returns (Crawl.ChamberSeed memory) { return _coordToSeed[coord]; } /// @notice Returns a Chamber generated data /// @param chapterNumber The Chapter number, or 0 for current chapter /// @param coord Chamber coordinate /// @param generateMaps True for generating bitmap and tilemap /// @return result Crawl.ChamberData struct function coordToChamberData(uint8 chapterNumber, uint256 coord, bool generateMaps) public view override returns (Crawl.ChamberData memory result) { return _index.getChamberData(chapterNumber, coord, _coordToSeed[coord], generateMaps); } /// @notice Returns a Chamber Hoard (gems and coins) /// @param tokenId Token id /// @return result Crawl.Hoard struct function tokenIdToHoard(uint256 tokenId) public view override returns (Crawl.Hoard memory) { return _index.getChamberGenerator().generateHoard(_coordToSeed[_tokenIdToCoord[tokenId]].seed); } /// @notice Unlocks a door, minting a new Chamber /// @param fromCoord Chamber coordinate, where door is located /// @param dir Door direction /// @param signature signature from endlesscrawler.io allowing free mint. if absent, calculateMintPrice(msg.sender) must be sent as msg.value /// @return tokenId Token id function mintDoor(uint256 fromCoord, Crawl.Dir dir, bytes calldata signature) public payable returns (uint256) { if(_paused) revert MintingIsPaused(); Crawl.ChamberSeed storage fromChamber = _coordToSeed[fromCoord]; if(fromChamber.tokenId == 0) revert InvalidFromChamber(); // New chamber must be empty uint256 newCoord = Crawl.offsetCoord(fromCoord, dir); if(_coordToSeed[newCoord].tokenId != 0) revert InvalidDoor(); if(signature.length != 0) { // If has signature, validate it to mint for free if(ECDSA.recover(ECDSA.toEthSignedMessageHash(keccak256(abi.encode(msg.sender, newCoord))), signature) != _signerAddress) revert InvalidSignature(); } else { // Validate price if(msg.value < calculateMintPrice(msg.sender)) revert InvalidValue(); } // Terrain type will be defined by a super simple cellular automata // If chamber opposite to fromCoord is different than it, repeat its Terrain, else randomize Crawl.Terrain fromTerrain = fromChamber.terrain; Crawl.Dir entryDir = Crawl.flipDir(dir); Crawl.Terrain terrain = fromTerrain != _coordToSeed[Crawl.offsetCoord(fromCoord, entryDir)].terrain ? fromTerrain : _index.getChamberGenerator().generateTerrainType(fromChamber.seed+uint256(dir), fromTerrain); // mint! return _mint( newCoord, fromChamber.yonder + 1, terrain, entryDir); } /// @dev Internal mint function function _mint(uint256 coord, uint232 yonder, Crawl.Terrain terrain, Crawl.Dir entryDir) internal returns (uint256) { uint256 tokenId = _mintedCount + 1; uint256 seed = uint256(keccak256(abi.encode(blockhash(block.number-1), tokenId))); _tokenIdToCoord[tokenId] = coord; _coordToSeed[coord] = Crawl.ChamberSeed( tokenId, seed, yonder, _index.getCurrentChapterNumber(), terrain, entryDir ); _safeMint(msg.sender, tokenId); emit Minted(msg.sender, tokenId, coord); _mintedCount = tokenId; return tokenId; } /// @notice Returns IERC721Metadata compliant metadata /// @param tokenId Token id /// @return metadata Metadata, as base64 json string function tokenURI(uint256 tokenId) public view override (ERC721, IERC721Metadata) returns (string memory) { if(!_exists(tokenId)) revert InvalidTokenId(); return getTokenMetadata(0, _tokenIdToCoord[tokenId]); } /// @notice Returns IERC721Metadata compliant metadata, used by tokenURI() /// @param chapterNumber The Chapter number, or 0 for current chapter /// @param coord Chamber coordinate /// @return metadata Metadata, as base64 json string function getTokenMetadata(uint8 chapterNumber, uint256 coord) public view returns (string memory) { return _index.getTokenMetadata(chapterNumber, coord, _coordToSeed[coord]); } /// @notice Returns a Chamber metadata, without maps /// @param chapterNumber The Chapter number, or 0 for current chapter /// @param coord Chamber coordinate /// @return metadata Metadata, as plain json string function getChamberMetadata(uint8 chapterNumber, uint256 coord) public view returns (string memory) { return _index.getChamberMetadata(chapterNumber, coord, _coordToSeed[coord]); } /// @notice Returns the seed and tilemap of a Chamber, used for world building /// @param chapterNumber The Chapter number, or 0 for current chapter /// @param coord Chamber coordinate /// @return metadata Metadata, as plain json string function getMapMetadata(uint8 chapterNumber, uint256 coord) public view returns (string memory) { return _index.getMapMetadata(chapterNumber, coord, _coordToSeed[coord]); } }
// SPDX-License-Identifier: MIT // // ██████████ // █ █ // █ █ // █ █ // █ █ // █ ░░░░ █ // █ ▓▓▓▓▓▓ █ // █ ████████ █ // // https://endlesscrawler.io // @EndlessCrawler // /// @title Endless Crawler IERC721Enumerable implementation Interface /// @author Studio Avante // pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; interface IERC721Enumerable is IERC721 { function totalSupply() external view returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // // ██████████ // █ █ // █ █ // █ █ // █ █ // █ ░░░░ █ // █ ▓▓▓▓▓▓ █ // █ ████████ █ // // https://endlesscrawler.io // @EndlessCrawler // /// @title Endless Crawler IERC721Enumerable implementation /// @author OpenZeppelin, adapted by Studio Avante /// @notice Simplified IERC721Enumerable implementation for gas saving /// @dev As tokens cannot be burned and are minted in consecutive order, allTokens_ and _allTokensIndex could be removed /// Based on: OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) /// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.8/contracts/token/ERC721/extensions/IERC721Enumerable.sol // pragma solidity ^0.8.16; import { ERC721, IERC165 } from '@openzeppelin/contracts/token/ERC721/ERC721.sol'; import { IERC721Enumerable } from './IERC721Enumerable.sol'; abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { error OwnerIndexOutOfBounds(); error GlobalIndexOutOfBounds(); // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; /// @dev Replaces _allTokens and _allTokensIndex, since tokens are sequential and burn proof function _totalSupply() public view virtual returns (uint256); /// @dev See {IERC165-supportsInterface}. function supportsInterface(bytes4 interfaceId) public view virtual override (IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || ERC721.supportsInterface(interfaceId); } /// @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { if(index >= ERC721.balanceOf(owner)) revert OwnerIndexOutOfBounds(); return _ownedTokens[owner][index]; } /// @dev See {IERC721Enumerable-totalSupply}. function totalSupply() public view virtual override returns (uint256) { return _totalSupply(); } /// @dev See {IERC721Enumerable-tokenByIndex}. function tokenByIndex(uint256 index) public view virtual override returns (uint256) { if(index >= _totalSupply()) revert GlobalIndexOutOfBounds(); return index + 1; } /// @dev See {ERC721-_beforeTokenTransfer}. function _beforeTokenTransfer( address from, address to, uint256 tokenId, uint256 batchSize ) internal virtual override { ERC721._beforeTokenTransfer(from, to, tokenId, batchSize); if (to != from) { if (from != address(0)) { uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } } }
// SPDX-License-Identifier: MIT /// @author OpenZeppelin /// @dev Exact OpenZeppelin copy but public, to be removed from CrawlerToken ABI // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.8/contracts/utils/cryptography/ECDSA.sol pragma solidity ^0.8.0; import "../Crawl.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) public pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) public pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) public pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) public pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) public pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) public pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) public pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) public pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Crawl.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) public pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // // ██████████ // █ █ // █ █ // █ █ // █ █ // █ ░░░░ █ // █ ▓▓▓▓▓▓ █ // █ ████████ █ // // https://endlesscrawler.io // @EndlessCrawler // /// @title Endless Crawler Chamber Minter Interface /// @author Studio Avante // pragma solidity ^0.8.16; import { IERC165 } from '@openzeppelin/contracts/utils/introspection/IERC165.sol'; import { IERC721 } from '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import { IERC721Metadata } from '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import { IERC721Enumerable } from './extras/IERC721Enumerable.sol'; import { Crawl } from './Crawl.sol'; interface ICrawlerToken is IERC165, IERC721, IERC721Metadata, IERC721Enumerable { function isPaused() external view returns (bool); function getPrices() external view returns (uint256, uint256); function calculateMintPrice(address to) external view returns (uint256); function tokenIdToCoord(uint256 tokenId) external view returns (uint256); function coordToSeed(uint256 coord) external view returns (Crawl.ChamberSeed memory); function coordToChamberData(uint8 chapterNumber, uint256 coord, bool generateMaps) external view returns (Crawl.ChamberData memory); function tokenIdToHoard(uint256 tokenId) external view returns (Crawl.Hoard memory); // Metadata calls function getChamberMetadata(uint8 chapterNumber, uint256 coord) external view returns (string memory); function getMapMetadata(uint8 chapterNumber, uint256 coord) external view returns (string memory); function getTokenMetadata(uint8 chapterNumber, uint256 coord) external view returns (string memory); }
// SPDX-License-Identifier: MIT // // ██████████ // █ █ // █ █ // █ █ // █ █ // █ ░░░░ █ // █ ▓▓▓▓▓▓ █ // █ ████████ █ // // https://endlesscrawler.io // @EndlessCrawler // /// @title Endless Crawler Chamber Renderer Interface /// @author Studio Avante // pragma solidity ^0.8.16; import { IERC165 } from '@openzeppelin/contracts/utils/introspection/IERC165.sol'; import { ICrawlerMapper } from './ICrawlerMapper.sol'; import { Crawl } from './Crawl.sol'; interface ICrawlerRenderer is IERC165 { function renderAdditionalChamberMetadata(Crawl.ChamberData memory chamber, ICrawlerMapper mapper) external view returns (string memory); function renderMapMetadata(Crawl.ChamberData memory chamber, ICrawlerMapper mapper) external view returns (string memory); function renderTokenMetadata(Crawl.ChamberData memory chamber, ICrawlerMapper mapper) external view returns (string memory); }
// SPDX-License-Identifier: MIT // // ██████████ // █ █ // █ █ // █ █ // █ █ // █ ░░░░ █ // █ ▓▓▓▓▓▓ █ // █ ████████ █ // // https://endlesscrawler.io // @EndlessCrawler // /// @title Endless Crawler Player Manager Interface /// @author Studio Avante // pragma solidity ^0.8.16; import { Crawl } from './Crawl.sol'; interface ICrawlerPlayer { function transferChamberHoard(address from, address to, Crawl.Hoard memory hoard) external; }
// SPDX-License-Identifier: MIT // // ██████████ // █ █ // █ █ // █ █ // █ █ // █ ░░░░ █ // █ ▓▓▓▓▓▓ █ // █ ████████ █ // // https://endlesscrawler.io // @EndlessCrawler // /// @title Endless Crawler Chamber Mapper Interface /// @author Studio Avante // pragma solidity ^0.8.16; import { IERC165 } from '@openzeppelin/contracts/utils/introspection/IERC165.sol'; import { Crawl } from './Crawl.sol'; interface ICrawlerMapper is IERC165 { // for generators function generateTileMap(Crawl.ChamberData memory chamber) external view returns (bytes memory); // getters / for renderers function getTerrainName(Crawl.Terrain terrain) external view returns (string memory); function getGemName(Crawl.Gem gem) external view returns (string memory); function getTileName(bytes1 tile, uint8 bitPos) external view returns (string memory); function getColors(Crawl.Terrain terrain) external view returns (string[] memory); function getColor(Crawl.Terrain terrain, uint8 colorId) external view returns (string memory); function getGemColors() external view returns (string[] memory); function getGemColor(Crawl.Gem gemType) external view returns (string memory); // for renderers function getAttributes(Crawl.ChamberData memory chamber) external view returns (string[] memory, string[] memory); function renderSvgStyles(Crawl.ChamberData memory chamber) external view returns (string memory); function renderSvgDefs(Crawl.ChamberData memory chamber) external view returns (string memory); }
// SPDX-License-Identifier: MIT // // ██████████ // █ █ // █ █ // █ █ // █ █ // █ ░░░░ █ // █ ▓▓▓▓▓▓ █ // █ ████████ █ // // https://endlesscrawler.io // @EndlessCrawler // /// @title Endless Crawler Chapter Index Interface /// @author Studio Avante // pragma solidity ^0.8.16; import { ICrawlerChamberGenerator } from './ICrawlerChamberGenerator.sol'; import { ICrawlerGenerator } from './ICrawlerGenerator.sol'; import { ICrawlerMapper } from './ICrawlerMapper.sol'; import { ICrawlerRenderer } from './ICrawlerRenderer.sol'; import { Crawl } from './Crawl.sol'; interface ICrawlerIndex { struct Chapter { uint8 chapterNumber; ICrawlerGenerator generator; ICrawlerMapper mapper; ICrawlerRenderer renderer; } // Public function getCurrentChapterNumber() external view returns (uint8); function getCurrentChapter() external view returns (Chapter memory); function getChapter(uint8 chapterNumber) external view returns (Chapter memory); function getChamberGenerator() external view returns (ICrawlerChamberGenerator); function getGenerator(uint8 chapterNumber) external view returns (ICrawlerGenerator); function getMapper(uint8 chapterNumber) external view returns (ICrawlerMapper); function getRenderer(uint8 chapterNumber) external view returns (ICrawlerRenderer); // Metadata calls function getChamberData(uint8 chapterNumber, uint256 coord, Crawl.ChamberSeed memory chamberSeed, bool generateMaps) external view returns (Crawl.ChamberData memory); function getChamberMetadata(uint8 chapterNumber, uint256 coord, Crawl.ChamberSeed memory chamberSeed) external view returns (string memory); function getMapMetadata(uint8 chapterNumber, uint256 coord, Crawl.ChamberSeed memory chamberSeed) external view returns (string memory); function getTokenMetadata(uint8 chapterNumber, uint256 coord, Crawl.ChamberSeed memory chamberSeed) external view returns (string memory); }
// SPDX-License-Identifier: MIT // // ██████████ // █ █ // █ █ // █ █ // █ █ // █ ░░░░ █ // █ ▓▓▓▓▓▓ █ // █ ████████ █ // // https://endlesscrawler.io // @EndlessCrawler // /// @title Endless Crawler Chamber Generator Interface (Custom data) /// @author Studio Avante // pragma solidity ^0.8.16; import { IERC165 } from '@openzeppelin/contracts/utils/introspection/IERC165.sol'; import { Crawl } from './Crawl.sol'; interface ICrawlerGenerator is IERC165 { function generateCustomChamberData(Crawl.ChamberData memory chamber) external view returns (Crawl.CustomData[] memory); }
// SPDX-License-Identifier: MIT // // ██████████ // █ █ // █ █ // █ █ // █ █ // █ ░░░░ █ // █ ▓▓▓▓▓▓ █ // █ ████████ █ // // https://endlesscrawler.io // @EndlessCrawler // /// @title Endless Crawler Static Chamber Generator Interface (static data) /// @author Studio Avante // pragma solidity ^0.8.16; import { ICrawlerGenerator } from './ICrawlerGenerator.sol'; import { ICrawlerToken } from './ICrawlerToken.sol'; import { Crawl } from './Crawl.sol'; interface ICrawlerChamberGenerator { function generateTerrainType(uint256 seed, Crawl.Terrain fromTerrain) external view returns (Crawl.Terrain); function generateHoard(uint256 seed) external view returns (Crawl.Hoard memory); function generateChamberData(uint256 coord, Crawl.ChamberSeed memory chamberSeed, bool generateMaps, ICrawlerToken tokenContract, ICrawlerGenerator customGenerator) external view returns (Crawl.ChamberData memory); }
// SPDX-License-Identifier: MIT // // ██████████ // █ █ // █ █ // █ █ // █ █ // █ ░░░░ █ // █ ▓▓▓▓▓▓ █ // █ ████████ █ // // https://endlesscrawler.io // @EndlessCrawler // /// @title Endless Crawler Game Definitions and Library /// @author Studio Avante /// @notice Contains common definitions and functions // pragma solidity ^0.8.16; library Crawl { //----------------------------------- // ChamberSeed, per token static data // generated on mint, stored on-chain // struct ChamberSeed { uint256 tokenId; uint256 seed; uint232 yonder; uint8 chapter; Crawl.Terrain terrain; Crawl.Dir entryDir; } //------------------------------------ // ChamberData, per token dynamic data // generated on demand // struct ChamberData { // from ChamberSeed (static) uint256 coord; uint256 tokenId; uint256 seed; uint232 yonder; uint8 chapter; // Chapter minted Crawl.Terrain terrain; Crawl.Dir entryDir; // generated on demand (deterministic) Crawl.Hoard hoard; uint8 gemPos; // gem bitmap position // dynamic until all doors are unlocked uint8[4] doors; // bitmap position in NEWS order uint8[4] locks; // lock status in NEWS order // optional uint256 bitmap; // bit map, 0 is void/walls, 1 is path bytes tilemap; // tile map // custom data CustomData[] customData; } struct Hoard { Crawl.Gem gemType; uint16 coins; // coins value uint16 worth; // gem + coins value } enum CustomDataType { Custom0, Custom1, Custom2, Custom3, Custom4, Custom5, Custom6, Custom7, Custom8, Custom9, Tile, Palette, Background, Foreground, CharSet, Music } struct CustomData { CustomDataType dataType; bytes data; } //----------------------- // Terrain types // // 2 Water | 3 Air // --------|-------- // 1 Earth | 4 Fire // enum Terrain { Empty, // 0 Earth, // 1 Water, // 2 Air, // 3 Fire // 4 } /// @dev Returns the opposite of a Terrain // Opposite terrains cannot access to each other // Earth <> Air // Water <> Fire function getOppositeTerrain(Crawl.Terrain terrain) internal pure returns (Crawl.Terrain) { uint256 t = uint256(terrain); return t >= 3 ? Crawl.Terrain(t-2) : t >= 1 ? Crawl.Terrain(t+2) : Crawl.Terrain.Empty; } //----------------------- // Gem types // enum Gem { Silver, // 0 Gold, // 1 Sapphire, // 2 Emerald, // 3 Ruby, // 4 Diamond, // 5 Ethernite, // 6 Kao, // 7 Coin // 8 (not a gem!) } /// @dev Returns the Worth value of a Gem function getGemValue(Crawl.Gem gem) internal pure returns (uint16) { if (gem == Crawl.Gem.Silver) return 50; if (gem == Crawl.Gem.Gold) return 100; if (gem == Crawl.Gem.Sapphire) return 150; if (gem == Crawl.Gem.Emerald) return 200; if (gem == Crawl.Gem.Ruby) return 300; if (gem == Crawl.Gem.Diamond) return 500; if (gem == Crawl.Gem.Ethernite) return 800; return 1001; // Crawl.Gem.Kao } /// @dev Calculates a Chamber Worth value function calcWorth(Crawl.Gem gem, uint16 coins) internal pure returns (uint16) { return getGemValue(gem) + coins; } //-------------------------- // Directions, in NEWS order // enum Dir { North, // 0 East, // 1 West, // 2 South // 3 } uint256 internal constant mask_South = uint256(type(uint64).max); uint256 internal constant mask_West = (mask_South << 64); uint256 internal constant mask_East = (mask_South << 128); uint256 internal constant mask_North = (mask_South << 192); /// @dev Flips a direction /// North <> South /// East <> West function flipDir(Crawl.Dir dir) internal pure returns (Crawl.Dir) { return Crawl.Dir(3 - uint256(dir)); } /// @dev Flips a door possition at a direction to connect to neighboring chamber function flipDoorPosition(uint8 doorPos, Crawl.Dir dir) internal pure returns (uint8 result) { if (dir == Crawl.Dir.North) return doorPos > 0 ? doorPos + (15 * 16) : 0; if (dir == Crawl.Dir.South) return doorPos > 0 ? doorPos - (15 * 16) : 0; if (dir == Crawl.Dir.West) return doorPos > 0 ? doorPos + 15 : 0; return doorPos > 0 ? doorPos - 15 : 0; // Crawl.Dir.East } //----------------------- // Coords // // coords have 4 components packed in uint256 // in NEWS direction: // (N)orth, (E)ast, (W)est, (S)outh // o-------o-------o-------o-------o // 0 32 128 192 256 /// @dev Extracts the North component from a Chamber coordinate function getNorth(uint256 coord) internal pure returns (uint256 result) { return (coord >> 192); } /// @dev Extracts the East component from a Chamber coordinate function getEast(uint256 coord) internal pure returns (uint256) { return ((coord & mask_East) >> 128); } /// @dev Extracts the West component from a Chamber coordinate function getWest(uint256 coord) internal pure returns (uint256) { return ((coord & mask_West) >> 64); } /// @dev Extracts the South component from a Chamber coordinate function getSouth(uint256 coord) internal pure returns (uint256) { return coord & mask_South; } /// @dev Builds a Chamber coordinate from its direction components /// a coord is composed of 4 uint64 components packed in a uint256 /// Components are combined in NEWS order: Nort, East, West, South /// @param north North component, zero if South /// @param east East component, zero id West /// @param west West component, zero if East /// @param south South component, zero if North /// @return result Chamber coordinate function makeCoord(uint256 north, uint256 east, uint256 west, uint256 south) internal pure returns (uint256 result) { // North or South need to be positive, but not both if(north > 0) { require(south == 0, 'Crawl.makeCoord(): bad North/South'); result += (north << 192); } else if(south > 0) { result += south; } else { revert('Crawl.makeCoord(): need North or South'); } // West or East need to be positive, but not both if(east > 0) { require(west == 0, 'Crawl.makeCoord(): bad West/East'); result += (east << 128); } else if(west > 0) { result += (west << 64); } else { revert('Crawl.makeCoord(): need West or East'); } } /// @dev Offsets a Chamber coordinate in one direction /// @param coord Chamber coordinate /// @param dir Direction to offset /// @return coord The new coordinate. If reached limits, return same coord // TODO: Use assembly? function offsetCoord(uint256 coord, Crawl.Dir dir) internal pure returns (uint256) { if(dir == Crawl.Dir.North) { if(coord & mask_South > 1) return coord - 1; // --South if(coord & mask_North != mask_North) return (coord & ~mask_South) + (1 << 192); // ++North } else if(dir == Crawl.Dir.East) { if(coord & mask_West > (1 << 64)) return coord - (1 << 64); // --West if(coord & mask_East != mask_East) return (coord & ~mask_West) + (1 << 128); // ++East } else if(dir == Crawl.Dir.West) { if(coord & mask_East > (1 << 128)) return coord - (1 << 128); // --East if(coord & mask_West != mask_West) return (coord & ~mask_East) + (1 << 64); // ++West } else { //if(dir == Crawl.Dir.South) { if(coord & mask_North > (1 << 192)) return coord - (1 << 192); // --North if(coord & mask_South != mask_South) return (coord & ~mask_North) + 1; // ++South } return coord; } //----------------------- // String Builders // /// @dev Returns a token description for tokenURI() function tokenName(string memory tokenId) public pure returns (string memory) { return string.concat('Chamber #', tokenId); } /// @dev Short string representation of a Chamebr coordinate and Yonder function coordsToString(uint256 coord, uint256 yonder, string memory separator) public pure returns (string memory) { return string.concat( ((coord & Crawl.mask_North) > 0 ? string.concat('N', toString((coord & Crawl.mask_North)>>192)) : string.concat('S', toString(coord & Crawl.mask_South))), ((coord & Crawl.mask_East) > 0 ? string.concat(separator, 'E', toString((coord & Crawl.mask_East)>>128)) : string.concat(separator, 'W', toString((coord & Crawl.mask_West)>>64))), (yonder > 0 ? string.concat(separator, 'Y', toString(yonder)) : '') ); } /// @dev Renders IERC721Metadata attributes for tokenURI() /// Reference: https://docs.opensea.io/docs/metadata-standards function renderAttributesMetadata(string[] memory labels, string[] memory values) public pure returns (string memory result) { for(uint256 i = 0 ; i < labels.length ; ++i) { result = string.concat(result, '{' '"trait_type":"', labels[i], '",' '"value":"', values[i], '"' '}', (i < (labels.length - 1) ? ',' : '') ); } } /// @dev Returns a Chamber metadata, without maps /// @param chamber The Chamber, no maps required /// @return metadata Metadata, as plain json string function renderChamberMetadata(Crawl.ChamberData memory chamber, string memory additionalMetadata) internal pure returns (string memory) { return string.concat( '{' '"tokenId":"', toString(chamber.tokenId), '",' '"name":"', tokenName(toString(chamber.tokenId)), '",' '"chapter":"', toString(chamber.chapter), '",' '"terrain":"', toString(uint256(chamber.terrain)), '",' '"gem":"', toString(uint256(chamber.hoard.gemType)), '",' '"coins":"', toString(chamber.hoard.coins), '",' '"worth":"', toString(chamber.hoard.worth), '",' '"coord":"', toString(chamber.coord), '",' '"yonder":"', toString(chamber.yonder), '",', _renderCompassMetadata(chamber.coord), _renderLocksMetadata(chamber.locks), additionalMetadata, '}' ); } function _renderCompassMetadata(uint256 coord) private pure returns (string memory) { return string.concat( '"compass":{', ((coord & Crawl.mask_North) > 0 ? string.concat('"north":"', toString((coord & Crawl.mask_North)>>192)) : string.concat('"south":"', toString(coord & Crawl.mask_South))), ((coord & Crawl.mask_East) > 0 ? string.concat('","east":"', toString((coord & Crawl.mask_East)>>128)) : string.concat('","west":"', toString((coord & Crawl.mask_West)>>64))), '"},' ); } function _renderLocksMetadata(uint8[4] memory locks) private pure returns (string memory) { return string.concat( '"locks":[', (locks[0] == 0 ? 'false,' : 'true,'), (locks[1] == 0 ? 'false,' : 'true,'), (locks[2] == 0 ? 'false,' : 'true,'), (locks[3] == 0 ? 'false' : 'true'), '],' ); } //----------------------- // Utils // /// @dev converts uint8 tile position to a bitmap position mask function tilePosToBitmap(uint8 tilePos) internal pure returns (uint256) { return (1 << (255 - tilePos)); } /// @dev overSeed has ~50% more bits function overSeed(uint256 seed_) internal pure returns (uint256) { return seed_ | uint256(keccak256(abi.encodePacked(seed_))); } /// @dev underSeed has ~50% less bits function underSeed(uint256 seed_) internal pure returns (uint256) { return seed_ & uint256(keccak256(abi.encodePacked(seed_))); } /// @dev maps seed value modulus to range function mapSeed(uint256 seed_, uint256 min_, uint256 maxExcl_) internal pure returns (uint256) { return min_ + (seed_ % (maxExcl_ - min_)); } /// @dev maps seed value modulus to bitmap position (takes 8 bits) /// the position lands in a 12x12 space at the center of the 16x16 map function mapSeedToBitmapPosition(uint256 seed_) internal pure returns (uint8) { uint8 i = uint8(seed_ % 144); return ((i / 12) + 2) * 16 + (i % 12) + 2; } /// @dev min function function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /// @dev max function function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } //----------------------------- // OpenZeppelin Strings library // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.8/contracts/utils/Strings.sol // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.8/contracts/utils/math/Math.sol // bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /// @dev Return the log in base 10, rounded down, of a positive value. function log10(uint256 value) private pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /// @dev Return the log in base 256, rounded down, of a positive value. function log256(uint256 value) private pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /// @dev Converts a `uint256` to its ASCII `string` decimal representation. function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /// @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. /// defined as public to be excluded from the contract ABI and avoid Stack Too Deep error function toHexString(uint256 value) public pure returns (string memory) { unchecked { return toHexString(value, log256(value) + 1); } } /// @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. /// defined as public to be excluded from the contract ABI and avoid Stack Too Deep error function toHexString(uint256 value, uint256 length) public pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /// @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. function toHexString(address addr) public pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /// @dev Converts a single `bytes1` to its ASCII `string` hexadecimal function toHexString(bytes1 value) public pure returns (string memory) { bytes memory buffer = new bytes(2); buffer[0] = _SYMBOLS[uint8(value>>4) & 0xf]; buffer[1] = _SYMBOLS[uint8(value) & 0xf]; return string(buffer); } /// @dev Converts a `bytes` to its ASCII `string` hexadecimal, without '0x' prefix function toHexString(bytes memory value, uint256 start, uint256 length) public pure returns (string memory) { require(start < value.length, "Strings: hex start overflow"); require(start + length <= value.length, "Strings: hex length overflow"); bytes memory buffer = new bytes(2 * length); for (uint256 i = 0; i < length; i++) { buffer[i*2+0] = _SYMBOLS[uint8(value[start+i]>>4) & 0xf]; buffer[i*2+1] = _SYMBOLS[uint8(value[start+i]) & 0xf]; } return string(buffer); } /// @dev Converts a `bytes` to its ASCII `string` hexadecimal, without '0x' prefix function toHexString(bytes memory value) public pure returns (string memory) { return toHexString(value, 0, value.length); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// 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); }
// 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 (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// 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 (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-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 (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.6.0) (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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (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`. * * 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; /** * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); 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) { _requireMinted(tokenId); 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 overridden 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 token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); 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: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 _ownerOf(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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @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, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {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 an {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 Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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 { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256, /* firstTokenId */ uint256 batchSize ) internal virtual { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions 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); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": { "/contracts/extras/ECDSA.sol": { "ECDSA": "0xaE3A163a9Da6D126074F132016d72d513F5b9D08" } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"index_","type":"address"},{"internalType":"address","name":"player_","type":"address"},{"internalType":"address","name":"signer_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"GlobalIndexOutOfBounds","type":"error"},{"inputs":[],"name":"InvalidDoor","type":"error"},{"inputs":[],"name":"InvalidFromChamber","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidTokenId","type":"error"},{"inputs":[],"name":"InvalidValue","type":"error"},{"inputs":[],"name":"MintingIsPaused","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"coord","type":"uint256"}],"name":"Minted","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":"bool","name":"paused","type":"bool"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"calculateMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"eth","type":"uint256"}],"name":"checkout","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"chapterNumber","type":"uint8"},{"internalType":"uint256","name":"coord","type":"uint256"},{"internalType":"bool","name":"generateMaps","type":"bool"}],"name":"coordToChamberData","outputs":[{"components":[{"internalType":"uint256","name":"coord","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"uint232","name":"yonder","type":"uint232"},{"internalType":"uint8","name":"chapter","type":"uint8"},{"internalType":"enum Crawl.Terrain","name":"terrain","type":"uint8"},{"internalType":"enum Crawl.Dir","name":"entryDir","type":"uint8"},{"components":[{"internalType":"enum Crawl.Gem","name":"gemType","type":"uint8"},{"internalType":"uint16","name":"coins","type":"uint16"},{"internalType":"uint16","name":"worth","type":"uint16"}],"internalType":"struct Crawl.Hoard","name":"hoard","type":"tuple"},{"internalType":"uint8","name":"gemPos","type":"uint8"},{"internalType":"uint8[4]","name":"doors","type":"uint8[4]"},{"internalType":"uint8[4]","name":"locks","type":"uint8[4]"},{"internalType":"uint256","name":"bitmap","type":"uint256"},{"internalType":"bytes","name":"tilemap","type":"bytes"},{"components":[{"internalType":"enum Crawl.CustomDataType","name":"dataType","type":"uint8"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Crawl.CustomData[]","name":"customData","type":"tuple[]"}],"internalType":"struct Crawl.ChamberData","name":"result","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"coord","type":"uint256"}],"name":"coordToSeed","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"uint232","name":"yonder","type":"uint232"},{"internalType":"uint8","name":"chapter","type":"uint8"},{"internalType":"enum Crawl.Terrain","name":"terrain","type":"uint8"},{"internalType":"enum Crawl.Dir","name":"entryDir","type":"uint8"}],"internalType":"struct Crawl.ChamberSeed","name":"","type":"tuple"}],"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":"uint8","name":"chapterNumber","type":"uint8"},{"internalType":"uint256","name":"coord","type":"uint256"}],"name":"getChamberMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getIndexContract","outputs":[{"internalType":"contract ICrawlerIndex","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"chapterNumber","type":"uint8"},{"internalType":"uint256","name":"coord","type":"uint256"}],"name":"getMapMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPlayerContract","outputs":[{"internalType":"contract ICrawlerPlayer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"chapterNumber","type":"uint8"},{"internalType":"uint256","name":"coord","type":"uint256"}],"name":"getTokenMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromCoord","type":"uint256"},{"internalType":"enum Crawl.Dir","name":"dir","type":"uint8"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintDoor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"index_","type":"address"}],"name":"setIndexContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"paused_","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"player_","type":"address"}],"name":"setPlayerContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"priceInPwei_","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer_","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenIdToCoord","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenIdToHoard","outputs":[{"components":[{"internalType":"enum Crawl.Gem","name":"gemType","type":"uint8"},{"internalType":"uint16","name":"coins","type":"uint16"},{"internalType":"uint16","name":"worth","type":"uint16"}],"internalType":"struct Crawl.Hoard","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526001600f60006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b506040516200831b3803806200831b83398181016040528101906200005291906200161b565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600f81526020017f456e646c65737320437261776c657200000000000000000000000000000000008152506040518060400160405280600581526020017f4352574c520000000000000000000000000000000000000000000000000000008152508160009081620000e69190620018f1565b508060019081620000f89190620018f1565b50505060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620002f0578015620001b6576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200017c929190620019e9565b600060405180830381600087803b1580156200019757600080fd5b505af1158015620001ac573d6000803e3d6000fd5b50505050620002ef565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000270576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b815260040162000236929190620019e9565b600060405180830381600087803b1580156200025157600080fd5b505af115801562000266573d6000803e3d6000fd5b50505050620002ee565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002b9919062001a16565b600060405180830381600087803b158015620002d457600080fd5b505af1158015620002e9573d6000803e3d6000fd5b505050505b5b5b505062000312620003066200040b60201b60201c565b6200041360201b60201c565b6200032383620004d960201b60201c565b62000334826200052d60201b60201c565b62000345816200058160201b60201c565b62000357600a620005d560201b60201c565b620003766801000000000000000160018060016200060a60201b60201c565b50620003a778010000000000000000000000000000000100000000000000006001600260036200060a60201b60201c565b50620003d878010000000000000001000000000000000000000000000000006001600360026200060a60201b60201c565b50620004017001000000000000000000000000000000016001600460006200060a60201b60201c565b5050505062002322565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620004e9620008fa60201b60201c565b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6200053d620008fa60201b60201c565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b62000591620008fa60201b60201c565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b620005e5620008fa60201b60201c565b80600d8190555066038d7ea4c680008162000601919062001a62565b600e8190555050565b6000806001600c546200061e919062001ac3565b9050600060014362000631919062001afe565b40826040516020016200064692919062001b65565b6040516020818303038152906040528051906020012060001c90508660106000848152602001908152602001600020819055506040518060c00160405280838152602001828152602001877cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152602001600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638e3b60a06040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000723573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000749919062001bd0565b60ff16815260200186600481111562000767576200076662001c02565b5b815260200185600381111562000782576200078162001c02565b5b81525060116000898152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a8154817cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff160217905550606082015181600201601d6101000a81548160ff021916908360ff160217905550608082015181600201601e6101000a81548160ff0219169083600481111562000854576200085362001c02565b5b021790555060a082015181600201601f6101000a81548160ff0219169083600381111562000887576200088662001c02565b5b0217905550905050620008a133836200098b60201b60201c565b86823373ffffffffffffffffffffffffffffffffffffffff167f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff60405160405180910390a481600c819055508192505050949350505050565b6200090a6200040b60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000930620009b160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000989576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620009809062001c92565b60405180910390fd5b565b620009ad828260405180602001604052806000815250620009db60201b60201c565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b620009ed838362000a4960201b60201c565b62000a02600084848462000c8f60201b60201c565b62000a44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000a3b9062001d2a565b60405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000abb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000ab29062001d9c565b60405180910390fd5b62000acc8162000e3860201b60201c565b1562000b0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000b069062001e0e565b60405180910390fd5b62000b2560008383600162000e8160201b60201c565b62000b368162000e3860201b60201c565b1562000b79576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000b709062001e0e565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a462000c8b60008383600162000f4560201b60201c565b5050565b600062000cbd8473ffffffffffffffffffffffffffffffffffffffff1662000f4b60201b62001e071760201c565b1562000e2b578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0262000cef6200040b60201b60201c565b8786866040518563ffffffff1660e01b815260040162000d13949392919062001eca565b6020604051808303816000875af192505050801562000d5257506040513d601f19601f8201168201806040525081019062000d4f919062001f7b565b60015b62000dda573d806000811462000d85576040519150601f19603f3d011682016040523d82523d6000602084013e62000d8a565b606091505b50600081510362000dd2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000dc99062001d2a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505062000e30565b600190505b949350505050565b60008073ffffffffffffffffffffffffffffffffffffffff1662000e628362000f6e60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b62000e9a8484848462000fab60201b62001e2a1760201c565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636a71cb53858562000eeb866200123660201b60201c565b6040518463ffffffff1660e01b815260040162000f0b9392919062002065565b600060405180830381600087803b15801562000f2657600080fd5b505af115801562000f3b573d6000803e3d6000fd5b5050505050505050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b62000fc4848484846200138260201b620020891760201c565b8373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146200123057600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614620011a757600060016200104786620014af60201b620014801760201c565b62001053919062001afe565b905060006007600085815260200190815260200160002054905081811462001139576000600660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600085815260200190815260200160002060009055600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505b6000620011bf84620014af60201b620014801760201c565b905082600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600085815260200190815260200160002081905550505b50505050565b6200124062001569565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cff270eb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620012ae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620012d49190620020e7565b73ffffffffffffffffffffffffffffffffffffffff16633d3114de6011600060106000878152602001908152602001600020548152602001908152602001600020600101546040518263ffffffff1660e01b815260040162001337919062002119565b606060405180830381865afa15801562001355573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200137b919062002258565b9050919050565b6001811115620014a957600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146200141a5780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825462001412919062001afe565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614620014a85780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254620014a0919062001ac3565b925050819055505b5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362001522576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620015199062002300565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6040518060600160405280600060088111156200158b576200158a62001c02565b5b8152602001600061ffff168152602001600061ffff1681525090565b6000604051905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620015e382620015b6565b9050919050565b620015f581620015d6565b81146200160157600080fd5b50565b6000815190506200161581620015ea565b92915050565b600080600060608486031215620016375762001636620015b1565b5b6000620016478682870162001604565b93505060206200165a8682870162001604565b92505060406200166d8682870162001604565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620016f957607f821691505b6020821081036200170f576200170e620016b1565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620017797fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200173a565b6200178586836200173a565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620017d2620017cc620017c6846200179d565b620017a7565b6200179d565b9050919050565b6000819050919050565b620017ee83620017b1565b62001806620017fd82620017d9565b84845462001747565b825550505050565b600090565b6200181d6200180e565b6200182a818484620017e3565b505050565b5b8181101562001852576200184660008262001813565b60018101905062001830565b5050565b601f821115620018a1576200186b8162001715565b62001876846200172a565b8101602085101562001886578190505b6200189e62001895856200172a565b8301826200182f565b50505b505050565b600082821c905092915050565b6000620018c660001984600802620018a6565b1980831691505092915050565b6000620018e18383620018b3565b9150826002028217905092915050565b620018fc8262001677565b67ffffffffffffffff81111562001918576200191762001682565b5b620019248254620016e0565b6200193182828562001856565b600060209050601f83116001811462001969576000841562001954578287015190505b620019608582620018d3565b865550620019d0565b601f198416620019798662001715565b60005b82811015620019a3578489015182556001820191506020850194506020810190506200197c565b86831015620019c35784890151620019bf601f891682620018b3565b8355505b6001600288020188555050505b505050505050565b620019e381620015d6565b82525050565b600060408201905062001a006000830185620019d8565b62001a0f6020830184620019d8565b9392505050565b600060208201905062001a2d6000830184620019d8565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062001a6f826200179d565b915062001a7c836200179d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562001ab85762001ab762001a33565b5b828202905092915050565b600062001ad0826200179d565b915062001add836200179d565b925082820190508082111562001af85762001af762001a33565b5b92915050565b600062001b0b826200179d565b915062001b18836200179d565b925082820390508181111562001b335762001b3262001a33565b5b92915050565b6000819050919050565b62001b4e8162001b39565b82525050565b62001b5f816200179d565b82525050565b600060408201905062001b7c600083018562001b43565b62001b8b602083018462001b54565b9392505050565b600060ff82169050919050565b62001baa8162001b92565b811462001bb657600080fd5b50565b60008151905062001bca8162001b9f565b92915050565b60006020828403121562001be95762001be8620015b1565b5b600062001bf98482850162001bb9565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600062001c7a60208362001c31565b915062001c878262001c42565b602082019050919050565b6000602082019050818103600083015262001cad8162001c6b565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600062001d1260328362001c31565b915062001d1f8262001cb4565b604082019050919050565b6000602082019050818103600083015262001d458162001d03565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600062001d8460208362001c31565b915062001d918262001d4c565b602082019050919050565b6000602082019050818103600083015262001db78162001d75565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600062001df6601c8362001c31565b915062001e038262001dbe565b602082019050919050565b6000602082019050818103600083015262001e298162001de7565b9050919050565b600081519050919050565b600082825260208201905092915050565b60005b8381101562001e6c57808201518184015260208101905062001e4f565b60008484015250505050565b6000601f19601f8301169050919050565b600062001e968262001e30565b62001ea2818562001e3b565b935062001eb481856020860162001e4c565b62001ebf8162001e78565b840191505092915050565b600060808201905062001ee16000830187620019d8565b62001ef06020830186620019d8565b62001eff604083018562001b54565b818103606083015262001f13818462001e89565b905095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b62001f558162001f1e565b811462001f6157600080fd5b50565b60008151905062001f758162001f4a565b92915050565b60006020828403121562001f945762001f93620015b1565b5b600062001fa48482850162001f64565b91505092915050565b6009811062001fc15762001fc062001c02565b5b50565b600081905062001fd48262001fad565b919050565b600062001fe68262001fc4565b9050919050565b62001ff88162001fd9565b82525050565b600061ffff82169050919050565b620020178162001ffe565b82525050565b60608201600082015162002035600085018262001fed565b5060208201516200204a60208501826200200c565b5060408201516200205f60408501826200200c565b50505050565b600060a0820190506200207c6000830186620019d8565b6200208b6020830185620019d8565b6200209a60408301846200201d565b949350505050565b6000620020af82620015d6565b9050919050565b620020c181620020a2565b8114620020cd57600080fd5b50565b600081519050620020e181620020b6565b92915050565b6000602082840312156200210057620020ff620015b1565b5b60006200211084828501620020d0565b91505092915050565b600060208201905062002130600083018462001b54565b92915050565b600080fd5b620021468262001e78565b810181811067ffffffffffffffff8211171562002168576200216762001682565b5b80604052505050565b60006200217d620015a7565b90506200218b82826200213b565b919050565b600981106200219e57600080fd5b50565b600081519050620021b28162002190565b92915050565b620021c38162001ffe565b8114620021cf57600080fd5b50565b600081519050620021e381620021b8565b92915050565b60006060828403121562002202576200220162002136565b5b6200220e606062002171565b905060006200222084828501620021a1565b60008301525060206200223684828501620021d2565b60208301525060406200224c84828501620021d2565b60408301525092915050565b600060608284031215620022715762002270620015b1565b5b60006200228184828501620021e9565b91505092915050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000620022e860298362001c31565b9150620022f5826200228a565b604082019050919050565b600060208201905081810360008301526200231b81620022d9565b9050919050565b615fe980620023326000396000f3fe60806040526004361061023b5760003560e01c8063715018a61161012e578063b88d4fde116100ab578063dc865ba51161006f578063dc865ba5146108d5578063e5e7fdfa14610912578063e985e9c51461094f578063ed62c7971461098c578063f2fde38b146109c95761023b565b8063b88d4fde146107c9578063bd9a548b146107f2578063c4b2eaac1461081e578063c87b56dd1461085b578063d085e7c1146108985761023b565b806391df6c70116100f257806391df6c70146106f657806395d89b411461071f5780639aadcfd91461074a578063a22cb46514610775578063b187bd261461079e5761023b565b8063715018a614610611578063831e1907146106285780638525a5d9146106655780638da5cb5b146106a257806391b7f5ed146106cd5761023b565b80632f745c59116101bc5780634f6ccce7116101805780634f6ccce714610501578063601bd2a51461053e5780636352211e1461056e5780636c19e783146105ab57806370a08231146105d45761023b565b80632f745c591461041c5780633eaaf86b1461045957806341f434341461048457806342842e0e146104af5780634c9ba852146104d85761023b565b806316c38b3c1161020357806316c38b3c1461033957806318160ddd1461036257806323b872dd1461038d57806324e6df79146103b65780632cd23784146103f35761023b565b806301ffc9a71461024057806306fdde031461027d578063072c6cda146102a8578063081812fc146102d3578063095ea7b314610310575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613ba5565b6109f2565b6040516102749190613bed565b60405180910390f35b34801561028957600080fd5b50610292610a04565b60405161029f9190613c98565b60405180910390f35b3480156102b457600080fd5b506102bd610a96565b6040516102ca9190613d39565b60405180910390f35b3480156102df57600080fd5b506102fa60048036038101906102f59190613d8a565b610ac0565b6040516103079190613dd8565b60405180910390f35b34801561031c57600080fd5b5061033760048036038101906103329190613e1f565b610b06565b005b34801561034557600080fd5b50610360600480360381019061035b9190613e8b565b610b1f565b005b34801561036e57600080fd5b50610377610b82565b6040516103849190613ec7565b60405180910390f35b34801561039957600080fd5b506103b460048036038101906103af9190613ee2565b610b91565b005b3480156103c257600080fd5b506103dd60048036038101906103d89190613f6e565b610be0565b6040516103ea9190613c98565b60405180910390f35b3480156103ff57600080fd5b5061041a60048036038101906104159190613fae565b610ca1565b005b34801561042857600080fd5b50610443600480360381019061043e9190613e1f565b610ced565b6040516104509190613ec7565b60405180910390f35b34801561046557600080fd5b5061046e610d89565b60405161047b9190613ec7565b60405180910390f35b34801561049057600080fd5b50610499610d93565b6040516104a69190613ffc565b60405180910390f35b3480156104bb57600080fd5b506104d660048036038101906104d19190613ee2565b610da5565b005b3480156104e457600080fd5b506104ff60048036038101906104fa9190613d8a565b610df4565b005b34801561050d57600080fd5b5061052860048036038101906105239190613d8a565b610e62565b6040516105359190613ec7565b60405180910390f35b610558600480360381019061055391906140a1565b610eb8565b6040516105659190613ec7565b60405180910390f35b34801561057a57600080fd5b5061059560048036038101906105909190613d8a565b6113ae565b6040516105a29190613dd8565b60405180910390f35b3480156105b757600080fd5b506105d260048036038101906105cd9190613fae565b611434565b005b3480156105e057600080fd5b506105fb60048036038101906105f69190613fae565b611480565b6040516106089190613ec7565b60405180910390f35b34801561061d57600080fd5b50610626611537565b005b34801561063457600080fd5b5061064f600480360381019061064a9190613d8a565b61154b565b60405161065c91906141eb565b60405180910390f35b34801561067157600080fd5b5061068c60048036038101906106879190613f6e565b61168d565b6040516106999190613c98565b60405180910390f35b3480156106ae57600080fd5b506106b761174e565b6040516106c49190613dd8565b60405180910390f35b3480156106d957600080fd5b506106f460048036038101906106ef9190613d8a565b611778565b005b34801561070257600080fd5b5061071d60048036038101906107189190613fae565b6117a3565b005b34801561072b57600080fd5b506107346117ef565b6040516107419190613c98565b60405180910390f35b34801561075657600080fd5b5061075f611881565b60405161076c9190614227565b60405180910390f35b34801561078157600080fd5b5061079c60048036038101906107979190614242565b6118ab565b005b3480156107aa57600080fd5b506107b36118c4565b6040516107c09190613bed565b60405180910390f35b3480156107d557600080fd5b506107f060048036038101906107eb91906143b2565b6118db565b005b3480156107fe57600080fd5b5061080761192c565b604051610815929190614435565b60405180910390f35b34801561082a57600080fd5b506108456004803603810190610840919061445e565b61193d565b6040516108529190614946565b60405180910390f35b34801561086757600080fd5b50610882600480360381019061087d9190613d8a565b611a07565b60405161088f9190613c98565b60405180910390f35b3480156108a457600080fd5b506108bf60048036038101906108ba9190613d8a565b611a6d565b6040516108cc91906149e3565b60405180910390f35b3480156108e157600080fd5b506108fc60048036038101906108f79190613fae565b611bb2565b6040516109099190613ec7565b60405180910390f35b34801561091e57600080fd5b5061093960048036038101906109349190613d8a565b611c12565b6040516109469190613ec7565b60405180910390f35b34801561095b57600080fd5b50610976600480360381019061097191906149fe565b611c2f565b6040516109839190613bed565b60405180910390f35b34801561099857600080fd5b506109b360048036038101906109ae9190613f6e565b611cc3565b6040516109c09190613c98565b60405180910390f35b3480156109d557600080fd5b506109f060048036038101906109eb9190613fae565b611d84565b005b60006109fd826121af565b9050919050565b606060008054610a1390614a6d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3f90614a6d565b8015610a8c5780601f10610a6157610100808354040283529160200191610a8c565b820191906000526020600020905b815481529060010190602001808311610a6f57829003601f168201915b5050505050905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000610acb82612229565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610b1081612274565b610b1a8383612371565b505050565b610b27612488565b80600f60006101000a81548160ff021916908315150217905550600f60009054906101000a900460ff1615157f0e2fb031ee032dc02d8011dc50b816eb450cf856abd8261680dac74f72165bd260405160405180910390a250565b6000610b8c610d89565b905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bcf57610bce33612274565b5b610bda848484612506565b50505050565b6060600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630fe487f38484601160008781526020019081526020016000206040518463ffffffff1660e01b8152600401610c5393929190614c67565b600060405180830381865afa158015610c70573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610c999190614d40565b905092915050565b610ca9612488565b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610cf883611480565b8210610d30576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6000600c54905090565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610de357610de233612274565b5b610dee848484612566565b50505050565b610dfc612488565b3373ffffffffffffffffffffffffffffffffffffffff166108fc610e33670de0b6b3a764000084610e2d9190614db8565b47612586565b9081150290604051600060405180830381858888f19350505050158015610e5e573d6000803e3d6000fd5b5050565b6000610e6c610d89565b8210610ea4576040517f9f6fb6c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600182610eb19190614e12565b9050919050565b6000600f60009054906101000a900460ff1615610f01576040517f37914c0000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006011600087815260200190815260200160002090506000816000015403610f56576040517f79e950aa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610f62878761259f565b90506000601160008381526020019081526020016000206000015414610fb4576040517f5eeca11300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000858590501461116557600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ae3a163a9da6d126074f132016d72d513f5b9d086319045a2573ae3a163a9da6d126074f132016d72d513f5b9d0863918a15cf338660405160200161103f929190614e46565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004016110719190614e88565b602060405180830381865af415801561108e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b29190614ecf565b88886040518463ffffffff1660e01b81526004016110d293929190614f3a565b602060405180830381865af41580156110ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111139190614f81565b73ffffffffffffffffffffffffffffffffffffffff1614611160576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111a8565b61116e33611bb2565b3410156111a7576040517faa7feadc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600082600201601e9054906101000a900460ff16905060006111c98861289c565b90506000601160006111db8c8561259f565b8152602001908152602001600020600201601e9054906101000a900460ff16600481111561120c5761120b614115565b5b83600481111561121f5761121e614115565b5b0361135657600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cff270eb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611291573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b59190614fec565b73ffffffffffffffffffffffffffffffffffffffff166381d405898a60038111156112e3576112e2614115565b5b87600101546112f29190614e12565b856040518363ffffffff1660e01b8152600401611310929190615028565b602060405180830381865afa15801561132d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113519190615076565b611358565b825b905061139f8460018760020160009054906101000a90047cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1661139891906150a3565b83856128d6565b95505050505050949350505050565b6000806113ba83612ba9565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361142b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142290615140565b60405180910390fd5b80915050919050565b61143c612488565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e7906151d2565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61153f612488565b6115496000612be6565b565b611553613996565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cff270eb6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e49190614fec565b73ffffffffffffffffffffffffffffffffffffffff16633d3114de6011600060106000878152602001908152602001600020548152602001908152602001600020600101546040518263ffffffff1660e01b81526004016116459190613ec7565b606060405180830381865afa158015611662573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168691906152b1565b9050919050565b6060600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f1e608f38484601160008781526020019081526020016000206040518463ffffffff1660e01b815260040161170093929190614c67565b600060405180830381865afa15801561171d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906117469190614d40565b905092915050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611780612488565b80600d8190555066038d7ea4c680008161179a9190614db8565b600e8190555050565b6117ab612488565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060600180546117fe90614a6d565b80601f016020809104026020016040519081016040528092919081815260200182805461182a90614a6d565b80156118775780601f1061184c57610100808354040283529160200191611877565b820191906000526020600020905b81548152906001019060200180831161185a57829003601f168201915b5050505050905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b816118b581612274565b6118bf8383612cac565b505050565b6000600f60009054906101000a900460ff16905090565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146119195761191833612274565b5b61192585858585612cc2565b5050505050565b600080600e54600d54915091509091565b6119456139d1565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634eb18bb8858560116000888152602001908152602001600020866040518563ffffffff1660e01b81526004016119b894939291906152de565b600060405180830381865afa1580156119d5573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906119fe91906157a9565b90509392505050565b6060611a1282612d24565b611a48576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a6660006010600085815260200190815260200160002054611cc3565b9050919050565b611a75613a9b565b601160008381526020019081526020016000206040518060c001604052908160008201548152602001600182015481526020016002820160009054906101000a90047cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff167cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff167cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16815260200160028201601d9054906101000a900460ff1660ff1660ff16815260200160028201601e9054906101000a900460ff166004811115611b5a57611b59614115565b5b6004811115611b6c57611b6b614115565b5b815260200160028201601f9054906101000a900460ff166003811115611b9557611b94614115565b5b6003811115611ba757611ba6614115565b5b815250509050919050565b600080611bbe83611480565b1480611bfc5750611bcd61174e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b611c0857600e54611c0b565b60005b9050919050565b600060106000838152602001908152602001600020549050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ac2619228484601160008781526020019081526020016000206040518463ffffffff1660e01b8152600401611d3693929190614c67565b600060405180830381865afa158015611d53573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611d7c9190614d40565b905092915050565b611d8c612488565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611dfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df290615864565b60405180910390fd5b611e0481612be6565b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b611e3684848484612089565b8373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461208357600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146120075760006001611eaa86611480565b611eb49190615884565b9050600060076000858152602001908152602001600020549050818114611f99576000600660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600085815260200190815260200160002060009055600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505b600061201284611480565b905082600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600085815260200190815260200160002081905550505b50505050565b60018111156121a957600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461211d5780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121159190615884565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146121a85780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121a09190614e12565b925050819055505b5b50505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612222575061222182612d65565b5b9050919050565b61223281612d24565b612271576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226890615140565b60405180910390fd5b50565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561236e576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016122eb9291906158b8565b602060405180830381865afa158015612308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061232c91906158f6565b61236d57806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016123649190613dd8565b60405180910390fd5b5b50565b600061237c826113ae565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036123ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e390615995565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661240b612e47565b73ffffffffffffffffffffffffffffffffffffffff16148061243a575061243981612434612e47565b611c2f565b5b612479576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247090615a27565b60405180910390fd5b6124838383612e4f565b505050565b612490612e47565b73ffffffffffffffffffffffffffffffffffffffff166124ae61174e565b73ffffffffffffffffffffffffffffffffffffffff1614612504576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124fb90615a93565b60405180910390fd5b565b612517612511612e47565b82612f08565b612556576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254d90615b25565b60405180910390fd5b612561838383612f9d565b505050565b612581838383604051806020016040528060008152506118db565b505050565b60008183106125955781612597565b825b905092915050565b60008060038111156125b4576125b3614115565b5b8260038111156125c7576125c6614115565b5b0361265857600167ffffffffffffffff8016841611156125f5576001836125ee9190615884565b9050612896565b60c067ffffffffffffffff8016901b60c067ffffffffffffffff8016901b84161461265357780100000000000000000000000000000000000000000000000067ffffffffffffffff801619841661264c9190614e12565b9050612896565b612892565b6001600381111561266c5761266b614115565b5b82600381111561267f5761267e614115565b5b036127205768010000000000000000604067ffffffffffffffff8016901b841611156126c15768010000000000000000836126ba9190615884565b9050612896565b608067ffffffffffffffff8016901b608067ffffffffffffffff8016901b84161461271b57700100000000000000000000000000000000604067ffffffffffffffff8016901b1984166127149190614e12565b9050612896565b612891565b6002600381111561273457612733614115565b5b82600381111561274757612746614115565b5b036127f057700100000000000000000000000000000000608067ffffffffffffffff8016901b8416111561279957700100000000000000000000000000000000836127929190615884565b9050612896565b604067ffffffffffffffff8016901b604067ffffffffffffffff8016901b8416146127eb5768010000000000000000608067ffffffffffffffff8016901b1984166127e49190614e12565b9050612896565b612890565b780100000000000000000000000000000000000000000000000060c067ffffffffffffffff8016901b8416111561284d577801000000000000000000000000000000000000000000000000836128469190615884565b9050612896565b67ffffffffffffffff801667ffffffffffffffff801684161461288f57600160c067ffffffffffffffff8016901b1984166128889190614e12565b9050612896565b5b5b5b8290505b92915050565b60008160038111156128b1576128b0614115565b5b60036128bd9190615884565b60038111156128cf576128ce614115565b5b9050919050565b6000806001600c546128e89190614e12565b905060006001436128f99190615884565b408260405160200161290c929190615b54565b6040516020818303038152906040528051906020012060001c90508660106000848152602001908152602001600020819055506040518060c00160405280838152602001828152602001877cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152602001600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638e3b60a06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129e8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0c9190615b7d565b60ff168152602001866004811115612a2757612a26614115565b5b8152602001856003811115612a3f57612a3e614115565b5b81525060116000898152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a8154817cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff160217905550606082015181600201601d6101000a81548160ff021916908360ff160217905550608082015181600201601e6101000a81548160ff02191690836004811115612b0e57612b0d614115565b5b021790555060a082015181600201601f6101000a81548160ff02191690836003811115612b3e57612b3d614115565b5b0217905550905050612b503383613296565b86823373ffffffffffffffffffffffffffffffffffffffff167f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff60405160405180910390a481600c819055508192505050949350505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612cbe612cb7612e47565b83836132b4565b5050565b612cd3612ccd612e47565b83612f08565b612d12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d0990615b25565b60405180910390fd5b612d1e84848484613420565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff16612d4683612ba9565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e3057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e405750612e3f8261347c565b5b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612ec2836113ae565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612f14836113ae565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f565750612f558185611c2f565b5b80612f9457508373ffffffffffffffffffffffffffffffffffffffff16612f7c84610ac0565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612fbd826113ae565b73ffffffffffffffffffffffffffffffffffffffff1614613013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300a90615c1c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613082576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307990615cae565b60405180910390fd5b61308f83838360016134e6565b8273ffffffffffffffffffffffffffffffffffffffff166130af826113ae565b73ffffffffffffffffffffffffffffffffffffffff1614613105576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130fc90615c1c565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46132918383836001613591565b505050565b6132b0828260405180602001604052806000815250613597565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613322576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161331990615d1a565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516134139190613bed565b60405180910390a3505050565b61342b848484612f9d565b613437848484846135f2565b613476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161346d90615dac565b60405180910390fd5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6134f284848484611e2a565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636a71cb53858561353b8661154b565b6040518463ffffffff1660e01b815260040161355993929190615dcc565b600060405180830381600087803b15801561357357600080fd5b505af1158015613587573d6000803e3d6000fd5b5050505050505050565b50505050565b6135a18383613779565b6135ae60008484846135f2565b6135ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135e490615dac565b60405180910390fd5b505050565b60006136138473ffffffffffffffffffffffffffffffffffffffff16611e07565b1561376c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261363c612e47565b8786866040518563ffffffff1660e01b815260040161365e9493929190615e4d565b6020604051808303816000875af192505050801561369a57506040513d601f19601f820116820180604052508101906136979190615eae565b60015b61371c573d80600081146136ca576040519150601f19603f3d011682016040523d82523d6000602084013e6136cf565b606091505b506000815103613714576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161370b90615dac565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613771565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036137e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137df90615f27565b60405180910390fd5b6137f181612d24565b15613831576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161382890615f93565b60405180910390fd5b61383f6000838360016134e6565b61384881612d24565b15613888576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161387f90615f93565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613992600083836001613591565b5050565b6040518060600160405280600060088111156139b5576139b4614115565b5b8152602001600061ffff168152602001600061ffff1681525090565b604051806101c0016040528060008152602001600081526020016000815260200160007cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152602001600060ff16815260200160006004811115613a3657613a35614115565b5b815260200160006003811115613a4f57613a4e614115565b5b8152602001613a5c613996565b8152602001600060ff168152602001613a73613b17565b8152602001613a80613b17565b81526020016000815260200160608152602001606081525090565b6040518060c00160405280600081526020016000815260200160007cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152602001600060ff16815260200160006004811115613af857613af7614115565b5b815260200160006003811115613b1157613b10614115565b5b81525090565b6040518060800160405280600490602082028036833780820191505090505090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613b8281613b4d565b8114613b8d57600080fd5b50565b600081359050613b9f81613b79565b92915050565b600060208284031215613bbb57613bba613b43565b5b6000613bc984828501613b90565b91505092915050565b60008115159050919050565b613be781613bd2565b82525050565b6000602082019050613c026000830184613bde565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613c42578082015181840152602081019050613c27565b60008484015250505050565b6000601f19601f8301169050919050565b6000613c6a82613c08565b613c748185613c13565b9350613c84818560208601613c24565b613c8d81613c4e565b840191505092915050565b60006020820190508181036000830152613cb28184613c5f565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000613cff613cfa613cf584613cba565b613cda565b613cba565b9050919050565b6000613d1182613ce4565b9050919050565b6000613d2382613d06565b9050919050565b613d3381613d18565b82525050565b6000602082019050613d4e6000830184613d2a565b92915050565b6000819050919050565b613d6781613d54565b8114613d7257600080fd5b50565b600081359050613d8481613d5e565b92915050565b600060208284031215613da057613d9f613b43565b5b6000613dae84828501613d75565b91505092915050565b6000613dc282613cba565b9050919050565b613dd281613db7565b82525050565b6000602082019050613ded6000830184613dc9565b92915050565b613dfc81613db7565b8114613e0757600080fd5b50565b600081359050613e1981613df3565b92915050565b60008060408385031215613e3657613e35613b43565b5b6000613e4485828601613e0a565b9250506020613e5585828601613d75565b9150509250929050565b613e6881613bd2565b8114613e7357600080fd5b50565b600081359050613e8581613e5f565b92915050565b600060208284031215613ea157613ea0613b43565b5b6000613eaf84828501613e76565b91505092915050565b613ec181613d54565b82525050565b6000602082019050613edc6000830184613eb8565b92915050565b600080600060608486031215613efb57613efa613b43565b5b6000613f0986828701613e0a565b9350506020613f1a86828701613e0a565b9250506040613f2b86828701613d75565b9150509250925092565b600060ff82169050919050565b613f4b81613f35565b8114613f5657600080fd5b50565b600081359050613f6881613f42565b92915050565b60008060408385031215613f8557613f84613b43565b5b6000613f9385828601613f59565b9250506020613fa485828601613d75565b9150509250929050565b600060208284031215613fc457613fc3613b43565b5b6000613fd284828501613e0a565b91505092915050565b6000613fe682613d06565b9050919050565b613ff681613fdb565b82525050565b60006020820190506140116000830184613fed565b92915050565b6004811061402457600080fd5b50565b60008135905061403681614017565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126140615761406061403c565b5b8235905067ffffffffffffffff81111561407e5761407d614041565b5b60208301915083600182028301111561409a57614099614046565b5b9250929050565b600080600080606085870312156140bb576140ba613b43565b5b60006140c987828801613d75565b94505060206140da87828801614027565b935050604085013567ffffffffffffffff8111156140fb576140fa613b48565b5b6141078782880161404b565b925092505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6009811061415557614154614115565b5b50565b600081905061416682614144565b919050565b600061417682614158565b9050919050565b6141868161416b565b82525050565b600061ffff82169050919050565b6141a38161418c565b82525050565b6060820160008201516141bf600085018261417d565b5060208201516141d2602085018261419a565b5060408201516141e5604085018261419a565b50505050565b600060608201905061420060008301846141a9565b92915050565b600061421182613d06565b9050919050565b61422181614206565b82525050565b600060208201905061423c6000830184614218565b92915050565b6000806040838503121561425957614258613b43565b5b600061426785828601613e0a565b925050602061427885828601613e76565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6142bf82613c4e565b810181811067ffffffffffffffff821117156142de576142dd614287565b5b80604052505050565b60006142f1613b39565b90506142fd82826142b6565b919050565b600067ffffffffffffffff82111561431d5761431c614287565b5b61432682613c4e565b9050602081019050919050565b82818337600083830152505050565b600061435561435084614302565b6142e7565b90508281526020810184848401111561437157614370614282565b5b61437c848285614333565b509392505050565b600082601f8301126143995761439861403c565b5b81356143a9848260208601614342565b91505092915050565b600080600080608085870312156143cc576143cb613b43565b5b60006143da87828801613e0a565b94505060206143eb87828801613e0a565b93505060406143fc87828801613d75565b925050606085013567ffffffffffffffff81111561441d5761441c613b48565b5b61442987828801614384565b91505092959194509250565b600060408201905061444a6000830185613eb8565b6144576020830184613eb8565b9392505050565b60008060006060848603121561447757614476613b43565b5b600061448586828701613f59565b935050602061449686828701613d75565b92505060406144a786828701613e76565b9150509250925092565b6144ba81613d54565b82525050565b60007cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82169050919050565b6144f2816144c0565b82525050565b61450181613f35565b82525050565b6005811061451857614517614115565b5b50565b600081905061452982614507565b919050565b60006145398261451b565b9050919050565b6145498161452e565b82525050565b600481106145605761455f614115565b5b50565b60008190506145718261454f565b919050565b600061458182614563565b9050919050565b61459181614576565b82525050565b6060820160008201516145ad600085018261417d565b5060208201516145c0602085018261419a565b5060408201516145d3604085018261419a565b50505050565b600060049050919050565b600081905092915050565b6000819050919050565b600061460583836144f8565b60208301905092915050565b6000602082019050919050565b614627816145d9565b61463181846145e4565b925061463c826145ef565b8060005b8381101561466d57815161465487826145f9565b965061465f83614611565b925050600181019050614640565b505050505050565b600081519050919050565b600082825260208201905092915050565b600061469c82614675565b6146a68185614680565b93506146b6818560208601613c24565b6146bf81613c4e565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6010811061470757614706614115565b5b50565b6000819050614718826146f6565b919050565b60006147288261470a565b9050919050565b6147388161471d565b82525050565b6000604083016000830151614756600086018261472f565b506020830151848203602086015261476e8282614691565b9150508091505092915050565b6000614787838361473e565b905092915050565b6000602082019050919050565b60006147a7826146ca565b6147b181856146d5565b9350836020820285016147c3856146e6565b8060005b858110156147ff57848403895281516147e0858261477b565b94506147eb8361478f565b925060208a019950506001810190506147c7565b50829750879550505050505092915050565b60006102c08301600083015161482a60008601826144b1565b50602083015161483d60208601826144b1565b50604083015161485060408601826144b1565b50606083015161486360608601826144e9565b50608083015161487660808601826144f8565b5060a083015161488960a0860182614540565b5060c083015161489c60c0860182614588565b5060e08301516148af60e0860182614597565b506101008301516148c46101408601826144f8565b506101208301516148d961016086018261461e565b506101408301516148ee6101e086018261461e565b506101608301516149036102608601826144b1565b5061018083015184820361028086015261491d8282614691565b9150506101a08301518482036102a0860152614939828261479c565b9150508091505092915050565b600060208201905081810360008301526149608184614811565b905092915050565b60c08201600082015161497e60008501826144b1565b50602082015161499160208501826144b1565b5060408201516149a460408501826144e9565b5060608201516149b760608501826144f8565b5060808201516149ca6080850182614540565b5060a08201516149dd60a0850182614588565b50505050565b600060c0820190506149f86000830184614968565b92915050565b60008060408385031215614a1557614a14613b43565b5b6000614a2385828601613e0a565b9250506020614a3485828601613e0a565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a8557607f821691505b602082108103614a9857614a97614a3e565b5b50919050565b614aa781613f35565b82525050565b60008160001c9050919050565b6000819050919050565b6000614ad7614ad283614aad565b614aba565b9050919050565b60007cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614b1a614b1583614aad565b614ade565b9050919050565b60008160e81c9050919050565b600060ff82169050919050565b6000614b4e614b4983614b21565b614b2e565b9050919050565b60008160f01c9050919050565b600060ff82169050919050565b6000614b82614b7d83614b55565b614b62565b9050919050565b60008160f81c9050919050565b600060ff82169050919050565b6000614bb6614bb183614b89565b614b96565b9050919050565b60c082016000808301549050614bd281614ac4565b614bdf60008601826144b1565b5060018301549050614bf081614ac4565b614bfd60208601826144b1565b5060028301549050614c0e81614b07565b614c1b60408601826144e9565b50614c2581614b3b565b614c3260608601826144f8565b50614c3c81614b6f565b614c496080860182614540565b50614c5381614ba3565b614c6060a0860182614588565b5050505050565b600061010082019050614c7d6000830186614a9e565b614c8a6020830185613eb8565b614c976040830184614bbd565b949350505050565b600067ffffffffffffffff821115614cba57614cb9614287565b5b614cc382613c4e565b9050602081019050919050565b6000614ce3614cde84614c9f565b6142e7565b905082815260208101848484011115614cff57614cfe614282565b5b614d0a848285613c24565b509392505050565b600082601f830112614d2757614d2661403c565b5b8151614d37848260208601614cd0565b91505092915050565b600060208284031215614d5657614d55613b43565b5b600082015167ffffffffffffffff811115614d7457614d73613b48565b5b614d8084828501614d12565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614dc382613d54565b9150614dce83613d54565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614e0757614e06614d89565b5b828202905092915050565b6000614e1d82613d54565b9150614e2883613d54565b9250828201905080821115614e4057614e3f614d89565b5b92915050565b6000604082019050614e5b6000830185613dc9565b614e686020830184613eb8565b9392505050565b6000819050919050565b614e8281614e6f565b82525050565b6000602082019050614e9d6000830184614e79565b92915050565b614eac81614e6f565b8114614eb757600080fd5b50565b600081519050614ec981614ea3565b92915050565b600060208284031215614ee557614ee4613b43565b5b6000614ef384828501614eba565b91505092915050565b600082825260208201905092915050565b6000614f198385614efc565b9350614f26838584614333565b614f2f83613c4e565b840190509392505050565b6000604082019050614f4f6000830186614e79565b8181036020830152614f62818486614f0d565b9050949350505050565b600081519050614f7b81613df3565b92915050565b600060208284031215614f9757614f96613b43565b5b6000614fa584828501614f6c565b91505092915050565b6000614fb982613db7565b9050919050565b614fc981614fae565b8114614fd457600080fd5b50565b600081519050614fe681614fc0565b92915050565b60006020828403121561500257615001613b43565b5b600061501084828501614fd7565b91505092915050565b6150228161452e565b82525050565b600060408201905061503d6000830185613eb8565b61504a6020830184615019565b9392505050565b6005811061505e57600080fd5b50565b60008151905061507081615051565b92915050565b60006020828403121561508c5761508b613b43565b5b600061509a84828501615061565b91505092915050565b60006150ae826144c0565b91506150b9836144c0565b925082820190507cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8111156150ee576150ed614d89565b5b92915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061512a601883613c13565b9150615135826150f4565b602082019050919050565b600060208201905081810360008301526151598161511d565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006151bc602983613c13565b91506151c782615160565b604082019050919050565b600060208201905081810360008301526151eb816151af565b9050919050565b600080fd5b600080fd5b6009811061520957600080fd5b50565b60008151905061521b816151fc565b92915050565b61522a8161418c565b811461523557600080fd5b50565b60008151905061524781615221565b92915050565b600060608284031215615263576152626151f2565b5b61526d60606142e7565b9050600061527d8482850161520c565b600083015250602061529184828501615238565b60208301525060406152a584828501615238565b60408301525092915050565b6000606082840312156152c7576152c6613b43565b5b60006152d58482850161524d565b91505092915050565b6000610120820190506152f46000830187614a9e565b6153016020830186613eb8565b61530e6040830185614bbd565b61531c610100830184613bde565b95945050505050565b60008151905061533481613d5e565b92915050565b615343816144c0565b811461534e57600080fd5b50565b6000815190506153608161533a565b92915050565b60008151905061537581613f42565b92915050565b60008151905061538a81614017565b92915050565b600067ffffffffffffffff8211156153ab576153aa614287565b5b602082029050919050565b60006153c96153c484615390565b6142e7565b905080602084028301858111156153e3576153e2614046565b5b835b8181101561540c57806153f88882615366565b8452602084019350506020810190506153e5565b5050509392505050565b600082601f83011261542b5761542a61403c565b5b60046154388482856153b6565b91505092915050565b600061545461544f84614302565b6142e7565b9050828152602081018484840111156154705761546f614282565b5b61547b848285613c24565b509392505050565b600082601f8301126154985761549761403c565b5b81516154a8848260208601615441565b91505092915050565b600067ffffffffffffffff8211156154cc576154cb614287565b5b602082029050602081019050919050565b601081106154ea57600080fd5b50565b6000815190506154fc816154dd565b92915050565b600060408284031215615518576155176151f2565b5b61552260406142e7565b90506000615532848285016154ed565b600083015250602082015167ffffffffffffffff811115615556576155556151f7565b5b61556284828501615483565b60208301525092915050565b600061558161557c846154b1565b6142e7565b905080838252602082019050602084028301858111156155a4576155a3614046565b5b835b818110156155eb57805167ffffffffffffffff8111156155c9576155c861403c565b5b8086016155d68982615502565b855260208501945050506020810190506155a6565b5050509392505050565b600082601f83011261560a5761560961403c565b5b815161561a84826020860161556e565b91505092915050565b60006102c0828403121561563a576156396151f2565b5b6156456101c06142e7565b9050600061565584828501615325565b600083015250602061566984828501615325565b602083015250604061567d84828501615325565b604083015250606061569184828501615351565b60608301525060806156a584828501615366565b60808301525060a06156b984828501615061565b60a08301525060c06156cd8482850161537b565b60c08301525060e06156e18482850161524d565b60e0830152506101406156f684828501615366565b6101008301525061016061570c84828501615416565b610120830152506101e061572284828501615416565b6101408301525061026061573884828501615325565b6101608301525061028082015167ffffffffffffffff81111561575e5761575d6151f7565b5b61576a84828501615483565b610180830152506102a082015167ffffffffffffffff8111156157905761578f6151f7565b5b61579c848285016155f5565b6101a08301525092915050565b6000602082840312156157bf576157be613b43565b5b600082015167ffffffffffffffff8111156157dd576157dc613b48565b5b6157e984828501615623565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061584e602683613c13565b9150615859826157f2565b604082019050919050565b6000602082019050818103600083015261587d81615841565b9050919050565b600061588f82613d54565b915061589a83613d54565b92508282039050818111156158b2576158b1614d89565b5b92915050565b60006040820190506158cd6000830185613dc9565b6158da6020830184613dc9565b9392505050565b6000815190506158f081613e5f565b92915050565b60006020828403121561590c5761590b613b43565b5b600061591a848285016158e1565b91505092915050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061597f602183613c13565b915061598a82615923565b604082019050919050565b600060208201905081810360008301526159ae81615972565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000615a11603d83613c13565b9150615a1c826159b5565b604082019050919050565b60006020820190508181036000830152615a4081615a04565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615a7d602083613c13565b9150615a8882615a47565b602082019050919050565b60006020820190508181036000830152615aac81615a70565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000615b0f602d83613c13565b9150615b1a82615ab3565b604082019050919050565b60006020820190508181036000830152615b3e81615b02565b9050919050565b615b4e81614e6f565b82525050565b6000604082019050615b696000830185615b45565b615b766020830184613eb8565b9392505050565b600060208284031215615b9357615b92613b43565b5b6000615ba184828501615366565b91505092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615c06602583613c13565b9150615c1182615baa565b604082019050919050565b60006020820190508181036000830152615c3581615bf9565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615c98602483613c13565b9150615ca382615c3c565b604082019050919050565b60006020820190508181036000830152615cc781615c8b565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615d04601983613c13565b9150615d0f82615cce565b602082019050919050565b60006020820190508181036000830152615d3381615cf7565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615d96603283613c13565b9150615da182615d3a565b604082019050919050565b60006020820190508181036000830152615dc581615d89565b9050919050565b600060a082019050615de16000830186613dc9565b615dee6020830185613dc9565b615dfb60408301846141a9565b949350505050565b600082825260208201905092915050565b6000615e1f82614675565b615e298185615e03565b9350615e39818560208601613c24565b615e4281613c4e565b840191505092915050565b6000608082019050615e626000830187613dc9565b615e6f6020830186613dc9565b615e7c6040830185613eb8565b8181036060830152615e8e8184615e14565b905095945050505050565b600081519050615ea881613b79565b92915050565b600060208284031215615ec457615ec3613b43565b5b6000615ed284828501615e99565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615f11602083613c13565b9150615f1c82615edb565b602082019050919050565b60006020820190508181036000830152615f4081615f04565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615f7d601c83613c13565b9150615f8882615f47565b602082019050919050565b60006020820190508181036000830152615fac81615f70565b905091905056fea2646970667358221220d3eb30a08025fdfdc7e1e3e15f834af9c9ebf64c390106ee1f2f361f6ac18f0d64736f6c63430008100033000000000000000000000000f2132d99159178560f96926cc1f263800b541227000000000000000000000000906a73b7be0513acfdceec13a874651e9b467d84000000000000000000000000ef373c00726f11830d3c622c7ca9c203b5262343
Deployed Bytecode
0x60806040526004361061023b5760003560e01c8063715018a61161012e578063b88d4fde116100ab578063dc865ba51161006f578063dc865ba5146108d5578063e5e7fdfa14610912578063e985e9c51461094f578063ed62c7971461098c578063f2fde38b146109c95761023b565b8063b88d4fde146107c9578063bd9a548b146107f2578063c4b2eaac1461081e578063c87b56dd1461085b578063d085e7c1146108985761023b565b806391df6c70116100f257806391df6c70146106f657806395d89b411461071f5780639aadcfd91461074a578063a22cb46514610775578063b187bd261461079e5761023b565b8063715018a614610611578063831e1907146106285780638525a5d9146106655780638da5cb5b146106a257806391b7f5ed146106cd5761023b565b80632f745c59116101bc5780634f6ccce7116101805780634f6ccce714610501578063601bd2a51461053e5780636352211e1461056e5780636c19e783146105ab57806370a08231146105d45761023b565b80632f745c591461041c5780633eaaf86b1461045957806341f434341461048457806342842e0e146104af5780634c9ba852146104d85761023b565b806316c38b3c1161020357806316c38b3c1461033957806318160ddd1461036257806323b872dd1461038d57806324e6df79146103b65780632cd23784146103f35761023b565b806301ffc9a71461024057806306fdde031461027d578063072c6cda146102a8578063081812fc146102d3578063095ea7b314610310575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613ba5565b6109f2565b6040516102749190613bed565b60405180910390f35b34801561028957600080fd5b50610292610a04565b60405161029f9190613c98565b60405180910390f35b3480156102b457600080fd5b506102bd610a96565b6040516102ca9190613d39565b60405180910390f35b3480156102df57600080fd5b506102fa60048036038101906102f59190613d8a565b610ac0565b6040516103079190613dd8565b60405180910390f35b34801561031c57600080fd5b5061033760048036038101906103329190613e1f565b610b06565b005b34801561034557600080fd5b50610360600480360381019061035b9190613e8b565b610b1f565b005b34801561036e57600080fd5b50610377610b82565b6040516103849190613ec7565b60405180910390f35b34801561039957600080fd5b506103b460048036038101906103af9190613ee2565b610b91565b005b3480156103c257600080fd5b506103dd60048036038101906103d89190613f6e565b610be0565b6040516103ea9190613c98565b60405180910390f35b3480156103ff57600080fd5b5061041a60048036038101906104159190613fae565b610ca1565b005b34801561042857600080fd5b50610443600480360381019061043e9190613e1f565b610ced565b6040516104509190613ec7565b60405180910390f35b34801561046557600080fd5b5061046e610d89565b60405161047b9190613ec7565b60405180910390f35b34801561049057600080fd5b50610499610d93565b6040516104a69190613ffc565b60405180910390f35b3480156104bb57600080fd5b506104d660048036038101906104d19190613ee2565b610da5565b005b3480156104e457600080fd5b506104ff60048036038101906104fa9190613d8a565b610df4565b005b34801561050d57600080fd5b5061052860048036038101906105239190613d8a565b610e62565b6040516105359190613ec7565b60405180910390f35b610558600480360381019061055391906140a1565b610eb8565b6040516105659190613ec7565b60405180910390f35b34801561057a57600080fd5b5061059560048036038101906105909190613d8a565b6113ae565b6040516105a29190613dd8565b60405180910390f35b3480156105b757600080fd5b506105d260048036038101906105cd9190613fae565b611434565b005b3480156105e057600080fd5b506105fb60048036038101906105f69190613fae565b611480565b6040516106089190613ec7565b60405180910390f35b34801561061d57600080fd5b50610626611537565b005b34801561063457600080fd5b5061064f600480360381019061064a9190613d8a565b61154b565b60405161065c91906141eb565b60405180910390f35b34801561067157600080fd5b5061068c60048036038101906106879190613f6e565b61168d565b6040516106999190613c98565b60405180910390f35b3480156106ae57600080fd5b506106b761174e565b6040516106c49190613dd8565b60405180910390f35b3480156106d957600080fd5b506106f460048036038101906106ef9190613d8a565b611778565b005b34801561070257600080fd5b5061071d60048036038101906107189190613fae565b6117a3565b005b34801561072b57600080fd5b506107346117ef565b6040516107419190613c98565b60405180910390f35b34801561075657600080fd5b5061075f611881565b60405161076c9190614227565b60405180910390f35b34801561078157600080fd5b5061079c60048036038101906107979190614242565b6118ab565b005b3480156107aa57600080fd5b506107b36118c4565b6040516107c09190613bed565b60405180910390f35b3480156107d557600080fd5b506107f060048036038101906107eb91906143b2565b6118db565b005b3480156107fe57600080fd5b5061080761192c565b604051610815929190614435565b60405180910390f35b34801561082a57600080fd5b506108456004803603810190610840919061445e565b61193d565b6040516108529190614946565b60405180910390f35b34801561086757600080fd5b50610882600480360381019061087d9190613d8a565b611a07565b60405161088f9190613c98565b60405180910390f35b3480156108a457600080fd5b506108bf60048036038101906108ba9190613d8a565b611a6d565b6040516108cc91906149e3565b60405180910390f35b3480156108e157600080fd5b506108fc60048036038101906108f79190613fae565b611bb2565b6040516109099190613ec7565b60405180910390f35b34801561091e57600080fd5b5061093960048036038101906109349190613d8a565b611c12565b6040516109469190613ec7565b60405180910390f35b34801561095b57600080fd5b50610976600480360381019061097191906149fe565b611c2f565b6040516109839190613bed565b60405180910390f35b34801561099857600080fd5b506109b360048036038101906109ae9190613f6e565b611cc3565b6040516109c09190613c98565b60405180910390f35b3480156109d557600080fd5b506109f060048036038101906109eb9190613fae565b611d84565b005b60006109fd826121af565b9050919050565b606060008054610a1390614a6d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3f90614a6d565b8015610a8c5780601f10610a6157610100808354040283529160200191610a8c565b820191906000526020600020905b815481529060010190602001808311610a6f57829003601f168201915b5050505050905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000610acb82612229565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610b1081612274565b610b1a8383612371565b505050565b610b27612488565b80600f60006101000a81548160ff021916908315150217905550600f60009054906101000a900460ff1615157f0e2fb031ee032dc02d8011dc50b816eb450cf856abd8261680dac74f72165bd260405160405180910390a250565b6000610b8c610d89565b905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bcf57610bce33612274565b5b610bda848484612506565b50505050565b6060600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630fe487f38484601160008781526020019081526020016000206040518463ffffffff1660e01b8152600401610c5393929190614c67565b600060405180830381865afa158015610c70573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610c999190614d40565b905092915050565b610ca9612488565b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610cf883611480565b8210610d30576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6000600c54905090565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610de357610de233612274565b5b610dee848484612566565b50505050565b610dfc612488565b3373ffffffffffffffffffffffffffffffffffffffff166108fc610e33670de0b6b3a764000084610e2d9190614db8565b47612586565b9081150290604051600060405180830381858888f19350505050158015610e5e573d6000803e3d6000fd5b5050565b6000610e6c610d89565b8210610ea4576040517f9f6fb6c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600182610eb19190614e12565b9050919050565b6000600f60009054906101000a900460ff1615610f01576040517f37914c0000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006011600087815260200190815260200160002090506000816000015403610f56576040517f79e950aa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610f62878761259f565b90506000601160008381526020019081526020016000206000015414610fb4576040517f5eeca11300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000858590501461116557600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ae3a163a9da6d126074f132016d72d513f5b9d086319045a2573ae3a163a9da6d126074f132016d72d513f5b9d0863918a15cf338660405160200161103f929190614e46565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004016110719190614e88565b602060405180830381865af415801561108e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b29190614ecf565b88886040518463ffffffff1660e01b81526004016110d293929190614f3a565b602060405180830381865af41580156110ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111139190614f81565b73ffffffffffffffffffffffffffffffffffffffff1614611160576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111a8565b61116e33611bb2565b3410156111a7576040517faa7feadc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600082600201601e9054906101000a900460ff16905060006111c98861289c565b90506000601160006111db8c8561259f565b8152602001908152602001600020600201601e9054906101000a900460ff16600481111561120c5761120b614115565b5b83600481111561121f5761121e614115565b5b0361135657600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cff270eb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611291573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b59190614fec565b73ffffffffffffffffffffffffffffffffffffffff166381d405898a60038111156112e3576112e2614115565b5b87600101546112f29190614e12565b856040518363ffffffff1660e01b8152600401611310929190615028565b602060405180830381865afa15801561132d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113519190615076565b611358565b825b905061139f8460018760020160009054906101000a90047cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1661139891906150a3565b83856128d6565b95505050505050949350505050565b6000806113ba83612ba9565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361142b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142290615140565b60405180910390fd5b80915050919050565b61143c612488565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e7906151d2565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61153f612488565b6115496000612be6565b565b611553613996565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cff270eb6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e49190614fec565b73ffffffffffffffffffffffffffffffffffffffff16633d3114de6011600060106000878152602001908152602001600020548152602001908152602001600020600101546040518263ffffffff1660e01b81526004016116459190613ec7565b606060405180830381865afa158015611662573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168691906152b1565b9050919050565b6060600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f1e608f38484601160008781526020019081526020016000206040518463ffffffff1660e01b815260040161170093929190614c67565b600060405180830381865afa15801561171d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906117469190614d40565b905092915050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611780612488565b80600d8190555066038d7ea4c680008161179a9190614db8565b600e8190555050565b6117ab612488565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060600180546117fe90614a6d565b80601f016020809104026020016040519081016040528092919081815260200182805461182a90614a6d565b80156118775780601f1061184c57610100808354040283529160200191611877565b820191906000526020600020905b81548152906001019060200180831161185a57829003601f168201915b5050505050905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b816118b581612274565b6118bf8383612cac565b505050565b6000600f60009054906101000a900460ff16905090565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146119195761191833612274565b5b61192585858585612cc2565b5050505050565b600080600e54600d54915091509091565b6119456139d1565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634eb18bb8858560116000888152602001908152602001600020866040518563ffffffff1660e01b81526004016119b894939291906152de565b600060405180830381865afa1580156119d5573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906119fe91906157a9565b90509392505050565b6060611a1282612d24565b611a48576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a6660006010600085815260200190815260200160002054611cc3565b9050919050565b611a75613a9b565b601160008381526020019081526020016000206040518060c001604052908160008201548152602001600182015481526020016002820160009054906101000a90047cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff167cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff167cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16815260200160028201601d9054906101000a900460ff1660ff1660ff16815260200160028201601e9054906101000a900460ff166004811115611b5a57611b59614115565b5b6004811115611b6c57611b6b614115565b5b815260200160028201601f9054906101000a900460ff166003811115611b9557611b94614115565b5b6003811115611ba757611ba6614115565b5b815250509050919050565b600080611bbe83611480565b1480611bfc5750611bcd61174e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b611c0857600e54611c0b565b60005b9050919050565b600060106000838152602001908152602001600020549050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ac2619228484601160008781526020019081526020016000206040518463ffffffff1660e01b8152600401611d3693929190614c67565b600060405180830381865afa158015611d53573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611d7c9190614d40565b905092915050565b611d8c612488565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611dfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df290615864565b60405180910390fd5b611e0481612be6565b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b611e3684848484612089565b8373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461208357600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146120075760006001611eaa86611480565b611eb49190615884565b9050600060076000858152602001908152602001600020549050818114611f99576000600660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600085815260200190815260200160002060009055600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505b600061201284611480565b905082600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600085815260200190815260200160002081905550505b50505050565b60018111156121a957600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461211d5780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121159190615884565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146121a85780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121a09190614e12565b925050819055505b5b50505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612222575061222182612d65565b5b9050919050565b61223281612d24565b612271576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226890615140565b60405180910390fd5b50565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561236e576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016122eb9291906158b8565b602060405180830381865afa158015612308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061232c91906158f6565b61236d57806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016123649190613dd8565b60405180910390fd5b5b50565b600061237c826113ae565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036123ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e390615995565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661240b612e47565b73ffffffffffffffffffffffffffffffffffffffff16148061243a575061243981612434612e47565b611c2f565b5b612479576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247090615a27565b60405180910390fd5b6124838383612e4f565b505050565b612490612e47565b73ffffffffffffffffffffffffffffffffffffffff166124ae61174e565b73ffffffffffffffffffffffffffffffffffffffff1614612504576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124fb90615a93565b60405180910390fd5b565b612517612511612e47565b82612f08565b612556576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254d90615b25565b60405180910390fd5b612561838383612f9d565b505050565b612581838383604051806020016040528060008152506118db565b505050565b60008183106125955781612597565b825b905092915050565b60008060038111156125b4576125b3614115565b5b8260038111156125c7576125c6614115565b5b0361265857600167ffffffffffffffff8016841611156125f5576001836125ee9190615884565b9050612896565b60c067ffffffffffffffff8016901b60c067ffffffffffffffff8016901b84161461265357780100000000000000000000000000000000000000000000000067ffffffffffffffff801619841661264c9190614e12565b9050612896565b612892565b6001600381111561266c5761266b614115565b5b82600381111561267f5761267e614115565b5b036127205768010000000000000000604067ffffffffffffffff8016901b841611156126c15768010000000000000000836126ba9190615884565b9050612896565b608067ffffffffffffffff8016901b608067ffffffffffffffff8016901b84161461271b57700100000000000000000000000000000000604067ffffffffffffffff8016901b1984166127149190614e12565b9050612896565b612891565b6002600381111561273457612733614115565b5b82600381111561274757612746614115565b5b036127f057700100000000000000000000000000000000608067ffffffffffffffff8016901b8416111561279957700100000000000000000000000000000000836127929190615884565b9050612896565b604067ffffffffffffffff8016901b604067ffffffffffffffff8016901b8416146127eb5768010000000000000000608067ffffffffffffffff8016901b1984166127e49190614e12565b9050612896565b612890565b780100000000000000000000000000000000000000000000000060c067ffffffffffffffff8016901b8416111561284d577801000000000000000000000000000000000000000000000000836128469190615884565b9050612896565b67ffffffffffffffff801667ffffffffffffffff801684161461288f57600160c067ffffffffffffffff8016901b1984166128889190614e12565b9050612896565b5b5b5b8290505b92915050565b60008160038111156128b1576128b0614115565b5b60036128bd9190615884565b60038111156128cf576128ce614115565b5b9050919050565b6000806001600c546128e89190614e12565b905060006001436128f99190615884565b408260405160200161290c929190615b54565b6040516020818303038152906040528051906020012060001c90508660106000848152602001908152602001600020819055506040518060c00160405280838152602001828152602001877cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152602001600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638e3b60a06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129e8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0c9190615b7d565b60ff168152602001866004811115612a2757612a26614115565b5b8152602001856003811115612a3f57612a3e614115565b5b81525060116000898152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a8154817cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff160217905550606082015181600201601d6101000a81548160ff021916908360ff160217905550608082015181600201601e6101000a81548160ff02191690836004811115612b0e57612b0d614115565b5b021790555060a082015181600201601f6101000a81548160ff02191690836003811115612b3e57612b3d614115565b5b0217905550905050612b503383613296565b86823373ffffffffffffffffffffffffffffffffffffffff167f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff60405160405180910390a481600c819055508192505050949350505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612cbe612cb7612e47565b83836132b4565b5050565b612cd3612ccd612e47565b83612f08565b612d12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d0990615b25565b60405180910390fd5b612d1e84848484613420565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff16612d4683612ba9565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e3057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e405750612e3f8261347c565b5b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612ec2836113ae565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612f14836113ae565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f565750612f558185611c2f565b5b80612f9457508373ffffffffffffffffffffffffffffffffffffffff16612f7c84610ac0565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612fbd826113ae565b73ffffffffffffffffffffffffffffffffffffffff1614613013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300a90615c1c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613082576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307990615cae565b60405180910390fd5b61308f83838360016134e6565b8273ffffffffffffffffffffffffffffffffffffffff166130af826113ae565b73ffffffffffffffffffffffffffffffffffffffff1614613105576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130fc90615c1c565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46132918383836001613591565b505050565b6132b0828260405180602001604052806000815250613597565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613322576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161331990615d1a565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516134139190613bed565b60405180910390a3505050565b61342b848484612f9d565b613437848484846135f2565b613476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161346d90615dac565b60405180910390fd5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6134f284848484611e2a565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636a71cb53858561353b8661154b565b6040518463ffffffff1660e01b815260040161355993929190615dcc565b600060405180830381600087803b15801561357357600080fd5b505af1158015613587573d6000803e3d6000fd5b5050505050505050565b50505050565b6135a18383613779565b6135ae60008484846135f2565b6135ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135e490615dac565b60405180910390fd5b505050565b60006136138473ffffffffffffffffffffffffffffffffffffffff16611e07565b1561376c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261363c612e47565b8786866040518563ffffffff1660e01b815260040161365e9493929190615e4d565b6020604051808303816000875af192505050801561369a57506040513d601f19601f820116820180604052508101906136979190615eae565b60015b61371c573d80600081146136ca576040519150601f19603f3d011682016040523d82523d6000602084013e6136cf565b606091505b506000815103613714576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161370b90615dac565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613771565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036137e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137df90615f27565b60405180910390fd5b6137f181612d24565b15613831576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161382890615f93565b60405180910390fd5b61383f6000838360016134e6565b61384881612d24565b15613888576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161387f90615f93565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613992600083836001613591565b5050565b6040518060600160405280600060088111156139b5576139b4614115565b5b8152602001600061ffff168152602001600061ffff1681525090565b604051806101c0016040528060008152602001600081526020016000815260200160007cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152602001600060ff16815260200160006004811115613a3657613a35614115565b5b815260200160006003811115613a4f57613a4e614115565b5b8152602001613a5c613996565b8152602001600060ff168152602001613a73613b17565b8152602001613a80613b17565b81526020016000815260200160608152602001606081525090565b6040518060c00160405280600081526020016000815260200160007cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152602001600060ff16815260200160006004811115613af857613af7614115565b5b815260200160006003811115613b1157613b10614115565b5b81525090565b6040518060800160405280600490602082028036833780820191505090505090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613b8281613b4d565b8114613b8d57600080fd5b50565b600081359050613b9f81613b79565b92915050565b600060208284031215613bbb57613bba613b43565b5b6000613bc984828501613b90565b91505092915050565b60008115159050919050565b613be781613bd2565b82525050565b6000602082019050613c026000830184613bde565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613c42578082015181840152602081019050613c27565b60008484015250505050565b6000601f19601f8301169050919050565b6000613c6a82613c08565b613c748185613c13565b9350613c84818560208601613c24565b613c8d81613c4e565b840191505092915050565b60006020820190508181036000830152613cb28184613c5f565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000613cff613cfa613cf584613cba565b613cda565b613cba565b9050919050565b6000613d1182613ce4565b9050919050565b6000613d2382613d06565b9050919050565b613d3381613d18565b82525050565b6000602082019050613d4e6000830184613d2a565b92915050565b6000819050919050565b613d6781613d54565b8114613d7257600080fd5b50565b600081359050613d8481613d5e565b92915050565b600060208284031215613da057613d9f613b43565b5b6000613dae84828501613d75565b91505092915050565b6000613dc282613cba565b9050919050565b613dd281613db7565b82525050565b6000602082019050613ded6000830184613dc9565b92915050565b613dfc81613db7565b8114613e0757600080fd5b50565b600081359050613e1981613df3565b92915050565b60008060408385031215613e3657613e35613b43565b5b6000613e4485828601613e0a565b9250506020613e5585828601613d75565b9150509250929050565b613e6881613bd2565b8114613e7357600080fd5b50565b600081359050613e8581613e5f565b92915050565b600060208284031215613ea157613ea0613b43565b5b6000613eaf84828501613e76565b91505092915050565b613ec181613d54565b82525050565b6000602082019050613edc6000830184613eb8565b92915050565b600080600060608486031215613efb57613efa613b43565b5b6000613f0986828701613e0a565b9350506020613f1a86828701613e0a565b9250506040613f2b86828701613d75565b9150509250925092565b600060ff82169050919050565b613f4b81613f35565b8114613f5657600080fd5b50565b600081359050613f6881613f42565b92915050565b60008060408385031215613f8557613f84613b43565b5b6000613f9385828601613f59565b9250506020613fa485828601613d75565b9150509250929050565b600060208284031215613fc457613fc3613b43565b5b6000613fd284828501613e0a565b91505092915050565b6000613fe682613d06565b9050919050565b613ff681613fdb565b82525050565b60006020820190506140116000830184613fed565b92915050565b6004811061402457600080fd5b50565b60008135905061403681614017565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126140615761406061403c565b5b8235905067ffffffffffffffff81111561407e5761407d614041565b5b60208301915083600182028301111561409a57614099614046565b5b9250929050565b600080600080606085870312156140bb576140ba613b43565b5b60006140c987828801613d75565b94505060206140da87828801614027565b935050604085013567ffffffffffffffff8111156140fb576140fa613b48565b5b6141078782880161404b565b925092505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6009811061415557614154614115565b5b50565b600081905061416682614144565b919050565b600061417682614158565b9050919050565b6141868161416b565b82525050565b600061ffff82169050919050565b6141a38161418c565b82525050565b6060820160008201516141bf600085018261417d565b5060208201516141d2602085018261419a565b5060408201516141e5604085018261419a565b50505050565b600060608201905061420060008301846141a9565b92915050565b600061421182613d06565b9050919050565b61422181614206565b82525050565b600060208201905061423c6000830184614218565b92915050565b6000806040838503121561425957614258613b43565b5b600061426785828601613e0a565b925050602061427885828601613e76565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6142bf82613c4e565b810181811067ffffffffffffffff821117156142de576142dd614287565b5b80604052505050565b60006142f1613b39565b90506142fd82826142b6565b919050565b600067ffffffffffffffff82111561431d5761431c614287565b5b61432682613c4e565b9050602081019050919050565b82818337600083830152505050565b600061435561435084614302565b6142e7565b90508281526020810184848401111561437157614370614282565b5b61437c848285614333565b509392505050565b600082601f8301126143995761439861403c565b5b81356143a9848260208601614342565b91505092915050565b600080600080608085870312156143cc576143cb613b43565b5b60006143da87828801613e0a565b94505060206143eb87828801613e0a565b93505060406143fc87828801613d75565b925050606085013567ffffffffffffffff81111561441d5761441c613b48565b5b61442987828801614384565b91505092959194509250565b600060408201905061444a6000830185613eb8565b6144576020830184613eb8565b9392505050565b60008060006060848603121561447757614476613b43565b5b600061448586828701613f59565b935050602061449686828701613d75565b92505060406144a786828701613e76565b9150509250925092565b6144ba81613d54565b82525050565b60007cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82169050919050565b6144f2816144c0565b82525050565b61450181613f35565b82525050565b6005811061451857614517614115565b5b50565b600081905061452982614507565b919050565b60006145398261451b565b9050919050565b6145498161452e565b82525050565b600481106145605761455f614115565b5b50565b60008190506145718261454f565b919050565b600061458182614563565b9050919050565b61459181614576565b82525050565b6060820160008201516145ad600085018261417d565b5060208201516145c0602085018261419a565b5060408201516145d3604085018261419a565b50505050565b600060049050919050565b600081905092915050565b6000819050919050565b600061460583836144f8565b60208301905092915050565b6000602082019050919050565b614627816145d9565b61463181846145e4565b925061463c826145ef565b8060005b8381101561466d57815161465487826145f9565b965061465f83614611565b925050600181019050614640565b505050505050565b600081519050919050565b600082825260208201905092915050565b600061469c82614675565b6146a68185614680565b93506146b6818560208601613c24565b6146bf81613c4e565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6010811061470757614706614115565b5b50565b6000819050614718826146f6565b919050565b60006147288261470a565b9050919050565b6147388161471d565b82525050565b6000604083016000830151614756600086018261472f565b506020830151848203602086015261476e8282614691565b9150508091505092915050565b6000614787838361473e565b905092915050565b6000602082019050919050565b60006147a7826146ca565b6147b181856146d5565b9350836020820285016147c3856146e6565b8060005b858110156147ff57848403895281516147e0858261477b565b94506147eb8361478f565b925060208a019950506001810190506147c7565b50829750879550505050505092915050565b60006102c08301600083015161482a60008601826144b1565b50602083015161483d60208601826144b1565b50604083015161485060408601826144b1565b50606083015161486360608601826144e9565b50608083015161487660808601826144f8565b5060a083015161488960a0860182614540565b5060c083015161489c60c0860182614588565b5060e08301516148af60e0860182614597565b506101008301516148c46101408601826144f8565b506101208301516148d961016086018261461e565b506101408301516148ee6101e086018261461e565b506101608301516149036102608601826144b1565b5061018083015184820361028086015261491d8282614691565b9150506101a08301518482036102a0860152614939828261479c565b9150508091505092915050565b600060208201905081810360008301526149608184614811565b905092915050565b60c08201600082015161497e60008501826144b1565b50602082015161499160208501826144b1565b5060408201516149a460408501826144e9565b5060608201516149b760608501826144f8565b5060808201516149ca6080850182614540565b5060a08201516149dd60a0850182614588565b50505050565b600060c0820190506149f86000830184614968565b92915050565b60008060408385031215614a1557614a14613b43565b5b6000614a2385828601613e0a565b9250506020614a3485828601613e0a565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a8557607f821691505b602082108103614a9857614a97614a3e565b5b50919050565b614aa781613f35565b82525050565b60008160001c9050919050565b6000819050919050565b6000614ad7614ad283614aad565b614aba565b9050919050565b60007cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614b1a614b1583614aad565b614ade565b9050919050565b60008160e81c9050919050565b600060ff82169050919050565b6000614b4e614b4983614b21565b614b2e565b9050919050565b60008160f01c9050919050565b600060ff82169050919050565b6000614b82614b7d83614b55565b614b62565b9050919050565b60008160f81c9050919050565b600060ff82169050919050565b6000614bb6614bb183614b89565b614b96565b9050919050565b60c082016000808301549050614bd281614ac4565b614bdf60008601826144b1565b5060018301549050614bf081614ac4565b614bfd60208601826144b1565b5060028301549050614c0e81614b07565b614c1b60408601826144e9565b50614c2581614b3b565b614c3260608601826144f8565b50614c3c81614b6f565b614c496080860182614540565b50614c5381614ba3565b614c6060a0860182614588565b5050505050565b600061010082019050614c7d6000830186614a9e565b614c8a6020830185613eb8565b614c976040830184614bbd565b949350505050565b600067ffffffffffffffff821115614cba57614cb9614287565b5b614cc382613c4e565b9050602081019050919050565b6000614ce3614cde84614c9f565b6142e7565b905082815260208101848484011115614cff57614cfe614282565b5b614d0a848285613c24565b509392505050565b600082601f830112614d2757614d2661403c565b5b8151614d37848260208601614cd0565b91505092915050565b600060208284031215614d5657614d55613b43565b5b600082015167ffffffffffffffff811115614d7457614d73613b48565b5b614d8084828501614d12565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614dc382613d54565b9150614dce83613d54565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614e0757614e06614d89565b5b828202905092915050565b6000614e1d82613d54565b9150614e2883613d54565b9250828201905080821115614e4057614e3f614d89565b5b92915050565b6000604082019050614e5b6000830185613dc9565b614e686020830184613eb8565b9392505050565b6000819050919050565b614e8281614e6f565b82525050565b6000602082019050614e9d6000830184614e79565b92915050565b614eac81614e6f565b8114614eb757600080fd5b50565b600081519050614ec981614ea3565b92915050565b600060208284031215614ee557614ee4613b43565b5b6000614ef384828501614eba565b91505092915050565b600082825260208201905092915050565b6000614f198385614efc565b9350614f26838584614333565b614f2f83613c4e565b840190509392505050565b6000604082019050614f4f6000830186614e79565b8181036020830152614f62818486614f0d565b9050949350505050565b600081519050614f7b81613df3565b92915050565b600060208284031215614f9757614f96613b43565b5b6000614fa584828501614f6c565b91505092915050565b6000614fb982613db7565b9050919050565b614fc981614fae565b8114614fd457600080fd5b50565b600081519050614fe681614fc0565b92915050565b60006020828403121561500257615001613b43565b5b600061501084828501614fd7565b91505092915050565b6150228161452e565b82525050565b600060408201905061503d6000830185613eb8565b61504a6020830184615019565b9392505050565b6005811061505e57600080fd5b50565b60008151905061507081615051565b92915050565b60006020828403121561508c5761508b613b43565b5b600061509a84828501615061565b91505092915050565b60006150ae826144c0565b91506150b9836144c0565b925082820190507cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8111156150ee576150ed614d89565b5b92915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061512a601883613c13565b9150615135826150f4565b602082019050919050565b600060208201905081810360008301526151598161511d565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006151bc602983613c13565b91506151c782615160565b604082019050919050565b600060208201905081810360008301526151eb816151af565b9050919050565b600080fd5b600080fd5b6009811061520957600080fd5b50565b60008151905061521b816151fc565b92915050565b61522a8161418c565b811461523557600080fd5b50565b60008151905061524781615221565b92915050565b600060608284031215615263576152626151f2565b5b61526d60606142e7565b9050600061527d8482850161520c565b600083015250602061529184828501615238565b60208301525060406152a584828501615238565b60408301525092915050565b6000606082840312156152c7576152c6613b43565b5b60006152d58482850161524d565b91505092915050565b6000610120820190506152f46000830187614a9e565b6153016020830186613eb8565b61530e6040830185614bbd565b61531c610100830184613bde565b95945050505050565b60008151905061533481613d5e565b92915050565b615343816144c0565b811461534e57600080fd5b50565b6000815190506153608161533a565b92915050565b60008151905061537581613f42565b92915050565b60008151905061538a81614017565b92915050565b600067ffffffffffffffff8211156153ab576153aa614287565b5b602082029050919050565b60006153c96153c484615390565b6142e7565b905080602084028301858111156153e3576153e2614046565b5b835b8181101561540c57806153f88882615366565b8452602084019350506020810190506153e5565b5050509392505050565b600082601f83011261542b5761542a61403c565b5b60046154388482856153b6565b91505092915050565b600061545461544f84614302565b6142e7565b9050828152602081018484840111156154705761546f614282565b5b61547b848285613c24565b509392505050565b600082601f8301126154985761549761403c565b5b81516154a8848260208601615441565b91505092915050565b600067ffffffffffffffff8211156154cc576154cb614287565b5b602082029050602081019050919050565b601081106154ea57600080fd5b50565b6000815190506154fc816154dd565b92915050565b600060408284031215615518576155176151f2565b5b61552260406142e7565b90506000615532848285016154ed565b600083015250602082015167ffffffffffffffff811115615556576155556151f7565b5b61556284828501615483565b60208301525092915050565b600061558161557c846154b1565b6142e7565b905080838252602082019050602084028301858111156155a4576155a3614046565b5b835b818110156155eb57805167ffffffffffffffff8111156155c9576155c861403c565b5b8086016155d68982615502565b855260208501945050506020810190506155a6565b5050509392505050565b600082601f83011261560a5761560961403c565b5b815161561a84826020860161556e565b91505092915050565b60006102c0828403121561563a576156396151f2565b5b6156456101c06142e7565b9050600061565584828501615325565b600083015250602061566984828501615325565b602083015250604061567d84828501615325565b604083015250606061569184828501615351565b60608301525060806156a584828501615366565b60808301525060a06156b984828501615061565b60a08301525060c06156cd8482850161537b565b60c08301525060e06156e18482850161524d565b60e0830152506101406156f684828501615366565b6101008301525061016061570c84828501615416565b610120830152506101e061572284828501615416565b6101408301525061026061573884828501615325565b6101608301525061028082015167ffffffffffffffff81111561575e5761575d6151f7565b5b61576a84828501615483565b610180830152506102a082015167ffffffffffffffff8111156157905761578f6151f7565b5b61579c848285016155f5565b6101a08301525092915050565b6000602082840312156157bf576157be613b43565b5b600082015167ffffffffffffffff8111156157dd576157dc613b48565b5b6157e984828501615623565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061584e602683613c13565b9150615859826157f2565b604082019050919050565b6000602082019050818103600083015261587d81615841565b9050919050565b600061588f82613d54565b915061589a83613d54565b92508282039050818111156158b2576158b1614d89565b5b92915050565b60006040820190506158cd6000830185613dc9565b6158da6020830184613dc9565b9392505050565b6000815190506158f081613e5f565b92915050565b60006020828403121561590c5761590b613b43565b5b600061591a848285016158e1565b91505092915050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061597f602183613c13565b915061598a82615923565b604082019050919050565b600060208201905081810360008301526159ae81615972565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000615a11603d83613c13565b9150615a1c826159b5565b604082019050919050565b60006020820190508181036000830152615a4081615a04565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615a7d602083613c13565b9150615a8882615a47565b602082019050919050565b60006020820190508181036000830152615aac81615a70565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000615b0f602d83613c13565b9150615b1a82615ab3565b604082019050919050565b60006020820190508181036000830152615b3e81615b02565b9050919050565b615b4e81614e6f565b82525050565b6000604082019050615b696000830185615b45565b615b766020830184613eb8565b9392505050565b600060208284031215615b9357615b92613b43565b5b6000615ba184828501615366565b91505092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615c06602583613c13565b9150615c1182615baa565b604082019050919050565b60006020820190508181036000830152615c3581615bf9565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615c98602483613c13565b9150615ca382615c3c565b604082019050919050565b60006020820190508181036000830152615cc781615c8b565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615d04601983613c13565b9150615d0f82615cce565b602082019050919050565b60006020820190508181036000830152615d3381615cf7565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615d96603283613c13565b9150615da182615d3a565b604082019050919050565b60006020820190508181036000830152615dc581615d89565b9050919050565b600060a082019050615de16000830186613dc9565b615dee6020830185613dc9565b615dfb60408301846141a9565b949350505050565b600082825260208201905092915050565b6000615e1f82614675565b615e298185615e03565b9350615e39818560208601613c24565b615e4281613c4e565b840191505092915050565b6000608082019050615e626000830187613dc9565b615e6f6020830186613dc9565b615e7c6040830185613eb8565b8181036060830152615e8e8184615e14565b905095945050505050565b600081519050615ea881613b79565b92915050565b600060208284031215615ec457615ec3613b43565b5b6000615ed284828501615e99565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615f11602083613c13565b9150615f1c82615edb565b602082019050919050565b60006020820190508181036000830152615f4081615f04565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615f7d601c83613c13565b9150615f8882615f47565b602082019050919050565b60006020820190508181036000830152615fac81615f70565b905091905056fea2646970667358221220d3eb30a08025fdfdc7e1e3e15f834af9c9ebf64c390106ee1f2f361f6ac18f0d64736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f2132d99159178560f96926cc1f263800b541227000000000000000000000000906a73b7be0513acfdceec13a874651e9b467d84000000000000000000000000ef373c00726f11830d3c622c7ca9c203b5262343
-----Decoded View---------------
Arg [0] : index_ (address): 0xF2132d99159178560f96926CC1f263800B541227
Arg [1] : player_ (address): 0x906A73B7bE0513ACfdCeEc13a874651e9b467D84
Arg [2] : signer_ (address): 0xEf373c00726F11830d3C622c7Ca9C203B5262343
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000f2132d99159178560f96926cc1f263800b541227
Arg [1] : 000000000000000000000000906a73b7be0513acfdceec13a874651e9b467d84
Arg [2] : 000000000000000000000000ef373c00726f11830d3c622c7ca9c203b5262343
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.