ERC-721
Overview
Max Total Supply
2,098 VGAME
Holders
313
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 VGAMELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
VampireGame
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./traits/TokenTraits.sol"; import "./traits/ITraits.sol"; import "./IVampireGame.sol"; /// @title The Vampire Game NFT contract /// /// Note: The original Wolf Game's contract was used as insipiration, and a /// few parts of the contract were taken directly, in particular the trait selection /// and rarity using Walker's Alias method, and using a separate `Traits` contract /// for getting the tokenURI. /// /// Some info about how this contract works: /// /// ### On-chain vs Off-chain /// /// What is on-chain here? /// - The generated traits /// - The revealed traits metadata /// - The traits img data /// /// What is off-chain? /// - The random number we get for batch reveals. /// - The non-revealed image. /// /// ### Minting and Revealing /// /// 1. The user mints an NFT /// 2. A seed is assigned for OG and Gen0 batches, this reveals the NFTs. /// /// Why? We believe that as long as minting and revealing happens in the same /// transaction, people will be able to cheat. So first you commit to minting, then /// the seed is released. /// /// ### Traits /// /// The traits are all stored on-chain in another contract "Traits" similar to Wolf Game. /// /// ### Game Controllers /// /// For us to be able to expand on this game, future "game controller" contracts will be /// able to freely call `mint` functions, and `transferFrom`, the logic to safeguard /// those functions will be delegated to those contracts. /// contract VampireGame is IVampireGame, IVampireGameControls, ERC721, Ownable, Pausable, ReentrancyGuard { /// ==== Events event TokenRevealed(uint256 indexed tokenId, uint256 seed); event OGRevealed(uint256 seed); event Gen0Revealed(uint256 seed); /// ==== Immutable Properties /// @notice max amount of tokens that can be minted uint16 public immutable maxSupply; /// @notice max amount of og tokens uint16 public immutable ogSupply; /// @notice address to withdraw the eth address private immutable splitter; /// @notice minting price in wei uint256 public immutable mintPrice; /// ==== Mutable Properties /// @notice current amount of minted tokens uint16 public totalSupply; /// @notice max amount of gen 0 tokens (tokens that can be bought with eth) uint16 public genZeroSupply; /// @notice seed for the OGs who minted contract v1 uint256 public ogSeed; /// @notice seed for all Gen 0 except for OGs uint256 public genZeroSeed; /// @notice contract storing the traits data ITraits public traits; /// @notice game controllers they can access special functions mapping(uint16 => uint256) public tokenSeeds; /// @notice game controllers they can access special functions mapping(address => bool) public controllers; /// === Constructor /// @dev constructor, most of the immutable props can be set here so it's easier to test /// @param _mintPrice price to mint one token in wei /// @param _maxSupply maximum amount of available tokens to mint /// @param _genZeroSupply maxiumum amount of tokens that can be bought with eth /// @param _splitter address to where the funds will go constructor( uint256 _mintPrice, uint16 _maxSupply, uint16 _genZeroSupply, uint16 _ogSupply, address _splitter ) ERC721("The Vampire Game", "VGAME") { mintPrice = _mintPrice; maxSupply = _maxSupply; genZeroSupply = _genZeroSupply; ogSupply = _ogSupply; splitter = _splitter; _pause(); } /// ==== Modifiers modifier onlyControllers() { require(controllers[_msgSender()], "ONLY_CONTROLLERS"); _; } /// ==== Airdrop function airdropToOwners( address v1Contract, uint16 from, uint16 to ) external onlyOwner { require(to >= from); IERC721 v1 = IERC721(v1Contract); for (uint16 i = from; i <= to; i++) { _mint(v1.ownerOf(i), i); } totalSupply += (to - from + 1); } /// ==== Minting /// @notice mint an unrevealed token using eth /// @param amount amount to mint function mintWithETH(uint16 amount) external payable whenNotPaused nonReentrant { require(amount > 0, "INVALID_AMOUNT"); require(amount * mintPrice == msg.value, "WRONG_VALUE"); uint16 supply = totalSupply; require(supply + amount <= genZeroSupply, "NOT_ENOUGH_TOKENS"); totalSupply = supply + amount; address to = _msgSender(); for (uint16 i = 0; i < amount; i++) { _safeMint(to, supply + i); } } /// ==== Revealing /// @notice set the seed for the OG tokens. Once this is set, it cannot be changed! function revealOgTokens(uint256 seed) external onlyOwner { require(ogSeed == 0, "ALREADY_SET"); ogSeed = seed; emit OGRevealed(seed); } /// @notice set the seed for the non-og Gen 0 tokens. Once this is set, it cannot be changed! function revealGenZeroTokens(uint256 seed) external onlyOwner { require(genZeroSeed == 0, "ALREADY_SET"); genZeroSeed = seed; emit Gen0Revealed(seed); } /// ==================== /// @notice Calculate the seed for a specific token /// - For OG tokens, the seed is derived from ogSeed /// - For Gen 0 tokens, the seed is derived from genZeroSeed /// - For other tokens, there is a seed for each for each function seedForToken(uint16 tokenId) public view returns (uint256) { uint16 supply = totalSupply; uint16 og = ogSupply; if (tokenId < og) { // amount of minted tokens needs to be greater than or equal to the og supply uint256 seed = ogSeed; if (supply >= og && seed != 0) { return uint256(keccak256(abi.encodePacked(seed, "og", tokenId))); } return 0; } // read from storage only once uint16 pt = genZeroSupply; if (tokenId < pt) { // amount of minted tokens needs to be greater than or equal to the og supply uint256 seed = genZeroSeed; if (supply >= pt && seed != 0) { return uint256(keccak256(abi.encodePacked(seed, "ze", tokenId))); } return 0; } if (supply > tokenId) { return tokenSeeds[tokenId]; } return 0; } /// ==== Functions to calculate traits given a seed function _isVampire(uint256 seed) private pure returns (bool) { return (seed & 0xFFFF) % 10 == 0; } /// Human Traits function _tokenTraitHumanSkin(uint256 seed) private pure returns (uint8) { uint256 traitSeed = (seed >> 16) & 0xFFFF; uint256 trait = traitSeed % 5; if (traitSeed >> 8 < [50, 15, 15, 250, 255][trait]) return uint8(trait); return [3, 4, 4, 0, 3][trait]; } function _tokenTraitHumanFace(uint256 seed) private pure returns (uint8) { uint256 traitSeed = (seed >> 32) & 0xFFFF; uint256 trait = traitSeed % 19; if ( traitSeed >> 8 < [ 133, 189, 57, 255, 243, 133, 114, 135, 168, 38, 222, 57, 95, 57, 152, 114, 57, 133, 189 ][trait] ) return uint8(trait); return [1, 0, 3, 1, 3, 3, 3, 4, 7, 4, 8, 4, 8, 10, 10, 10, 18, 18, 14][ trait ]; } function _tokenTraitHumanTShirt(uint256 seed) private pure returns (uint8) { uint256 traitSeed = (seed >> 48) & 0xFFFF; uint256 trait = traitSeed % 28; if ( traitSeed >> 8 < [ 181, 224, 147, 236, 220, 168, 160, 84, 173, 224, 221, 254, 140, 252, 224, 250, 100, 207, 84, 252, 196, 140, 228, 140, 255, 183, 241, 140 ][trait] ) return uint8(trait); return [ 1, 0, 3, 1, 3, 3, 4, 11, 11, 4, 9, 10, 13, 11, 13, 14, 15, 15, 20, 17, 19, 24, 20, 24, 22, 26, 24, 26 ][trait]; } function _tokenTraitHumanPants(uint256 seed) private pure returns (uint8) { uint256 traitSeed = (seed >> 64) & 0xFFFF; uint256 trait = traitSeed % 16; if ( traitSeed >> 8 < [ 126, 171, 225, 240, 227, 112, 255, 240, 217, 80, 64, 160, 228, 80, 64, 167 ][trait] ) return uint8(trait); return [2, 0, 1, 2, 3, 3, 4, 6, 7, 4, 6, 7, 8, 8, 15, 12][trait]; } function _tokenTraitHumanBoots(uint256 seed) private pure returns (uint8) { uint256 traitSeed = (seed >> 80) & 0xFFFF; uint256 trait = traitSeed % 6; if (traitSeed >> 8 < [150, 30, 60, 255, 150, 60][trait]) return uint8(trait); return [0, 3, 3, 0, 3, 4][trait]; } function _tokenTraitHumanAccessory(uint256 seed) private pure returns (uint8) { uint256 traitSeed = (seed >> 96) & 0xFFFF; uint256 trait = traitSeed % 20; if ( traitSeed >> 8 < [ 210, 135, 80, 245, 235, 110, 80, 100, 190, 100, 255, 160, 215, 80, 100, 185, 250, 240, 240, 100 ][trait] ) return uint8(trait); return [ 0, 0, 3, 0, 3, 4, 10, 12, 4, 16, 8, 16, 10, 17, 18, 12, 15, 16, 17, 18 ][trait]; } function _tokenTraitHumanHair(uint256 seed) private pure returns (uint8) { uint256 traitSeed = (seed >> 112) & 0xFFFF; uint256 trait = traitSeed % 10; if ( traitSeed >> 8 < [250, 115, 100, 40, 175, 255, 180, 100, 175, 185][trait] ) return uint8(trait); return [0, 0, 4, 6, 0, 4, 5, 9, 6, 8][trait]; } /// ==== Vampire Traits function _tokenTraitVampireSkin(uint256 seed) private pure returns (uint8) { uint256 traitSeed = (seed >> 16) & 0xFFFF; uint256 trait = traitSeed % 13; if ( traitSeed >> 8 < [234, 239, 234, 234, 255, 234, 244, 249, 130, 234, 234, 247, 234][ trait ] ) return uint8(trait); return [0, 0, 1, 2, 3, 4, 5, 6, 12, 7, 9, 10, 11][trait]; } function _tokenTraitVampireFace(uint256 seed) private pure returns (uint8) { uint256 traitSeed = (seed >> 32) & 0xFFFF; uint256 trait = traitSeed % 15; if ( traitSeed >> 8 < [ 45, 255, 165, 60, 195, 195, 45, 120, 75, 75, 105, 120, 255, 180, 150 ][trait] ) return uint8(trait); return [1, 0, 1, 4, 2, 4, 5, 12, 12, 13, 13, 14, 5, 12, 13][trait]; } function _tokenTraitVampireClothes(uint256 seed) private pure returns (uint8) { uint256 traitSeed = (seed >> 48) & 0xFFFF; uint256 trait = traitSeed % 27; if ( traitSeed >> 8 < [ 147, 180, 246, 201, 210, 252, 219, 189, 195, 156, 177, 171, 165, 225, 135, 135, 186, 135, 150, 243, 135, 255, 231, 141, 183, 150, 135 ][trait] ) return uint8(trait); return [ 2, 2, 0, 2, 3, 4, 5, 6, 7, 3, 3, 4, 4, 8, 5, 6, 13, 13, 19, 16, 19, 19, 21, 21, 21, 21, 22 ][trait]; } function _tokenTraitVampireCape(uint256 seed) private pure returns (uint8) { uint256 traitSeed = (seed >> 128) & 0xFFFF; uint256 trait = traitSeed % 9; if (traitSeed >> 8 < [9, 9, 150, 90, 9, 210, 9, 9, 255][trait]) return uint8(trait); return [5, 5, 0, 2, 8, 3, 8, 8, 5][trait]; } function _tokenTraitVampirePredatorIndex(uint256 seed) private pure returns (uint8) { uint256 traitSeed = (seed >> 144) & 0xFFFF; uint256 trait = traitSeed % 4; if (traitSeed >> 8 < [255, 8, 160, 73][trait]) return uint8(trait); return [0, 0, 0, 2][trait]; } /// ==== State Control /// @notice set the max amount of gen 0 tokens function setGenZeroSupply(uint16 _genZeroSupply) external onlyOwner { require(genZeroSupply != _genZeroSupply, "NO_CHANGES"); genZeroSupply = _genZeroSupply; } /// @notice set the contract for the traits rendering /// @param _traits the contract address function setTraits(address _traits) external onlyOwner { traits = ITraits(_traits); } /// @notice add controller authority to an address /// @param _controller address to the game controller function addController(address _controller) external onlyOwner { controllers[_controller] = true; } /// @notice remove controller authority from an address /// @param _controller address to the game controller function removeController(address _controller) external onlyOwner { controllers[_controller] = false; } /// ==== Withdraw /// @notice withdraw the ether from the contract function withdraw() external onlyOwner { uint256 contractBalance = address(this).balance; // solhint-disable-next-line avoid-low-level-calls (bool sent, ) = splitter.call{value: contractBalance}(""); require(sent, "FAILED_TO_WITHDRAW"); } /// @notice withdraw ERC20 tokens from the contract /// people always randomly transfer ERC20 tokens to the /// @param erc20TokenAddress the ERC20 token address /// @param recipient who will get the tokens /// @param amount how many tokens function withdrawERC20( address erc20TokenAddress, address recipient, uint256 amount ) external onlyOwner { IERC20 erc20Contract = IERC20(erc20TokenAddress); bool sent = erc20Contract.transfer(recipient, amount); require(sent, "ERC20_WITHDRAW_FAILED"); } /// @notice reserve some tokens for the team. Can only reserve gen 0 tokens /// we also need token 0 to so setup market places before mint function reserve(address to, uint16 amount) external onlyOwner { uint16 supply = totalSupply; require(supply + amount < genZeroSupply); totalSupply = supply + amount; for (uint16 i = 0; i < amount; i++) { _safeMint(to, supply + i); } } /// ==== pause/unpause function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } /// ==== IVampireGameControls Overrides /// @notice see {IVampireGameControls.mintFromController} function mintFromController(address receiver, uint16 amount) external override whenNotPaused onlyControllers { uint16 supply = totalSupply; require(supply + amount <= maxSupply, "NOT_ENOUGH_TOKENS"); totalSupply = supply + amount; for (uint256 i = 0; i < amount; i++) { _safeMint(receiver, supply + i); } } /// @notice for a game controller to reveal the metadata of multiple token ids function controllerRevealTokens( uint16[] calldata tokenIds, uint256[] calldata seeds ) external override whenNotPaused onlyControllers { require( tokenIds.length == seeds.length, "INPUTS_SHOULD_HAVE_SAME_LENGTH" ); for (uint256 i = 0; i < tokenIds.length; i++) { require(tokenSeeds[tokenIds[i]] == 0, "ALREADY_REVEALED"); tokenSeeds[tokenIds[i]] = seeds[i]; emit TokenRevealed(tokenIds[i], seeds[i]); } } /// ==== IVampireGame Overrides /// @notice see {IVampireGame.getTotalSupply} function getTotalSupply() external view override returns (uint16) { return totalSupply; } /// @notice see {IVampireGame.getOGSupply} function getOGSupply() external view override returns (uint16) { return ogSupply; } /// @notice see {IVampireGame.getGenZeroSupply} function getGenZeroSupply() external view override returns (uint16) { return genZeroSupply; } /// @notice see {IVampireGame.getMaxSupply} function getMaxSupply() external view override returns (uint16) { return maxSupply; } /// @notice see {IVampireGame.getTokenTraits} function getTokenTraits(uint16 tokenId) external view override returns (TokenTraits memory tt) { uint256 seed = seedForToken(tokenId); require(seed != 0, "NOT_REVEALED"); tt.isVampire = _isVampire(seed); if (tt.isVampire) { tt.skin = _tokenTraitVampireSkin(seed); tt.face = _tokenTraitVampireFace(seed); tt.clothes = _tokenTraitVampireClothes(seed); tt.cape = _tokenTraitVampireCape(seed); tt.predatorIndex = _tokenTraitVampirePredatorIndex(seed); } else { tt.skin = _tokenTraitHumanSkin(seed); tt.face = _tokenTraitHumanFace(seed); tt.clothes = _tokenTraitHumanTShirt(seed); tt.pants = _tokenTraitHumanPants(seed); tt.boots = _tokenTraitHumanBoots(seed); tt.accessory = _tokenTraitHumanAccessory(seed); tt.hair = _tokenTraitHumanHair(seed); } } function isTokenVampire(uint16 tokenId) external view override returns (bool) { return _isVampire(seedForToken(tokenId)); } function getPredatorIndex(uint16 tokenId) external view override returns (uint8) { uint256 seed = seedForToken(tokenId); require(seed != 0, "NOT_REVEALED"); return _tokenTraitVampirePredatorIndex(seed); } /// @notice see {IVampireGame.isTokenRevealed(tokenId)} function isTokenRevealed(uint16 tokenId) public view override returns (bool) { return seedForToken(tokenId) != 0; } /// ==== ERC721 Overrides function transferFrom( address from, address to, uint256 tokenId ) public virtual override { // Hardcode approval of game controllers if (!controllers[_msgSender()]) require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _transfer(from, to, tokenId); } function tokenURI(uint256 tokenId) public view override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); return traits.tokenURI(tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT 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 make 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 pragma solidity ^0.8.6; struct TokenTraits { bool isVampire; // Shared Traits uint8 skin; uint8 face; uint8 clothes; // Human-only Traits uint8 pants; uint8 boots; uint8 accessory; uint8 hair; // Vampire-only Traits uint8 cape; uint8 predatorIndex; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; interface ITraits { function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; import "./traits/TokenTraits.sol"; /// @notice Interface to interact with the VampireGame contract interface IVampireGame { /// @notice get the amount of tokens minted function getTotalSupply() external view returns (uint16); /// @notice get tthe amount of og supply function getOGSupply() external view returns (uint16); /// @notice get the total supply of gen-0 function getGenZeroSupply() external view returns (uint16); /// @notice get the total supply of tokens function getMaxSupply() external view returns (uint16); /// @notice get the TokenTraits for a given tokenId function getTokenTraits(uint16 tokenId) external view returns (TokenTraits memory); /// @notice check if token id a vampire function isTokenVampire(uint16 tokenId) external view returns (bool); /// @notice get the Predator Index for a given tokenId function getPredatorIndex(uint16 tokenId) external view returns (uint8); /// @notice returns true if a token is aleady revealed function isTokenRevealed(uint16 tokenId) external view returns (bool); } /// @notice Interface to control parts of the VampireGame ERC 721 interface IVampireGameControls { /// @notice mint any amount of nft to any address /// Requirements: /// - message sender should be an allowed address (game contract) /// - amount + totalSupply() has to be smaller than MAX_SUPPLY function mintFromController(address receiver, uint16 amount) external; /// @notice reveal a list of tokens using specific seeds for each function controllerRevealTokens(uint16[] calldata tokenIds, uint256[] calldata seeds) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint16","name":"_maxSupply","type":"uint16"},{"internalType":"uint16","name":"_genZeroSupply","type":"uint16"},{"internalType":"uint16","name":"_ogSupply","type":"uint16"},{"internalType":"address","name":"_splitter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"seed","type":"uint256"}],"name":"Gen0Revealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"seed","type":"uint256"}],"name":"OGRevealed","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"seed","type":"uint256"}],"name":"TokenRevealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"addController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"v1Contract","type":"address"},{"internalType":"uint16","name":"from","type":"uint16"},{"internalType":"uint16","name":"to","type":"uint16"}],"name":"airdropToOwners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"},{"internalType":"uint256[]","name":"seeds","type":"uint256[]"}],"name":"controllerRevealTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"controllers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genZeroSeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genZeroSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGenZeroSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOGSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"getPredatorIndex","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"getTokenTraits","outputs":[{"components":[{"internalType":"bool","name":"isVampire","type":"bool"},{"internalType":"uint8","name":"skin","type":"uint8"},{"internalType":"uint8","name":"face","type":"uint8"},{"internalType":"uint8","name":"clothes","type":"uint8"},{"internalType":"uint8","name":"pants","type":"uint8"},{"internalType":"uint8","name":"boots","type":"uint8"},{"internalType":"uint8","name":"accessory","type":"uint8"},{"internalType":"uint8","name":"hair","type":"uint8"},{"internalType":"uint8","name":"cape","type":"uint8"},{"internalType":"uint8","name":"predatorIndex","type":"uint8"}],"internalType":"struct TokenTraits","name":"tt","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"uint16","name":"tokenId","type":"uint16"}],"name":"isTokenRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"isTokenVampire","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"mintFromController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"mintWithETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogSeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"removeController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"revealGenZeroTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"revealOgTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"seedForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_genZeroSupply","type":"uint16"}],"name":"setGenZeroSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_traits","type":"address"}],"name":"setTraits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"tokenSeeds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"traits","outputs":[{"internalType":"contract ITraits","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20TokenAddress","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101006040523480156200001257600080fd5b506040516200440b3803806200440b8339810160408190526200003591620002f5565b604080518082018252601081526f5468652056616d706972652047616d6560801b6020808301918252835180850190945260058452645647414d4560d81b9084015281519192916200008a9160009162000237565b508051620000a090600190602084019062000237565b505050620000bd620000b76200012f60201b60201c565b62000133565b6006805460ff60a01b19169055600160075560e08590526001600160f01b031960f085811b82166080526008805461ffff8716620100000263ffff00001990911617905583901b1660a0526001600160601b0319606082901b1660c0526200012462000185565b5050505050620003a9565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000199600654600160a01b900460ff1690565b15620001de5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200021a3390565b6040516001600160a01b03909116815260200160405180910390a1565b82805462000245906200036c565b90600052602060002090601f016020900481019282620002695760008555620002b4565b82601f106200028457805160ff1916838001178555620002b4565b82800160010185558215620002b4579182015b82811115620002b457825182559160200191906001019062000297565b50620002c2929150620002c6565b5090565b5b80821115620002c25760008155600101620002c7565b805161ffff81168114620002f057600080fd5b919050565b600080600080600060a086880312156200030e57600080fd5b855194506200032060208701620002dd565b93506200033060408701620002dd565b92506200034060608701620002dd565b60808701519092506001600160a01b03811681146200035e57600080fd5b809150509295509295909350565b600181811c908216806200038157607f821691505b60208210811415620003a357634e487b7160e01b600052602260045260246000fd5b50919050565b60805160f01c60a05160f01c60c05160601c60e051613ffc6200040f600039600081816105be0152610da101526000610f0a0152600081816107e9015281816108ed015261116b0152600081816104e90152818161088c01526114040152613ffc6000f3fe6080604052600436106102e45760003560e01c8063715018a611610190578063b88d4fde116100dc578063dc31808411610095578063e985e9c51161006f578063e985e9c514610952578063ea4022021461099b578063f2fde38b146109bb578063f6a74ed7146109db57600080fd5b8063dc318084146108de578063dfd9319f14610911578063e1fc334f1461093257600080fd5b8063b88d4fde1461080b578063c4e41b221461082b578063c87b56dd14610844578063d573d39814610864578063d5abeb011461087a578063da8c229e146108ae57600080fd5b80639348c79a11610149578063a22cb46511610123578063a22cb46514610777578063a7fc7a0714610797578063ad4f4c59146107b7578063ae5b7a7d146107d757600080fd5b80639348c79a1461071557806395d89b4114610735578063974c45b91461074a57600080fd5b8063715018a61461066057806374d45808146106755780637e279fe3146106955780638456cb59146106c2578063854ba7ae146106d75780638da5cb5b146106f757600080fd5b80634a5b31351161024f5780635c975abb1161020857806368bf1b4e116101e257806368bf1b4e146105e05780636dc13ef5146106005780636f4f73661461062057806370a082311461064057600080fd5b80635c975abb1461056d5780636352211e1461058c5780636817c76c146105ac57600080fd5b80634a5b3135146104895780634a9fedb1146104bb5780634c0f38c2146104da5780634cd32cf01461050d5780635167b4561461052d57806353b17c721461054d57600080fd5b806339135609116102a157806339135609146103e85780633ccfd60b146103fb5780633f4ba83a146104105780634165f7e71461042557806342842e0e1461044957806344004cc11461046957600080fd5b806301ffc9a7146102e957806306fdde031461031e578063081812fc14610340578063095ea7b31461037857806318160ddd1461039a57806323b872dd146103c8575b600080fd5b3480156102f557600080fd5b50610309610304366004613a74565b6109fb565b60405190151581526020015b60405180910390f35b34801561032a57600080fd5b50610333610a4d565b6040516103159190613bc2565b34801561034c57600080fd5b5061036061035b366004613b40565b610adf565b6040516001600160a01b039091168152602001610315565b34801561038457600080fd5b506103986103933660046139bf565b610b79565b005b3480156103a657600080fd5b506008546103b59061ffff1681565b60405161ffff9091168152602001610315565b3480156103d457600080fd5b506103986103e3366004613827565b610c8f565b6103986103f6366004613b25565b610cd7565b34801561040757600080fd5b50610398610ece565b34801561041c57600080fd5b50610398610fb4565b34801561043157600080fd5b5061043b600a5481565b604051908152602001610315565b34801561045557600080fd5b50610398610464366004613827565b610fe8565b34801561047557600080fd5b50610398610484366004613827565b611003565b34801561049557600080fd5b506104a96104a4366004613b25565b611102565b60405160ff9091168152602001610315565b3480156104c757600080fd5b5060085462010000900461ffff166103b5565b3480156104e657600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103b5565b34801561051957600080fd5b5061043b610528366004613b25565b61115c565b34801561053957600080fd5b50610398610548366004613b40565b6112d8565b34801561055957600080fd5b50610398610568366004613945565b61137c565b34801561057957600080fd5b50600654600160a01b900460ff16610309565b34801561059857600080fd5b506103606105a7366004613b40565b6114d2565b3480156105b857600080fd5b5061043b7f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ec57600080fd5b506103986105fb366004613b40565b611549565b34801561060c57600080fd5b5061039861061b3660046139eb565b6115e6565b34801561062c57600080fd5b5061039861063b3660046137b4565b611823565b34801561064c57600080fd5b5061043b61065b3660046137b4565b61186f565b34801561066c57600080fd5b506103986118f6565b34801561068157600080fd5b50610309610690366004613b25565b61192a565b3480156106a157600080fd5b5061043b6106b0366004613b25565b600c6020526000908152604090205481565b3480156106ce57600080fd5b5061039861193d565b3480156106e357600080fd5b506103986106f2366004613b25565b61196f565b34801561070357600080fd5b506006546001600160a01b0316610360565b34801561072157600080fd5b5061039861073036600461397a565b611a05565b34801561074157600080fd5b50610333611b3d565b34801561075657600080fd5b5061076a610765366004613b25565b611b4c565b6040516103159190613cd7565b34801561078357600080fd5b50610398610792366004613917565b611cd0565b3480156107a357600080fd5b506103986107b23660046137b4565b611d95565b3480156107c357600080fd5b506103986107d2366004613945565b611de3565b3480156107e357600080fd5b506103b57f000000000000000000000000000000000000000000000000000000000000000081565b34801561081757600080fd5b50610398610826366004613868565b611e89565b34801561083757600080fd5b5060085461ffff166103b5565b34801561085057600080fd5b5061033361085f366004613b40565b611ebb565b34801561087057600080fd5b5061043b60095481565b34801561088657600080fd5b506103b57f000000000000000000000000000000000000000000000000000000000000000081565b3480156108ba57600080fd5b506103096108c93660046137b4565b600d6020526000908152604090205460ff1681565b3480156108ea57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103b5565b34801561091d57600080fd5b506008546103b59062010000900461ffff1681565b34801561093e57600080fd5b50600b54610360906001600160a01b031681565b34801561095e57600080fd5b5061030961096d3660046137ee565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109a757600080fd5b506103096109b6366004613b25565b611fba565b3480156109c757600080fd5b506103986109d63660046137b4565b611fcd565b3480156109e757600080fd5b506103986109f63660046137b4565b612068565b60006001600160e01b031982166380ac58cd60e01b1480610a2c57506001600160e01b03198216635b5e139f60e01b145b80610a4757506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610a5c90613eb7565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8890613eb7565b8015610ad55780601f10610aaa57610100808354040283529160200191610ad5565b820191906000526020600020905b815481529060010190602001808311610ab857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b5d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b84826114d2565b9050806001600160a01b0316836001600160a01b03161415610bf25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b54565b336001600160a01b0382161480610c0e5750610c0e813361096d565b610c805760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b54565b610c8a83836120b3565b505050565b336000908152600d602052604090205460ff16610ccc57610cb03382612121565b610ccc5760405162461bcd60e51b8152600401610b5490613c86565b610c8a838383612218565b600654600160a01b900460ff1615610d015760405162461bcd60e51b8152600401610b5490613c27565b60026007541415610d545760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b54565b600260075561ffff8116610d9b5760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d05353d5539560921b6044820152606401610b54565b34610dca7f000000000000000000000000000000000000000000000000000000000000000061ffff8416613e32565b14610e055760405162461bcd60e51b815260206004820152600b60248201526a57524f4e475f56414c554560a81b6044820152606401610b54565b60085461ffff8082169162010000900416610e208383613df4565b61ffff161115610e665760405162461bcd60e51b81526020600482015260116024820152704e4f545f454e4f5547485f544f4b454e5360781b6044820152606401610b54565b610e708282613df4565b6008805461ffff191661ffff929092169190911790553360005b8361ffff168161ffff161015610ec357610eb182610ea88386613df4565b61ffff166123b8565b80610ebb81613eec565b915050610e8a565b505060016007555050565b6006546001600160a01b03163314610ef85760405162461bcd60e51b8152600401610b5490613c51565b60405147906000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169083908381818185875af1925050503d8060008114610f65576040519150601f19603f3d011682016040523d82523d6000602084013e610f6a565b606091505b5050905080610fb05760405162461bcd60e51b81526020600482015260126024820152714641494c45445f544f5f574954484452415760701b6044820152606401610b54565b5050565b6006546001600160a01b03163314610fde5760405162461bcd60e51b8152600401610b5490613c51565b610fe66123d2565b565b610c8a83838360405180602001604052806000815250611e89565b6006546001600160a01b0316331461102d5760405162461bcd60e51b8152600401610b5490613c51565b60405163a9059cbb60e01b81526001600160a01b03838116600483015260248201839052849160009183169063a9059cbb90604401602060405180830381600087803b15801561107c57600080fd5b505af1158015611090573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b49190613a57565b9050806110fb5760405162461bcd60e51b8152602060048201526015602482015274115490cc8c17d5d2551211149055d7d19052531151605a1b6044820152606401610b54565b5050505050565b60008061110e8361115c565b90508061114c5760405162461bcd60e51b815260206004820152600c60248201526b1393d517d49155915053115160a21b6044820152606401610b54565b6111558161246f565b9392505050565b60085460009061ffff908116907f00000000000000000000000000000000000000000000000000000000000000009081811690851610156112155760095461ffff808316908416108015906111b057508015155b1561120a5780856040516020016111e9929190918252616f6760f01b602083015260f01b6001600160f01b031916602282015260240190565b60408051601f19818403018152919052805160209091012095945050505050565b506000949350505050565b60085461ffff6201000090910481169085168111156112ae57600a5461ffff8083169085161080159061124757508015155b156112a2578086604051602001611280929190918252617a6560f01b602083015260f01b6001600160f01b031916602282015260240190565b60408051601f1981840301815291905280516020909101209695505050505050565b50600095945050505050565b8461ffff168361ffff16111561120a575050505061ffff166000908152600c602052604090205490565b6006546001600160a01b031633146113025760405162461bcd60e51b8152600401610b5490613c51565b600954156113405760405162461bcd60e51b815260206004820152600b60248201526a1053149150511657d4d15560aa1b6044820152606401610b54565b60098190556040518181527f94672ac139c082cbbe33af9e81dc9a913dd6e28df5c7a403b31e472a12b51294906020015b60405180910390a150565b600654600160a01b900460ff16156113a65760405162461bcd60e51b8152600401610b5490613c27565b336000908152600d602052604090205460ff166113f85760405162461bcd60e51b815260206004820152601060248201526f4f4e4c595f434f4e54524f4c4c45525360801b6044820152606401610b54565b60085461ffff908116907f00000000000000000000000000000000000000000000000000000000000000001661142e8383613df4565b61ffff1611156114745760405162461bcd60e51b81526020600482015260116024820152704e4f545f454e4f5547485f544f4b454e5360781b6044820152606401610b54565b61147e8282613df4565b6008805461ffff191661ffff9290921691909117905560005b8261ffff168110156114cc576114ba846114b58361ffff8616613e1a565b6123b8565b806114c481613f0e565b915050611497565b50505050565b6000818152600260205260408120546001600160a01b031680610a475760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b54565b6006546001600160a01b031633146115735760405162461bcd60e51b8152600401610b5490613c51565b600a54156115b15760405162461bcd60e51b815260206004820152600b60248201526a1053149150511657d4d15560aa1b6044820152606401610b54565b600a8190556040518181527fd364828c13bf88180c58fed2410b5736b21912a5ad26d3426b26f3aba970232b90602001611371565b600654600160a01b900460ff16156116105760405162461bcd60e51b8152600401610b5490613c27565b336000908152600d602052604090205460ff166116625760405162461bcd60e51b815260206004820152601060248201526f4f4e4c595f434f4e54524f4c4c45525360801b6044820152606401610b54565b8281146116b15760405162461bcd60e51b815260206004820152601e60248201527f494e505554535f53484f554c445f484156455f53414d455f4c454e47544800006044820152606401610b54565b60005b838110156110fb57600c60008686848181106116d2576116d2613f61565b90506020020160208101906116e79190613b25565b61ffff1681526020810191909152604001600020541561173c5760405162461bcd60e51b815260206004820152601060248201526f1053149150511657d49155915053115160821b6044820152606401610b54565b82828281811061174e5761174e613f61565b90506020020135600c600087878581811061176b5761176b613f61565b90506020020160208101906117809190613b25565b61ffff1681526020810191909152604001600020558484828181106117a7576117a7613f61565b90506020020160208101906117bc9190613b25565b61ffff167f5b7f9283edd2504660f29463d2f79648570e3be56c99aafad27f3a3aad7e4e048484848181106117f3576117f3613f61565b9050602002013560405161180991815260200190565b60405180910390a28061181b81613f0e565b9150506116b4565b6006546001600160a01b0316331461184d5760405162461bcd60e51b8152600401610b5490613c51565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166118da5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b54565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146119205760405162461bcd60e51b8152600401610b5490613c51565b610fe6600061251b565b6000610a476119388361115c565b61256d565b6006546001600160a01b031633146119675760405162461bcd60e51b8152600401610b5490613c51565b610fe6612585565b6006546001600160a01b031633146119995760405162461bcd60e51b8152600401610b5490613c51565b60085461ffff828116620100009092041614156119e55760405162461bcd60e51b815260206004820152600a6024820152694e4f5f4348414e47455360b01b6044820152606401610b54565b6008805461ffff909216620100000263ffff000019909216919091179055565b6006546001600160a01b03163314611a2f5760405162461bcd60e51b8152600401610b5490613c51565b8161ffff168161ffff161015611a4457600080fd5b82825b8261ffff168161ffff1611611af1576040516331a9108f60e11b815261ffff82166004820152611adf906001600160a01b03841690636352211e9060240160206040518083038186803b158015611a9d57600080fd5b505afa158015611ab1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad591906137d1565b8261ffff166125ea565b80611ae981613eec565b915050611a47565b50611afc8383613e51565b611b07906001613df4565b60088054600090611b1d90849061ffff16613df4565b92506101000a81548161ffff021916908361ffff16021790555050505050565b606060018054610a5c90613eb7565b6040805161014081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905290611ba68361115c565b905080611be45760405162461bcd60e51b815260206004820152600c60248201526b1393d517d49155915053115160a21b6044820152606401610b54565b611bed8161256d565b1580158352611c5257611bff8161272c565b60ff166020830152611c1081612854565b60ff166040830152611c21816129a2565b60ff166060830152611c3281612bb4565b60ff16610100830152611c448161246f565b60ff16610120830152611cca565b611c5b81612ca0565b60ff166020830152611c6c81612d50565b60ff166040830152611c7d81612ede565b60ff166060830152611c8e81613110565b60ff166080830152611c9f81613275565b60ff1660a0830152611cb08161332f565b60ff1660c0830152611cc1816134dc565b60ff1660e08301525b50919050565b6001600160a01b038216331415611d295760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b54565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611dbf5760405162461bcd60e51b8152600401610b5490613c51565b6001600160a01b03166000908152600d60205260409020805460ff19166001179055565b6006546001600160a01b03163314611e0d5760405162461bcd60e51b8152600401610b5490613c51565b60085461ffff8082169162010000900416611e288383613df4565b61ffff1610611e3657600080fd5b611e408282613df4565b6008805461ffff191661ffff9290921691909117905560005b8261ffff168161ffff1610156114cc57611e7784610ea88385613df4565b80611e8181613eec565b915050611e59565b611e933383612121565b611eaf5760405162461bcd60e51b8152600401610b5490613c86565b6114cc848484846135de565b6000818152600260205260409020546060906001600160a01b0316611f3a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b54565b600b5460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd9060240160006040518083038186803b158015611f7e57600080fd5b505afa158015611f92573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a479190810190613aae565b6000611fc58261115c565b151592915050565b6006546001600160a01b03163314611ff75760405162461bcd60e51b8152600401610b5490613c51565b6001600160a01b03811661205c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b54565b6120658161251b565b50565b6006546001600160a01b031633146120925760405162461bcd60e51b8152600401610b5490613c51565b6001600160a01b03166000908152600d60205260409020805460ff19169055565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906120e8826114d2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661219a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b54565b60006121a5836114d2565b9050806001600160a01b0316846001600160a01b031614806121e05750836001600160a01b03166121d584610adf565b6001600160a01b0316145b8061221057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661222b826114d2565b6001600160a01b0316146122935760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b54565b6001600160a01b0382166122f55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b54565b6123006000826120b3565b6001600160a01b0383166000908152600360205260408120805460019290612329908490613e74565b90915550506001600160a01b0382166000908152600360205260408120805460019290612357908490613e1a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610fb0828260405180602001604052806000815250613611565b600654600160a01b900460ff166124225760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b54565b6006805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061ffff609083901c1681612486600483613f29565b6040805160808101825260ff81526008602082015260a0918101919091526049606082015290915081600481106124bf576124bf613f61565b602002015160ff16600883901c10156124d9579392505050565b604080516080810182526000808252602082018190529181019190915260026060820152816004811061250e5761250e613f61565b6020020151949350505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061257e600a61ffff8416613f29565b1592915050565b600654600160a01b900460ff16156125af5760405162461bcd60e51b8152600401610b5490613c27565b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586124523390565b6001600160a01b0382166126405760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b54565b6000818152600260205260409020546001600160a01b0316156126a55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b54565b6001600160a01b03821660009081526003602052604081208054600192906126ce908490613e1a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061ffff601083901c1681612743600d83613f29565b604080516101a08101825260ea80825260ef60208301529181018290526060810182905260ff608082015260a0810182905260f460c082015260f960e082015260826101008201526101208101829052610140810182905260f761016082015261018081019190915290915081600d81106127c0576127c0613f61565b602002015160ff16600883901c10156127da579392505050565b604080516101a081018252600080825260208201526001918101919091526002606082015260036080820152600460a0820152600560c0820152600660e0820152600c61010082015260076101208201526009610140820152600a610160820152600b61018082015281600d811061250e5761250e613f61565b600061ffff602083901c168161286b600f83613f29565b604080516101e081018252602d80825260ff6020830181905260a593830193909352603c606083015260c36080830181905260a083015260c0820152607860e08201819052604b6101008301819052610120830152606961014083015261016082015261018081019190915260b46101a082015260966101c082015290915081600f81106128fb576128fb613f61565b602002015160ff16600883901c1015612915579392505050565b604080516101e081018252600180825260006020830152918101919091526004606082018190526002608083015260a0820152600560c08201819052600c60e083018190526101008301819052600d61012084018190526101408401819052600e6101608501526101808401929092526101a08301526101c082015281600f811061250e5761250e613f61565b600061ffff603083901c16816129b9601b83613f29565b60408051610360810182526093815260b4602082015260f69181019190915260c9606082015260d2608082015260fc60a082015260db60c082015260bd60e082015260c3610100820152609c61012082015260b161014082015260ab61016082015260a561018082015260e16101a082015260876101c082018190526101e0820181905260ba61020083015261022082018190526096610240830181905260f3610260840152610280830182905260ff6102a084015260e76102c0840152608d6102e084015260b761030084015261032083015261034082015290915081601b8110612aa757612aa7613f61565b602002015160ff16600883901c1015612ac1579392505050565b60408051610360810182526002808252602082018190526000928201929092526060810191909152600360808201819052600460a08301819052600560c08401819052600660e0850181905260076101008601526101208501849052610140850193909352610160840182905261018084019190915260086101a08401526101c08301526101e0820152600d610200820181905261022082015260136102408201819052601061026083015261028082018190526102a082015260156102c082018190526102e082018190526103008201819052610320820152601661034082015281601b811061250e5761250e613f61565b600061ffff608083901c1681612bcb600983613f29565b6040805161012081018252600980825260208201819052609692820192909252605a60608201526080810182905260d260a082015260c0810182905260e0810182905260ff61010082015291925082908110612c2957612c29613f61565b602002015160ff16600883901c1015612c43579392505050565b604080516101208101825260058082526020820181905260009282019290925260026060820152600860808201819052600360a083015260c0820181905260e0820152610100810191909152816009811061250e5761250e613f61565b600061ffff601083901c1681612cb7600583613f29565b6040805160a08101825260328152600f602082018190529181019190915260fa606082015260ff60808201529091508160058110612cf757612cf7613f61565b602002015160ff16600883901c1015612d11579392505050565b6040805160a081018252600380825260046020830181905292820192909252600060608201526080810191909152816005811061250e5761250e613f61565b600061ffff602083901c1681612d67601383613f29565b6040805161026081018252608580825260bd60208301819052603993830184905260ff606084015260f3608084015260a08301829052607260c08401819052608760e085015260a8610100850152602661012085015260de6101408501526101608401859052605f6101808501526101a0840185905260986101c08501526101e08401526102008301939093526102208201526102408101919091529091508160138110612e1757612e17613f61565b602002015160ff16600883901c1015612e31579392505050565b6040805161026081018252600180825260006020830152600392820183905260608201526080810182905260a0810182905260c0810191909152600460e082018190526007610100830152610120820181905260086101408301819052610160830191909152610180820152600a6101a082018190526101c082018190526101e082015260126102008201819052610220820152600e610240820152816013811061250e5761250e613f61565b600061ffff603083901c1681612ef5601c83613f29565b604080516103808101825260b5815260e06020820181905260939282019290925260ec606082015260dc608082015260a860a08083019190915260c0820152605482820181905260ad610100830152610120820183905260dd61014083015260fe610160830152608c610180830181905260fc6101a084018190526101c084019490945260fa6101e0840152606461020084015260cf61022084015261024083019190915261026082019290925260c46102808201526102a0810182905260e46102c08201526102e0810182905260ff61030082015260b761032082015260f161034082015261036081019190915290915081601c8110612ff857612ff8613f61565b602002015160ff16600883901c1015613012579392505050565b6040805161038081018252600180825260006020830152600392820183905260608201526080810182905260a0810191909152600460c08201819052600b60e0830181905261010083018190526101208301919091526009610140830152600a610160830152600d61018083018190526101a08301919091526101c0820152600e6101e0820152600f6102008201819052610220820152601461024082018190526011610260830152601361028083015260186102a083018190526102c08301919091526102e082018190526016610300830152601a610320830181905261034083019190915261036082015281601c811061250e5761250e613f61565b600061ffff604083901c1681613127601083613f29565b6040805161020081018252607e815260ab602082015260e18183015260f06060820181905260e36080830152607060a08084019190915260ff60c084015260e083019190915260d961010083015260506101208301819052610140830184905261016083019190915260e46101808301526101a08201526101c081019190915260a76101e082015290915081601081106131c3576131c3613f61565b602002015160ff16600883901c10156131dd579392505050565b6040805161020081018252600280825260006020830152600192820192909252606081019190915260036080820181905260a0820152600460c08201819052600660e0830181905260076101008401819052610120840192909252610140830152610160820152600861018082018190526101a0820152600f6101c0820152600c6101e0820152816010811061250e5761250e613f61565b600061ffff605083901c168161328c600683613f29565b6040805160c0810182526096808252601e6020830152603c92820183905260ff6060830152608082015260a081019190915290915081600681106132d2576132d2613f61565b602002015160ff16600883901c10156132ec579392505050565b6040805160c081018252600080825260036020830181905292820183905260608201526080810191909152600460a0820152816006811061250e5761250e613f61565b600061ffff606083901c1681613346601483613f29565b604080516102808101825260d2815260876020820152605091810182905260f5606082015260eb6080820152606e60a08083019190915260c08201839052606460e0830181905260be610100840152610120830181905260ff61014084015261016083019190915260d76101808301526101a08201929092526101c0810182905260b96101e082015260fa61020082015260f06102208201819052610240820152610260810191909152909150816014811061340457613404613f61565b602002015160ff16600883901c101561341e579392505050565b6040805161028081018252600080825260208201819052600392820183905260608201526080810191909152600460a08201819052600a60c08301819052600c60e08401819052610100840192909252601061012084018190526008610140850152610160840181905261018084019190915260116101a0840181905260126101c085018190526101e0850193909352600f610200850152610220840191909152610240830152610260820152816014811061250e5761250e613f61565b600061ffff607083901c16816134f3600a83613f29565b604080516101408101825260fa81526073602082015260649181018290526028606082015260af6080820181905260ff60a083015260b460c083015260e082019290925261010081019190915260b961012082015290915081600a811061355c5761355c613f61565b602002015160ff16600883901c1015613576579392505050565b60408051610140810182526000808252602082018190526004928201839052600660608301819052608083019190915260a0820192909252600560c0820152600960e0820152610100810191909152600861012082015281600a811061250e5761250e613f61565b6135e9848484612218565b6135f584848484613644565b6114cc5760405162461bcd60e51b8152600401610b5490613bd5565b61361b83836125ea565b6136286000848484613644565b610c8a5760405162461bcd60e51b8152600401610b5490613bd5565b60006001600160a01b0384163b1561374657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613688903390899088908890600401613b85565b602060405180830381600087803b1580156136a257600080fd5b505af19250505080156136d2575060408051601f3d908101601f191682019092526136cf91810190613a91565b60015b61372c573d808015613700576040519150601f19603f3d011682016040523d82523d6000602084013e613705565b606091505b5080516137245760405162461bcd60e51b8152600401610b5490613bd5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612210565b506001949350505050565b60008083601f84011261376357600080fd5b50813567ffffffffffffffff81111561377b57600080fd5b6020830191508360208260051b850101111561379657600080fd5b9250929050565b803561ffff811681146137af57600080fd5b919050565b6000602082840312156137c657600080fd5b813561115581613f8d565b6000602082840312156137e357600080fd5b815161115581613f8d565b6000806040838503121561380157600080fd5b823561380c81613f8d565b9150602083013561381c81613f8d565b809150509250929050565b60008060006060848603121561383c57600080fd5b833561384781613f8d565b9250602084013561385781613f8d565b929592945050506040919091013590565b6000806000806080858703121561387e57600080fd5b843561388981613f8d565b9350602085013561389981613f8d565b925060408501359150606085013567ffffffffffffffff8111156138bc57600080fd5b8501601f810187136138cd57600080fd5b80356138e06138db82613dcc565b613d9b565b8181528860208385010111156138f557600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b6000806040838503121561392a57600080fd5b823561393581613f8d565b9150602083013561381c81613fa2565b6000806040838503121561395857600080fd5b823561396381613f8d565b91506139716020840161379d565b90509250929050565b60008060006060848603121561398f57600080fd5b833561399a81613f8d565b92506139a86020850161379d565b91506139b66040850161379d565b90509250925092565b600080604083850312156139d257600080fd5b82356139dd81613f8d565b946020939093013593505050565b60008060008060408587031215613a0157600080fd5b843567ffffffffffffffff80821115613a1957600080fd5b613a2588838901613751565b90965094506020870135915080821115613a3e57600080fd5b50613a4b87828801613751565b95989497509550505050565b600060208284031215613a6957600080fd5b815161115581613fa2565b600060208284031215613a8657600080fd5b813561115581613fb0565b600060208284031215613aa357600080fd5b815161115581613fb0565b600060208284031215613ac057600080fd5b815167ffffffffffffffff811115613ad757600080fd5b8201601f81018413613ae857600080fd5b8051613af66138db82613dcc565b818152856020838501011115613b0b57600080fd5b613b1c826020830160208601613e8b565b95945050505050565b600060208284031215613b3757600080fd5b6111558261379d565b600060208284031215613b5257600080fd5b5035919050565b60008151808452613b71816020860160208601613e8b565b601f01601f19169290920160200192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613bb890830184613b59565b9695505050505050565b6020815260006111556020830184613b59565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b81511515815261014081016020830151613cf6602084018260ff169052565b506040830151613d0b604084018260ff169052565b506060830151613d20606084018260ff169052565b506080830151613d35608084018260ff169052565b5060a0830151613d4a60a084018260ff169052565b5060c0830151613d5f60c084018260ff169052565b5060e0830151613d7460e084018260ff169052565b506101008381015160ff908116918401919091526101209384015116929091019190915290565b604051601f8201601f1916810167ffffffffffffffff81118282101715613dc457613dc4613f77565b604052919050565b600067ffffffffffffffff821115613de657613de6613f77565b50601f01601f191660200190565b600061ffff808316818516808303821115613e1157613e11613f4b565b01949350505050565b60008219821115613e2d57613e2d613f4b565b500190565b6000816000190483118215151615613e4c57613e4c613f4b565b500290565b600061ffff83811690831681811015613e6c57613e6c613f4b565b039392505050565b600082821015613e8657613e86613f4b565b500390565b60005b83811015613ea6578181015183820152602001613e8e565b838111156114cc5750506000910152565b600181811c90821680613ecb57607f821691505b60208210811415611cca57634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415613f0457613f04613f4b565b6001019392505050565b6000600019821415613f2257613f22613f4b565b5060010190565b600082613f4657634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461206557600080fd5b801515811461206557600080fd5b6001600160e01b03198116811461206557600080fdfea2646970667358221220d3ea972164d05669b8424e765129050e56782e8f275b794feb8db9d94e7947a964736f6c63430008070033000000000000000000000000000000000000000000000000011059dd247b4000000000000000000000000000000000000000000000000000000000000000c3500000000000000000000000000000000000000000000000000000000000001388000000000000000000000000000000000000000000000000000000000000071e00000000000000000000000026230e75989a76c4e7a5d939200243acf9b41d35
Deployed Bytecode
0x6080604052600436106102e45760003560e01c8063715018a611610190578063b88d4fde116100dc578063dc31808411610095578063e985e9c51161006f578063e985e9c514610952578063ea4022021461099b578063f2fde38b146109bb578063f6a74ed7146109db57600080fd5b8063dc318084146108de578063dfd9319f14610911578063e1fc334f1461093257600080fd5b8063b88d4fde1461080b578063c4e41b221461082b578063c87b56dd14610844578063d573d39814610864578063d5abeb011461087a578063da8c229e146108ae57600080fd5b80639348c79a11610149578063a22cb46511610123578063a22cb46514610777578063a7fc7a0714610797578063ad4f4c59146107b7578063ae5b7a7d146107d757600080fd5b80639348c79a1461071557806395d89b4114610735578063974c45b91461074a57600080fd5b8063715018a61461066057806374d45808146106755780637e279fe3146106955780638456cb59146106c2578063854ba7ae146106d75780638da5cb5b146106f757600080fd5b80634a5b31351161024f5780635c975abb1161020857806368bf1b4e116101e257806368bf1b4e146105e05780636dc13ef5146106005780636f4f73661461062057806370a082311461064057600080fd5b80635c975abb1461056d5780636352211e1461058c5780636817c76c146105ac57600080fd5b80634a5b3135146104895780634a9fedb1146104bb5780634c0f38c2146104da5780634cd32cf01461050d5780635167b4561461052d57806353b17c721461054d57600080fd5b806339135609116102a157806339135609146103e85780633ccfd60b146103fb5780633f4ba83a146104105780634165f7e71461042557806342842e0e1461044957806344004cc11461046957600080fd5b806301ffc9a7146102e957806306fdde031461031e578063081812fc14610340578063095ea7b31461037857806318160ddd1461039a57806323b872dd146103c8575b600080fd5b3480156102f557600080fd5b50610309610304366004613a74565b6109fb565b60405190151581526020015b60405180910390f35b34801561032a57600080fd5b50610333610a4d565b6040516103159190613bc2565b34801561034c57600080fd5b5061036061035b366004613b40565b610adf565b6040516001600160a01b039091168152602001610315565b34801561038457600080fd5b506103986103933660046139bf565b610b79565b005b3480156103a657600080fd5b506008546103b59061ffff1681565b60405161ffff9091168152602001610315565b3480156103d457600080fd5b506103986103e3366004613827565b610c8f565b6103986103f6366004613b25565b610cd7565b34801561040757600080fd5b50610398610ece565b34801561041c57600080fd5b50610398610fb4565b34801561043157600080fd5b5061043b600a5481565b604051908152602001610315565b34801561045557600080fd5b50610398610464366004613827565b610fe8565b34801561047557600080fd5b50610398610484366004613827565b611003565b34801561049557600080fd5b506104a96104a4366004613b25565b611102565b60405160ff9091168152602001610315565b3480156104c757600080fd5b5060085462010000900461ffff166103b5565b3480156104e657600080fd5b507f000000000000000000000000000000000000000000000000000000000000c3506103b5565b34801561051957600080fd5b5061043b610528366004613b25565b61115c565b34801561053957600080fd5b50610398610548366004613b40565b6112d8565b34801561055957600080fd5b50610398610568366004613945565b61137c565b34801561057957600080fd5b50600654600160a01b900460ff16610309565b34801561059857600080fd5b506103606105a7366004613b40565b6114d2565b3480156105b857600080fd5b5061043b7f000000000000000000000000000000000000000000000000011059dd247b400081565b3480156105ec57600080fd5b506103986105fb366004613b40565b611549565b34801561060c57600080fd5b5061039861061b3660046139eb565b6115e6565b34801561062c57600080fd5b5061039861063b3660046137b4565b611823565b34801561064c57600080fd5b5061043b61065b3660046137b4565b61186f565b34801561066c57600080fd5b506103986118f6565b34801561068157600080fd5b50610309610690366004613b25565b61192a565b3480156106a157600080fd5b5061043b6106b0366004613b25565b600c6020526000908152604090205481565b3480156106ce57600080fd5b5061039861193d565b3480156106e357600080fd5b506103986106f2366004613b25565b61196f565b34801561070357600080fd5b506006546001600160a01b0316610360565b34801561072157600080fd5b5061039861073036600461397a565b611a05565b34801561074157600080fd5b50610333611b3d565b34801561075657600080fd5b5061076a610765366004613b25565b611b4c565b6040516103159190613cd7565b34801561078357600080fd5b50610398610792366004613917565b611cd0565b3480156107a357600080fd5b506103986107b23660046137b4565b611d95565b3480156107c357600080fd5b506103986107d2366004613945565b611de3565b3480156107e357600080fd5b506103b57f000000000000000000000000000000000000000000000000000000000000071e81565b34801561081757600080fd5b50610398610826366004613868565b611e89565b34801561083757600080fd5b5060085461ffff166103b5565b34801561085057600080fd5b5061033361085f366004613b40565b611ebb565b34801561087057600080fd5b5061043b60095481565b34801561088657600080fd5b506103b57f000000000000000000000000000000000000000000000000000000000000c35081565b3480156108ba57600080fd5b506103096108c93660046137b4565b600d6020526000908152604090205460ff1681565b3480156108ea57600080fd5b507f000000000000000000000000000000000000000000000000000000000000071e6103b5565b34801561091d57600080fd5b506008546103b59062010000900461ffff1681565b34801561093e57600080fd5b50600b54610360906001600160a01b031681565b34801561095e57600080fd5b5061030961096d3660046137ee565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109a757600080fd5b506103096109b6366004613b25565b611fba565b3480156109c757600080fd5b506103986109d63660046137b4565b611fcd565b3480156109e757600080fd5b506103986109f63660046137b4565b612068565b60006001600160e01b031982166380ac58cd60e01b1480610a2c57506001600160e01b03198216635b5e139f60e01b145b80610a4757506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610a5c90613eb7565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8890613eb7565b8015610ad55780601f10610aaa57610100808354040283529160200191610ad5565b820191906000526020600020905b815481529060010190602001808311610ab857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b5d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b84826114d2565b9050806001600160a01b0316836001600160a01b03161415610bf25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b54565b336001600160a01b0382161480610c0e5750610c0e813361096d565b610c805760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b54565b610c8a83836120b3565b505050565b336000908152600d602052604090205460ff16610ccc57610cb03382612121565b610ccc5760405162461bcd60e51b8152600401610b5490613c86565b610c8a838383612218565b600654600160a01b900460ff1615610d015760405162461bcd60e51b8152600401610b5490613c27565b60026007541415610d545760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b54565b600260075561ffff8116610d9b5760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d05353d5539560921b6044820152606401610b54565b34610dca7f000000000000000000000000000000000000000000000000011059dd247b400061ffff8416613e32565b14610e055760405162461bcd60e51b815260206004820152600b60248201526a57524f4e475f56414c554560a81b6044820152606401610b54565b60085461ffff8082169162010000900416610e208383613df4565b61ffff161115610e665760405162461bcd60e51b81526020600482015260116024820152704e4f545f454e4f5547485f544f4b454e5360781b6044820152606401610b54565b610e708282613df4565b6008805461ffff191661ffff929092169190911790553360005b8361ffff168161ffff161015610ec357610eb182610ea88386613df4565b61ffff166123b8565b80610ebb81613eec565b915050610e8a565b505060016007555050565b6006546001600160a01b03163314610ef85760405162461bcd60e51b8152600401610b5490613c51565b60405147906000906001600160a01b037f00000000000000000000000026230e75989a76c4e7a5d939200243acf9b41d35169083908381818185875af1925050503d8060008114610f65576040519150601f19603f3d011682016040523d82523d6000602084013e610f6a565b606091505b5050905080610fb05760405162461bcd60e51b81526020600482015260126024820152714641494c45445f544f5f574954484452415760701b6044820152606401610b54565b5050565b6006546001600160a01b03163314610fde5760405162461bcd60e51b8152600401610b5490613c51565b610fe66123d2565b565b610c8a83838360405180602001604052806000815250611e89565b6006546001600160a01b0316331461102d5760405162461bcd60e51b8152600401610b5490613c51565b60405163a9059cbb60e01b81526001600160a01b03838116600483015260248201839052849160009183169063a9059cbb90604401602060405180830381600087803b15801561107c57600080fd5b505af1158015611090573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b49190613a57565b9050806110fb5760405162461bcd60e51b8152602060048201526015602482015274115490cc8c17d5d2551211149055d7d19052531151605a1b6044820152606401610b54565b5050505050565b60008061110e8361115c565b90508061114c5760405162461bcd60e51b815260206004820152600c60248201526b1393d517d49155915053115160a21b6044820152606401610b54565b6111558161246f565b9392505050565b60085460009061ffff908116907f000000000000000000000000000000000000000000000000000000000000071e9081811690851610156112155760095461ffff808316908416108015906111b057508015155b1561120a5780856040516020016111e9929190918252616f6760f01b602083015260f01b6001600160f01b031916602282015260240190565b60408051601f19818403018152919052805160209091012095945050505050565b506000949350505050565b60085461ffff6201000090910481169085168111156112ae57600a5461ffff8083169085161080159061124757508015155b156112a2578086604051602001611280929190918252617a6560f01b602083015260f01b6001600160f01b031916602282015260240190565b60408051601f1981840301815291905280516020909101209695505050505050565b50600095945050505050565b8461ffff168361ffff16111561120a575050505061ffff166000908152600c602052604090205490565b6006546001600160a01b031633146113025760405162461bcd60e51b8152600401610b5490613c51565b600954156113405760405162461bcd60e51b815260206004820152600b60248201526a1053149150511657d4d15560aa1b6044820152606401610b54565b60098190556040518181527f94672ac139c082cbbe33af9e81dc9a913dd6e28df5c7a403b31e472a12b51294906020015b60405180910390a150565b600654600160a01b900460ff16156113a65760405162461bcd60e51b8152600401610b5490613c27565b336000908152600d602052604090205460ff166113f85760405162461bcd60e51b815260206004820152601060248201526f4f4e4c595f434f4e54524f4c4c45525360801b6044820152606401610b54565b60085461ffff908116907f000000000000000000000000000000000000000000000000000000000000c3501661142e8383613df4565b61ffff1611156114745760405162461bcd60e51b81526020600482015260116024820152704e4f545f454e4f5547485f544f4b454e5360781b6044820152606401610b54565b61147e8282613df4565b6008805461ffff191661ffff9290921691909117905560005b8261ffff168110156114cc576114ba846114b58361ffff8616613e1a565b6123b8565b806114c481613f0e565b915050611497565b50505050565b6000818152600260205260408120546001600160a01b031680610a475760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b54565b6006546001600160a01b031633146115735760405162461bcd60e51b8152600401610b5490613c51565b600a54156115b15760405162461bcd60e51b815260206004820152600b60248201526a1053149150511657d4d15560aa1b6044820152606401610b54565b600a8190556040518181527fd364828c13bf88180c58fed2410b5736b21912a5ad26d3426b26f3aba970232b90602001611371565b600654600160a01b900460ff16156116105760405162461bcd60e51b8152600401610b5490613c27565b336000908152600d602052604090205460ff166116625760405162461bcd60e51b815260206004820152601060248201526f4f4e4c595f434f4e54524f4c4c45525360801b6044820152606401610b54565b8281146116b15760405162461bcd60e51b815260206004820152601e60248201527f494e505554535f53484f554c445f484156455f53414d455f4c454e47544800006044820152606401610b54565b60005b838110156110fb57600c60008686848181106116d2576116d2613f61565b90506020020160208101906116e79190613b25565b61ffff1681526020810191909152604001600020541561173c5760405162461bcd60e51b815260206004820152601060248201526f1053149150511657d49155915053115160821b6044820152606401610b54565b82828281811061174e5761174e613f61565b90506020020135600c600087878581811061176b5761176b613f61565b90506020020160208101906117809190613b25565b61ffff1681526020810191909152604001600020558484828181106117a7576117a7613f61565b90506020020160208101906117bc9190613b25565b61ffff167f5b7f9283edd2504660f29463d2f79648570e3be56c99aafad27f3a3aad7e4e048484848181106117f3576117f3613f61565b9050602002013560405161180991815260200190565b60405180910390a28061181b81613f0e565b9150506116b4565b6006546001600160a01b0316331461184d5760405162461bcd60e51b8152600401610b5490613c51565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166118da5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b54565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146119205760405162461bcd60e51b8152600401610b5490613c51565b610fe6600061251b565b6000610a476119388361115c565b61256d565b6006546001600160a01b031633146119675760405162461bcd60e51b8152600401610b5490613c51565b610fe6612585565b6006546001600160a01b031633146119995760405162461bcd60e51b8152600401610b5490613c51565b60085461ffff828116620100009092041614156119e55760405162461bcd60e51b815260206004820152600a6024820152694e4f5f4348414e47455360b01b6044820152606401610b54565b6008805461ffff909216620100000263ffff000019909216919091179055565b6006546001600160a01b03163314611a2f5760405162461bcd60e51b8152600401610b5490613c51565b8161ffff168161ffff161015611a4457600080fd5b82825b8261ffff168161ffff1611611af1576040516331a9108f60e11b815261ffff82166004820152611adf906001600160a01b03841690636352211e9060240160206040518083038186803b158015611a9d57600080fd5b505afa158015611ab1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad591906137d1565b8261ffff166125ea565b80611ae981613eec565b915050611a47565b50611afc8383613e51565b611b07906001613df4565b60088054600090611b1d90849061ffff16613df4565b92506101000a81548161ffff021916908361ffff16021790555050505050565b606060018054610a5c90613eb7565b6040805161014081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905290611ba68361115c565b905080611be45760405162461bcd60e51b815260206004820152600c60248201526b1393d517d49155915053115160a21b6044820152606401610b54565b611bed8161256d565b1580158352611c5257611bff8161272c565b60ff166020830152611c1081612854565b60ff166040830152611c21816129a2565b60ff166060830152611c3281612bb4565b60ff16610100830152611c448161246f565b60ff16610120830152611cca565b611c5b81612ca0565b60ff166020830152611c6c81612d50565b60ff166040830152611c7d81612ede565b60ff166060830152611c8e81613110565b60ff166080830152611c9f81613275565b60ff1660a0830152611cb08161332f565b60ff1660c0830152611cc1816134dc565b60ff1660e08301525b50919050565b6001600160a01b038216331415611d295760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b54565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611dbf5760405162461bcd60e51b8152600401610b5490613c51565b6001600160a01b03166000908152600d60205260409020805460ff19166001179055565b6006546001600160a01b03163314611e0d5760405162461bcd60e51b8152600401610b5490613c51565b60085461ffff8082169162010000900416611e288383613df4565b61ffff1610611e3657600080fd5b611e408282613df4565b6008805461ffff191661ffff9290921691909117905560005b8261ffff168161ffff1610156114cc57611e7784610ea88385613df4565b80611e8181613eec565b915050611e59565b611e933383612121565b611eaf5760405162461bcd60e51b8152600401610b5490613c86565b6114cc848484846135de565b6000818152600260205260409020546060906001600160a01b0316611f3a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b54565b600b5460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd9060240160006040518083038186803b158015611f7e57600080fd5b505afa158015611f92573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a479190810190613aae565b6000611fc58261115c565b151592915050565b6006546001600160a01b03163314611ff75760405162461bcd60e51b8152600401610b5490613c51565b6001600160a01b03811661205c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b54565b6120658161251b565b50565b6006546001600160a01b031633146120925760405162461bcd60e51b8152600401610b5490613c51565b6001600160a01b03166000908152600d60205260409020805460ff19169055565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906120e8826114d2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661219a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b54565b60006121a5836114d2565b9050806001600160a01b0316846001600160a01b031614806121e05750836001600160a01b03166121d584610adf565b6001600160a01b0316145b8061221057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661222b826114d2565b6001600160a01b0316146122935760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b54565b6001600160a01b0382166122f55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b54565b6123006000826120b3565b6001600160a01b0383166000908152600360205260408120805460019290612329908490613e74565b90915550506001600160a01b0382166000908152600360205260408120805460019290612357908490613e1a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610fb0828260405180602001604052806000815250613611565b600654600160a01b900460ff166124225760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b54565b6006805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061ffff609083901c1681612486600483613f29565b6040805160808101825260ff81526008602082015260a0918101919091526049606082015290915081600481106124bf576124bf613f61565b602002015160ff16600883901c10156124d9579392505050565b604080516080810182526000808252602082018190529181019190915260026060820152816004811061250e5761250e613f61565b6020020151949350505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061257e600a61ffff8416613f29565b1592915050565b600654600160a01b900460ff16156125af5760405162461bcd60e51b8152600401610b5490613c27565b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586124523390565b6001600160a01b0382166126405760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b54565b6000818152600260205260409020546001600160a01b0316156126a55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b54565b6001600160a01b03821660009081526003602052604081208054600192906126ce908490613e1a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061ffff601083901c1681612743600d83613f29565b604080516101a08101825260ea80825260ef60208301529181018290526060810182905260ff608082015260a0810182905260f460c082015260f960e082015260826101008201526101208101829052610140810182905260f761016082015261018081019190915290915081600d81106127c0576127c0613f61565b602002015160ff16600883901c10156127da579392505050565b604080516101a081018252600080825260208201526001918101919091526002606082015260036080820152600460a0820152600560c0820152600660e0820152600c61010082015260076101208201526009610140820152600a610160820152600b61018082015281600d811061250e5761250e613f61565b600061ffff602083901c168161286b600f83613f29565b604080516101e081018252602d80825260ff6020830181905260a593830193909352603c606083015260c36080830181905260a083015260c0820152607860e08201819052604b6101008301819052610120830152606961014083015261016082015261018081019190915260b46101a082015260966101c082015290915081600f81106128fb576128fb613f61565b602002015160ff16600883901c1015612915579392505050565b604080516101e081018252600180825260006020830152918101919091526004606082018190526002608083015260a0820152600560c08201819052600c60e083018190526101008301819052600d61012084018190526101408401819052600e6101608501526101808401929092526101a08301526101c082015281600f811061250e5761250e613f61565b600061ffff603083901c16816129b9601b83613f29565b60408051610360810182526093815260b4602082015260f69181019190915260c9606082015260d2608082015260fc60a082015260db60c082015260bd60e082015260c3610100820152609c61012082015260b161014082015260ab61016082015260a561018082015260e16101a082015260876101c082018190526101e0820181905260ba61020083015261022082018190526096610240830181905260f3610260840152610280830182905260ff6102a084015260e76102c0840152608d6102e084015260b761030084015261032083015261034082015290915081601b8110612aa757612aa7613f61565b602002015160ff16600883901c1015612ac1579392505050565b60408051610360810182526002808252602082018190526000928201929092526060810191909152600360808201819052600460a08301819052600560c08401819052600660e0850181905260076101008601526101208501849052610140850193909352610160840182905261018084019190915260086101a08401526101c08301526101e0820152600d610200820181905261022082015260136102408201819052601061026083015261028082018190526102a082015260156102c082018190526102e082018190526103008201819052610320820152601661034082015281601b811061250e5761250e613f61565b600061ffff608083901c1681612bcb600983613f29565b6040805161012081018252600980825260208201819052609692820192909252605a60608201526080810182905260d260a082015260c0810182905260e0810182905260ff61010082015291925082908110612c2957612c29613f61565b602002015160ff16600883901c1015612c43579392505050565b604080516101208101825260058082526020820181905260009282019290925260026060820152600860808201819052600360a083015260c0820181905260e0820152610100810191909152816009811061250e5761250e613f61565b600061ffff601083901c1681612cb7600583613f29565b6040805160a08101825260328152600f602082018190529181019190915260fa606082015260ff60808201529091508160058110612cf757612cf7613f61565b602002015160ff16600883901c1015612d11579392505050565b6040805160a081018252600380825260046020830181905292820192909252600060608201526080810191909152816005811061250e5761250e613f61565b600061ffff602083901c1681612d67601383613f29565b6040805161026081018252608580825260bd60208301819052603993830184905260ff606084015260f3608084015260a08301829052607260c08401819052608760e085015260a8610100850152602661012085015260de6101408501526101608401859052605f6101808501526101a0840185905260986101c08501526101e08401526102008301939093526102208201526102408101919091529091508160138110612e1757612e17613f61565b602002015160ff16600883901c1015612e31579392505050565b6040805161026081018252600180825260006020830152600392820183905260608201526080810182905260a0810182905260c0810191909152600460e082018190526007610100830152610120820181905260086101408301819052610160830191909152610180820152600a6101a082018190526101c082018190526101e082015260126102008201819052610220820152600e610240820152816013811061250e5761250e613f61565b600061ffff603083901c1681612ef5601c83613f29565b604080516103808101825260b5815260e06020820181905260939282019290925260ec606082015260dc608082015260a860a08083019190915260c0820152605482820181905260ad610100830152610120820183905260dd61014083015260fe610160830152608c610180830181905260fc6101a084018190526101c084019490945260fa6101e0840152606461020084015260cf61022084015261024083019190915261026082019290925260c46102808201526102a0810182905260e46102c08201526102e0810182905260ff61030082015260b761032082015260f161034082015261036081019190915290915081601c8110612ff857612ff8613f61565b602002015160ff16600883901c1015613012579392505050565b6040805161038081018252600180825260006020830152600392820183905260608201526080810182905260a0810191909152600460c08201819052600b60e0830181905261010083018190526101208301919091526009610140830152600a610160830152600d61018083018190526101a08301919091526101c0820152600e6101e0820152600f6102008201819052610220820152601461024082018190526011610260830152601361028083015260186102a083018190526102c08301919091526102e082018190526016610300830152601a610320830181905261034083019190915261036082015281601c811061250e5761250e613f61565b600061ffff604083901c1681613127601083613f29565b6040805161020081018252607e815260ab602082015260e18183015260f06060820181905260e36080830152607060a08084019190915260ff60c084015260e083019190915260d961010083015260506101208301819052610140830184905261016083019190915260e46101808301526101a08201526101c081019190915260a76101e082015290915081601081106131c3576131c3613f61565b602002015160ff16600883901c10156131dd579392505050565b6040805161020081018252600280825260006020830152600192820192909252606081019190915260036080820181905260a0820152600460c08201819052600660e0830181905260076101008401819052610120840192909252610140830152610160820152600861018082018190526101a0820152600f6101c0820152600c6101e0820152816010811061250e5761250e613f61565b600061ffff605083901c168161328c600683613f29565b6040805160c0810182526096808252601e6020830152603c92820183905260ff6060830152608082015260a081019190915290915081600681106132d2576132d2613f61565b602002015160ff16600883901c10156132ec579392505050565b6040805160c081018252600080825260036020830181905292820183905260608201526080810191909152600460a0820152816006811061250e5761250e613f61565b600061ffff606083901c1681613346601483613f29565b604080516102808101825260d2815260876020820152605091810182905260f5606082015260eb6080820152606e60a08083019190915260c08201839052606460e0830181905260be610100840152610120830181905260ff61014084015261016083019190915260d76101808301526101a08201929092526101c0810182905260b96101e082015260fa61020082015260f06102208201819052610240820152610260810191909152909150816014811061340457613404613f61565b602002015160ff16600883901c101561341e579392505050565b6040805161028081018252600080825260208201819052600392820183905260608201526080810191909152600460a08201819052600a60c08301819052600c60e08401819052610100840192909252601061012084018190526008610140850152610160840181905261018084019190915260116101a0840181905260126101c085018190526101e0850193909352600f610200850152610220840191909152610240830152610260820152816014811061250e5761250e613f61565b600061ffff607083901c16816134f3600a83613f29565b604080516101408101825260fa81526073602082015260649181018290526028606082015260af6080820181905260ff60a083015260b460c083015260e082019290925261010081019190915260b961012082015290915081600a811061355c5761355c613f61565b602002015160ff16600883901c1015613576579392505050565b60408051610140810182526000808252602082018190526004928201839052600660608301819052608083019190915260a0820192909252600560c0820152600960e0820152610100810191909152600861012082015281600a811061250e5761250e613f61565b6135e9848484612218565b6135f584848484613644565b6114cc5760405162461bcd60e51b8152600401610b5490613bd5565b61361b83836125ea565b6136286000848484613644565b610c8a5760405162461bcd60e51b8152600401610b5490613bd5565b60006001600160a01b0384163b1561374657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613688903390899088908890600401613b85565b602060405180830381600087803b1580156136a257600080fd5b505af19250505080156136d2575060408051601f3d908101601f191682019092526136cf91810190613a91565b60015b61372c573d808015613700576040519150601f19603f3d011682016040523d82523d6000602084013e613705565b606091505b5080516137245760405162461bcd60e51b8152600401610b5490613bd5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612210565b506001949350505050565b60008083601f84011261376357600080fd5b50813567ffffffffffffffff81111561377b57600080fd5b6020830191508360208260051b850101111561379657600080fd5b9250929050565b803561ffff811681146137af57600080fd5b919050565b6000602082840312156137c657600080fd5b813561115581613f8d565b6000602082840312156137e357600080fd5b815161115581613f8d565b6000806040838503121561380157600080fd5b823561380c81613f8d565b9150602083013561381c81613f8d565b809150509250929050565b60008060006060848603121561383c57600080fd5b833561384781613f8d565b9250602084013561385781613f8d565b929592945050506040919091013590565b6000806000806080858703121561387e57600080fd5b843561388981613f8d565b9350602085013561389981613f8d565b925060408501359150606085013567ffffffffffffffff8111156138bc57600080fd5b8501601f810187136138cd57600080fd5b80356138e06138db82613dcc565b613d9b565b8181528860208385010111156138f557600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b6000806040838503121561392a57600080fd5b823561393581613f8d565b9150602083013561381c81613fa2565b6000806040838503121561395857600080fd5b823561396381613f8d565b91506139716020840161379d565b90509250929050565b60008060006060848603121561398f57600080fd5b833561399a81613f8d565b92506139a86020850161379d565b91506139b66040850161379d565b90509250925092565b600080604083850312156139d257600080fd5b82356139dd81613f8d565b946020939093013593505050565b60008060008060408587031215613a0157600080fd5b843567ffffffffffffffff80821115613a1957600080fd5b613a2588838901613751565b90965094506020870135915080821115613a3e57600080fd5b50613a4b87828801613751565b95989497509550505050565b600060208284031215613a6957600080fd5b815161115581613fa2565b600060208284031215613a8657600080fd5b813561115581613fb0565b600060208284031215613aa357600080fd5b815161115581613fb0565b600060208284031215613ac057600080fd5b815167ffffffffffffffff811115613ad757600080fd5b8201601f81018413613ae857600080fd5b8051613af66138db82613dcc565b818152856020838501011115613b0b57600080fd5b613b1c826020830160208601613e8b565b95945050505050565b600060208284031215613b3757600080fd5b6111558261379d565b600060208284031215613b5257600080fd5b5035919050565b60008151808452613b71816020860160208601613e8b565b601f01601f19169290920160200192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613bb890830184613b59565b9695505050505050565b6020815260006111556020830184613b59565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b81511515815261014081016020830151613cf6602084018260ff169052565b506040830151613d0b604084018260ff169052565b506060830151613d20606084018260ff169052565b506080830151613d35608084018260ff169052565b5060a0830151613d4a60a084018260ff169052565b5060c0830151613d5f60c084018260ff169052565b5060e0830151613d7460e084018260ff169052565b506101008381015160ff908116918401919091526101209384015116929091019190915290565b604051601f8201601f1916810167ffffffffffffffff81118282101715613dc457613dc4613f77565b604052919050565b600067ffffffffffffffff821115613de657613de6613f77565b50601f01601f191660200190565b600061ffff808316818516808303821115613e1157613e11613f4b565b01949350505050565b60008219821115613e2d57613e2d613f4b565b500190565b6000816000190483118215151615613e4c57613e4c613f4b565b500290565b600061ffff83811690831681811015613e6c57613e6c613f4b565b039392505050565b600082821015613e8657613e86613f4b565b500390565b60005b83811015613ea6578181015183820152602001613e8e565b838111156114cc5750506000910152565b600181811c90821680613ecb57607f821691505b60208210811415611cca57634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415613f0457613f04613f4b565b6001019392505050565b6000600019821415613f2257613f22613f4b565b5060010190565b600082613f4657634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461206557600080fd5b801515811461206557600080fd5b6001600160e01b03198116811461206557600080fdfea2646970667358221220d3ea972164d05669b8424e765129050e56782e8f275b794feb8db9d94e7947a964736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000011059dd247b4000000000000000000000000000000000000000000000000000000000000000c3500000000000000000000000000000000000000000000000000000000000001388000000000000000000000000000000000000000000000000000000000000071e00000000000000000000000026230e75989a76c4e7a5d939200243acf9b41d35
-----Decoded View---------------
Arg [0] : _mintPrice (uint256): 76660000000000000
Arg [1] : _maxSupply (uint16): 50000
Arg [2] : _genZeroSupply (uint16): 5000
Arg [3] : _ogSupply (uint16): 1822
Arg [4] : _splitter (address): 0x26230E75989a76C4e7A5D939200243aCf9B41d35
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000011059dd247b4000
Arg [1] : 000000000000000000000000000000000000000000000000000000000000c350
Arg [2] : 0000000000000000000000000000000000000000000000000000000000001388
Arg [3] : 000000000000000000000000000000000000000000000000000000000000071e
Arg [4] : 00000000000000000000000026230e75989a76c4e7a5d939200243acf9b41d35
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.