Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
999 CKNIGHT
Holders
399
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 CKNIGHTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
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:
DragonKnight
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./DragonKnightLibrary.sol"; contract DragonKnight is Ownable, ERC721A { uint256 public maxSupply = 1000; uint256 public maxFreeMint = 2; uint256 public maxMint = 5; bool public paused = true; uint256 public cost = 0.005 ether; // Token trait layers and colors, uploaded post contract deployment string[][6] colors; string[][6] traits; // Stores legendary svg and metadata mapping(uint256 => string) internal legendarySvgs; mapping(uint256 => string) internal legendaryNames; mapping(uint256 => string) internal legendaryWeapons; bool legChain = false; uint numLegendaries = 13; uint256[13] legendaryIds; // Metadata layer names string[] types = ["Background", "Face", "Eyes", "Helmet Eyes", "Sword", "Armor"]; // Hash storing unique layer string with tokenId mapping(uint256 => string) internal tokenIdToHash; // For checking minted per wallet mapping(address => uint256) internal userMints; mapping(address => uint256) internal userMintsPaid; constructor() ERC721A('chainknights.xyz', 'CKNIGHT') { // Legendary ids are randomized on contract creation loadLegendaryIds(); } /** MINTING FUNCTIONS */ function mint(address _to, uint256 _mintAmount) public payable { require(tx.origin == _msgSender(), "Only EOA"); require(!paused, "Contract paused"); require(_mintAmount > 0); require(totalSupply() + _mintAmount < maxSupply, "No enought mints left."); // ADD CHECK FOR 5 PER WALLET require(userMintsPaid[msg.sender] + _mintAmount <= maxMint, "Max mint exceeded!"); require(msg.value >= cost * _mintAmount, "Not enough ETH."); userMintsPaid[msg.sender] += _mintAmount; _safeMint(_to, _mintAmount); } function mintFree(address _to, uint256 _mintAmount) public payable { require(tx.origin == _msgSender(), "Only EOA"); require(!paused, "Contract paused"); require(_mintAmount > 0); require(totalSupply() + _mintAmount < maxSupply, "No enought mints left."); // ADD CHECK FOR 2 FREE PER WALLET require(userMints[msg.sender] + _mintAmount <= maxFreeMint, "Max mint exceeded!"); userMints[msg.sender] += _mintAmount; _safeMint(_to, _mintAmount); } /** TOKEN URI AND METADATA ON CHAIN FUNCTIONS */ function tokenURI(uint256 _tokenId) public view override returns (string memory) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); // Checks if legendary for(uint256 i = 0; i < numLegendaries; i++) { if(legendaryIds[i] == _tokenId) { return formatTokenURI(legendarySvgs[_tokenId], _tokenId, true, i); } } return formatTokenURI(generateSVG(_tokenId), _tokenId, false, 0); } /** * @dev Converts tokenID to JSON metadata. * @param _tokenId The erc721 token id. * @param legendary A boolean whether or not token is legendary. */ function tokenIdToMetadata(uint256 _tokenId, bool legendary) public view returns (string memory) { string memory metadataString; if(legendary == true) { metadataString = string( abi.encodePacked( metadataString, '{"trait_type":"', "Legendary Weapon", '","value":"', legendaryWeapons[_tokenId], '"}' ) ); return string(abi.encodePacked("[", metadataString, "]")); } for (uint8 i = 0; i < 6; i++) { metadataString = string( abi.encodePacked( metadataString, '{"trait_type":"', types[i], '","value":"', traits[i][parseHash(i, _tokenId)], '"}' ) ); if (i != 5) metadataString = string(abi.encodePacked(metadataString, ",")); } return string(abi.encodePacked("[", metadataString, "]")); } /** * @dev Parses 6 digit tokenID hash into svg parts * @param _layerId The layer id 0-5. * @param _tokenId The erc721 token id. */ function parseHash(uint256 _layerId, uint256 _tokenId) public view returns(uint256) { string memory layerNum = DragonKnightLibrary.substring(tokenIdToHash[_tokenId], _layerId, _layerId + 1); return DragonKnightLibrary.parseInt(layerNum); } /** * @dev Generates SVG string by pulling colors from hash * @param _tokenId The erc721 token id. */ function generateSVG(uint256 _tokenId) public view returns(string memory){ string memory svg = '<svg xmlns="http://www.w3.org/2000/svg" shape-rendering="crispEdges" preserveAspectRatio="xMinYMin meet" viewBox="0 -0.5 64 64">'; for(uint256 i = 0; i < 6; i++) { string memory color = colors[i][parseHash(i, _tokenId)]; //Check if two colors if(bytes(color).length > 7){ svg = string(abi.encodePacked(svg, DragonKnightLibrary.getLayer(i, DragonKnightLibrary.substring(color, 0, 7), DragonKnightLibrary.substring(color, 7, 14)))); } else { svg = string(abi.encodePacked(svg, DragonKnightLibrary.getLayer(i, color, color))); } } svg = string(abi.encodePacked(svg, DragonKnightLibrary.getHelmetHornsTeethLayer(), '</svg>')); return svgToImageURI(svg); } /** * @dev Formats tokenURI, if it is a legendary id it will display legendary data. * @param imageURI The raw base64 encoded image data. * @param _tokenId The erc721 token id. * @param legendary A boolean whether or not token is legendary. */ function formatTokenURI(string memory imageURI, uint256 _tokenId, bool legendary, uint legId) public view returns (string memory) { if(legendary == true){ if(legChain == false) { // Temp set leg off chain to save gas on deployment, move post mint return string(abi.encodePacked('ipfs://QmQLRascKgw6hTuegm4pn1cwEyJfj391H15kVPPfwcHG3n/', DragonKnightLibrary.toString(legId), '.json')); } return string( abi.encodePacked( "data:application/json;base64,", DragonKnightLibrary.encode( bytes( abi.encodePacked( '{"name":"', string(abi.encodePacked(legendaryNames[_tokenId], " #", DragonKnightLibrary.toString(_tokenId))), // You can add whatever name here '", "description":"chainknights.xyz is a 100% unique collection of knights on chain. No ipfs, no server, just code.", "attributes":',tokenIdToMetadata(_tokenId, legendary),', "image":"',imageURI,'"}' ) ) ) ) ); } return string( abi.encodePacked( "data:application/json;base64,", DragonKnightLibrary.encode( bytes( abi.encodePacked( '{"name":"', string(abi.encodePacked("chainknights.xyz #", DragonKnightLibrary.toString(_tokenId))), // You can add whatever name here '", "description":"chainknights.xyz is a 100% unique collection of knights on chain. No ipfs, no server, just code.", "attributes":',tokenIdToMetadata(_tokenId, legendary),', "image":"',imageURI,'"}' ) ) ) ) ); } /** * @dev Converts svg string data to base64 encoded svg data. * @param svg String svg data. */ function svgToImageURI(string memory svg) public pure returns (string memory) { string memory baseURL = "data:image/svg+xml;base64,"; string memory svgBase64Encoded = DragonKnightLibrary.encode(bytes(string(abi.encodePacked(svg)))); return string(abi.encodePacked(baseURL,svgBase64Encoded)); } /** OWNER ONLY FUNCTIONS */ /** * @dev Batch set hashes for tokens so minter does not have to pay gas * @param data The hash data stored as string array (6 digits each). * @param _len The length of array. */ function setHashes(string[] memory data, uint _len) public onlyOwner{ for(uint i = 0; i < _len; i++) { uint tokenId = i; tokenIdToHash[tokenId] = data[i]; } } /** * @dev Loads legendary ids with hashing function on contract deployment. */ function loadLegendaryIds() public onlyOwner { for(uint256 i = 0; i < numLegendaries; i++) { uint256 rndNumber = uint256(keccak256(abi.encodePacked(block.difficulty, block.timestamp, i, msg.sender))) % maxSupply; legendaryIds[i] = rndNumber; } } /** * @dev Returns all legendary ids. */ function getLegendaryIds() public view onlyOwner returns (uint256[13] memory) { return legendaryIds; } /** * @dev Manually set legendary svgdata and metadata. * @param svgData The raw base64 encoded svg data. * @param name The name of the legendary. * @param weapon The name of the legendary weapon. * @param index The index in the legendarySvgs array. */ function loadLegendary(string calldata svgData, string memory name, string memory weapon, uint index) public onlyOwner { legendarySvgs[legendaryIds[index]] = svgData; legendaryNames[legendaryIds[index]] = name; legendaryWeapons[legendaryIds[index]] = weapon; } /** * @dev Loads trait data post contract deployment. * @param index The index in the colors and traits array. * @param color An array of colors for the layer. * @param trait An array of names for the trait. */ function loadTraits(uint256 index, string[] memory color, string[] memory trait) public onlyOwner(){ colors[index] = color; traits[index] = trait; } function pause(bool _state) public onlyOwner { paused = _state; } function setLegChain(bool _state) public onlyOwner { legChain = _state; } function setCost(uint256 _newCost) public onlyOwner() { cost = _newCost; } function withdraw() public payable onlyOwner { require(payable(msg.sender).send(address(this).balance)); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 { _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 { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; library DragonKnightLibrary { string internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts layer into path svg data. * @param _layerId The index of the layer. * @param color Hex color value 1 * @param color2 Hex color value 2 */ function getLayer(uint256 _layerId, string memory color, string memory color2) public pure returns (string memory retVal) { string memory beg = '<path stroke="'; if(_layerId == 0) { return string(abi.encodePacked('<rect fill="', color, '" width="64" height="64" />')); } if(_layerId == 1) { return string(abi.encodePacked(beg, color, '" d="M24,24h16M24,25h16M24,26h16M24,27h16M20,28h4M28,28h8M40,28h4M20,29h4M28,29h8M40,29h4M20,30h4M28,30h8M40,30h4M20,31h4M28,31h8M40,31h4M24,32h16M24,33h16M24,34h16M24,35h16" />')); } if(_layerId == 2) { return string(abi.encodePacked(beg, color, '" d="M24,28h4M24,29h4M24,30h4M24,31h4" />', beg, color2, '" d="M36,28h4M36,29h4M36,30h4M36,31h4" />')); } if(_layerId == 5) { string memory armordark = string(abi.encodePacked(beg, color, '" d="M20,12h24M20,13h24M20,14h24M20,15h24M24,16h4M36,16h4M24,17h4M36,17h4M24,18h4M36,18h4M24,19h4M36,19h4M16,20h4M44,20h4M16,21h4M44,21h4M16,22h4M44,22h4M16,23h4M44,23h4M16,24h4M44,24h4M16,25h4M44,25h4M16,26h4M44,26h4M16,27h4M44,27h4M16,28h4M44,28h4M16,29h4M44,29h4M16,30h4M44,30h4M16,31h4M44,31h4M16,32h4M44,32h4M16,33h4M44,33h4M16,34h4M44,34h4M16,35h4M44,35h4M20,36h4M40,36h4M20,37h4M40,37h4M20,38h4M40,38h4M20,39h4M40,39h4M16,40h4M24,40h4M36,40h4M44,40h4M16,41h4M24,41h4M36,41h4M44,41h4M16,42h4M24,42h4M36,42h4M44,42h4M16,43h4M24,43h4M36,43h4M44,43h4M24,44h16M24,45h16M24,46h16M24,47h16M24,48h16M24,49h16M24,50h16M24,51h16" />')); string memory armorlight = string(abi.encodePacked(beg, color2, '" d="M28,16h8M28,17h8M28,18h8M28,19h8M20,20h24M20,21h24M20,22h24M20,23h24M24,36h16M24,37h16M24,38h16M24,39h16M28,40h8M28,41h8M28,42h8M28,43h8M24,52h4M36,52h4M24,53h4M36,53h4M24,54h4M36,54h4M24,55h4M36,55h4M24,60h4M36,60h4M24,61h4M36,61h4M24,62h4M36,62h4M24,63h4M36,63h4" />')); return string(abi.encodePacked(armordark, armorlight)); } if(_layerId == 3) { return string(abi.encodePacked('<path stroke="', color, '" d="M20,16h4M40,16h4M20,17h4M40,17h4M20,18h4M40,18h4M20,19h4M40,19h4" />')); } if(_layerId == 4) { return string(abi.encodePacked(beg, color, '" d="M48,40h4M48,41h4M48,42h4M48,43h4M48,44h4M48,45h4M48,46h4M48,47h4M48,48h4M48,49h4M48,50h4M48,51h4" />', beg, color2, '" d="M52,44h12M52,45h12M52,46h12M52,47h12" />')); } } function getHelmetHornsTeethLayer() public pure returns(string memory) { return '<path stroke="#bdbdbd" d="M20,4h4M40,4h4M20,5h4M40,5h4M20,6h4M40,6h4M20,7h4M40,7h4M20,8h4M40,8h4M20,9h4M40,9h4M20,10h4M40,10h4M20,11h4M40,11h4M20,24h4M40,24h4M20,25h4M40,25h4M20,26h4M40,26h4M20,27h4M40,27h4M20,32h4M40,32h4M20,33h4M40,33h4M20,34h4M40,34h4M20,35h4M40,35h4M16,44h4M44,44h4M16,45h4M44,45h4M16,46h4M44,46h4M16,47h4M44,47h4M24,56h4M36,56h4M24,57h4M36,57h4M24,58h4M36,58h4M24,59h4M36,59h4" />'; } // Helper functions function substring(string memory str, uint startIndex, uint endIndex) internal pure returns (string memory) { bytes memory strBytes = bytes(str); bytes memory result = new bytes(endIndex-startIndex); for(uint i = startIndex; i < endIndex; i++) { result[i-startIndex] = strBytes[i]; } return string(result); } // Thank you mouse dev function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ""; // load the table into memory string memory table = TABLE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for { } lt(dataPtr, endPtr) { } { dataPtr := add(dataPtr, 3) // read 3 bytes let input := mload(dataPtr) // write 4 characters mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(input, 0x3F)))) ) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } function parseInt(string memory _a) internal pure returns (uint8 _parsedInt) { bytes memory bresult = bytes(_a); uint8 mint = 0; for (uint8 i = 0; i < bresult.length; i++) { if ( (uint8(uint8(bresult[i])) >= 48) && (uint8(uint8(bresult[i])) <= 57) ) { mint *= 10; mint += uint8(bresult[i]) - 48; } } return mint; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
// 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.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.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 be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev 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 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 v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": { "contracts/DragonKnightLibrary.sol": { "DragonKnightLibrary": "0xe7bdd1b5d7452d17dac6774501eddd2daee0dc4d" } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"imageURI","type":"string"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"legendary","type":"bool"},{"internalType":"uint256","name":"legId","type":"uint256"}],"name":"formatTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"generateSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLegendaryIds","outputs":[{"internalType":"uint256[13]","name":"","type":"uint256[13]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"svgData","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"weapon","type":"string"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"loadLegendary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"loadLegendaryIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"string[]","name":"color","type":"string[]"},{"internalType":"string[]","name":"trait","type":"string[]"}],"name":"loadTraits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxFreeMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintFree","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_layerId","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"parseHash","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"data","type":"string[]"},{"internalType":"uint256","name":"_len","type":"uint256"}],"name":"setHashes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setLegChain","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":[{"internalType":"string","name":"svg","type":"string"}],"name":"svgToImageURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"legendary","type":"bool"}],"name":"tokenIdToMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040526103e86009556002600a556005600b556001600c60006101000a81548160ff0219169083151502179055506611c37937e08000600d556000601d60006101000a81548160ff021916908315150217905550600d601e556040518060c001604052806040518060400160405280600a81526020017f4261636b67726f756e640000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f466163650000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f457965730000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f48656c6d6574204579657300000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f53776f726400000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f41726d6f72000000000000000000000000000000000000000000000000000000815250815250602c906006620001d792919062000509565b50348015620001e557600080fd5b506040518060400160405280601081526020017f636861696e6b6e69676874732e78797a000000000000000000000000000000008152506040518060400160405280600781526020017f434b4e49474854000000000000000000000000000000000000000000000000008152506200027262000266620002d260201b60201c565b620002da60201b60201c565b81600390805190602001906200028a92919062000570565b508060049080519060200190620002a392919062000570565b50620002b46200039e60201b60201c565b6001819055505050620002cc620003a360201b60201c565b62000963565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600090565b620003b3620002d260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003d9620004e060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000432576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004299062000741565b60405180910390fd5b60005b601e54811015620004dd576000600954444284336040516020016200045e9493929190620006eb565b6040516020818303038152906040528051906020012060001c62000483919062000868565b905080601f83600d8110620004c1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0181905550508080620004d490620007e8565b91505062000435565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b8280548282559060005260206000209081019282156200055d579160200282015b828111156200055c5782518290805190602001906200054b92919062000570565b50916020019190600101906200052a565b5b5090506200056c919062000601565b5090565b8280546200057e90620007b2565b90600052602060002090601f016020900481019282620005a25760008555620005ee565b82601f10620005bd57805160ff1916838001178555620005ee565b82800160010185558215620005ee579182015b82811115620005ed578251825591602001919060010190620005d0565b5b509050620005fd919062000629565b5090565b5b808211156200062557600081816200061b919062000648565b5060010162000602565b5090565b5b80821115620006445760008160009055506001016200062a565b5090565b5080546200065690620007b2565b6000825580601f106200066a57506200068b565b601f0160209004906000526020600020908101906200068a919062000629565b5b50565b620006a36200069d8262000774565b62000836565b82525050565b6000620006b860208362000763565b9150620006c5826200093a565b602082019050919050565b620006e5620006df82620007a8565b6200085e565b82525050565b6000620006f98287620006d0565b6020820191506200070b8286620006d0565b6020820191506200071d8285620006d0565b6020820191506200072f82846200068e565b60148201915081905095945050505050565b600060208201905081810360008301526200075c81620006a9565b9050919050565b600082825260208201905092915050565b6000620007818262000788565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006002820490506001821680620007cb57607f821691505b60208210811415620007e257620007e1620008fe565b5b50919050565b6000620007f582620007a8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156200082b576200082a620008a0565b5b600182019050919050565b600062000843826200084a565b9050919050565b600062000857826200092d565b9050919050565b6000819050919050565b60006200087582620007a8565b91506200088283620007a8565b925082620008955762000894620008cf565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60008160601b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b615df080620009736000396000f3fe6080604052600436106102255760003560e01c80636352211e11610123578063a591252d116100ab578063caed5c3e1161006f578063caed5c3e146107f0578063d5abeb0114610819578063e172496914610844578063e985e9c51461086d578063f2fde38b146108aa57610225565b8063a591252d14610706578063adf66d3114610731578063b325eaf81461074d578063b88d4fde1461078a578063c87b56dd146107b357610225565b8063715018a6116100f2578063715018a6146106455780637501f7411461065c5780638da5cb5b1461068757806395d89b41146106b2578063a22cb465146106dd57610225565b80636352211e14610563578063689bd133146105a05780636dcee4ca146105cb57806370a082311461060857610225565b806323a67aa7116101b15780633ccfd60b116101755780633ccfd60b146104c057806340c10f19146104ca57806342842e0e146104e657806344a0d68a1461050f5780635c975abb1461053857610225565b806323a67aa7146103cb57806323b872dd146103f45780632f0eaf8a1461041d57806330d871c614610446578063336f101e1461048357610225565b8063095ea7b3116101f8578063095ea7b3146102f857806313faede61461032157806317984ea01461034c57806318160ddd146103635780631e9f73c11461038e57610225565b806301ffc9a71461022a57806302329a291461026757806306fdde0314610290578063081812fc146102bb575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c9190614476565b6108d3565b60405161025e9190615049565b60405180910390f35b34801561027357600080fd5b5061028e6004803603810190610289919061444d565b6109b5565b005b34801561029c57600080fd5b506102a5610a4e565b6040516102b29190615064565b60405180910390f35b3480156102c757600080fd5b506102e260048036038101906102dd9190614675565b610ae0565b6040516102ef9190614fc6565b60405180910390f35b34801561030457600080fd5b5061031f600480360381019061031a91906143bd565b610b5c565b005b34801561032d57600080fd5b50610336610c61565b6040516103439190615186565b60405180910390f35b34801561035857600080fd5b50610361610c67565b005b34801561036f57600080fd5b50610378610d88565b6040516103859190615186565b60405180910390f35b34801561039a57600080fd5b506103b560048036038101906103b091906145fa565b610d9f565b6040516103c29190615064565b60405180910390f35b3480156103d757600080fd5b506103f260048036038101906103ed919061444d565b610f15565b005b34801561040057600080fd5b5061041b600480360381019061041691906142b7565b610fae565b005b34801561042957600080fd5b50610444600480360381019061043f91906143f9565b610fbe565b005b34801561045257600080fd5b5061046d60048036038101906104689190614578565b6110cb565b60405161047a9190615064565b60405180910390f35b34801561048f57600080fd5b506104aa60048036038101906104a59190614759565b61115e565b6040516104b79190615186565b60405180910390f35b6104c861122a565b005b6104e460048036038101906104df91906143bd565b6112e6565b005b3480156104f257600080fd5b5061050d600480360381019061050891906142b7565b611551565b005b34801561051b57600080fd5b5061053660048036038101906105319190614675565b611571565b005b34801561054457600080fd5b5061054d6115f7565b60405161055a9190615049565b60405180910390f35b34801561056f57600080fd5b5061058a60048036038101906105859190614675565b61160a565b6040516105979190614fc6565b60405180910390f35b3480156105ac57600080fd5b506105b5611620565b6040516105c2919061502d565b60405180910390f35b3480156105d757600080fd5b506105f260048036038101906105ed9190614675565b6116e7565b6040516105ff9190615064565b60405180910390f35b34801561061457600080fd5b5061062f600480360381019061062a9190614252565b611a7d565b60405161063c9190615186565b60405180910390f35b34801561065157600080fd5b5061065a611b4d565b005b34801561066857600080fd5b50610671611bd5565b60405161067e9190615186565b60405180910390f35b34801561069357600080fd5b5061069c611bdb565b6040516106a99190614fc6565b60405180910390f35b3480156106be57600080fd5b506106c7611c04565b6040516106d49190615064565b60405180910390f35b3480156106e957600080fd5b5061070460048036038101906106ff9190614381565b611c96565b005b34801561071257600080fd5b5061071b611e0e565b6040516107289190615186565b60405180910390f35b61074b600480360381019061074691906143bd565b611e14565b005b34801561075957600080fd5b50610774600480360381019061076f919061471d565b61202f565b6040516107819190615064565b60405180910390f35b34801561079657600080fd5b506107b160048036038101906107ac9190614306565b61220f565b005b3480156107bf57600080fd5b506107da60048036038101906107d59190614675565b612287565b6040516107e79190615064565b60405180910390f35b3480156107fc57600080fd5b50610817600480360381019061081291906144c8565b612402565b005b34801561082557600080fd5b5061082e6125a9565b60405161083b9190615186565b60405180910390f35b34801561085057600080fd5b5061086b6004803603810190610866919061469e565b6125af565b005b34801561087957600080fd5b50610894600480360381019061088f919061427b565b6126d0565b6040516108a19190615049565b60405180910390f35b3480156108b657600080fd5b506108d160048036038101906108cc9190614252565b612764565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109ae57506109ad8261285c565b5b9050919050565b6109bd6128c6565b73ffffffffffffffffffffffffffffffffffffffff166109db611bdb565b73ffffffffffffffffffffffffffffffffffffffff1614610a31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2890615126565b60405180910390fd5b80600c60006101000a81548160ff02191690831515021790555050565b606060038054610a5d906155ad565b80601f0160208091040260200160405190810160405280929190818152602001828054610a89906155ad565b8015610ad65780601f10610aab57610100808354040283529160200191610ad6565b820191906000526020600020905b815481529060010190602001808311610ab957829003601f168201915b5050505050905090565b6000610aeb826128ce565b610b21576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b678261160a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bcf576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bee6128c6565b73ffffffffffffffffffffffffffffffffffffffff1614610c5157610c1a81610c156128c6565b6126d0565b610c50576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b610c5c83838361291c565b505050565b600d5481565b610c6f6128c6565b73ffffffffffffffffffffffffffffffffffffffff16610c8d611bdb565b73ffffffffffffffffffffffffffffffffffffffff1614610ce3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cda90615126565b60405180910390fd5b60005b601e54811015610d8557600060095444428433604051602001610d0c9493929190614f78565b6040516020818303038152906040528051906020012060001c610d2f91906156b1565b905080601f83600d8110610d6c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0181905550508080610d7d90615610565b915050610ce6565b50565b6000610d926129ce565b6002546001540303905090565b6060600115158315151415610e8f5760001515601d60009054906101000a900460ff1615151415610df957610dd3826129d3565b604051602001610de39190614f07565b6040516020818303038152906040529050610f0d565b610e69601b6000868152602001908152602001600020610e18866129d3565b604051602001610e29929190614e4e565b604051602081830303815290604052610e42868661202f565b87604051602001610e5593929190614e7d565b604051602081830303815290604052612b80565b604051602001610e799190614f34565b6040516020818303038152906040529050610f0d565b610eeb610e9b856129d3565b604051602001610eab9190614f56565b604051602081830303815290604052610ec4868661202f565b87604051602001610ed793929190614e7d565b604051602081830303815290604052612b80565b604051602001610efb9190614f34565b60405160208183030381529060405290505b949350505050565b610f1d6128c6565b73ffffffffffffffffffffffffffffffffffffffff16610f3b611bdb565b73ffffffffffffffffffffffffffffffffffffffff1614610f91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8890615126565b60405180910390fd5b80601d60006101000a81548160ff02191690831515021790555050565b610fb9838383612d2b565b505050565b610fc66128c6565b73ffffffffffffffffffffffffffffffffffffffff16610fe4611bdb565b73ffffffffffffffffffffffffffffffffffffffff161461103a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103190615126565b60405180910390fd5b60005b818110156110c6576000819050838281518110611083577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151602d600083815260200190815260200160002090805190602001906110b1929190613d64565b505080806110be90615610565b91505061103d565b505050565b606060006040518060400160405280601a81526020017f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000815250905060006111318460405160200161111d9190614d20565b604051602081830303815290604052612b80565b90508181604051602001611146929190614d37565b60405160208183030381529060405292505050919050565b600080611213602d60008581526020019081526020016000208054611182906155ad565b80601f01602080910402602001604051908101604052809291908181526020018280546111ae906155ad565b80156111fb5780601f106111d0576101008083540402835291602001916111fb565b820191906000526020600020905b8154815290600101906020018083116111de57829003601f168201915b50505050508560018761120e919061532f565b6131e1565b905061121e8161334f565b60ff1691505092915050565b6112326128c6565b73ffffffffffffffffffffffffffffffffffffffff16611250611bdb565b73ffffffffffffffffffffffffffffffffffffffff16146112a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129d90615126565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050506112e457600080fd5b565b6112ee6128c6565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461135b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611352906150c6565b60405180910390fd5b600c60009054906101000a900460ff16156113ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a2906150a6565b60405180910390fd5b600081116113b857600080fd5b600954816113c4610d88565b6113ce919061532f565b1061140e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140590615106565b60405180910390fd5b600b5481602f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461145c919061532f565b111561149d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611494906150e6565b60405180910390fd5b80600d546114ab91906153ed565b3410156114ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e490615166565b60405180910390fd5b80602f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461153c919061532f565b9250508190555061154d82826134a5565b5050565b61156c8383836040518060200160405280600081525061220f565b505050565b6115796128c6565b73ffffffffffffffffffffffffffffffffffffffff16611597611bdb565b73ffffffffffffffffffffffffffffffffffffffff16146115ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e490615126565b60405180910390fd5b80600d8190555050565b600c60009054906101000a900460ff1681565b6000611615826134c3565b600001519050919050565b611628613dea565b6116306128c6565b73ffffffffffffffffffffffffffffffffffffffff1661164e611bdb565b73ffffffffffffffffffffffffffffffffffffffff16146116a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169b90615126565b60405180910390fd5b601f600d806020026040519081016040528092919082600d80156116dd576020028201915b8154815260200190600101908083116116c9575b5050505050905090565b606060006040518060a0016040528060808152602001615d3b60809139905060005b60068110156119c7576000600e826006811061174e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01611759838761115e565b81548110611790577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200180546117a5906155ad565b80601f01602080910402602001604051908101604052809291908181526020018280546117d1906155ad565b801561181e5780601f106117f35761010080835404028352916020019161181e565b820191906000526020600020905b81548152906001019060200180831161180157829003601f168201915b505050505090506007815111156118ff578273e7bdd1b5d7452d17dac6774501eddd2daee0dc4d635dd12c768461185885600060076131e1565b611865866007600e6131e1565b6040518463ffffffff1660e01b8152600401611883939291906151a1565b60006040518083038186803b15801561189b57600080fd5b505af41580156118af573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906118d891906145b9565b6040516020016118e9929190614d37565b60405160208183030381529060405292506119b3565b8273e7bdd1b5d7452d17dac6774501eddd2daee0dc4d635dd12c768484856040518463ffffffff1660e01b815260040161193b939291906151a1565b60006040518083038186803b15801561195357600080fd5b505af4158015611967573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061199091906145b9565b6040516020016119a1929190614d37565b60405160208183030381529060405292505b5080806119bf90615610565b915050611709565b508073e7bdd1b5d7452d17dac6774501eddd2daee0dc4d63c584005a6040518163ffffffff1660e01b815260040160006040518083038186803b158015611a0d57600080fd5b505af4158015611a21573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611a4a91906145b9565b604051602001611a5b929190614d5b565b6040516020818303038152906040529050611a75816110cb565b915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ae5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611b556128c6565b73ffffffffffffffffffffffffffffffffffffffff16611b73611bdb565b73ffffffffffffffffffffffffffffffffffffffff1614611bc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc090615126565b60405180910390fd5b611bd3600061374e565b565b600b5481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054611c13906155ad565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3f906155ad565b8015611c8c5780601f10611c6157610100808354040283529160200191611c8c565b820191906000526020600020905b815481529060010190602001808311611c6f57829003601f168201915b5050505050905090565b611c9e6128c6565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d03576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060086000611d106128c6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611dbd6128c6565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e029190615049565b60405180910390a35050565b600a5481565b611e1c6128c6565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611e89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e80906150c6565b60405180910390fd5b600c60009054906101000a900460ff1615611ed9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed0906150a6565b60405180910390fd5b60008111611ee657600080fd5b60095481611ef2610d88565b611efc919061532f565b10611f3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3390615106565b60405180910390fd5b600a5481602e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f8a919061532f565b1115611fcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc2906150e6565b60405180910390fd5b80602e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461201a919061532f565b9250508190555061202b82826134a5565b5050565b60608060011515831515141561209d5780601c6000868152602001908152602001600020604051602001612064929190614dfe565b6040516020818303038152906040529050806040516020016120869190614eda565b604051602081830303815290604052915050612209565b60005b60068160ff1610156121e45781602c8260ff16815481106120ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160148360ff1660068110612131577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0161213f8460ff168961115e565b81548110612176577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160405160200161219293929190614dac565b604051602081830303815290604052915060058160ff16146121d157816040516020016121bf9190614d8a565b60405160208183030381529060405291505b80806121dc90615659565b9150506120a0565b50806040516020016121f69190614eda565b6040516020818303038152906040529150505b92915050565b61221a848484612d2b565b6122398373ffffffffffffffffffffffffffffffffffffffff16613812565b156122815761224a84848484613835565b612280576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060612292826128ce565b6122d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c890615146565b60405180910390fd5b60005b601e548110156123e45782601f82600d8110612319577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b015414156123d1576123c9601a60008581526020019081526020016000208054612342906155ad565b80601f016020809104026020016040519081016040528092919081815260200182805461236e906155ad565b80156123bb5780601f10612390576101008083540402835291602001916123bb565b820191906000526020600020905b81548152906001019060200180831161239e57829003601f168201915b505050505084600184610d9f565b9150506123fd565b80806123dc90615610565b9150506122d4565b506123fa6123f1836116e7565b83600080610d9f565b90505b919050565b61240a6128c6565b73ffffffffffffffffffffffffffffffffffffffff16612428611bdb565b73ffffffffffffffffffffffffffffffffffffffff161461247e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247590615126565b60405180910390fd5b8484601a6000601f85600d81106124be577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0154815260200190815260200160002091906124db929190613e0d565b5082601b6000601f84600d811061251b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01548152602001908152602001600020908051906020019061253e929190613d64565b5081601c6000601f84600d811061257e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0154815260200190815260200160002090805190602001906125a1929190613d64565b505050505050565b60095481565b6125b76128c6565b73ffffffffffffffffffffffffffffffffffffffff166125d5611bdb565b73ffffffffffffffffffffffffffffffffffffffff161461262b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262290615126565b60405180910390fd5b81600e8460068110612666577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01908051906020019061267a929190613e93565b5080601484600681106126b6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0190805190602001906126ca929190613e93565b50505050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61276c6128c6565b73ffffffffffffffffffffffffffffffffffffffff1661278a611bdb565b73ffffffffffffffffffffffffffffffffffffffff16146127e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d790615126565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612850576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284790615086565b60405180910390fd5b6128598161374e565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6000816128d96129ce565b111580156128e8575060015482105b8015612915575060056000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b60606000821415612a1b576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612b7b565b600082905060005b60008214612a4d578080612a3690615610565b915050600a82612a4691906153bc565b9150612a23565b60008167ffffffffffffffff811115612a8f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ac15781602001600182028036833780820191505090505b5090505b60008514612b7457600182612ada9190615482565b9150600a85612ae991906156b1565b6030612af5919061532f565b60f81b818381518110612b31577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612b6d91906153bc565b9450612ac5565b8093505050505b919050565b6060600082511415612ba357604051806020016040528060008152509050612d26565b6000604051806060016040528060408152602001615cfb6040913990506000600360028551612bd2919061532f565b612bdc91906153bc565b6004612be891906153ed565b90506000602082612bf9919061532f565b67ffffffffffffffff811115612c38577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612c6a5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b81831015612ce5576003830192508251603f8160121c1685015160f81b8252600182019150603f81600c1c1685015160f81b8252600182019150603f8160061c1685015160f81b8252600182019150603f811685015160f81b825260018201915050612c7e565b600389510660018114612cff5760028114612d0f57612d1a565b613d3d60f01b6002830352612d1a565b603d60f81b60018303525b50505050508093505050505b919050565b6000612d36826134c3565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612da1576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16612dc26128c6565b73ffffffffffffffffffffffffffffffffffffffff161480612df15750612df085612deb6128c6565b6126d0565b5b80612e365750612dff6128c6565b73ffffffffffffffffffffffffffffffffffffffff16612e1e84610ae0565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612e6f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612ed6576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612ee38585856001613995565b612eef6000848761291c565b6001600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600560008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600560008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561316f57600154821461316e57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46131da858585600161399b565b5050505050565b60606000849050600084846131f69190615482565b67ffffffffffffffff811115613235577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132675781602001600182028036833780820191505090505b50905060008590505b84811015613342578281815181106132b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b8287836132c99190615482565b81518110613300577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350808061333a90615610565b915050613270565b5080925050509392505050565b6000808290506000805b82518160ff16101561349a576030838260ff16815181106133a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff161015801561340f57506039838260ff16815181106133fb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff1611155b1561348757600a826134219190615447565b91506030838260ff1681518110613461577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c61347991906154b6565b826134849190615385565b91505b808061349290615659565b915050613359565b508092505050919050565b6134bf8282604051806020016040528060008152506139a1565b5050565b6134cb613ef3565b6000829050806134d96129ce565b1161371757600154811015613716576000600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015161371457600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146135f8578092505050613749565b5b60011561371357818060019003925050600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461370e578092505050613749565b6135f9565b5b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261385b6128c6565b8786866040518563ffffffff1660e01b815260040161387d9493929190614fe1565b602060405180830381600087803b15801561389757600080fd5b505af19250505080156138c857506040513d601f19601f820116820180604052508101906138c5919061449f565b60015b613942573d80600081146138f8576040519150601f19603f3d011682016040523d82523d6000602084013e6138fd565b606091505b5060008151141561393a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b50505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613a0f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415613a4a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613a576000858386613995565b82600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555082600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008482019050613c188673ffffffffffffffffffffffffffffffffffffffff16613812565b15613cdd575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613c8d6000878480600101955087613835565b613cc3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808210613c1e578260015414613cd857600080fd5b613d48565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210613cde575b816001819055505050613d5e600085838661399b565b50505050565b828054613d70906155ad565b90600052602060002090601f016020900481019282613d925760008555613dd9565b82601f10613dab57805160ff1916838001178555613dd9565b82800160010185558215613dd9579182015b82811115613dd8578251825591602001919060010190613dbd565b5b509050613de69190613f36565b5090565b604051806101a00160405280600d90602082028036833780820191505090505090565b828054613e19906155ad565b90600052602060002090601f016020900481019282613e3b5760008555613e82565b82601f10613e5457803560ff1916838001178555613e82565b82800160010185558215613e82579182015b82811115613e81578235825591602001919060010190613e66565b5b509050613e8f9190613f36565b5090565b828054828255906000526020600020908101928215613ee2579160200282015b82811115613ee1578251829080519060200190613ed1929190613d64565b5091602001919060010190613eb3565b5b509050613eef9190613f53565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613f4f576000816000905550600101613f37565b5090565b5b80821115613f735760008181613f6a9190613f77565b50600101613f54565b5090565b508054613f83906155ad565b6000825580601f10613f955750613fb4565b601f016020900490600052602060002090810190613fb39190613f36565b5b50565b6000613fca613fc58461520b565b6151e6565b90508083825260208201905082856020860282011115613fe957600080fd5b60005b8581101561403357813567ffffffffffffffff81111561400b57600080fd5b80860161401889826141e9565b85526020850194506020840193505050600181019050613fec565b5050509392505050565b600061405061404b84615237565b6151e6565b90508281526020810184848401111561406857600080fd5b61407384828561556b565b509392505050565b600061408e61408984615268565b6151e6565b9050828152602081018484840111156140a657600080fd5b6140b184828561556b565b509392505050565b60006140cc6140c784615268565b6151e6565b9050828152602081018484840111156140e457600080fd5b6140ef84828561557a565b509392505050565b60008135905061410681615c9e565b92915050565b600082601f83011261411d57600080fd5b813561412d848260208601613fb7565b91505092915050565b60008135905061414581615cb5565b92915050565b60008135905061415a81615ccc565b92915050565b60008151905061416f81615ccc565b92915050565b600082601f83011261418657600080fd5b813561419684826020860161403d565b91505092915050565b60008083601f8401126141b157600080fd5b8235905067ffffffffffffffff8111156141ca57600080fd5b6020830191508360018202830111156141e257600080fd5b9250929050565b600082601f8301126141fa57600080fd5b813561420a84826020860161407b565b91505092915050565b600082601f83011261422457600080fd5b81516142348482602086016140b9565b91505092915050565b60008135905061424c81615ce3565b92915050565b60006020828403121561426457600080fd5b6000614272848285016140f7565b91505092915050565b6000806040838503121561428e57600080fd5b600061429c858286016140f7565b92505060206142ad858286016140f7565b9150509250929050565b6000806000606084860312156142cc57600080fd5b60006142da868287016140f7565b93505060206142eb868287016140f7565b92505060406142fc8682870161423d565b9150509250925092565b6000806000806080858703121561431c57600080fd5b600061432a878288016140f7565b945050602061433b878288016140f7565b935050604061434c8782880161423d565b925050606085013567ffffffffffffffff81111561436957600080fd5b61437587828801614175565b91505092959194509250565b6000806040838503121561439457600080fd5b60006143a2858286016140f7565b92505060206143b385828601614136565b9150509250929050565b600080604083850312156143d057600080fd5b60006143de858286016140f7565b92505060206143ef8582860161423d565b9150509250929050565b6000806040838503121561440c57600080fd5b600083013567ffffffffffffffff81111561442657600080fd5b6144328582860161410c565b92505060206144438582860161423d565b9150509250929050565b60006020828403121561445f57600080fd5b600061446d84828501614136565b91505092915050565b60006020828403121561448857600080fd5b60006144968482850161414b565b91505092915050565b6000602082840312156144b157600080fd5b60006144bf84828501614160565b91505092915050565b6000806000806000608086880312156144e057600080fd5b600086013567ffffffffffffffff8111156144fa57600080fd5b6145068882890161419f565b9550955050602086013567ffffffffffffffff81111561452557600080fd5b614531888289016141e9565b935050604086013567ffffffffffffffff81111561454e57600080fd5b61455a888289016141e9565b925050606061456b8882890161423d565b9150509295509295909350565b60006020828403121561458a57600080fd5b600082013567ffffffffffffffff8111156145a457600080fd5b6145b0848285016141e9565b91505092915050565b6000602082840312156145cb57600080fd5b600082015167ffffffffffffffff8111156145e557600080fd5b6145f184828501614213565b91505092915050565b6000806000806080858703121561461057600080fd5b600085013567ffffffffffffffff81111561462a57600080fd5b614636878288016141e9565b94505060206146478782880161423d565b935050604061465887828801614136565b92505060606146698782880161423d565b91505092959194509250565b60006020828403121561468757600080fd5b60006146958482850161423d565b91505092915050565b6000806000606084860312156146b357600080fd5b60006146c18682870161423d565b935050602084013567ffffffffffffffff8111156146de57600080fd5b6146ea8682870161410c565b925050604084013567ffffffffffffffff81111561470757600080fd5b6147138682870161410c565b9150509250925092565b6000806040838503121561473057600080fd5b600061473e8582860161423d565b925050602061474f85828601614136565b9150509250929050565b6000806040838503121561476c57600080fd5b600061477a8582860161423d565b925050602061478b8582860161423d565b9150509250929050565b60006147a18383614cdc565b60208301905092915050565b6147b6816154ea565b82525050565b6147cd6147c8826154ea565b615683565b82525050565b6147dc816152b8565b6147e681846152e6565b92506147f182615299565b8060005b838110156148225781516148098782614795565b9650614814836152d9565b9250506001810190506147f5565b505050505050565b614833816154fc565b82525050565b6000614844826152c3565b61484e81856152f1565b935061485e81856020860161557a565b6148678161579e565b840191505092915050565b600061487d826152ce565b6148878185615302565b935061489781856020860161557a565b6148a08161579e565b840191505092915050565b60006148b6826152ce565b6148c08185615313565b93506148d081856020860161557a565b6148d98161579e565b840191505092915050565b60006148ef826152ce565b6148f98185615324565b935061490981856020860161557a565b80840191505092915050565b60008154614922816155ad565b61492c8186615324565b9450600182166000811461494757600181146149585761498b565b60ff1983168652818601935061498b565b614961856152a3565b60005b8381101561498357815481890152600182019150602081019050614964565b838801955050505b50505092915050565b60006149a1601083615324565b91506149ac826157bc565b601082019050919050565b60006149c4600983615324565b91506149cf826157e5565b600982019050919050565b60006149e7608283615324565b91506149f28261580e565b608282019050919050565b6000614a0a600283615324565b9150614a15826158cf565b600282019050919050565b6000614a2d602683615302565b9150614a38826158f8565b604082019050919050565b6000614a50600f83615302565b9150614a5b82615947565b602082019050919050565b6000614a73600883615302565b9150614a7e82615970565b602082019050919050565b6000614a96600183615324565b9150614aa182615999565b600182019050919050565b6000614ab9600b83615324565b9150614ac4826159c2565b600b82019050919050565b6000614adc601283615302565b9150614ae7826159eb565b602082019050919050565b6000614aff600f83615324565b9150614b0a82615a14565b600f82019050919050565b6000614b22601683615302565b9150614b2d82615a3d565b602082019050919050565b6000614b45600283615324565b9150614b5082615a66565b600282019050919050565b6000614b68600583615324565b9150614b7382615a8f565b600582019050919050565b6000614b8b602083615302565b9150614b9682615ab8565b602082019050919050565b6000614bae600183615324565b9150614bb982615ae1565b600182019050919050565b6000614bd1602f83615302565b9150614bdc82615b0a565b604082019050919050565b6000614bf4600b83615324565b9150614bff82615b59565b600b82019050919050565b6000614c17600183615324565b9150614c2282615b82565b600182019050919050565b6000614c3a600f83615302565b9150614c4582615bab565b602082019050919050565b6000614c5d603683615324565b9150614c6882615bd4565b603682019050919050565b6000614c80601d83615324565b9150614c8b82615c23565b601d82019050919050565b6000614ca3601283615324565b9150614cae82615c4c565b601282019050919050565b6000614cc6600683615324565b9150614cd182615c75565b600682019050919050565b614ce581615554565b82525050565b614cf481615554565b82525050565b614d0381615554565b82525050565b614d1a614d1582615554565b6156a7565b82525050565b6000614d2c82846148e4565b915081905092915050565b6000614d4382856148e4565b9150614d4f82846148e4565b91508190509392505050565b6000614d6782856148e4565b9150614d7382846148e4565b9150614d7e82614cb9565b91508190509392505050565b6000614d9682846148e4565b9150614da182614a89565b915081905092915050565b6000614db882866148e4565b9150614dc382614af2565b9150614dcf8285614915565b9150614dda82614be7565b9150614de68284614915565b9150614df182614b38565b9150819050949350505050565b6000614e0a82856148e4565b9150614e1582614af2565b9150614e2082614994565b9150614e2b82614be7565b9150614e378284614915565b9150614e4282614b38565b91508190509392505050565b6000614e5a8285614915565b9150614e65826149fd565b9150614e7182846148e4565b91508190509392505050565b6000614e88826149b7565b9150614e9482866148e4565b9150614e9f826149da565b9150614eab82856148e4565b9150614eb682614aac565b9150614ec282846148e4565b9150614ecd82614b38565b9150819050949350505050565b6000614ee582614ba1565b9150614ef182846148e4565b9150614efc82614c0a565b915081905092915050565b6000614f1282614c50565b9150614f1e82846148e4565b9150614f2982614b5b565b915081905092915050565b6000614f3f82614c73565b9150614f4b82846148e4565b915081905092915050565b6000614f6182614c96565b9150614f6d82846148e4565b915081905092915050565b6000614f848287614d09565b602082019150614f948286614d09565b602082019150614fa48285614d09565b602082019150614fb482846147bc565b60148201915081905095945050505050565b6000602082019050614fdb60008301846147ad565b92915050565b6000608082019050614ff660008301876147ad565b61500360208301866147ad565b6150106040830185614ceb565b81810360608301526150228184614839565b905095945050505050565b60006101a08201905061504360008301846147d3565b92915050565b600060208201905061505e600083018461482a565b92915050565b6000602082019050818103600083015261507e8184614872565b905092915050565b6000602082019050818103600083015261509f81614a20565b9050919050565b600060208201905081810360008301526150bf81614a43565b9050919050565b600060208201905081810360008301526150df81614a66565b9050919050565b600060208201905081810360008301526150ff81614acf565b9050919050565b6000602082019050818103600083015261511f81614b15565b9050919050565b6000602082019050818103600083015261513f81614b7e565b9050919050565b6000602082019050818103600083015261515f81614bc4565b9050919050565b6000602082019050818103600083015261517f81614c2d565b9050919050565b600060208201905061519b6000830184614ceb565b92915050565b60006060820190506151b66000830186614cfa565b81810360208301526151c881856148ab565b905081810360408301526151dc81846148ab565b9050949350505050565b60006151f0615201565b90506151fc82826155df565b919050565b6000604051905090565b600067ffffffffffffffff8211156152265761522561576f565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156152525761525161576f565b5b61525b8261579e565b9050602081019050919050565b600067ffffffffffffffff8211156152835761528261576f565b5b61528c8261579e565b9050602081019050919050565b6000819050919050565b60008190508160005260206000209050919050565b6000600d9050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061533a82615554565b915061534583615554565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561537a576153796156e2565b5b828201905092915050565b60006153908261555e565b915061539b8361555e565b92508260ff038211156153b1576153b06156e2565b5b828201905092915050565b60006153c782615554565b91506153d283615554565b9250826153e2576153e1615711565b5b828204905092915050565b60006153f882615554565b915061540383615554565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561543c5761543b6156e2565b5b828202905092915050565b60006154528261555e565b915061545d8361555e565b92508160ff0483118215151615615477576154766156e2565b5b828202905092915050565b600061548d82615554565b915061549883615554565b9250828210156154ab576154aa6156e2565b5b828203905092915050565b60006154c18261555e565b91506154cc8361555e565b9250828210156154df576154de6156e2565b5b828203905092915050565b60006154f582615534565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561559857808201518184015260208101905061557d565b838111156155a7576000848401525b50505050565b600060028204905060018216806155c557607f821691505b602082108114156155d9576155d8615740565b5b50919050565b6155e88261579e565b810181811067ffffffffffffffff821117156156075761560661576f565b5b80604052505050565b600061561b82615554565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561564e5761564d6156e2565b5b600182019050919050565b60006156648261555e565b915060ff821415615678576156776156e2565b5b600182019050919050565b600061568e82615695565b9050919050565b60006156a0826157af565b9050919050565b6000819050919050565b60006156bc82615554565b91506156c783615554565b9250826156d7576156d6615711565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4c6567656e6461727920576561706f6e00000000000000000000000000000000600082015250565b7f7b226e616d65223a220000000000000000000000000000000000000000000000600082015250565b7f222c20226465736372697074696f6e223a22636861696e6b6e69676874732e7860008201527f797a2069732061203130302520756e6971756520636f6c6c656374696f6e206f60208201527f66206b6e6967687473206f6e20636861696e2e204e6f20697066732c206e6f2060408201527f7365727665722c206a75737420636f64652e222c20226174747269627574657360608201527f223a000000000000000000000000000000000000000000000000000000000000608082015250565b7f2023000000000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f436f6e7472616374207061757365640000000000000000000000000000000000600082015250565b7f4f6e6c7920454f41000000000000000000000000000000000000000000000000600082015250565b7f2c00000000000000000000000000000000000000000000000000000000000000600082015250565b7f2c2022696d616765223a22000000000000000000000000000000000000000000600082015250565b7f4d6178206d696e74206578636565646564210000000000000000000000000000600082015250565b7f7b2274726169745f74797065223a220000000000000000000000000000000000600082015250565b7f4e6f20656e6f75676874206d696e7473206c6566742e00000000000000000000600082015250565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f5b00000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f222c2276616c7565223a22000000000000000000000000000000000000000000600082015250565b7f5d00000000000000000000000000000000000000000000000000000000000000600082015250565b7f4e6f7420656e6f756768204554482e0000000000000000000000000000000000600082015250565b7f697066733a2f2f516d514c526173634b67773668547565676d34706e3163774560008201527f794a666a3339314831356b5650506677634847336e2f00000000000000000000602082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b7f636861696e6b6e69676874732e78797a20230000000000000000000000000000600082015250565b7f3c2f7376673e0000000000000000000000000000000000000000000000000000600082015250565b615ca7816154ea565b8114615cb257600080fd5b50565b615cbe816154fc565b8114615cc957600080fd5b50565b615cd581615508565b8114615ce057600080fd5b50565b615cec81615554565b8114615cf757600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222073686170652d72656e646572696e673d226372697370456467657322207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d2230202d302e35203634203634223ea26469706673582212205517b3a73eab6ce67fed54c1d7035161f72cf655bd81370b3cfcc279088ddab164736f6c63430008040033
Deployed Bytecode
0x6080604052600436106102255760003560e01c80636352211e11610123578063a591252d116100ab578063caed5c3e1161006f578063caed5c3e146107f0578063d5abeb0114610819578063e172496914610844578063e985e9c51461086d578063f2fde38b146108aa57610225565b8063a591252d14610706578063adf66d3114610731578063b325eaf81461074d578063b88d4fde1461078a578063c87b56dd146107b357610225565b8063715018a6116100f2578063715018a6146106455780637501f7411461065c5780638da5cb5b1461068757806395d89b41146106b2578063a22cb465146106dd57610225565b80636352211e14610563578063689bd133146105a05780636dcee4ca146105cb57806370a082311461060857610225565b806323a67aa7116101b15780633ccfd60b116101755780633ccfd60b146104c057806340c10f19146104ca57806342842e0e146104e657806344a0d68a1461050f5780635c975abb1461053857610225565b806323a67aa7146103cb57806323b872dd146103f45780632f0eaf8a1461041d57806330d871c614610446578063336f101e1461048357610225565b8063095ea7b3116101f8578063095ea7b3146102f857806313faede61461032157806317984ea01461034c57806318160ddd146103635780631e9f73c11461038e57610225565b806301ffc9a71461022a57806302329a291461026757806306fdde0314610290578063081812fc146102bb575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c9190614476565b6108d3565b60405161025e9190615049565b60405180910390f35b34801561027357600080fd5b5061028e6004803603810190610289919061444d565b6109b5565b005b34801561029c57600080fd5b506102a5610a4e565b6040516102b29190615064565b60405180910390f35b3480156102c757600080fd5b506102e260048036038101906102dd9190614675565b610ae0565b6040516102ef9190614fc6565b60405180910390f35b34801561030457600080fd5b5061031f600480360381019061031a91906143bd565b610b5c565b005b34801561032d57600080fd5b50610336610c61565b6040516103439190615186565b60405180910390f35b34801561035857600080fd5b50610361610c67565b005b34801561036f57600080fd5b50610378610d88565b6040516103859190615186565b60405180910390f35b34801561039a57600080fd5b506103b560048036038101906103b091906145fa565b610d9f565b6040516103c29190615064565b60405180910390f35b3480156103d757600080fd5b506103f260048036038101906103ed919061444d565b610f15565b005b34801561040057600080fd5b5061041b600480360381019061041691906142b7565b610fae565b005b34801561042957600080fd5b50610444600480360381019061043f91906143f9565b610fbe565b005b34801561045257600080fd5b5061046d60048036038101906104689190614578565b6110cb565b60405161047a9190615064565b60405180910390f35b34801561048f57600080fd5b506104aa60048036038101906104a59190614759565b61115e565b6040516104b79190615186565b60405180910390f35b6104c861122a565b005b6104e460048036038101906104df91906143bd565b6112e6565b005b3480156104f257600080fd5b5061050d600480360381019061050891906142b7565b611551565b005b34801561051b57600080fd5b5061053660048036038101906105319190614675565b611571565b005b34801561054457600080fd5b5061054d6115f7565b60405161055a9190615049565b60405180910390f35b34801561056f57600080fd5b5061058a60048036038101906105859190614675565b61160a565b6040516105979190614fc6565b60405180910390f35b3480156105ac57600080fd5b506105b5611620565b6040516105c2919061502d565b60405180910390f35b3480156105d757600080fd5b506105f260048036038101906105ed9190614675565b6116e7565b6040516105ff9190615064565b60405180910390f35b34801561061457600080fd5b5061062f600480360381019061062a9190614252565b611a7d565b60405161063c9190615186565b60405180910390f35b34801561065157600080fd5b5061065a611b4d565b005b34801561066857600080fd5b50610671611bd5565b60405161067e9190615186565b60405180910390f35b34801561069357600080fd5b5061069c611bdb565b6040516106a99190614fc6565b60405180910390f35b3480156106be57600080fd5b506106c7611c04565b6040516106d49190615064565b60405180910390f35b3480156106e957600080fd5b5061070460048036038101906106ff9190614381565b611c96565b005b34801561071257600080fd5b5061071b611e0e565b6040516107289190615186565b60405180910390f35b61074b600480360381019061074691906143bd565b611e14565b005b34801561075957600080fd5b50610774600480360381019061076f919061471d565b61202f565b6040516107819190615064565b60405180910390f35b34801561079657600080fd5b506107b160048036038101906107ac9190614306565b61220f565b005b3480156107bf57600080fd5b506107da60048036038101906107d59190614675565b612287565b6040516107e79190615064565b60405180910390f35b3480156107fc57600080fd5b50610817600480360381019061081291906144c8565b612402565b005b34801561082557600080fd5b5061082e6125a9565b60405161083b9190615186565b60405180910390f35b34801561085057600080fd5b5061086b6004803603810190610866919061469e565b6125af565b005b34801561087957600080fd5b50610894600480360381019061088f919061427b565b6126d0565b6040516108a19190615049565b60405180910390f35b3480156108b657600080fd5b506108d160048036038101906108cc9190614252565b612764565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109ae57506109ad8261285c565b5b9050919050565b6109bd6128c6565b73ffffffffffffffffffffffffffffffffffffffff166109db611bdb565b73ffffffffffffffffffffffffffffffffffffffff1614610a31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2890615126565b60405180910390fd5b80600c60006101000a81548160ff02191690831515021790555050565b606060038054610a5d906155ad565b80601f0160208091040260200160405190810160405280929190818152602001828054610a89906155ad565b8015610ad65780601f10610aab57610100808354040283529160200191610ad6565b820191906000526020600020905b815481529060010190602001808311610ab957829003601f168201915b5050505050905090565b6000610aeb826128ce565b610b21576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b678261160a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bcf576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bee6128c6565b73ffffffffffffffffffffffffffffffffffffffff1614610c5157610c1a81610c156128c6565b6126d0565b610c50576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b610c5c83838361291c565b505050565b600d5481565b610c6f6128c6565b73ffffffffffffffffffffffffffffffffffffffff16610c8d611bdb565b73ffffffffffffffffffffffffffffffffffffffff1614610ce3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cda90615126565b60405180910390fd5b60005b601e54811015610d8557600060095444428433604051602001610d0c9493929190614f78565b6040516020818303038152906040528051906020012060001c610d2f91906156b1565b905080601f83600d8110610d6c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0181905550508080610d7d90615610565b915050610ce6565b50565b6000610d926129ce565b6002546001540303905090565b6060600115158315151415610e8f5760001515601d60009054906101000a900460ff1615151415610df957610dd3826129d3565b604051602001610de39190614f07565b6040516020818303038152906040529050610f0d565b610e69601b6000868152602001908152602001600020610e18866129d3565b604051602001610e29929190614e4e565b604051602081830303815290604052610e42868661202f565b87604051602001610e5593929190614e7d565b604051602081830303815290604052612b80565b604051602001610e799190614f34565b6040516020818303038152906040529050610f0d565b610eeb610e9b856129d3565b604051602001610eab9190614f56565b604051602081830303815290604052610ec4868661202f565b87604051602001610ed793929190614e7d565b604051602081830303815290604052612b80565b604051602001610efb9190614f34565b60405160208183030381529060405290505b949350505050565b610f1d6128c6565b73ffffffffffffffffffffffffffffffffffffffff16610f3b611bdb565b73ffffffffffffffffffffffffffffffffffffffff1614610f91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8890615126565b60405180910390fd5b80601d60006101000a81548160ff02191690831515021790555050565b610fb9838383612d2b565b505050565b610fc66128c6565b73ffffffffffffffffffffffffffffffffffffffff16610fe4611bdb565b73ffffffffffffffffffffffffffffffffffffffff161461103a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103190615126565b60405180910390fd5b60005b818110156110c6576000819050838281518110611083577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151602d600083815260200190815260200160002090805190602001906110b1929190613d64565b505080806110be90615610565b91505061103d565b505050565b606060006040518060400160405280601a81526020017f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000815250905060006111318460405160200161111d9190614d20565b604051602081830303815290604052612b80565b90508181604051602001611146929190614d37565b60405160208183030381529060405292505050919050565b600080611213602d60008581526020019081526020016000208054611182906155ad565b80601f01602080910402602001604051908101604052809291908181526020018280546111ae906155ad565b80156111fb5780601f106111d0576101008083540402835291602001916111fb565b820191906000526020600020905b8154815290600101906020018083116111de57829003601f168201915b50505050508560018761120e919061532f565b6131e1565b905061121e8161334f565b60ff1691505092915050565b6112326128c6565b73ffffffffffffffffffffffffffffffffffffffff16611250611bdb565b73ffffffffffffffffffffffffffffffffffffffff16146112a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129d90615126565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050506112e457600080fd5b565b6112ee6128c6565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461135b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611352906150c6565b60405180910390fd5b600c60009054906101000a900460ff16156113ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a2906150a6565b60405180910390fd5b600081116113b857600080fd5b600954816113c4610d88565b6113ce919061532f565b1061140e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140590615106565b60405180910390fd5b600b5481602f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461145c919061532f565b111561149d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611494906150e6565b60405180910390fd5b80600d546114ab91906153ed565b3410156114ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e490615166565b60405180910390fd5b80602f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461153c919061532f565b9250508190555061154d82826134a5565b5050565b61156c8383836040518060200160405280600081525061220f565b505050565b6115796128c6565b73ffffffffffffffffffffffffffffffffffffffff16611597611bdb565b73ffffffffffffffffffffffffffffffffffffffff16146115ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e490615126565b60405180910390fd5b80600d8190555050565b600c60009054906101000a900460ff1681565b6000611615826134c3565b600001519050919050565b611628613dea565b6116306128c6565b73ffffffffffffffffffffffffffffffffffffffff1661164e611bdb565b73ffffffffffffffffffffffffffffffffffffffff16146116a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169b90615126565b60405180910390fd5b601f600d806020026040519081016040528092919082600d80156116dd576020028201915b8154815260200190600101908083116116c9575b5050505050905090565b606060006040518060a0016040528060808152602001615d3b60809139905060005b60068110156119c7576000600e826006811061174e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01611759838761115e565b81548110611790577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200180546117a5906155ad565b80601f01602080910402602001604051908101604052809291908181526020018280546117d1906155ad565b801561181e5780601f106117f35761010080835404028352916020019161181e565b820191906000526020600020905b81548152906001019060200180831161180157829003601f168201915b505050505090506007815111156118ff578273e7bdd1b5d7452d17dac6774501eddd2daee0dc4d635dd12c768461185885600060076131e1565b611865866007600e6131e1565b6040518463ffffffff1660e01b8152600401611883939291906151a1565b60006040518083038186803b15801561189b57600080fd5b505af41580156118af573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906118d891906145b9565b6040516020016118e9929190614d37565b60405160208183030381529060405292506119b3565b8273e7bdd1b5d7452d17dac6774501eddd2daee0dc4d635dd12c768484856040518463ffffffff1660e01b815260040161193b939291906151a1565b60006040518083038186803b15801561195357600080fd5b505af4158015611967573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061199091906145b9565b6040516020016119a1929190614d37565b60405160208183030381529060405292505b5080806119bf90615610565b915050611709565b508073e7bdd1b5d7452d17dac6774501eddd2daee0dc4d63c584005a6040518163ffffffff1660e01b815260040160006040518083038186803b158015611a0d57600080fd5b505af4158015611a21573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611a4a91906145b9565b604051602001611a5b929190614d5b565b6040516020818303038152906040529050611a75816110cb565b915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ae5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611b556128c6565b73ffffffffffffffffffffffffffffffffffffffff16611b73611bdb565b73ffffffffffffffffffffffffffffffffffffffff1614611bc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc090615126565b60405180910390fd5b611bd3600061374e565b565b600b5481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054611c13906155ad565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3f906155ad565b8015611c8c5780601f10611c6157610100808354040283529160200191611c8c565b820191906000526020600020905b815481529060010190602001808311611c6f57829003601f168201915b5050505050905090565b611c9e6128c6565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d03576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060086000611d106128c6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611dbd6128c6565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e029190615049565b60405180910390a35050565b600a5481565b611e1c6128c6565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611e89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e80906150c6565b60405180910390fd5b600c60009054906101000a900460ff1615611ed9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed0906150a6565b60405180910390fd5b60008111611ee657600080fd5b60095481611ef2610d88565b611efc919061532f565b10611f3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3390615106565b60405180910390fd5b600a5481602e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f8a919061532f565b1115611fcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc2906150e6565b60405180910390fd5b80602e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461201a919061532f565b9250508190555061202b82826134a5565b5050565b60608060011515831515141561209d5780601c6000868152602001908152602001600020604051602001612064929190614dfe565b6040516020818303038152906040529050806040516020016120869190614eda565b604051602081830303815290604052915050612209565b60005b60068160ff1610156121e45781602c8260ff16815481106120ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160148360ff1660068110612131577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0161213f8460ff168961115e565b81548110612176577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160405160200161219293929190614dac565b604051602081830303815290604052915060058160ff16146121d157816040516020016121bf9190614d8a565b60405160208183030381529060405291505b80806121dc90615659565b9150506120a0565b50806040516020016121f69190614eda565b6040516020818303038152906040529150505b92915050565b61221a848484612d2b565b6122398373ffffffffffffffffffffffffffffffffffffffff16613812565b156122815761224a84848484613835565b612280576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060612292826128ce565b6122d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c890615146565b60405180910390fd5b60005b601e548110156123e45782601f82600d8110612319577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b015414156123d1576123c9601a60008581526020019081526020016000208054612342906155ad565b80601f016020809104026020016040519081016040528092919081815260200182805461236e906155ad565b80156123bb5780601f10612390576101008083540402835291602001916123bb565b820191906000526020600020905b81548152906001019060200180831161239e57829003601f168201915b505050505084600184610d9f565b9150506123fd565b80806123dc90615610565b9150506122d4565b506123fa6123f1836116e7565b83600080610d9f565b90505b919050565b61240a6128c6565b73ffffffffffffffffffffffffffffffffffffffff16612428611bdb565b73ffffffffffffffffffffffffffffffffffffffff161461247e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247590615126565b60405180910390fd5b8484601a6000601f85600d81106124be577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0154815260200190815260200160002091906124db929190613e0d565b5082601b6000601f84600d811061251b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01548152602001908152602001600020908051906020019061253e929190613d64565b5081601c6000601f84600d811061257e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0154815260200190815260200160002090805190602001906125a1929190613d64565b505050505050565b60095481565b6125b76128c6565b73ffffffffffffffffffffffffffffffffffffffff166125d5611bdb565b73ffffffffffffffffffffffffffffffffffffffff161461262b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262290615126565b60405180910390fd5b81600e8460068110612666577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01908051906020019061267a929190613e93565b5080601484600681106126b6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0190805190602001906126ca929190613e93565b50505050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61276c6128c6565b73ffffffffffffffffffffffffffffffffffffffff1661278a611bdb565b73ffffffffffffffffffffffffffffffffffffffff16146127e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d790615126565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612850576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284790615086565b60405180910390fd5b6128598161374e565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6000816128d96129ce565b111580156128e8575060015482105b8015612915575060056000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b60606000821415612a1b576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612b7b565b600082905060005b60008214612a4d578080612a3690615610565b915050600a82612a4691906153bc565b9150612a23565b60008167ffffffffffffffff811115612a8f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ac15781602001600182028036833780820191505090505b5090505b60008514612b7457600182612ada9190615482565b9150600a85612ae991906156b1565b6030612af5919061532f565b60f81b818381518110612b31577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612b6d91906153bc565b9450612ac5565b8093505050505b919050565b6060600082511415612ba357604051806020016040528060008152509050612d26565b6000604051806060016040528060408152602001615cfb6040913990506000600360028551612bd2919061532f565b612bdc91906153bc565b6004612be891906153ed565b90506000602082612bf9919061532f565b67ffffffffffffffff811115612c38577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612c6a5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b81831015612ce5576003830192508251603f8160121c1685015160f81b8252600182019150603f81600c1c1685015160f81b8252600182019150603f8160061c1685015160f81b8252600182019150603f811685015160f81b825260018201915050612c7e565b600389510660018114612cff5760028114612d0f57612d1a565b613d3d60f01b6002830352612d1a565b603d60f81b60018303525b50505050508093505050505b919050565b6000612d36826134c3565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612da1576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16612dc26128c6565b73ffffffffffffffffffffffffffffffffffffffff161480612df15750612df085612deb6128c6565b6126d0565b5b80612e365750612dff6128c6565b73ffffffffffffffffffffffffffffffffffffffff16612e1e84610ae0565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612e6f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612ed6576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612ee38585856001613995565b612eef6000848761291c565b6001600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600560008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600560008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561316f57600154821461316e57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46131da858585600161399b565b5050505050565b60606000849050600084846131f69190615482565b67ffffffffffffffff811115613235577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132675781602001600182028036833780820191505090505b50905060008590505b84811015613342578281815181106132b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b8287836132c99190615482565b81518110613300577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350808061333a90615610565b915050613270565b5080925050509392505050565b6000808290506000805b82518160ff16101561349a576030838260ff16815181106133a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff161015801561340f57506039838260ff16815181106133fb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff1611155b1561348757600a826134219190615447565b91506030838260ff1681518110613461577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c61347991906154b6565b826134849190615385565b91505b808061349290615659565b915050613359565b508092505050919050565b6134bf8282604051806020016040528060008152506139a1565b5050565b6134cb613ef3565b6000829050806134d96129ce565b1161371757600154811015613716576000600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015161371457600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146135f8578092505050613749565b5b60011561371357818060019003925050600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461370e578092505050613749565b6135f9565b5b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261385b6128c6565b8786866040518563ffffffff1660e01b815260040161387d9493929190614fe1565b602060405180830381600087803b15801561389757600080fd5b505af19250505080156138c857506040513d601f19601f820116820180604052508101906138c5919061449f565b60015b613942573d80600081146138f8576040519150601f19603f3d011682016040523d82523d6000602084013e6138fd565b606091505b5060008151141561393a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b50505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613a0f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415613a4a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613a576000858386613995565b82600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555082600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008482019050613c188673ffffffffffffffffffffffffffffffffffffffff16613812565b15613cdd575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613c8d6000878480600101955087613835565b613cc3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808210613c1e578260015414613cd857600080fd5b613d48565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210613cde575b816001819055505050613d5e600085838661399b565b50505050565b828054613d70906155ad565b90600052602060002090601f016020900481019282613d925760008555613dd9565b82601f10613dab57805160ff1916838001178555613dd9565b82800160010185558215613dd9579182015b82811115613dd8578251825591602001919060010190613dbd565b5b509050613de69190613f36565b5090565b604051806101a00160405280600d90602082028036833780820191505090505090565b828054613e19906155ad565b90600052602060002090601f016020900481019282613e3b5760008555613e82565b82601f10613e5457803560ff1916838001178555613e82565b82800160010185558215613e82579182015b82811115613e81578235825591602001919060010190613e66565b5b509050613e8f9190613f36565b5090565b828054828255906000526020600020908101928215613ee2579160200282015b82811115613ee1578251829080519060200190613ed1929190613d64565b5091602001919060010190613eb3565b5b509050613eef9190613f53565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613f4f576000816000905550600101613f37565b5090565b5b80821115613f735760008181613f6a9190613f77565b50600101613f54565b5090565b508054613f83906155ad565b6000825580601f10613f955750613fb4565b601f016020900490600052602060002090810190613fb39190613f36565b5b50565b6000613fca613fc58461520b565b6151e6565b90508083825260208201905082856020860282011115613fe957600080fd5b60005b8581101561403357813567ffffffffffffffff81111561400b57600080fd5b80860161401889826141e9565b85526020850194506020840193505050600181019050613fec565b5050509392505050565b600061405061404b84615237565b6151e6565b90508281526020810184848401111561406857600080fd5b61407384828561556b565b509392505050565b600061408e61408984615268565b6151e6565b9050828152602081018484840111156140a657600080fd5b6140b184828561556b565b509392505050565b60006140cc6140c784615268565b6151e6565b9050828152602081018484840111156140e457600080fd5b6140ef84828561557a565b509392505050565b60008135905061410681615c9e565b92915050565b600082601f83011261411d57600080fd5b813561412d848260208601613fb7565b91505092915050565b60008135905061414581615cb5565b92915050565b60008135905061415a81615ccc565b92915050565b60008151905061416f81615ccc565b92915050565b600082601f83011261418657600080fd5b813561419684826020860161403d565b91505092915050565b60008083601f8401126141b157600080fd5b8235905067ffffffffffffffff8111156141ca57600080fd5b6020830191508360018202830111156141e257600080fd5b9250929050565b600082601f8301126141fa57600080fd5b813561420a84826020860161407b565b91505092915050565b600082601f83011261422457600080fd5b81516142348482602086016140b9565b91505092915050565b60008135905061424c81615ce3565b92915050565b60006020828403121561426457600080fd5b6000614272848285016140f7565b91505092915050565b6000806040838503121561428e57600080fd5b600061429c858286016140f7565b92505060206142ad858286016140f7565b9150509250929050565b6000806000606084860312156142cc57600080fd5b60006142da868287016140f7565b93505060206142eb868287016140f7565b92505060406142fc8682870161423d565b9150509250925092565b6000806000806080858703121561431c57600080fd5b600061432a878288016140f7565b945050602061433b878288016140f7565b935050604061434c8782880161423d565b925050606085013567ffffffffffffffff81111561436957600080fd5b61437587828801614175565b91505092959194509250565b6000806040838503121561439457600080fd5b60006143a2858286016140f7565b92505060206143b385828601614136565b9150509250929050565b600080604083850312156143d057600080fd5b60006143de858286016140f7565b92505060206143ef8582860161423d565b9150509250929050565b6000806040838503121561440c57600080fd5b600083013567ffffffffffffffff81111561442657600080fd5b6144328582860161410c565b92505060206144438582860161423d565b9150509250929050565b60006020828403121561445f57600080fd5b600061446d84828501614136565b91505092915050565b60006020828403121561448857600080fd5b60006144968482850161414b565b91505092915050565b6000602082840312156144b157600080fd5b60006144bf84828501614160565b91505092915050565b6000806000806000608086880312156144e057600080fd5b600086013567ffffffffffffffff8111156144fa57600080fd5b6145068882890161419f565b9550955050602086013567ffffffffffffffff81111561452557600080fd5b614531888289016141e9565b935050604086013567ffffffffffffffff81111561454e57600080fd5b61455a888289016141e9565b925050606061456b8882890161423d565b9150509295509295909350565b60006020828403121561458a57600080fd5b600082013567ffffffffffffffff8111156145a457600080fd5b6145b0848285016141e9565b91505092915050565b6000602082840312156145cb57600080fd5b600082015167ffffffffffffffff8111156145e557600080fd5b6145f184828501614213565b91505092915050565b6000806000806080858703121561461057600080fd5b600085013567ffffffffffffffff81111561462a57600080fd5b614636878288016141e9565b94505060206146478782880161423d565b935050604061465887828801614136565b92505060606146698782880161423d565b91505092959194509250565b60006020828403121561468757600080fd5b60006146958482850161423d565b91505092915050565b6000806000606084860312156146b357600080fd5b60006146c18682870161423d565b935050602084013567ffffffffffffffff8111156146de57600080fd5b6146ea8682870161410c565b925050604084013567ffffffffffffffff81111561470757600080fd5b6147138682870161410c565b9150509250925092565b6000806040838503121561473057600080fd5b600061473e8582860161423d565b925050602061474f85828601614136565b9150509250929050565b6000806040838503121561476c57600080fd5b600061477a8582860161423d565b925050602061478b8582860161423d565b9150509250929050565b60006147a18383614cdc565b60208301905092915050565b6147b6816154ea565b82525050565b6147cd6147c8826154ea565b615683565b82525050565b6147dc816152b8565b6147e681846152e6565b92506147f182615299565b8060005b838110156148225781516148098782614795565b9650614814836152d9565b9250506001810190506147f5565b505050505050565b614833816154fc565b82525050565b6000614844826152c3565b61484e81856152f1565b935061485e81856020860161557a565b6148678161579e565b840191505092915050565b600061487d826152ce565b6148878185615302565b935061489781856020860161557a565b6148a08161579e565b840191505092915050565b60006148b6826152ce565b6148c08185615313565b93506148d081856020860161557a565b6148d98161579e565b840191505092915050565b60006148ef826152ce565b6148f98185615324565b935061490981856020860161557a565b80840191505092915050565b60008154614922816155ad565b61492c8186615324565b9450600182166000811461494757600181146149585761498b565b60ff1983168652818601935061498b565b614961856152a3565b60005b8381101561498357815481890152600182019150602081019050614964565b838801955050505b50505092915050565b60006149a1601083615324565b91506149ac826157bc565b601082019050919050565b60006149c4600983615324565b91506149cf826157e5565b600982019050919050565b60006149e7608283615324565b91506149f28261580e565b608282019050919050565b6000614a0a600283615324565b9150614a15826158cf565b600282019050919050565b6000614a2d602683615302565b9150614a38826158f8565b604082019050919050565b6000614a50600f83615302565b9150614a5b82615947565b602082019050919050565b6000614a73600883615302565b9150614a7e82615970565b602082019050919050565b6000614a96600183615324565b9150614aa182615999565b600182019050919050565b6000614ab9600b83615324565b9150614ac4826159c2565b600b82019050919050565b6000614adc601283615302565b9150614ae7826159eb565b602082019050919050565b6000614aff600f83615324565b9150614b0a82615a14565b600f82019050919050565b6000614b22601683615302565b9150614b2d82615a3d565b602082019050919050565b6000614b45600283615324565b9150614b5082615a66565b600282019050919050565b6000614b68600583615324565b9150614b7382615a8f565b600582019050919050565b6000614b8b602083615302565b9150614b9682615ab8565b602082019050919050565b6000614bae600183615324565b9150614bb982615ae1565b600182019050919050565b6000614bd1602f83615302565b9150614bdc82615b0a565b604082019050919050565b6000614bf4600b83615324565b9150614bff82615b59565b600b82019050919050565b6000614c17600183615324565b9150614c2282615b82565b600182019050919050565b6000614c3a600f83615302565b9150614c4582615bab565b602082019050919050565b6000614c5d603683615324565b9150614c6882615bd4565b603682019050919050565b6000614c80601d83615324565b9150614c8b82615c23565b601d82019050919050565b6000614ca3601283615324565b9150614cae82615c4c565b601282019050919050565b6000614cc6600683615324565b9150614cd182615c75565b600682019050919050565b614ce581615554565b82525050565b614cf481615554565b82525050565b614d0381615554565b82525050565b614d1a614d1582615554565b6156a7565b82525050565b6000614d2c82846148e4565b915081905092915050565b6000614d4382856148e4565b9150614d4f82846148e4565b91508190509392505050565b6000614d6782856148e4565b9150614d7382846148e4565b9150614d7e82614cb9565b91508190509392505050565b6000614d9682846148e4565b9150614da182614a89565b915081905092915050565b6000614db882866148e4565b9150614dc382614af2565b9150614dcf8285614915565b9150614dda82614be7565b9150614de68284614915565b9150614df182614b38565b9150819050949350505050565b6000614e0a82856148e4565b9150614e1582614af2565b9150614e2082614994565b9150614e2b82614be7565b9150614e378284614915565b9150614e4282614b38565b91508190509392505050565b6000614e5a8285614915565b9150614e65826149fd565b9150614e7182846148e4565b91508190509392505050565b6000614e88826149b7565b9150614e9482866148e4565b9150614e9f826149da565b9150614eab82856148e4565b9150614eb682614aac565b9150614ec282846148e4565b9150614ecd82614b38565b9150819050949350505050565b6000614ee582614ba1565b9150614ef182846148e4565b9150614efc82614c0a565b915081905092915050565b6000614f1282614c50565b9150614f1e82846148e4565b9150614f2982614b5b565b915081905092915050565b6000614f3f82614c73565b9150614f4b82846148e4565b915081905092915050565b6000614f6182614c96565b9150614f6d82846148e4565b915081905092915050565b6000614f848287614d09565b602082019150614f948286614d09565b602082019150614fa48285614d09565b602082019150614fb482846147bc565b60148201915081905095945050505050565b6000602082019050614fdb60008301846147ad565b92915050565b6000608082019050614ff660008301876147ad565b61500360208301866147ad565b6150106040830185614ceb565b81810360608301526150228184614839565b905095945050505050565b60006101a08201905061504360008301846147d3565b92915050565b600060208201905061505e600083018461482a565b92915050565b6000602082019050818103600083015261507e8184614872565b905092915050565b6000602082019050818103600083015261509f81614a20565b9050919050565b600060208201905081810360008301526150bf81614a43565b9050919050565b600060208201905081810360008301526150df81614a66565b9050919050565b600060208201905081810360008301526150ff81614acf565b9050919050565b6000602082019050818103600083015261511f81614b15565b9050919050565b6000602082019050818103600083015261513f81614b7e565b9050919050565b6000602082019050818103600083015261515f81614bc4565b9050919050565b6000602082019050818103600083015261517f81614c2d565b9050919050565b600060208201905061519b6000830184614ceb565b92915050565b60006060820190506151b66000830186614cfa565b81810360208301526151c881856148ab565b905081810360408301526151dc81846148ab565b9050949350505050565b60006151f0615201565b90506151fc82826155df565b919050565b6000604051905090565b600067ffffffffffffffff8211156152265761522561576f565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156152525761525161576f565b5b61525b8261579e565b9050602081019050919050565b600067ffffffffffffffff8211156152835761528261576f565b5b61528c8261579e565b9050602081019050919050565b6000819050919050565b60008190508160005260206000209050919050565b6000600d9050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061533a82615554565b915061534583615554565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561537a576153796156e2565b5b828201905092915050565b60006153908261555e565b915061539b8361555e565b92508260ff038211156153b1576153b06156e2565b5b828201905092915050565b60006153c782615554565b91506153d283615554565b9250826153e2576153e1615711565b5b828204905092915050565b60006153f882615554565b915061540383615554565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561543c5761543b6156e2565b5b828202905092915050565b60006154528261555e565b915061545d8361555e565b92508160ff0483118215151615615477576154766156e2565b5b828202905092915050565b600061548d82615554565b915061549883615554565b9250828210156154ab576154aa6156e2565b5b828203905092915050565b60006154c18261555e565b91506154cc8361555e565b9250828210156154df576154de6156e2565b5b828203905092915050565b60006154f582615534565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561559857808201518184015260208101905061557d565b838111156155a7576000848401525b50505050565b600060028204905060018216806155c557607f821691505b602082108114156155d9576155d8615740565b5b50919050565b6155e88261579e565b810181811067ffffffffffffffff821117156156075761560661576f565b5b80604052505050565b600061561b82615554565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561564e5761564d6156e2565b5b600182019050919050565b60006156648261555e565b915060ff821415615678576156776156e2565b5b600182019050919050565b600061568e82615695565b9050919050565b60006156a0826157af565b9050919050565b6000819050919050565b60006156bc82615554565b91506156c783615554565b9250826156d7576156d6615711565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4c6567656e6461727920576561706f6e00000000000000000000000000000000600082015250565b7f7b226e616d65223a220000000000000000000000000000000000000000000000600082015250565b7f222c20226465736372697074696f6e223a22636861696e6b6e69676874732e7860008201527f797a2069732061203130302520756e6971756520636f6c6c656374696f6e206f60208201527f66206b6e6967687473206f6e20636861696e2e204e6f20697066732c206e6f2060408201527f7365727665722c206a75737420636f64652e222c20226174747269627574657360608201527f223a000000000000000000000000000000000000000000000000000000000000608082015250565b7f2023000000000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f436f6e7472616374207061757365640000000000000000000000000000000000600082015250565b7f4f6e6c7920454f41000000000000000000000000000000000000000000000000600082015250565b7f2c00000000000000000000000000000000000000000000000000000000000000600082015250565b7f2c2022696d616765223a22000000000000000000000000000000000000000000600082015250565b7f4d6178206d696e74206578636565646564210000000000000000000000000000600082015250565b7f7b2274726169745f74797065223a220000000000000000000000000000000000600082015250565b7f4e6f20656e6f75676874206d696e7473206c6566742e00000000000000000000600082015250565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f5b00000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f222c2276616c7565223a22000000000000000000000000000000000000000000600082015250565b7f5d00000000000000000000000000000000000000000000000000000000000000600082015250565b7f4e6f7420656e6f756768204554482e0000000000000000000000000000000000600082015250565b7f697066733a2f2f516d514c526173634b67773668547565676d34706e3163774560008201527f794a666a3339314831356b5650506677634847336e2f00000000000000000000602082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b7f636861696e6b6e69676874732e78797a20230000000000000000000000000000600082015250565b7f3c2f7376673e0000000000000000000000000000000000000000000000000000600082015250565b615ca7816154ea565b8114615cb257600080fd5b50565b615cbe816154fc565b8114615cc957600080fd5b50565b615cd581615508565b8114615ce057600080fd5b50565b615cec81615554565b8114615cf757600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222073686170652d72656e646572696e673d226372697370456467657322207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d2230202d302e35203634203634223ea26469706673582212205517b3a73eab6ce67fed54c1d7035161f72cf655bd81370b3cfcc279088ddab164736f6c63430008040033
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.