Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
300 CGK
Holders
149
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 CGKLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CyberKings
Compiler Version
v0.8.7+commit.e28d00a7
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.0; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; error Paused(); error SoldOut(); error MintingTooMany(); error NotWhitelisted(); error Underpriced(); error MintedOut(); error IncorrectGorillaCount(); error WrongOwner(); error WrongGorillaType(); contract CyberKings is ERC721A, Ownable, ReentrancyGuard{ using Strings for uint256; using ECDSA for bytes32; /*/////////////////////////////////////////////////////////////// VARIABLES //////////////////////////////////////////////////////////////*/ uint256 public maxSupply = 300; uint256 public ethMintPrice = .1 ether; /* To do:: adjust maxSupply and the modifier so there's no conflict with our teamMints */ /// @dev The amount of CYBER it costs to mint one CyberKing. uint cyberMintPrice = 25000 ether; /// @dev The amount of normal adult gorillas it costs to mint one CyberKing. uint adultBurnsRequired = 5; /// @dev The amount of genesis gorillas it costs to mint one CyberKing. uint genesisBurnsRequired = 1; uint16 teamMints; uint16 reservedForTeam = 25; CyberToken public cyber; CyberGorilla public cyberGorillas; mapping(uint => bool) public isGenesis; mapping(address => bool) public isWhitelisted; string public baseURI; string public notRevealedUri; string public uriSuffix = '.json'; bool public revealed = true; /// @dev When deploying set this to true if you don't want people to be able to mint off the bat bool public paused = true; mapping(address => uint256) public tokensMinted; mapping(address => uint) adultMints; mapping(address => uint) genesisMints; mapping(address => uint) ethMints; uint maxMints = 10; MintSetup public mintSetup = MintSetup(0, 190, 10, 0, 50, 10, 0, 35, 1); struct MintSetup { uint16 adultMintCount; uint16 maxAdultMintCount; uint16 maxAdultMintsPerPerson; uint16 genesisAdultMintCount; uint16 maxGensisAdultMintCount; uint16 maxGenesisMintsPerPerson; uint16 ethMintCount; uint16 maxEthMintSupply; uint16 maxEthMintsPerPerson; } /*/////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor() ERC721A("CyberKings", "CGK") { setBaseURI("https://cyberkings.s3.amazonaws.com/json/"); teamMint(1); // @dev we mint the first 10 to host them for auctions::These are the 1/1's } /*/////////////////////////////////////////////////////////////// MODIFIERS //////////////////////////////////////////////////////////////*/ modifier whenNotPaused{ if(paused) revert Paused(); _; } modifier notSoldOut(){ if(totalSupply() > maxSupply) revert SoldOut(); _; } /*/////////////////////////////////////////////////////////////// PUBLIC SALE MINT //////////////////////////////////////////////////////////////*/ function mintForEth(uint amount) external payable whenNotPaused notSoldOut { if(tokensMinted[msg.sender] + amount > maxMints) revert MintingTooMany(); if(ethMints[msg.sender] + amount > mintSetup.maxEthMintsPerPerson) revert MintingTooMany(); if(!isWhitelisted[msg.sender]) revert NotWhitelisted(); if(msg.value < amount * ethMintPrice) revert Underpriced(); if(mintSetup.ethMintCount + amount > mintSetup.maxEthMintSupply) revert MintedOut(); mintSetup.ethMintCount+= uint16(amount); ethMints[msg.sender] += amount; tokensMinted[msg.sender] +=amount; _safeMint(msg.sender, amount); } function mintForAdult(uint amount, uint[] calldata tokenIds) external whenNotPaused notSoldOut { if(tokensMinted[msg.sender] + amount > maxMints) revert MintingTooMany(); if(tokenIds.length != amount * adultBurnsRequired) revert IncorrectGorillaCount(); if(adultMints[msg.sender] + amount > mintSetup.maxAdultMintsPerPerson) revert MintingTooMany(); if(mintSetup.adultMintCount + amount > mintSetup.maxAdultMintCount) revert MintedOut(); for(uint i; i < tokenIds.length; i++){ if(isGenesis[tokenIds[i]]) revert WrongGorillaType(); } transferCyber(cyberMintPrice * amount); burnBatchForOwner(tokenIds); mintSetup.adultMintCount += uint16(amount); adultMints[msg.sender] += amount; tokensMinted[msg.sender] +=amount; _safeMint(msg.sender, amount); } function mintForGenesis(uint amount, uint[] calldata tokenIds) external whenNotPaused notSoldOut { if(tokensMinted[msg.sender] + amount > maxMints) revert MintingTooMany(); if(tokenIds.length != amount * genesisBurnsRequired) revert IncorrectGorillaCount(); if(genesisMints[msg.sender] + amount > mintSetup.maxGenesisMintsPerPerson) revert MintingTooMany(); if(mintSetup.genesisAdultMintCount + amount > mintSetup.maxGensisAdultMintCount) revert MintedOut(); for(uint i; i < tokenIds.length; i++) { if(!isGenesis[tokenIds[i]]) revert WrongGorillaType(); } transferCyber(cyberMintPrice * amount); burnBatchForOwner(tokenIds); mintSetup.genesisAdultMintCount += uint16(amount); genesisMints[msg.sender] += amount; tokensMinted[msg.sender] +=amount; _safeMint(msg.sender,amount); } /*/////////////////////////////////////////////////////////////// MINTING UTILITIES //////////////////////////////////////////////////////////////*/ function transferCyber(uint amount) public { cyber.transferFrom(msg.sender,address(this),amount); } function burnForOwner(uint tokenId) internal { if(msg.sender != cyberGorillas.ownerOf(tokenId)) revert WrongOwner(); cyberGorillas.burn(tokenId); } function burnBatchForOwner(uint[] calldata tokenIds) internal { for(uint i; i < tokenIds.length; i++){ if(msg.sender != cyberGorillas.ownerOf(tokenIds[i])) revert WrongOwner(); cyberGorillas.burn(tokenIds[i]); } } function teamMint(uint amount) public onlyOwner notSoldOut{ require(teamMints + amount<=reservedForTeam,'Max Team Mints'); teamMints += uint16(amount); _safeMint(msg.sender, amount); } /*/////////////////////////////////////////////////////////////// SETTERS //////////////////////////////////////////////////////////////*/ function uploadGenesisArray(uint[] calldata tokenIds) external onlyOwner { for(uint i; i < tokenIds.length; i++) { isGenesis[tokenIds[i]] = true; } } function uploadWhitelist(address[] calldata accounts) external onlyOwner { for(uint i; i < accounts.length; i++) { isWhitelisted[accounts[i]] = true; } } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setAdultBurnsRequired(uint amount) public onlyOwner { adultBurnsRequired = amount; } function setGenesisBurnsRequired(uint amount) public onlyOwner{ genesisBurnsRequired = amount; } function setEthPrice(uint256 _newPrice) public onlyOwner { ethMintPrice = _newPrice; } function setMaxMints(uint newValue) external onlyOwner{ maxMints = newValue; } function setCyberSupply(uint _newCyberPrice) public onlyOwner{ cyberMintPrice = _newCyberPrice; } function setCyberAddress(address _address) public onlyOwner{ cyber = CyberToken(_address); } function setGorillaAddress(address _address) public onlyOwner{ cyberGorillas = CyberGorilla(_address); } function setMaxSupply(uint256 _maxSupply) public onlyOwner { maxSupply = _maxSupply; } function switchReveal() public onlyOwner { revealed = !revealed; } function switchPause() public onlyOwner { paused = !paused; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } /*/////////////////////////////////////////////////////////////// METADATA //////////////////////////////////////////////////////////////*/ function tokenURI(uint256 tokenId) public view override(ERC721A) returns (string memory) { if (revealed == false) { return notRevealedUri; } string memory currentBaseURI = baseURI; return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(),uriSuffix)) : ""; } /*/////////////////////////////////////////////////////////////// WITHDRAWAL LOGIC //////////////////////////////////////////////////////////////*/ function withdraw() public payable onlyOwner { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } function burnCyber() public onlyOwner{ uint balance = cyber.balanceOf(address(this)); cyber.burn(balance); } } interface CyberToken{ function transfer(address to, uint amount) external; function transferFrom(address from, address to, uint amount) external; function burn(uint amount) external; function balanceOf(address) external view returns(uint); } interface CyberGorilla { function ownerOf(uint tokenId) external view returns(address); function burn(uint tokenId) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// 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 // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @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 IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _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 `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // 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(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ 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(); } } /** * @dev 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 Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_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 { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; assembly { // Cast aux without masking. auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // 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. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * 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) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @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, _toString(tokenId))) : ''; } /** * @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 Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = address(uint160(_packedOwnershipOf(tokenId))); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @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 == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), 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.code.length != 0) 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 && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not 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 { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.code.length != 0) { 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 { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); 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 { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // 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 { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } 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 { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); if (approvalCheck) { bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // 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 { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(from) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_BURNED | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } 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 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 ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__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 {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * 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(); 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; } /** * @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); // ============================== // 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); // ============================== // IERC721 // ============================== /** * @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); // ============================== // IERC721Metadata // ============================== /** * @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/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/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; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
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":"IncorrectGorillaCount","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedOut","type":"error"},{"inputs":[],"name":"MintingTooMany","type":"error"},{"inputs":[],"name":"NotWhitelisted","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"Paused","type":"error"},{"inputs":[],"name":"SoldOut","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"},{"inputs":[],"name":"Underpriced","type":"error"},{"inputs":[],"name":"WrongGorillaType","type":"error"},{"inputs":[],"name":"WrongOwner","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnCyber","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cyber","outputs":[{"internalType":"contract CyberToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cyberGorillas","outputs":[{"internalType":"contract CyberGorilla","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"uint256","name":"","type":"uint256"}],"name":"isGenesis","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mintForAdult","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintForEth","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mintForGenesis","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintSetup","outputs":[{"internalType":"uint16","name":"adultMintCount","type":"uint16"},{"internalType":"uint16","name":"maxAdultMintCount","type":"uint16"},{"internalType":"uint16","name":"maxAdultMintsPerPerson","type":"uint16"},{"internalType":"uint16","name":"genesisAdultMintCount","type":"uint16"},{"internalType":"uint16","name":"maxGensisAdultMintCount","type":"uint16"},{"internalType":"uint16","name":"maxGenesisMintsPerPerson","type":"uint16"},{"internalType":"uint16","name":"ethMintCount","type":"uint16"},{"internalType":"uint16","name":"maxEthMintSupply","type":"uint16"},{"internalType":"uint16","name":"maxEthMintsPerPerson","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setAdultBurnsRequired","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setCyberAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCyberPrice","type":"uint256"}],"name":"setCyberSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setEthPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setGenesisBurnsRequired","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setGorillaAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"setMaxMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"switchReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferCyber","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"uploadGenesisArray","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"uploadWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
608060405261012c600a5567016345785d8a0000600b5569054b40b1f852bda00000600c556005600d556001600e556019600f60026101000a81548161ffff021916908361ffff1602179055506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250601590805190602001906200009992919062000bc2565b506001601660006101000a81548160ff0219169083151502179055506001601660016101000a81548160ff021916908315150217905550600a601b55604051806101200160405280600061ffff16815260200160be61ffff168152602001600a61ffff168152602001600061ffff168152602001603261ffff168152602001600a61ffff168152602001600061ffff168152602001602361ffff168152602001600161ffff16815250601c60008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548161ffff021916908361ffff16021790555060408201518160000160046101000a81548161ffff021916908361ffff16021790555060608201518160000160066101000a81548161ffff021916908361ffff16021790555060808201518160000160086101000a81548161ffff021916908361ffff16021790555060a082015181600001600a6101000a81548161ffff021916908361ffff16021790555060c082015181600001600c6101000a81548161ffff021916908361ffff16021790555060e082015181600001600e6101000a81548161ffff021916908361ffff1602179055506101008201518160000160106101000a81548161ffff021916908361ffff16021790555050503480156200028f57600080fd5b506040518060400160405280600a81526020017f43796265724b696e6773000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f43474b000000000000000000000000000000000000000000000000000000000081525081600290805190602001906200031492919062000bc2565b5080600390805190602001906200032d92919062000bc2565b506200033e620003b060201b60201c565b6000819055505050620003666200035a620003b560201b60201c565b620003bd60201b60201c565b6001600981905550620003986040518060600160405280602981526020016200639a602991396200048360201b60201c565b620003aa60016200052e60201b60201c565b62001091565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000493620003b560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620004b9620006d460201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000512576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005099062000de2565b60405180910390fd5b80601390805190602001906200052a92919062000bc2565b5050565b6200053e620003b560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000564620006d460201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620005bd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005b49062000de2565b60405180910390fd5b600a54620005d0620006fe60201b60201c565b111562000609576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f60029054906101000a900461ffff1661ffff1681600f60009054906101000a900461ffff1661ffff1662000640919062000e70565b111562000684576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200067b9062000dc0565b60405180910390fd5b80600f60008282829054906101000a900461ffff16620006a5919062000e31565b92506101000a81548161ffff021916908361ffff160217905550620006d133826200071d60201b60201c565b50565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600062000710620003b060201b60201c565b6001546000540303905090565b6200073f8282604051806020016040528060008152506200074360201b60201c565b5050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415620007b1576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415620007ed576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b62000802600085838662000a2860201b60201c565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e16200086f6001851462000a2e60201b60201c565b901b60a042901b620008878662000a3860201b60201c565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b1462000998575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a462000944600087848060010195508762000a4260201b60201c565b6200097b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808210620008cd5782600054146200099257600080fd5b62000a04565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821062000999575b81600081905550505062000a22600085838662000bb460201b60201c565b50505050565b50505050565b6000819050919050565b6000819050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0262000a7062000bba60201b60201c565b8786866040518563ffffffff1660e01b815260040162000a94949392919062000d6c565b602060405180830381600087803b15801562000aaf57600080fd5b505af192505050801562000ae357506040513d601f19601f8201168201806040525081019062000ae0919062000c89565b60015b62000b61573d806000811462000b16576040519150601f19603f3d011682016040523d82523d6000602084013e62000b1b565b606091505b5060008151141562000b59576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b600033905090565b82805462000bd09062000f7b565b90600052602060002090601f01602090048101928262000bf4576000855562000c40565b82601f1062000c0f57805160ff191683800117855562000c40565b8280016001018555821562000c40579182015b8281111562000c3f57825182559160200191906001019062000c22565b5b50905062000c4f919062000c53565b5090565b5b8082111562000c6e57600081600090555060010162000c54565b5090565b60008151905062000c838162001077565b92915050565b60006020828403121562000ca25762000ca16200100f565b5b600062000cb28482850162000c72565b91505092915050565b62000cc68162000ecd565b82525050565b600062000cd98262000e04565b62000ce5818562000e0f565b935062000cf781856020860162000f45565b62000d028162001014565b840191505092915050565b600062000d1c600e8362000e20565b915062000d298262001025565b602082019050919050565b600062000d4360208362000e20565b915062000d50826200104e565b602082019050919050565b62000d668162000f3b565b82525050565b600060808201905062000d83600083018762000cbb565b62000d92602083018662000cbb565b62000da1604083018562000d5b565b818103606083015262000db5818462000ccc565b905095945050505050565b6000602082019050818103600083015262000ddb8162000d0d565b9050919050565b6000602082019050818103600083015262000dfd8162000d34565b9050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600062000e3e8262000f0d565b915062000e4b8362000f0d565b92508261ffff0382111562000e655762000e6462000fb1565b5b828201905092915050565b600062000e7d8262000f3b565b915062000e8a8362000f3b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000ec25762000ec162000fb1565b5b828201905092915050565b600062000eda8262000f1b565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000f6557808201518184015260208101905062000f48565b8381111562000f75576000848401525b50505050565b6000600282049050600182168062000f9457607f821691505b6020821081141562000fab5762000faa62000fe0565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f4d6178205465616d204d696e7473000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b620010828162000ee1565b81146200108e57600080fd5b50565b6152f980620010a16000396000f3fe6080604052600436106102fe5760003560e01c80636352211e11610190578063a22cb465116100dc578063d5abeb0111610095578063ec5a2d451161006f578063ec5a2d4514610b15578063f1e25ea814610b2c578063f2c4ce1e14610b69578063f2fde38b14610b92576102fe565b8063d5abeb0114610a84578063d643b6a514610aaf578063e985e9c514610ad8576102fe565b8063a22cb46514610978578063acd6c652146109a1578063b47ea9c7146109ca578063b88d4fde146109f3578063c87b56dd14610a1c578063c973db0b14610a59576102fe565b80637430cb3f116101495780638da5cb5b116101235780638da5cb5b146108dd57806395d89b4114610908578063981a8c8c146109335780639f2119461461094f576102fe565b80637430cb3f1461086057806379c9cb7b1461088b57806382544051146108b4576102fe565b80636352211e14610752578063635260111461078f5780636c0360eb146107b85780636f8b44b0146107e357806370a082311461080c578063715018a614610849576102fe565b80632cd981d41161024f57806342842e0e116102085780635503a0e8116101e25780635503a0e8146106aa57806355f804b3146106d557806356a74da1146106fe5780635c975abb14610727576102fe565b806342842e0e146106195780635183022714610642578063546104811461066d576102fe565b80632cd981d4146105345780632d58e6c81461054b5780632fbba1151461057e5780633af32abf146105a75780633ccfd60b146105e457806340cfe46c146105ee576102fe565b8063095ea7b3116102bc57806316ba10e01161029657806316ba10e01461048e578063174d25e1146104b757806318160ddd146104e057806323b872dd1461050b576102fe565b8063095ea7b3146104135780630b8ce9fc1461043c57806312ae4ea614610465576102fe565b80629f92621461030357806301ffc9a71461032c578063022e9b301461036957806306fdde0314610380578063081812fc146103ab578063081c8c44146103e8575b600080fd5b34801561030f57600080fd5b5061032a60048036038101906103259190614768565b610bbb565b005b34801561033857600080fd5b50610353600480360381019061034e91906146c5565b610c41565b6040516103609190614b0e565b60405180910390f35b34801561037557600080fd5b5061037e610cd3565b005b34801561038c57600080fd5b50610395610e8e565b6040516103a29190614b5f565b60405180910390f35b3480156103b757600080fd5b506103d260048036038101906103cd9190614768565b610f20565b6040516103df9190614a70565b60405180910390f35b3480156103f457600080fd5b506103fd610f9c565b60405161040a9190614b5f565b60405180910390f35b34801561041f57600080fd5b5061043a600480360381019061043591906145eb565b61102a565b005b34801561044857600080fd5b50610463600480360381019061045e91906147c2565b6111d1565b005b34801561047157600080fd5b5061048c6004803603810190610487919061443b565b6115e1565b005b34801561049a57600080fd5b506104b560048036038101906104b0919061471f565b6116a1565b005b3480156104c357600080fd5b506104de60048036038101906104d99190614678565b611737565b005b3480156104ec57600080fd5b506104f561181e565b6040516105029190614c6e565b60405180910390f35b34801561051757600080fd5b50610532600480360381019061052d91906144d5565b611835565b005b34801561054057600080fd5b50610549611845565b005b34801561055757600080fd5b506105606118ed565b60405161057599989796959493929190614be1565b60405180910390f35b34801561058a57600080fd5b506105a560048036038101906105a09190614768565b6119a7565b005b3480156105b357600080fd5b506105ce60048036038101906105c9919061443b565b611b22565b6040516105db9190614b0e565b60405180910390f35b6105ec611b42565b005b3480156105fa57600080fd5b50610603611c3e565b6040516106109190614b29565b60405180910390f35b34801561062557600080fd5b50610640600480360381019061063b91906144d5565b611c64565b005b34801561064e57600080fd5b50610657611c84565b6040516106649190614b0e565b60405180910390f35b34801561067957600080fd5b50610694600480360381019061068f919061443b565b611c97565b6040516106a19190614c6e565b60405180910390f35b3480156106b657600080fd5b506106bf611caf565b6040516106cc9190614b5f565b60405180910390f35b3480156106e157600080fd5b506106fc60048036038101906106f7919061471f565b611d3d565b005b34801561070a57600080fd5b5061072560048036038101906107209190614768565b611dd3565b005b34801561073357600080fd5b5061073c611e59565b6040516107499190614b0e565b60405180910390f35b34801561075e57600080fd5b5061077960048036038101906107749190614768565b611e6c565b6040516107869190614a70565b60405180910390f35b34801561079b57600080fd5b506107b660048036038101906107b191906147c2565b611e7e565b005b3480156107c457600080fd5b506107cd61228f565b6040516107da9190614b5f565b60405180910390f35b3480156107ef57600080fd5b5061080a60048036038101906108059190614768565b61231d565b005b34801561081857600080fd5b50610833600480360381019061082e919061443b565b6123a3565b6040516108409190614c6e565b60405180910390f35b34801561085557600080fd5b5061085e61245c565b005b34801561086c57600080fd5b506108756124e4565b6040516108829190614b44565b60405180910390f35b34801561089757600080fd5b506108b260048036038101906108ad9190614768565b61250a565b005b3480156108c057600080fd5b506108db60048036038101906108d69190614768565b612590565b005b3480156108e957600080fd5b506108f2612616565b6040516108ff9190614a70565b60405180910390f35b34801561091457600080fd5b5061091d612640565b60405161092a9190614b5f565b60405180910390f35b61094d60048036038101906109489190614768565b6126d2565b005b34801561095b57600080fd5b506109766004803603810190610971919061462b565b612aaf565b005b34801561098457600080fd5b5061099f600480360381019061099a91906145ab565b612bd0565b005b3480156109ad57600080fd5b506109c860048036038101906109c39190614768565b612d48565b005b3480156109d657600080fd5b506109f160048036038101906109ec9190614768565b612dce565b005b3480156109ff57600080fd5b50610a1a6004803603810190610a159190614528565b612e62565b005b348015610a2857600080fd5b50610a436004803603810190610a3e9190614768565b612ed5565b604051610a509190614b5f565b60405180910390f35b348015610a6557600080fd5b50610a6e613069565b604051610a7b9190614c6e565b60405180910390f35b348015610a9057600080fd5b50610a9961306f565b604051610aa69190614c6e565b60405180910390f35b348015610abb57600080fd5b50610ad66004803603810190610ad1919061443b565b613075565b005b348015610ae457600080fd5b50610aff6004803603810190610afa9190614495565b613135565b604051610b0c9190614b0e565b60405180910390f35b348015610b2157600080fd5b50610b2a6131c9565b005b348015610b3857600080fd5b50610b536004803603810190610b4e9190614768565b613271565b604051610b609190614b0e565b60405180910390f35b348015610b7557600080fd5b50610b906004803603810190610b8b919061471f565b613291565b005b348015610b9e57600080fd5b50610bb96004803603810190610bb4919061443b565b613327565b005b610bc361341f565b73ffffffffffffffffffffffffffffffffffffffff16610be1612616565b73ffffffffffffffffffffffffffffffffffffffff1614610c37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2e90614bc1565b60405180910390fd5b80600b8190555050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c9c57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ccc5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610cdb61341f565b73ffffffffffffffffffffffffffffffffffffffff16610cf9612616565b73ffffffffffffffffffffffffffffffffffffffff1614610d4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4690614bc1565b60405180910390fd5b6000600f60049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610dac9190614a70565b60206040518083038186803b158015610dc457600080fd5b505afa158015610dd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfc9190614795565b9050600f60049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68826040518263ffffffff1660e01b8152600401610e599190614c6e565b600060405180830381600087803b158015610e7357600080fd5b505af1158015610e87573d6000803e3d6000fd5b5050505050565b606060028054610e9d90614fcc565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec990614fcc565b8015610f165780601f10610eeb57610100808354040283529160200191610f16565b820191906000526020600020905b815481529060010190602001808311610ef957829003601f168201915b5050505050905090565b6000610f2b82613427565b610f61576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60148054610fa990614fcc565b80601f0160208091040260200160405190810160405280929190818152602001828054610fd590614fcc565b80156110225780601f10610ff757610100808354040283529160200191611022565b820191906000526020600020905b81548152906001019060200180831161100557829003601f168201915b505050505081565b600061103582613486565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561109d576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166110bc613554565b73ffffffffffffffffffffffffffffffffffffffff161461111f576110e8816110e3613554565b613135565b61111e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b601660019054906101000a900460ff1615611218576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5461122361181e565b111561125b576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601b5483601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112a99190614dab565b11156112e1576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e54836112ef9190614e32565b828290501461132a576040517f88acd4ab00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601c600001600a9054906101000a900461ffff1661ffff1683601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461138d9190614dab565b11156113c5576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601c60000160089054906101000a900461ffff1661ffff1683601c60000160069054906101000a900461ffff1661ffff166114009190614dab565b1115611438576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b828290508110156114c9576011600084848481811061145d5761145c615136565b5b90506020020135815260200190815260200160002060009054906101000a900460ff166114b6576040517f3989d69b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80806114c19061502f565b91505061143b565b506114e083600c546114db9190614e32565b612dce565b6114ea828261355c565b82601c60000160068282829054906101000a900461ffff1661150c9190614d73565b92506101000a81548161ffff021916908361ffff16021790555082601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115759190614dab565b9250508190555082601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115cb9190614dab565b925050819055506115dc3384613750565b505050565b6115e961341f565b73ffffffffffffffffffffffffffffffffffffffff16611607612616565b73ffffffffffffffffffffffffffffffffffffffff161461165d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165490614bc1565b60405180910390fd5b80600f60046101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6116a961341f565b73ffffffffffffffffffffffffffffffffffffffff166116c7612616565b73ffffffffffffffffffffffffffffffffffffffff161461171d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171490614bc1565b60405180910390fd5b8060159080519060200190611733929190614179565b5050565b61173f61341f565b73ffffffffffffffffffffffffffffffffffffffff1661175d612616565b73ffffffffffffffffffffffffffffffffffffffff16146117b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117aa90614bc1565b60405180910390fd5b60005b82829050811015611819576001601160008585858181106117da576117d9615136565b5b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806118119061502f565b9150506117b6565b505050565b600061182861376e565b6001546000540303905090565b611840838383613773565b505050565b61184d61341f565b73ffffffffffffffffffffffffffffffffffffffff1661186b612616565b73ffffffffffffffffffffffffffffffffffffffff16146118c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b890614bc1565b60405180910390fd5b601660019054906101000a900460ff1615601660016101000a81548160ff021916908315150217905550565b601c8060000160009054906101000a900461ffff16908060000160029054906101000a900461ffff16908060000160049054906101000a900461ffff16908060000160069054906101000a900461ffff16908060000160089054906101000a900461ffff169080600001600a9054906101000a900461ffff169080600001600c9054906101000a900461ffff169080600001600e9054906101000a900461ffff16908060000160109054906101000a900461ffff16905089565b6119af61341f565b73ffffffffffffffffffffffffffffffffffffffff166119cd612616565b73ffffffffffffffffffffffffffffffffffffffff1614611a23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1a90614bc1565b60405180910390fd5b600a54611a2e61181e565b1115611a66576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f60029054906101000a900461ffff1661ffff1681600f60009054906101000a900461ffff1661ffff16611a9b9190614dab565b1115611adc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad390614ba1565b60405180910390fd5b80600f60008282829054906101000a900461ffff16611afb9190614d73565b92506101000a81548161ffff021916908361ffff160217905550611b1f3382613750565b50565b60126020528060005260406000206000915054906101000a900460ff1681565b611b4a61341f565b73ffffffffffffffffffffffffffffffffffffffff16611b68612616565b73ffffffffffffffffffffffffffffffffffffffff1614611bbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb590614bc1565b60405180910390fd5b6000611bc8612616565b73ffffffffffffffffffffffffffffffffffffffff1647604051611beb90614a5b565b60006040518083038185875af1925050503d8060008114611c28576040519150601f19603f3d011682016040523d82523d6000602084013e611c2d565b606091505b5050905080611c3b57600080fd5b50565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611c7f83838360405180602001604052806000815250612e62565b505050565b601660009054906101000a900460ff1681565b60176020528060005260406000206000915090505481565b60158054611cbc90614fcc565b80601f0160208091040260200160405190810160405280929190818152602001828054611ce890614fcc565b8015611d355780601f10611d0a57610100808354040283529160200191611d35565b820191906000526020600020905b815481529060010190602001808311611d1857829003601f168201915b505050505081565b611d4561341f565b73ffffffffffffffffffffffffffffffffffffffff16611d63612616565b73ffffffffffffffffffffffffffffffffffffffff1614611db9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db090614bc1565b60405180910390fd5b8060139080519060200190611dcf929190614179565b5050565b611ddb61341f565b73ffffffffffffffffffffffffffffffffffffffff16611df9612616565b73ffffffffffffffffffffffffffffffffffffffff1614611e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4690614bc1565b60405180910390fd5b80600e8190555050565b601660019054906101000a900460ff1681565b6000611e7782613486565b9050919050565b601660019054906101000a900460ff1615611ec5576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54611ed061181e565b1115611f08576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601b5483601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f569190614dab565b1115611f8e576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d5483611f9c9190614e32565b8282905014611fd7576040517f88acd4ab00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601c60000160049054906101000a900461ffff1661ffff1683601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461203a9190614dab565b1115612072576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601c60000160029054906101000a900461ffff1661ffff1683601c60000160009054906101000a900461ffff1661ffff166120ad9190614dab565b11156120e5576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b82829050811015612177576011600084848481811061210a57612109615136565b5b90506020020135815260200190815260200160002060009054906101000a900460ff1615612164576040517f3989d69b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808061216f9061502f565b9150506120e8565b5061218e83600c546121899190614e32565b612dce565b612198828261355c565b82601c60000160008282829054906101000a900461ffff166121ba9190614d73565b92506101000a81548161ffff021916908361ffff16021790555082601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122239190614dab565b9250508190555082601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122799190614dab565b9250508190555061228a3384613750565b505050565b6013805461229c90614fcc565b80601f01602080910402602001604051908101604052809291908181526020018280546122c890614fcc565b80156123155780601f106122ea57610100808354040283529160200191612315565b820191906000526020600020905b8154815290600101906020018083116122f857829003601f168201915b505050505081565b61232561341f565b73ffffffffffffffffffffffffffffffffffffffff16612343612616565b73ffffffffffffffffffffffffffffffffffffffff1614612399576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239090614bc1565b60405180910390fd5b80600a8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561240b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61246461341f565b73ffffffffffffffffffffffffffffffffffffffff16612482612616565b73ffffffffffffffffffffffffffffffffffffffff16146124d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124cf90614bc1565b60405180910390fd5b6124e26000613b1d565b565b600f60049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61251261341f565b73ffffffffffffffffffffffffffffffffffffffff16612530612616565b73ffffffffffffffffffffffffffffffffffffffff1614612586576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257d90614bc1565b60405180910390fd5b80601b8190555050565b61259861341f565b73ffffffffffffffffffffffffffffffffffffffff166125b6612616565b73ffffffffffffffffffffffffffffffffffffffff161461260c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260390614bc1565b60405180910390fd5b80600d8190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461264f90614fcc565b80601f016020809104026020016040519081016040528092919081815260200182805461267b90614fcc565b80156126c85780601f1061269d576101008083540402835291602001916126c8565b820191906000526020600020905b8154815290600101906020018083116126ab57829003601f168201915b5050505050905090565b601660019054906101000a900460ff1615612719576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5461272461181e565b111561275c576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601b5481601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546127aa9190614dab565b11156127e2576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601c60000160109054906101000a900461ffff1661ffff1681601a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546128459190614dab565b111561287d576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612900576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b548161290e9190614e32565b341015612947576040517fd0afc53400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601c600001600e9054906101000a900461ffff1661ffff1681601c600001600c9054906101000a900461ffff1661ffff166129829190614dab565b11156129ba576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601c600001600c8282829054906101000a900461ffff166129dc9190614d73565b92506101000a81548161ffff021916908361ffff16021790555080601a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a459190614dab565b9250508190555080601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a9b9190614dab565b92505081905550612aac3382613750565b50565b612ab761341f565b73ffffffffffffffffffffffffffffffffffffffff16612ad5612616565b73ffffffffffffffffffffffffffffffffffffffff1614612b2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b2290614bc1565b60405180910390fd5b60005b82829050811015612bcb57600160126000858585818110612b5257612b51615136565b5b9050602002016020810190612b67919061443b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080612bc39061502f565b915050612b2e565b505050565b612bd8613554565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c3d576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000612c4a613554565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612cf7613554565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612d3c9190614b0e565b60405180910390a35050565b612d5061341f565b73ffffffffffffffffffffffffffffffffffffffff16612d6e612616565b73ffffffffffffffffffffffffffffffffffffffff1614612dc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dbb90614bc1565b60405180910390fd5b80600c8190555050565b600f60049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401612e2d93929190614a8b565b600060405180830381600087803b158015612e4757600080fd5b505af1158015612e5b573d6000803e3d6000fd5b5050505050565b612e6d848484613773565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612ecf57612e9884848484613be3565b612ece576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606060001515601660009054906101000a900460ff1615151415612f855760148054612f0090614fcc565b80601f0160208091040260200160405190810160405280929190818152602001828054612f2c90614fcc565b8015612f795780601f10612f4e57610100808354040283529160200191612f79565b820191906000526020600020905b815481529060010190602001808311612f5c57829003601f168201915b50505050509050613064565b600060138054612f9490614fcc565b80601f0160208091040260200160405190810160405280929190818152602001828054612fc090614fcc565b801561300d5780601f10612fe25761010080835404028352916020019161300d565b820191906000526020600020905b815481529060010190602001808311612ff057829003601f168201915b5050505050905060008151116130325760405180602001604052806000815250613060565b8061303c84613d43565b601560405160200161305093929190614a2a565b6040516020818303038152906040525b9150505b919050565b600b5481565b600a5481565b61307d61341f565b73ffffffffffffffffffffffffffffffffffffffff1661309b612616565b73ffffffffffffffffffffffffffffffffffffffff16146130f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130e890614bc1565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6131d161341f565b73ffffffffffffffffffffffffffffffffffffffff166131ef612616565b73ffffffffffffffffffffffffffffffffffffffff1614613245576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161323c90614bc1565b60405180910390fd5b601660009054906101000a900460ff1615601660006101000a81548160ff021916908315150217905550565b60116020528060005260406000206000915054906101000a900460ff1681565b61329961341f565b73ffffffffffffffffffffffffffffffffffffffff166132b7612616565b73ffffffffffffffffffffffffffffffffffffffff161461330d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161330490614bc1565b60405180910390fd5b8060149080519060200190613323929190614179565b5050565b61332f61341f565b73ffffffffffffffffffffffffffffffffffffffff1661334d612616565b73ffffffffffffffffffffffffffffffffffffffff16146133a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161339a90614bc1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340a90614b81565b60405180910390fd5b61341c81613b1d565b50565b600033905090565b60008161343261376e565b11158015613441575060005482105b801561347f575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000808290508061349561376e565b1161351d5760005481101561351c5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216141561351a575b60008114156135105760046000836001900393508381526020019081526020016000205490506134e5565b809250505061354f565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b60005b8282905081101561374b57601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e8484848181106135bb576135ba615136565b5b905060200201356040518263ffffffff1660e01b81526004016135de9190614c6e565b60206040518083038186803b1580156135f657600080fd5b505afa15801561360a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061362e9190614468565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614613692576040517f5d652eb100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c688484848181106136e3576136e2615136565b5b905060200201356040518263ffffffff1660e01b81526004016137069190614c6e565b600060405180830381600087803b15801561372057600080fd5b505af1158015613734573d6000803e3d6000fd5b5050505080806137439061502f565b91505061355f565b505050565b61376a828260405180602001604052806000815250613ea4565b5050565b600090565b600061377e82613486565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146137e5576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16613806613554565b73ffffffffffffffffffffffffffffffffffffffff16148061383557506138348561382f613554565b613135565b5b8061387a5750613843613554565b73ffffffffffffffffffffffffffffffffffffffff1661386284610f20565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806138b3576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561391a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6139278585856001614159565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b613a248661415f565b1717600460008581526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083161415613aae576000600184019050600060046000838152602001908152602001600020541415613aac576000548114613aab578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613b168585856001614169565b5050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613c09613554565b8786866040518563ffffffff1660e01b8152600401613c2b9493929190614ac2565b602060405180830381600087803b158015613c4557600080fd5b505af1925050508015613c7657506040513d601f19601f82011682018060405250810190613c7391906146f2565b60015b613cf0573d8060008114613ca6576040519150601f19603f3d011682016040523d82523d6000602084013e613cab565b606091505b50600081511415613ce8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000821415613d8b576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613e9f565b600082905060005b60008214613dbd578080613da69061502f565b915050600a82613db69190614e01565b9150613d93565b60008167ffffffffffffffff811115613dd957613dd8615165565b5b6040519080825280601f01601f191660200182016040528015613e0b5781602001600182028036833780820191505090505b5090505b60008514613e9857600182613e249190614e8c565b9150600a85613e339190615078565b6030613e3f9190614dab565b60f81b818381518110613e5557613e54615136565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613e919190614e01565b9450613e0f565b8093505050505b919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613f11576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415613f4c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613f596000858386614159565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e1613fbe6001851461416f565b901b60a042901b613fce8661415f565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b146140d2575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46140826000878480600101955087613be3565b6140b8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082106140135782600054146140cd57600080fd5b61413d565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106140d3575b8160008190555050506141536000858386614169565b50505050565b50505050565b6000819050919050565b50505050565b6000819050919050565b82805461418590614fcc565b90600052602060002090601f0160209004810192826141a757600085556141ee565b82601f106141c057805160ff19168380011785556141ee565b828001600101855582156141ee579182015b828111156141ed5782518255916020019190600101906141d2565b5b5090506141fb91906141ff565b5090565b5b80821115614218576000816000905550600101614200565b5090565b600061422f61422a84614cae565b614c89565b90508281526020810184848401111561424b5761424a6151a3565b5b614256848285614f8a565b509392505050565b600061427161426c84614cdf565b614c89565b90508281526020810184848401111561428d5761428c6151a3565b5b614298848285614f8a565b509392505050565b6000813590506142af81615267565b92915050565b6000815190506142c481615267565b92915050565b60008083601f8401126142e0576142df615199565b5b8235905067ffffffffffffffff8111156142fd576142fc615194565b5b6020830191508360208202830111156143195761431861519e565b5b9250929050565b60008083601f84011261433657614335615199565b5b8235905067ffffffffffffffff81111561435357614352615194565b5b60208301915083602082028301111561436f5761436e61519e565b5b9250929050565b6000813590506143858161527e565b92915050565b60008135905061439a81615295565b92915050565b6000815190506143af81615295565b92915050565b600082601f8301126143ca576143c9615199565b5b81356143da84826020860161421c565b91505092915050565b600082601f8301126143f8576143f7615199565b5b813561440884826020860161425e565b91505092915050565b600081359050614420816152ac565b92915050565b600081519050614435816152ac565b92915050565b600060208284031215614451576144506151ad565b5b600061445f848285016142a0565b91505092915050565b60006020828403121561447e5761447d6151ad565b5b600061448c848285016142b5565b91505092915050565b600080604083850312156144ac576144ab6151ad565b5b60006144ba858286016142a0565b92505060206144cb858286016142a0565b9150509250929050565b6000806000606084860312156144ee576144ed6151ad565b5b60006144fc868287016142a0565b935050602061450d868287016142a0565b925050604061451e86828701614411565b9150509250925092565b60008060008060808587031215614542576145416151ad565b5b6000614550878288016142a0565b9450506020614561878288016142a0565b935050604061457287828801614411565b925050606085013567ffffffffffffffff811115614593576145926151a8565b5b61459f878288016143b5565b91505092959194509250565b600080604083850312156145c2576145c16151ad565b5b60006145d0858286016142a0565b92505060206145e185828601614376565b9150509250929050565b60008060408385031215614602576146016151ad565b5b6000614610858286016142a0565b925050602061462185828601614411565b9150509250929050565b60008060208385031215614642576146416151ad565b5b600083013567ffffffffffffffff8111156146605761465f6151a8565b5b61466c858286016142ca565b92509250509250929050565b6000806020838503121561468f5761468e6151ad565b5b600083013567ffffffffffffffff8111156146ad576146ac6151a8565b5b6146b985828601614320565b92509250509250929050565b6000602082840312156146db576146da6151ad565b5b60006146e98482850161438b565b91505092915050565b600060208284031215614708576147076151ad565b5b6000614716848285016143a0565b91505092915050565b600060208284031215614735576147346151ad565b5b600082013567ffffffffffffffff811115614753576147526151a8565b5b61475f848285016143e3565b91505092915050565b60006020828403121561477e5761477d6151ad565b5b600061478c84828501614411565b91505092915050565b6000602082840312156147ab576147aa6151ad565b5b60006147b984828501614426565b91505092915050565b6000806000604084860312156147db576147da6151ad565b5b60006147e986828701614411565b935050602084013567ffffffffffffffff81111561480a576148096151a8565b5b61481686828701614320565b92509250509250925092565b61482b81614ec0565b82525050565b61483a81614ed2565b82525050565b600061484b82614d25565b6148558185614d3b565b9350614865818560208601614f99565b61486e816151b2565b840191505092915050565b61488281614f42565b82525050565b61489181614f54565b82525050565b60006148a282614d30565b6148ac8185614d57565b93506148bc818560208601614f99565b6148c5816151b2565b840191505092915050565b60006148db82614d30565b6148e58185614d68565b93506148f5818560208601614f99565b80840191505092915050565b6000815461490e81614fcc565b6149188186614d68565b94506001821660008114614933576001811461494457614977565b60ff19831686528186019350614977565b61494d85614d10565b60005b8381101561496f57815481890152600182019150602081019050614950565b838801955050505b50505092915050565b600061498d602683614d57565b9150614998826151c3565b604082019050919050565b60006149b0600e83614d57565b91506149bb82615212565b602082019050919050565b60006149d3602083614d57565b91506149de8261523b565b602082019050919050565b60006149f6600083614d4c565b9150614a0182615264565b600082019050919050565b614a1581614f0a565b82525050565b614a2481614f38565b82525050565b6000614a3682866148d0565b9150614a4282856148d0565b9150614a4e8284614901565b9150819050949350505050565b6000614a66826149e9565b9150819050919050565b6000602082019050614a856000830184614822565b92915050565b6000606082019050614aa06000830186614822565b614aad6020830185614822565b614aba6040830184614a1b565b949350505050565b6000608082019050614ad76000830187614822565b614ae46020830186614822565b614af16040830185614a1b565b8181036060830152614b038184614840565b905095945050505050565b6000602082019050614b236000830184614831565b92915050565b6000602082019050614b3e6000830184614879565b92915050565b6000602082019050614b596000830184614888565b92915050565b60006020820190508181036000830152614b798184614897565b905092915050565b60006020820190508181036000830152614b9a81614980565b9050919050565b60006020820190508181036000830152614bba816149a3565b9050919050565b60006020820190508181036000830152614bda816149c6565b9050919050565b600061012082019050614bf7600083018c614a0c565b614c04602083018b614a0c565b614c11604083018a614a0c565b614c1e6060830189614a0c565b614c2b6080830188614a0c565b614c3860a0830187614a0c565b614c4560c0830186614a0c565b614c5260e0830185614a0c565b614c60610100830184614a0c565b9a9950505050505050505050565b6000602082019050614c836000830184614a1b565b92915050565b6000614c93614ca4565b9050614c9f8282614ffe565b919050565b6000604051905090565b600067ffffffffffffffff821115614cc957614cc8615165565b5b614cd2826151b2565b9050602081019050919050565b600067ffffffffffffffff821115614cfa57614cf9615165565b5b614d03826151b2565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614d7e82614f0a565b9150614d8983614f0a565b92508261ffff03821115614da057614d9f6150a9565b5b828201905092915050565b6000614db682614f38565b9150614dc183614f38565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614df657614df56150a9565b5b828201905092915050565b6000614e0c82614f38565b9150614e1783614f38565b925082614e2757614e266150d8565b5b828204905092915050565b6000614e3d82614f38565b9150614e4883614f38565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614e8157614e806150a9565b5b828202905092915050565b6000614e9782614f38565b9150614ea283614f38565b925082821015614eb557614eb46150a9565b5b828203905092915050565b6000614ecb82614f18565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614f4d82614f66565b9050919050565b6000614f5f82614f66565b9050919050565b6000614f7182614f78565b9050919050565b6000614f8382614f18565b9050919050565b82818337600083830152505050565b60005b83811015614fb7578082015181840152602081019050614f9c565b83811115614fc6576000848401525b50505050565b60006002820490506001821680614fe457607f821691505b60208210811415614ff857614ff7615107565b5b50919050565b615007826151b2565b810181811067ffffffffffffffff8211171561502657615025615165565b5b80604052505050565b600061503a82614f38565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561506d5761506c6150a9565b5b600182019050919050565b600061508382614f38565b915061508e83614f38565b92508261509e5761509d6150d8565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4d6178205465616d204d696e7473000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b61527081614ec0565b811461527b57600080fd5b50565b61528781614ed2565b811461529257600080fd5b50565b61529e81614ede565b81146152a957600080fd5b50565b6152b581614f38565b81146152c057600080fd5b5056fea2646970667358221220c004f99f500ad59c675e15ae5545de07ce3ab2768b99aa82e0045631f5f4315464736f6c6343000807003368747470733a2f2f63796265726b696e67732e73332e616d617a6f6e6177732e636f6d2f6a736f6e2f
Deployed Bytecode
0x6080604052600436106102fe5760003560e01c80636352211e11610190578063a22cb465116100dc578063d5abeb0111610095578063ec5a2d451161006f578063ec5a2d4514610b15578063f1e25ea814610b2c578063f2c4ce1e14610b69578063f2fde38b14610b92576102fe565b8063d5abeb0114610a84578063d643b6a514610aaf578063e985e9c514610ad8576102fe565b8063a22cb46514610978578063acd6c652146109a1578063b47ea9c7146109ca578063b88d4fde146109f3578063c87b56dd14610a1c578063c973db0b14610a59576102fe565b80637430cb3f116101495780638da5cb5b116101235780638da5cb5b146108dd57806395d89b4114610908578063981a8c8c146109335780639f2119461461094f576102fe565b80637430cb3f1461086057806379c9cb7b1461088b57806382544051146108b4576102fe565b80636352211e14610752578063635260111461078f5780636c0360eb146107b85780636f8b44b0146107e357806370a082311461080c578063715018a614610849576102fe565b80632cd981d41161024f57806342842e0e116102085780635503a0e8116101e25780635503a0e8146106aa57806355f804b3146106d557806356a74da1146106fe5780635c975abb14610727576102fe565b806342842e0e146106195780635183022714610642578063546104811461066d576102fe565b80632cd981d4146105345780632d58e6c81461054b5780632fbba1151461057e5780633af32abf146105a75780633ccfd60b146105e457806340cfe46c146105ee576102fe565b8063095ea7b3116102bc57806316ba10e01161029657806316ba10e01461048e578063174d25e1146104b757806318160ddd146104e057806323b872dd1461050b576102fe565b8063095ea7b3146104135780630b8ce9fc1461043c57806312ae4ea614610465576102fe565b80629f92621461030357806301ffc9a71461032c578063022e9b301461036957806306fdde0314610380578063081812fc146103ab578063081c8c44146103e8575b600080fd5b34801561030f57600080fd5b5061032a60048036038101906103259190614768565b610bbb565b005b34801561033857600080fd5b50610353600480360381019061034e91906146c5565b610c41565b6040516103609190614b0e565b60405180910390f35b34801561037557600080fd5b5061037e610cd3565b005b34801561038c57600080fd5b50610395610e8e565b6040516103a29190614b5f565b60405180910390f35b3480156103b757600080fd5b506103d260048036038101906103cd9190614768565b610f20565b6040516103df9190614a70565b60405180910390f35b3480156103f457600080fd5b506103fd610f9c565b60405161040a9190614b5f565b60405180910390f35b34801561041f57600080fd5b5061043a600480360381019061043591906145eb565b61102a565b005b34801561044857600080fd5b50610463600480360381019061045e91906147c2565b6111d1565b005b34801561047157600080fd5b5061048c6004803603810190610487919061443b565b6115e1565b005b34801561049a57600080fd5b506104b560048036038101906104b0919061471f565b6116a1565b005b3480156104c357600080fd5b506104de60048036038101906104d99190614678565b611737565b005b3480156104ec57600080fd5b506104f561181e565b6040516105029190614c6e565b60405180910390f35b34801561051757600080fd5b50610532600480360381019061052d91906144d5565b611835565b005b34801561054057600080fd5b50610549611845565b005b34801561055757600080fd5b506105606118ed565b60405161057599989796959493929190614be1565b60405180910390f35b34801561058a57600080fd5b506105a560048036038101906105a09190614768565b6119a7565b005b3480156105b357600080fd5b506105ce60048036038101906105c9919061443b565b611b22565b6040516105db9190614b0e565b60405180910390f35b6105ec611b42565b005b3480156105fa57600080fd5b50610603611c3e565b6040516106109190614b29565b60405180910390f35b34801561062557600080fd5b50610640600480360381019061063b91906144d5565b611c64565b005b34801561064e57600080fd5b50610657611c84565b6040516106649190614b0e565b60405180910390f35b34801561067957600080fd5b50610694600480360381019061068f919061443b565b611c97565b6040516106a19190614c6e565b60405180910390f35b3480156106b657600080fd5b506106bf611caf565b6040516106cc9190614b5f565b60405180910390f35b3480156106e157600080fd5b506106fc60048036038101906106f7919061471f565b611d3d565b005b34801561070a57600080fd5b5061072560048036038101906107209190614768565b611dd3565b005b34801561073357600080fd5b5061073c611e59565b6040516107499190614b0e565b60405180910390f35b34801561075e57600080fd5b5061077960048036038101906107749190614768565b611e6c565b6040516107869190614a70565b60405180910390f35b34801561079b57600080fd5b506107b660048036038101906107b191906147c2565b611e7e565b005b3480156107c457600080fd5b506107cd61228f565b6040516107da9190614b5f565b60405180910390f35b3480156107ef57600080fd5b5061080a60048036038101906108059190614768565b61231d565b005b34801561081857600080fd5b50610833600480360381019061082e919061443b565b6123a3565b6040516108409190614c6e565b60405180910390f35b34801561085557600080fd5b5061085e61245c565b005b34801561086c57600080fd5b506108756124e4565b6040516108829190614b44565b60405180910390f35b34801561089757600080fd5b506108b260048036038101906108ad9190614768565b61250a565b005b3480156108c057600080fd5b506108db60048036038101906108d69190614768565b612590565b005b3480156108e957600080fd5b506108f2612616565b6040516108ff9190614a70565b60405180910390f35b34801561091457600080fd5b5061091d612640565b60405161092a9190614b5f565b60405180910390f35b61094d60048036038101906109489190614768565b6126d2565b005b34801561095b57600080fd5b506109766004803603810190610971919061462b565b612aaf565b005b34801561098457600080fd5b5061099f600480360381019061099a91906145ab565b612bd0565b005b3480156109ad57600080fd5b506109c860048036038101906109c39190614768565b612d48565b005b3480156109d657600080fd5b506109f160048036038101906109ec9190614768565b612dce565b005b3480156109ff57600080fd5b50610a1a6004803603810190610a159190614528565b612e62565b005b348015610a2857600080fd5b50610a436004803603810190610a3e9190614768565b612ed5565b604051610a509190614b5f565b60405180910390f35b348015610a6557600080fd5b50610a6e613069565b604051610a7b9190614c6e565b60405180910390f35b348015610a9057600080fd5b50610a9961306f565b604051610aa69190614c6e565b60405180910390f35b348015610abb57600080fd5b50610ad66004803603810190610ad1919061443b565b613075565b005b348015610ae457600080fd5b50610aff6004803603810190610afa9190614495565b613135565b604051610b0c9190614b0e565b60405180910390f35b348015610b2157600080fd5b50610b2a6131c9565b005b348015610b3857600080fd5b50610b536004803603810190610b4e9190614768565b613271565b604051610b609190614b0e565b60405180910390f35b348015610b7557600080fd5b50610b906004803603810190610b8b919061471f565b613291565b005b348015610b9e57600080fd5b50610bb96004803603810190610bb4919061443b565b613327565b005b610bc361341f565b73ffffffffffffffffffffffffffffffffffffffff16610be1612616565b73ffffffffffffffffffffffffffffffffffffffff1614610c37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2e90614bc1565b60405180910390fd5b80600b8190555050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c9c57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ccc5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610cdb61341f565b73ffffffffffffffffffffffffffffffffffffffff16610cf9612616565b73ffffffffffffffffffffffffffffffffffffffff1614610d4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4690614bc1565b60405180910390fd5b6000600f60049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610dac9190614a70565b60206040518083038186803b158015610dc457600080fd5b505afa158015610dd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfc9190614795565b9050600f60049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68826040518263ffffffff1660e01b8152600401610e599190614c6e565b600060405180830381600087803b158015610e7357600080fd5b505af1158015610e87573d6000803e3d6000fd5b5050505050565b606060028054610e9d90614fcc565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec990614fcc565b8015610f165780601f10610eeb57610100808354040283529160200191610f16565b820191906000526020600020905b815481529060010190602001808311610ef957829003601f168201915b5050505050905090565b6000610f2b82613427565b610f61576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60148054610fa990614fcc565b80601f0160208091040260200160405190810160405280929190818152602001828054610fd590614fcc565b80156110225780601f10610ff757610100808354040283529160200191611022565b820191906000526020600020905b81548152906001019060200180831161100557829003601f168201915b505050505081565b600061103582613486565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561109d576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166110bc613554565b73ffffffffffffffffffffffffffffffffffffffff161461111f576110e8816110e3613554565b613135565b61111e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b601660019054906101000a900460ff1615611218576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5461122361181e565b111561125b576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601b5483601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112a99190614dab565b11156112e1576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e54836112ef9190614e32565b828290501461132a576040517f88acd4ab00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601c600001600a9054906101000a900461ffff1661ffff1683601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461138d9190614dab565b11156113c5576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601c60000160089054906101000a900461ffff1661ffff1683601c60000160069054906101000a900461ffff1661ffff166114009190614dab565b1115611438576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b828290508110156114c9576011600084848481811061145d5761145c615136565b5b90506020020135815260200190815260200160002060009054906101000a900460ff166114b6576040517f3989d69b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80806114c19061502f565b91505061143b565b506114e083600c546114db9190614e32565b612dce565b6114ea828261355c565b82601c60000160068282829054906101000a900461ffff1661150c9190614d73565b92506101000a81548161ffff021916908361ffff16021790555082601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115759190614dab565b9250508190555082601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115cb9190614dab565b925050819055506115dc3384613750565b505050565b6115e961341f565b73ffffffffffffffffffffffffffffffffffffffff16611607612616565b73ffffffffffffffffffffffffffffffffffffffff161461165d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165490614bc1565b60405180910390fd5b80600f60046101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6116a961341f565b73ffffffffffffffffffffffffffffffffffffffff166116c7612616565b73ffffffffffffffffffffffffffffffffffffffff161461171d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171490614bc1565b60405180910390fd5b8060159080519060200190611733929190614179565b5050565b61173f61341f565b73ffffffffffffffffffffffffffffffffffffffff1661175d612616565b73ffffffffffffffffffffffffffffffffffffffff16146117b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117aa90614bc1565b60405180910390fd5b60005b82829050811015611819576001601160008585858181106117da576117d9615136565b5b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806118119061502f565b9150506117b6565b505050565b600061182861376e565b6001546000540303905090565b611840838383613773565b505050565b61184d61341f565b73ffffffffffffffffffffffffffffffffffffffff1661186b612616565b73ffffffffffffffffffffffffffffffffffffffff16146118c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b890614bc1565b60405180910390fd5b601660019054906101000a900460ff1615601660016101000a81548160ff021916908315150217905550565b601c8060000160009054906101000a900461ffff16908060000160029054906101000a900461ffff16908060000160049054906101000a900461ffff16908060000160069054906101000a900461ffff16908060000160089054906101000a900461ffff169080600001600a9054906101000a900461ffff169080600001600c9054906101000a900461ffff169080600001600e9054906101000a900461ffff16908060000160109054906101000a900461ffff16905089565b6119af61341f565b73ffffffffffffffffffffffffffffffffffffffff166119cd612616565b73ffffffffffffffffffffffffffffffffffffffff1614611a23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1a90614bc1565b60405180910390fd5b600a54611a2e61181e565b1115611a66576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f60029054906101000a900461ffff1661ffff1681600f60009054906101000a900461ffff1661ffff16611a9b9190614dab565b1115611adc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad390614ba1565b60405180910390fd5b80600f60008282829054906101000a900461ffff16611afb9190614d73565b92506101000a81548161ffff021916908361ffff160217905550611b1f3382613750565b50565b60126020528060005260406000206000915054906101000a900460ff1681565b611b4a61341f565b73ffffffffffffffffffffffffffffffffffffffff16611b68612616565b73ffffffffffffffffffffffffffffffffffffffff1614611bbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb590614bc1565b60405180910390fd5b6000611bc8612616565b73ffffffffffffffffffffffffffffffffffffffff1647604051611beb90614a5b565b60006040518083038185875af1925050503d8060008114611c28576040519150601f19603f3d011682016040523d82523d6000602084013e611c2d565b606091505b5050905080611c3b57600080fd5b50565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611c7f83838360405180602001604052806000815250612e62565b505050565b601660009054906101000a900460ff1681565b60176020528060005260406000206000915090505481565b60158054611cbc90614fcc565b80601f0160208091040260200160405190810160405280929190818152602001828054611ce890614fcc565b8015611d355780601f10611d0a57610100808354040283529160200191611d35565b820191906000526020600020905b815481529060010190602001808311611d1857829003601f168201915b505050505081565b611d4561341f565b73ffffffffffffffffffffffffffffffffffffffff16611d63612616565b73ffffffffffffffffffffffffffffffffffffffff1614611db9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db090614bc1565b60405180910390fd5b8060139080519060200190611dcf929190614179565b5050565b611ddb61341f565b73ffffffffffffffffffffffffffffffffffffffff16611df9612616565b73ffffffffffffffffffffffffffffffffffffffff1614611e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4690614bc1565b60405180910390fd5b80600e8190555050565b601660019054906101000a900460ff1681565b6000611e7782613486565b9050919050565b601660019054906101000a900460ff1615611ec5576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54611ed061181e565b1115611f08576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601b5483601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f569190614dab565b1115611f8e576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d5483611f9c9190614e32565b8282905014611fd7576040517f88acd4ab00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601c60000160049054906101000a900461ffff1661ffff1683601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461203a9190614dab565b1115612072576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601c60000160029054906101000a900461ffff1661ffff1683601c60000160009054906101000a900461ffff1661ffff166120ad9190614dab565b11156120e5576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b82829050811015612177576011600084848481811061210a57612109615136565b5b90506020020135815260200190815260200160002060009054906101000a900460ff1615612164576040517f3989d69b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808061216f9061502f565b9150506120e8565b5061218e83600c546121899190614e32565b612dce565b612198828261355c565b82601c60000160008282829054906101000a900461ffff166121ba9190614d73565b92506101000a81548161ffff021916908361ffff16021790555082601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122239190614dab565b9250508190555082601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122799190614dab565b9250508190555061228a3384613750565b505050565b6013805461229c90614fcc565b80601f01602080910402602001604051908101604052809291908181526020018280546122c890614fcc565b80156123155780601f106122ea57610100808354040283529160200191612315565b820191906000526020600020905b8154815290600101906020018083116122f857829003601f168201915b505050505081565b61232561341f565b73ffffffffffffffffffffffffffffffffffffffff16612343612616565b73ffffffffffffffffffffffffffffffffffffffff1614612399576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239090614bc1565b60405180910390fd5b80600a8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561240b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61246461341f565b73ffffffffffffffffffffffffffffffffffffffff16612482612616565b73ffffffffffffffffffffffffffffffffffffffff16146124d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124cf90614bc1565b60405180910390fd5b6124e26000613b1d565b565b600f60049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61251261341f565b73ffffffffffffffffffffffffffffffffffffffff16612530612616565b73ffffffffffffffffffffffffffffffffffffffff1614612586576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257d90614bc1565b60405180910390fd5b80601b8190555050565b61259861341f565b73ffffffffffffffffffffffffffffffffffffffff166125b6612616565b73ffffffffffffffffffffffffffffffffffffffff161461260c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260390614bc1565b60405180910390fd5b80600d8190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461264f90614fcc565b80601f016020809104026020016040519081016040528092919081815260200182805461267b90614fcc565b80156126c85780601f1061269d576101008083540402835291602001916126c8565b820191906000526020600020905b8154815290600101906020018083116126ab57829003601f168201915b5050505050905090565b601660019054906101000a900460ff1615612719576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5461272461181e565b111561275c576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601b5481601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546127aa9190614dab565b11156127e2576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601c60000160109054906101000a900461ffff1661ffff1681601a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546128459190614dab565b111561287d576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612900576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b548161290e9190614e32565b341015612947576040517fd0afc53400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601c600001600e9054906101000a900461ffff1661ffff1681601c600001600c9054906101000a900461ffff1661ffff166129829190614dab565b11156129ba576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601c600001600c8282829054906101000a900461ffff166129dc9190614d73565b92506101000a81548161ffff021916908361ffff16021790555080601a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a459190614dab565b9250508190555080601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a9b9190614dab565b92505081905550612aac3382613750565b50565b612ab761341f565b73ffffffffffffffffffffffffffffffffffffffff16612ad5612616565b73ffffffffffffffffffffffffffffffffffffffff1614612b2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b2290614bc1565b60405180910390fd5b60005b82829050811015612bcb57600160126000858585818110612b5257612b51615136565b5b9050602002016020810190612b67919061443b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080612bc39061502f565b915050612b2e565b505050565b612bd8613554565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c3d576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000612c4a613554565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612cf7613554565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612d3c9190614b0e565b60405180910390a35050565b612d5061341f565b73ffffffffffffffffffffffffffffffffffffffff16612d6e612616565b73ffffffffffffffffffffffffffffffffffffffff1614612dc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dbb90614bc1565b60405180910390fd5b80600c8190555050565b600f60049054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401612e2d93929190614a8b565b600060405180830381600087803b158015612e4757600080fd5b505af1158015612e5b573d6000803e3d6000fd5b5050505050565b612e6d848484613773565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612ecf57612e9884848484613be3565b612ece576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606060001515601660009054906101000a900460ff1615151415612f855760148054612f0090614fcc565b80601f0160208091040260200160405190810160405280929190818152602001828054612f2c90614fcc565b8015612f795780601f10612f4e57610100808354040283529160200191612f79565b820191906000526020600020905b815481529060010190602001808311612f5c57829003601f168201915b50505050509050613064565b600060138054612f9490614fcc565b80601f0160208091040260200160405190810160405280929190818152602001828054612fc090614fcc565b801561300d5780601f10612fe25761010080835404028352916020019161300d565b820191906000526020600020905b815481529060010190602001808311612ff057829003601f168201915b5050505050905060008151116130325760405180602001604052806000815250613060565b8061303c84613d43565b601560405160200161305093929190614a2a565b6040516020818303038152906040525b9150505b919050565b600b5481565b600a5481565b61307d61341f565b73ffffffffffffffffffffffffffffffffffffffff1661309b612616565b73ffffffffffffffffffffffffffffffffffffffff16146130f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130e890614bc1565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6131d161341f565b73ffffffffffffffffffffffffffffffffffffffff166131ef612616565b73ffffffffffffffffffffffffffffffffffffffff1614613245576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161323c90614bc1565b60405180910390fd5b601660009054906101000a900460ff1615601660006101000a81548160ff021916908315150217905550565b60116020528060005260406000206000915054906101000a900460ff1681565b61329961341f565b73ffffffffffffffffffffffffffffffffffffffff166132b7612616565b73ffffffffffffffffffffffffffffffffffffffff161461330d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161330490614bc1565b60405180910390fd5b8060149080519060200190613323929190614179565b5050565b61332f61341f565b73ffffffffffffffffffffffffffffffffffffffff1661334d612616565b73ffffffffffffffffffffffffffffffffffffffff16146133a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161339a90614bc1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340a90614b81565b60405180910390fd5b61341c81613b1d565b50565b600033905090565b60008161343261376e565b11158015613441575060005482105b801561347f575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000808290508061349561376e565b1161351d5760005481101561351c5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216141561351a575b60008114156135105760046000836001900393508381526020019081526020016000205490506134e5565b809250505061354f565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b60005b8282905081101561374b57601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e8484848181106135bb576135ba615136565b5b905060200201356040518263ffffffff1660e01b81526004016135de9190614c6e565b60206040518083038186803b1580156135f657600080fd5b505afa15801561360a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061362e9190614468565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614613692576040517f5d652eb100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c688484848181106136e3576136e2615136565b5b905060200201356040518263ffffffff1660e01b81526004016137069190614c6e565b600060405180830381600087803b15801561372057600080fd5b505af1158015613734573d6000803e3d6000fd5b5050505080806137439061502f565b91505061355f565b505050565b61376a828260405180602001604052806000815250613ea4565b5050565b600090565b600061377e82613486565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146137e5576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16613806613554565b73ffffffffffffffffffffffffffffffffffffffff16148061383557506138348561382f613554565b613135565b5b8061387a5750613843613554565b73ffffffffffffffffffffffffffffffffffffffff1661386284610f20565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806138b3576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561391a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6139278585856001614159565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b613a248661415f565b1717600460008581526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083161415613aae576000600184019050600060046000838152602001908152602001600020541415613aac576000548114613aab578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613b168585856001614169565b5050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613c09613554565b8786866040518563ffffffff1660e01b8152600401613c2b9493929190614ac2565b602060405180830381600087803b158015613c4557600080fd5b505af1925050508015613c7657506040513d601f19601f82011682018060405250810190613c7391906146f2565b60015b613cf0573d8060008114613ca6576040519150601f19603f3d011682016040523d82523d6000602084013e613cab565b606091505b50600081511415613ce8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000821415613d8b576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613e9f565b600082905060005b60008214613dbd578080613da69061502f565b915050600a82613db69190614e01565b9150613d93565b60008167ffffffffffffffff811115613dd957613dd8615165565b5b6040519080825280601f01601f191660200182016040528015613e0b5781602001600182028036833780820191505090505b5090505b60008514613e9857600182613e249190614e8c565b9150600a85613e339190615078565b6030613e3f9190614dab565b60f81b818381518110613e5557613e54615136565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613e919190614e01565b9450613e0f565b8093505050505b919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613f11576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415613f4c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613f596000858386614159565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e1613fbe6001851461416f565b901b60a042901b613fce8661415f565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b146140d2575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46140826000878480600101955087613be3565b6140b8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082106140135782600054146140cd57600080fd5b61413d565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106140d3575b8160008190555050506141536000858386614169565b50505050565b50505050565b6000819050919050565b50505050565b6000819050919050565b82805461418590614fcc565b90600052602060002090601f0160209004810192826141a757600085556141ee565b82601f106141c057805160ff19168380011785556141ee565b828001600101855582156141ee579182015b828111156141ed5782518255916020019190600101906141d2565b5b5090506141fb91906141ff565b5090565b5b80821115614218576000816000905550600101614200565b5090565b600061422f61422a84614cae565b614c89565b90508281526020810184848401111561424b5761424a6151a3565b5b614256848285614f8a565b509392505050565b600061427161426c84614cdf565b614c89565b90508281526020810184848401111561428d5761428c6151a3565b5b614298848285614f8a565b509392505050565b6000813590506142af81615267565b92915050565b6000815190506142c481615267565b92915050565b60008083601f8401126142e0576142df615199565b5b8235905067ffffffffffffffff8111156142fd576142fc615194565b5b6020830191508360208202830111156143195761431861519e565b5b9250929050565b60008083601f84011261433657614335615199565b5b8235905067ffffffffffffffff81111561435357614352615194565b5b60208301915083602082028301111561436f5761436e61519e565b5b9250929050565b6000813590506143858161527e565b92915050565b60008135905061439a81615295565b92915050565b6000815190506143af81615295565b92915050565b600082601f8301126143ca576143c9615199565b5b81356143da84826020860161421c565b91505092915050565b600082601f8301126143f8576143f7615199565b5b813561440884826020860161425e565b91505092915050565b600081359050614420816152ac565b92915050565b600081519050614435816152ac565b92915050565b600060208284031215614451576144506151ad565b5b600061445f848285016142a0565b91505092915050565b60006020828403121561447e5761447d6151ad565b5b600061448c848285016142b5565b91505092915050565b600080604083850312156144ac576144ab6151ad565b5b60006144ba858286016142a0565b92505060206144cb858286016142a0565b9150509250929050565b6000806000606084860312156144ee576144ed6151ad565b5b60006144fc868287016142a0565b935050602061450d868287016142a0565b925050604061451e86828701614411565b9150509250925092565b60008060008060808587031215614542576145416151ad565b5b6000614550878288016142a0565b9450506020614561878288016142a0565b935050604061457287828801614411565b925050606085013567ffffffffffffffff811115614593576145926151a8565b5b61459f878288016143b5565b91505092959194509250565b600080604083850312156145c2576145c16151ad565b5b60006145d0858286016142a0565b92505060206145e185828601614376565b9150509250929050565b60008060408385031215614602576146016151ad565b5b6000614610858286016142a0565b925050602061462185828601614411565b9150509250929050565b60008060208385031215614642576146416151ad565b5b600083013567ffffffffffffffff8111156146605761465f6151a8565b5b61466c858286016142ca565b92509250509250929050565b6000806020838503121561468f5761468e6151ad565b5b600083013567ffffffffffffffff8111156146ad576146ac6151a8565b5b6146b985828601614320565b92509250509250929050565b6000602082840312156146db576146da6151ad565b5b60006146e98482850161438b565b91505092915050565b600060208284031215614708576147076151ad565b5b6000614716848285016143a0565b91505092915050565b600060208284031215614735576147346151ad565b5b600082013567ffffffffffffffff811115614753576147526151a8565b5b61475f848285016143e3565b91505092915050565b60006020828403121561477e5761477d6151ad565b5b600061478c84828501614411565b91505092915050565b6000602082840312156147ab576147aa6151ad565b5b60006147b984828501614426565b91505092915050565b6000806000604084860312156147db576147da6151ad565b5b60006147e986828701614411565b935050602084013567ffffffffffffffff81111561480a576148096151a8565b5b61481686828701614320565b92509250509250925092565b61482b81614ec0565b82525050565b61483a81614ed2565b82525050565b600061484b82614d25565b6148558185614d3b565b9350614865818560208601614f99565b61486e816151b2565b840191505092915050565b61488281614f42565b82525050565b61489181614f54565b82525050565b60006148a282614d30565b6148ac8185614d57565b93506148bc818560208601614f99565b6148c5816151b2565b840191505092915050565b60006148db82614d30565b6148e58185614d68565b93506148f5818560208601614f99565b80840191505092915050565b6000815461490e81614fcc565b6149188186614d68565b94506001821660008114614933576001811461494457614977565b60ff19831686528186019350614977565b61494d85614d10565b60005b8381101561496f57815481890152600182019150602081019050614950565b838801955050505b50505092915050565b600061498d602683614d57565b9150614998826151c3565b604082019050919050565b60006149b0600e83614d57565b91506149bb82615212565b602082019050919050565b60006149d3602083614d57565b91506149de8261523b565b602082019050919050565b60006149f6600083614d4c565b9150614a0182615264565b600082019050919050565b614a1581614f0a565b82525050565b614a2481614f38565b82525050565b6000614a3682866148d0565b9150614a4282856148d0565b9150614a4e8284614901565b9150819050949350505050565b6000614a66826149e9565b9150819050919050565b6000602082019050614a856000830184614822565b92915050565b6000606082019050614aa06000830186614822565b614aad6020830185614822565b614aba6040830184614a1b565b949350505050565b6000608082019050614ad76000830187614822565b614ae46020830186614822565b614af16040830185614a1b565b8181036060830152614b038184614840565b905095945050505050565b6000602082019050614b236000830184614831565b92915050565b6000602082019050614b3e6000830184614879565b92915050565b6000602082019050614b596000830184614888565b92915050565b60006020820190508181036000830152614b798184614897565b905092915050565b60006020820190508181036000830152614b9a81614980565b9050919050565b60006020820190508181036000830152614bba816149a3565b9050919050565b60006020820190508181036000830152614bda816149c6565b9050919050565b600061012082019050614bf7600083018c614a0c565b614c04602083018b614a0c565b614c11604083018a614a0c565b614c1e6060830189614a0c565b614c2b6080830188614a0c565b614c3860a0830187614a0c565b614c4560c0830186614a0c565b614c5260e0830185614a0c565b614c60610100830184614a0c565b9a9950505050505050505050565b6000602082019050614c836000830184614a1b565b92915050565b6000614c93614ca4565b9050614c9f8282614ffe565b919050565b6000604051905090565b600067ffffffffffffffff821115614cc957614cc8615165565b5b614cd2826151b2565b9050602081019050919050565b600067ffffffffffffffff821115614cfa57614cf9615165565b5b614d03826151b2565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614d7e82614f0a565b9150614d8983614f0a565b92508261ffff03821115614da057614d9f6150a9565b5b828201905092915050565b6000614db682614f38565b9150614dc183614f38565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614df657614df56150a9565b5b828201905092915050565b6000614e0c82614f38565b9150614e1783614f38565b925082614e2757614e266150d8565b5b828204905092915050565b6000614e3d82614f38565b9150614e4883614f38565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614e8157614e806150a9565b5b828202905092915050565b6000614e9782614f38565b9150614ea283614f38565b925082821015614eb557614eb46150a9565b5b828203905092915050565b6000614ecb82614f18565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614f4d82614f66565b9050919050565b6000614f5f82614f66565b9050919050565b6000614f7182614f78565b9050919050565b6000614f8382614f18565b9050919050565b82818337600083830152505050565b60005b83811015614fb7578082015181840152602081019050614f9c565b83811115614fc6576000848401525b50505050565b60006002820490506001821680614fe457607f821691505b60208210811415614ff857614ff7615107565b5b50919050565b615007826151b2565b810181811067ffffffffffffffff8211171561502657615025615165565b5b80604052505050565b600061503a82614f38565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561506d5761506c6150a9565b5b600182019050919050565b600061508382614f38565b915061508e83614f38565b92508261509e5761509d6150d8565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4d6178205465616d204d696e7473000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b61527081614ec0565b811461527b57600080fd5b50565b61528781614ed2565b811461529257600080fd5b50565b61529e81614ede565b81146152a957600080fd5b50565b6152b581614f38565b81146152c057600080fd5b5056fea2646970667358221220c004f99f500ad59c675e15ae5545de07ce3ab2768b99aa82e0045631f5f4315464736f6c63430008070033
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.