ERC-721
Overview
Max Total Supply
8,390 CnM
Holders
393
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 CnMLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CnMCheddar
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "./interfaces/ICnM.sol"; import "./interfaces/ICnMWithEthers.sol"; import "./interfaces/IHabitat.sol"; import "./interfaces/ITraits.sol"; import "./interfaces/IRandomizer.sol"; contract CnMCheddar is ICnM, ERC721Enumerable, Ownable, Pausable { struct LastWrite { uint64 time; uint64 blockNum; } event TokenMinted(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp); event TestTokenMinted(address indexed owner, uint256 indexed tokenId); event CatMinted(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp); event CrazyCatLadyMinted(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp); event MouseMinted(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp); event CatStolen(uint256 indexed tokenId, address indexed owner, address indexed previous, uint256 blockNum, uint256 timeStamp); event CrazyCatLadyStolen(uint256 indexed tokenId, address indexed owner, address indexed previous, uint256 blockNum, uint256 timeStamp); event MouseStolen(uint256 indexed tokenId, address indexed owner, address indexed previous, uint256 blockNum, uint256 timeStamp); event CatBurned(uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp); event CrazyCatLadyBurned(uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp); event MouseBurned(uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp); event CatStaked(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp); event CrazyCatLadyStaked(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp); event MouseStaked(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp); event CatUnStaked(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp); event CrazyCatLadyUnStaked(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp); event MouseUnStaked(address indexed owner, uint256 indexed tokenId, uint256 blockNum, uint256 timeStamp); event RollChanged(address indexed owner, uint256 tokenId, uint8 roll); // max number of tokens that can be minted: 50,000 in production uint256 public maxTokens; // number of tokens that minted by ethereum - initial 10,000 uint256 public PAID_TOKENS; // number of tokens have been minted so far uint16 public override minted; // mapping tokenId => token's traits mapping(uint256 => CatMouse) private tokenTraits; // Tracks the last block and timestamp that a caller has written to state. // Disallow some access to functions if they occur while a change is being written. mapping(address => LastWrite) private lastWriteAddress; mapping(uint256 => LastWrite) private lastWriteToken; // list of probabilities for each trait type // 0 - 12 are associated with Cats , 13 - 25 are Crazy Cat Lady, 26 - 38 are associated with Mice uint8[][39] public rarities; // list of aliases for Walker's Alias algorithm // 0 - 12 are associated with Cats , 13 - 25 are Crazy Cat Lady, 26 - 38 are associated with Mice uint8[][39] public aliases; // reference to the Habitat contract to allow transfers to it without any approval IHabitat public habitat; ICnM public cnmWithEth; // reference to Traits ITraits public traits; // reference to Randomizer IRandomizer public randomizer; // mapping address => allowedToCallFunctions mapping(address => bool) private admins; constructor(uint256 _maxTokens) ERC721("Cat & Mouse game", "CnM") { setMaxToken(_maxTokens); _pause(); // A.J. Walker's Alias Algorithm // Cats // body rarities[0] = [80]; aliases[0] = [4]; // color rarities[1] = [150, 40, 240, 90, 115]; aliases[1] = [0, 1, 2, 3, 4]; // eyes rarities[2] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0,0,0,0,0,0,0,0]; aliases[2] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22]; // eyebrows rarities[3] = [221]; aliases[3] = [1]; // neck rarities[4] = [175]; aliases[4] = [3]; // glasses rarities[5] = [80]; aliases[5] = [1]; // hair rarities[6] = [255]; aliases[6] = [0]; // head rarities[7] = [243]; aliases[7] = [1]; // markings rarities[8] = [243, 189, 50, 0, 0]; aliases[8] = [0, 1, 2,3,4]; // mouth rarities[9] = [243, 124, 107, 0]; aliases[9] = [0, 1, 2, 3]; // nose rarities[10] = [243]; aliases[10] = [1]; // props rarities[11] = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]; aliases[11] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]; // shirts rarities[12] = [243]; aliases[12] = [1]; // Crazy // body rarities[13] = [80, 40]; aliases[13] = [0, 1]; // color rarities[14] = [150]; aliases[14] = [3]; // eyes rarities[15] = [255, 135, 0, 0]; aliases[15] = [0, 1,2,3]; // eyebrows rarities[16] = [221, 100, 181]; aliases[16] = [0, 1, 2]; // neck rarities[17] = [175]; aliases[17] = [3]; // glasses rarities[18] = [80, 225, 220]; aliases[18] = [0, 1, 2]; // hair rarities[19] = [243, 189, 50, 30, 55, 180, 80, 90]; aliases[19] = [0, 1, 2, 3, 4, 5, 6, 7]; // head rarities[20] = [243]; aliases[20] = [1]; // markings rarities[21] = [243]; aliases[21] = [1]; // mouth rarities[22] = [243]; aliases[22] = [1]; // nose rarities[23] = [243]; aliases[23] = [1]; // props rarities[24] = [243]; aliases[24] = [1]; // shirts rarities[25] = [30, 222, 255, 0, 0]; aliases[25] = [0, 1, 2,3,4,5]; // Mice // body rarities[26] = [150, 40, 240, 90, 0]; aliases[26] = [0, 1, 2, 3, 4]; // color rarities[27] = [150, 241, 40, 240, 90, 115, 135, 40, 199, 100]; aliases[27] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; // eyes rarities[28] = [135, 60, 130, 190, 156, 250, 120, 60, 25, 190]; aliases[28] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; // eyebrows rarities[29] = [221]; aliases[29] = [1]; // neck rarities[30] = [175]; aliases[30] = [3]; // glasses rarities[31] = [80]; aliases[31] = [1]; // hair rarities[32] = [255]; aliases[32] = [0]; // head rarities[33] = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]; aliases[33] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; // markings rarities[34] = [24]; aliases[34] = [1]; // mouth rarities[35] = [90, 155, 30, 222, 255]; aliases[35] = [0, 1, 2, 3, 4]; // nose rarities[36] = [80, 255]; aliases[36] = [0, 1]; // props rarities[37] = [243]; aliases[37] = [1]; // shirts rarities[38] = [243]; aliases[38] = [1]; } /** CRITICAL TO SETUP / MODIFIERS */ modifier requireContractsSet() { require(address(traits) != address(0) && address(habitat) != address(0) && address(randomizer) != address(0) && address(cnmWithEth) != address(0), "Contracts not set"); _; } modifier blockIfChangingAddress() { // frens can always call whenever they want :) require(admins[_msgSender()] || lastWriteAddress[tx.origin].blockNum < block.number, "hmmmm what doing?"); _; } modifier blockIfChangingToken(uint256 tokenId) { // frens can always call whenever they want :) require(admins[_msgSender()] || lastWriteToken[tokenId].blockNum < block.number, "hmmmm what doing?"); _; } function setContracts(address _traits, address _habitat, address _rand, address _cnm) external onlyOwner { traits = ITraits(_traits); habitat = IHabitat(_habitat); randomizer = IRandomizer(_rand); cnmWithEth = ICnM(_cnm); } function setMinted() external onlyOwner { uint256 supply = cnmWithEth.totalSupply(); minted = uint16(supply) + 1; PAID_TOKENS = supply; setMaxToken(supply * 5); } function getTokenWriteBlock(uint256 tokenId) external view override returns (uint64) { require(admins[_msgSender()], "Only admins can call this"); return lastWriteToken[tokenId].blockNum; } /** * Mint a token - any payment / game logic should be handled in the game contract. * This will just generate random 1 and mint a token to a designated address. */ function mint(address recipient, uint256 seed) external override whenNotPaused { require(admins[_msgSender()], "Only admins can call this"); require(minted + 1 <= maxTokens, "All tokens minted"); minted++; generate(recipient, minted, seed); if (tx.origin != recipient && recipient != address(habitat)) { // Stolen! if (tokenTraits[minted].isCat) { if (tokenTraits[minted].isCrazy) { emit CrazyCatLadyStolen(minted, recipient, tx.origin, block.number, block.timestamp); } else { emit CatStolen(minted, recipient, tx.origin, block.number, block.timestamp); } } else { emit MouseStolen(minted, recipient, tx.origin, block.number, block.timestamp); } } _safeMint(recipient, minted); } /** * generates traits for a specific token, checking to make sure it's unique * @param tokenId the id of the token to generate traits for * @param seed a pseudorandom 256 bit number to derive traits from * @return t - a struct of traits for the given token ID */ function generate(address recipient, uint256 tokenId, uint256 seed) public returns (CatMouse memory t){ uint256 random = randomizer.sRandom(seed); t = selectTraits(random); t.roll = 0; tokenTraits[tokenId] = t; emit TokenMinted(recipient, tokenId, block.number, block.timestamp); if (t.isCat) { if (t.isCrazy) { emit CrazyCatLadyMinted(recipient, tokenId, block.number, block.timestamp); } else { emit CatMinted(recipient, tokenId, block.number, block.timestamp); } } else { emit MouseMinted(recipient, tokenId, block.number, block.timestamp); } return t; } /** * selects the species and all of its traits based on the seed value * @param seed a pseudorandom 256 bit number to derive traits from * @return t - a struct of randomly selected traits */ function selectTraits(uint256 seed) public view returns (CatMouse memory t) { // Mouse & Cat percet is 90% & 10% t.isCat = uint16(seed & 0xFFFF) % 100 < 10; if (t.isCat) { // CrazyCats has 20% chance of cats to be minted t.isCrazy = (seed & 0xFFFF) % 10 < 2; } else { // CrazyCat is only true when it is cat t.isCrazy = false; } uint8 shift = t.isCat ? t.isCrazy ? 13 : 0 : 26; seed >>= 16; t.body = selectTrait(uint16(seed & 0xFFFF), 0 + shift); seed >>= 16; t.color = selectTrait(uint16(seed & 0xFFFF), 1 + shift); seed >>= 16; t.eyes = selectTrait(uint16(seed & 0xFFFF), 2 + shift); seed >>= 16; t.eyebrows = selectTrait(uint16(seed & 0xFFFF), 3 + shift); seed >>= 16; t.neck = selectTrait(uint16(seed & 0xFFFF), 4 + shift); seed >>= 16; t.glasses = selectTrait(uint16(seed & 0xFFFF), 5 + shift); seed >>= 16; t.hair = selectTrait(uint16(seed & 0xFFFF), 6 + shift); seed >>= 16; t.head = selectTrait(uint16(seed & 0xFFFF), 7 + shift); seed >>= 16; t.markings = selectTrait(uint16(seed & 0xFFFF), 8 + shift); seed >>= 16; t.mouth = selectTrait(uint16(seed & 0xFFFF), 9 + shift); seed >>= 16; t.nose = selectTrait(uint16(seed & 0xFFFF), 10 + shift); seed >>= 16; t.props = selectTrait(uint16(seed & 0xFFFF), 11 + shift); seed >>= 16; t.shirts = selectTrait(uint16(seed & 0xFFFF), 12 + shift); return t; } /** * uses A.J. Walker's Alias algorithm for O(1) rarity table lookup * ensuring O(1) instead of O(n) reduces mint cost by more than 50% * probability & alias tables are generated off-chain beforehand * @param seed portion of the 256 bit seed to remove trait correlation * @param traitType the trait type to select a trait for * @return the ID of the randomly selected trait */ function selectTrait(uint16 seed, uint8 traitType) internal view returns (uint8) { uint8 trait = uint8(seed) % uint8(rarities[traitType].length); /* // If a selected random trait probability is selected (biased coin) return that trait if (seed >> 8 < rarities[traitType][trait]) return trait; return aliases[traitType][trait];*/ return aliases[traitType][trait]; } /** * Burn a token - any game logic should be handled before this function. */ function burn(uint256 tokenId) external override whenNotPaused { require(admins[_msgSender()], "Only admins can call this"); if(tokenId <= PAID_TOKENS) { cnmWithEth.burn(tokenId); } else { _burn(tokenId); if (tokenTraits[tokenId].isCat) { if (tokenTraits[tokenId].isCrazy) { emit CrazyCatLadyBurned(tokenId, block.number, block.timestamp); } else { emit CatBurned(tokenId, block.number, block.timestamp); } } else { emit MouseBurned(tokenId, block.number, block.timestamp); } } } function setRoll(uint256 tokenId, uint8 habitatType) external override whenNotPaused { require(admins[_msgSender()], "Only admins can call this"); if(tokenId <= PAID_TOKENS) { cnmWithEth.setRoll(tokenId, habitatType); } else { if (!tokenTraits[tokenId].isCat) { tokenTraits[tokenId].roll = habitatType; emit RollChanged(msg.sender, tokenId, habitatType); } } } function updateOriginAccess(uint16[] memory tokenIds) external override { require(admins[_msgSender()], "Only admins can call this"); uint64 blockNum = uint64(block.number); uint64 time = uint64(block.timestamp); lastWriteAddress[tx.origin] = LastWrite(time, blockNum); for (uint256 i = 0; i < tokenIds.length; i++) { lastWriteToken[tokenIds[i]] = LastWrite(time, blockNum); } } function transferFrom( address from, address to, uint256 tokenId ) public virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) { // allow admin contracts to be send without approval if (!admins[_msgSender()]) { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); } if(tokenId <= PAID_TOKENS) { cnmWithEth.transferFrom(from, to, tokenId); } else { _transfer(from, to, tokenId); } } /** * checks if a token is a Cat/Mouse * @param tokenId the ID of the token to check * @return bool - whether or not a token is a Cat */ function isCat(uint256 tokenId) external view override blockIfChangingToken(tokenId) returns (bool) { // Sneaky cats will be slain if they try to peep this after mint. Nice try. if(tokenId <= PAID_TOKENS) { return cnmWithEth.isCat(tokenId); } else { ICnM.CatMouse memory s = tokenTraits[tokenId]; return s.isCat; } } function isClaimable() external view override returns (bool) { return minted > PAID_TOKENS; } /** * checks if a token is a CrazyCatLady * @param tokenId the ID of the token to check * @return bool - whether or not a token is a CrazyCatLady */ function isCrazyCatLady(uint256 tokenId) external view override blockIfChangingToken(tokenId) returns (bool) { // Sneaky cats will be slain if they try to peep this after mint. Nice try. if(tokenId <= PAID_TOKENS) { return cnmWithEth.isCrazyCatLady(tokenId); } else { ICnM.CatMouse memory s = tokenTraits[tokenId]; return s.isCrazy; } } /** * returns the value of Mouse NFT's roll * @param tokenId the ID of the token to check * @return uint8 - 0, 1, 2, 3 */ function getTokenRoll(uint256 tokenId) external view override returns (uint8) { ICnM.CatMouse memory s = tokenTraits[tokenId]; return s.roll; } function getMaxTokens() external view override returns (uint256) { return maxTokens; } function getPaidTokens() external view override returns (uint256) { return PAID_TOKENS; } /** ADMIN */ /** * updates the number of tokens for sale */ function setPaidTokens(uint256 _paidTokens) public onlyOwner { PAID_TOKENS = uint16(_paidTokens); } /** * enables owner to pause / unpause minting */ function setPaused(bool _paused) external requireContractsSet onlyOwner { if (_paused) _pause(); else _unpause(); } /** * enables an address to mint / burn * @param addr the address to enable */ function addAdmin(address addr) external onlyOwner { admins[addr] = true; } /** * disables an address from minting / burning * @param addr the address to disbale */ function removeAdmin(address addr) external onlyOwner { admins[addr] = false; } /** Traits */ function getTokenTraits(uint256 tokenId) external view override blockIfChangingAddress blockIfChangingToken(tokenId) returns (CatMouse memory) { if(tokenId <= PAID_TOKENS) { return cnmWithEth.getTokenTraits(tokenId); } else { return tokenTraits[tokenId]; } } function tokenURI(uint256 tokenId) public view override blockIfChangingAddress blockIfChangingToken(tokenId) returns (string memory) { if(tokenId > PAID_TOKENS) { require(_exists(tokenId), "Token ID does not exist"); } return traits.tokenURI(tokenId); } /** OVERRIDES FOR SAFETY */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override(ERC721Enumerable, IERC721Enumerable) blockIfChangingAddress returns (uint256) { // Y U checking on this address in the same block it's being modified... hmmmm require(admins[_msgSender()] || lastWriteAddress[owner].blockNum < block.number, "hmmmm what doing?"); uint256 tokenId = super.tokenOfOwnerByIndex(owner, index); require(admins[_msgSender()] || lastWriteToken[tokenId].blockNum < block.number, "hmmmm what doing?"); return tokenId; } function balanceOf(address owner) public view virtual override(ERC721, IERC721) blockIfChangingAddress returns (uint256) { // Y U checking on this address in the same block it's being modified... hmmmm require(admins[_msgSender()] || lastWriteAddress[owner].blockNum < block.number, "hmmmm what doing?"); return super.balanceOf(owner); } function ownerOf(uint256 tokenId) public view virtual override(ERC721, IERC721) blockIfChangingAddress blockIfChangingToken(tokenId) returns (address) { address addr; if(tokenId <= PAID_TOKENS) { addr = cnmWithEth.ownerOf(tokenId); } else { addr = super.ownerOf(tokenId); require(admins[_msgSender()] || lastWriteAddress[addr].blockNum < block.number, "hmmmm what doing?"); } return addr; } function tokenByIndex(uint256 index) public view virtual override(ERC721Enumerable, IERC721Enumerable) returns (uint256) { uint256 tokenId = super.tokenByIndex(index); // NICE TRY TOAD DRAGON require(admins[_msgSender()] || lastWriteToken[tokenId].blockNum < block.number, "hmmmm what doing?"); return tokenId; } function approve(address to, uint256 tokenId) public virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) { super.approve(to, tokenId); } function getApproved(uint256 tokenId) public view virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) returns (address) { return super.getApproved(tokenId); } function setApprovalForAll(address operator, bool approved) public virtual override(ERC721, IERC721) blockIfChangingAddress { super.setApprovalForAll(operator, approved); } function isApprovedForAll(address owner, address operator) public view virtual override(ERC721, IERC721) blockIfChangingAddress returns (bool) { return super.isApprovedForAll(owner, operator); } function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) { if(address(habitat) == _msgSender()) { if(tokenId <= PAID_TOKENS) { try cnmWithEth.ownerOf(tokenId) { cnmWithEth.transferFrom(from, to, tokenId); } catch (bytes memory reason) {} } else { if(_exists(tokenId)) { super.safeTransferFrom(from, to, tokenId); } } } else { super.safeTransferFrom(from, to, tokenId); } } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override(ERC721, IERC721) blockIfChangingToken(tokenId) { if(address(habitat) == _msgSender()) { if(tokenId <= PAID_TOKENS) { try cnmWithEth.ownerOf(tokenId) { cnmWithEth.transferFrom(from, to, tokenId); } catch (bytes memory reason) {} } else { if(_exists(tokenId)) { super.safeTransferFrom(from, to, tokenId, _data); } } } else { super.safeTransferFrom(from, to, tokenId, _data); } } function setMaxToken(uint256 limit) public onlyOwner { maxTokens = limit; } /** * emit cat stacked event * @param tokenId the ID of the token stacked */ function emitCatStakedEvent(address owner, uint256 tokenId) external override whenNotPaused { emit CatStaked(owner, tokenId, block.number, block.timestamp); } /** * emit crazy cat stacked event * @param tokenId the ID of the token stacked */ function emitCrazyCatStakedEvent(address owner, uint256 tokenId) external override whenNotPaused { emit CrazyCatLadyStaked(owner, tokenId, block.number, block.timestamp); } /** * emit mouse stacked event * @param tokenId the ID of the token stacked */ function emitMouseStakedEvent(address owner, uint256 tokenId) external override whenNotPaused { emit MouseStaked(owner, tokenId, block.number, block.timestamp); } //----------------friedrich-------------- /** * emit cat stacked event * @param tokenId the ID of the token stacked */ function emitCatUnStakedEvent(address owner, uint256 tokenId) external override whenNotPaused { emit CatUnStaked(owner, tokenId, block.number, block.timestamp); } /** * emit crazy cat stacked event * @param tokenId the ID of the token stacked */ function emitCrazyCatUnStakedEvent(address owner, uint256 tokenId) external override whenNotPaused { emit CrazyCatLadyUnStaked(owner, tokenId, block.number, block.timestamp); } /** * emit mouse stacked event * @param tokenId the ID of the token stacked */ function emitMouseUnStakedEvent(address owner, uint256 tokenId) external override whenNotPaused { emit MouseUnStaked(owner, tokenId, block.number, block.timestamp); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (security/Pausable.sol) 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 // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; interface ICnM is IERC721Enumerable { // Character NFT struct struct CatMouse { bool isCat; // true if cat bool isCrazy; // true if cat is CrazyCatLady, only check if isCat equals to true uint8 roll; //0 - habitatless, 1 - Shack, 2 - Ranch, 3 - Mansion uint8 body; uint8 color; uint8 eyes; uint8 eyebrows; uint8 neck; uint8 glasses; uint8 hair; uint8 head; uint8 markings; uint8 mouth; uint8 nose; uint8 props; uint8 shirts; } function getTokenWriteBlock(uint256 tokenId) external view returns(uint64); function mint(address recipient, uint256 seed) external; // function setRoll(uint256 seed, uint256 tokenId, address addr) external; function setRoll(uint256 tokenId, uint8 habitatType) external; function emitCatStakedEvent(address owner,uint256 tokenId) external; function emitCrazyCatStakedEvent(address owner, uint256 tokenId) external; function emitMouseStakedEvent(address owner, uint256 tokenId) external; function emitCatUnStakedEvent(address owner, uint256 tokenId) external; function emitCrazyCatUnStakedEvent(address owner, uint256 tokenId) external; function emitMouseUnStakedEvent(address owner, uint256 tokenId) external; function burn(uint256 tokenId) external; function getPaidTokens() external view returns (uint256); function updateOriginAccess(uint16[] memory tokenIds) external; function isCat(uint256 tokenId) external view returns(bool); function isClaimable() external view returns(bool); function isCrazyCatLady(uint256 tokenId) external view returns(bool); function getTokenRoll(uint256 tokenId) external view returns(uint8); function getMaxTokens() external view returns (uint256); function getTokenTraits(uint256 tokenId) external view returns (CatMouse memory); function minted() external view returns (uint16); }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; interface ICnMWithEthers is IERC721Enumerable { // Character NFT struct struct CatMouse { bool isCat; // true if cat bool isCrazy; // true if cat is CrazyCatLady, only check if isCat equals to true uint8 roll; //0 - habitatless, 1 - Shack, 2 - Ranch, 3 - Mansion uint8 body; uint8 color; uint8 eyes; uint8 eyebrows; uint8 neck; uint8 glasses; uint8 hair; uint8 head; uint8 markings; uint8 mouth; uint8 nose; uint8 props; uint8 shirts; } function getTokenWriteBlock(uint256 tokenId) external view returns(uint64); function mint(address recipient, uint256 seed) external; // function setRoll(uint256 seed, uint256 tokenId, address addr) external; function setRoll(uint256 tokenId, uint8 habitatType) external; function emitCatStakedEvent(address owner,uint256 tokenId) external; function emitCrazyCatStakedEvent(address owner, uint256 tokenId) external; function emitMouseStakedEvent(address owner, uint256 tokenId) external; function emitCatUnStakedEvent(address owner, uint256 tokenId) external; function emitCrazyCatUnStakedEvent(address owner, uint256 tokenId) external; function emitMouseUnStakedEvent(address owner, uint256 tokenId) external; function burn(uint256 tokenId) external; function getPaidTokens() external view returns (uint256); function updateOriginAccess(uint16[] memory tokenIds) external; function isCat(uint256 tokenId) external view returns(bool); function isClaimable() external view returns(bool); function isCrazyCatLady(uint256 tokenId) external view returns(bool); function getTokenRoll(uint256 tokenId) external view returns(uint8); function getMaxTokens() external view returns (uint256); function getTokenTraits(uint256 tokenId) external view returns (CatMouse memory); function minted() external view returns (uint16); }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; interface IHabitat { function addManyToStakingPool(address account, uint16[] calldata tokenIds) external; function addManyHouseToStakingPool(address account, uint16[] calldata tokenIds) external; function randomCatOwner(uint256 seed) external view returns (address); function randomCrazyCatOwner(uint256 seed) external view returns (address); function isOwner(uint256 tokenId, address owner) external view returns (bool); }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; interface ITraits { function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; interface IRandomizer { function commitId() external view returns (uint16); function getCommitRandom(uint16 id) external view returns (uint256); function random() external returns (uint256); function sRandom(uint256 tokenId) external returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) 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 // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_maxTokens","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CatBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CatMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CatStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"previous","type":"address"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CatStolen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CatUnStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CrazyCatLadyBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CrazyCatLadyMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CrazyCatLadyStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"previous","type":"address"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CrazyCatLadyStolen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"CrazyCatLadyUnStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"MouseBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"MouseMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"MouseStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"previous","type":"address"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"MouseStolen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"MouseUnStaked","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":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"roll","type":"uint8"}],"name":"RollChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TestTokenMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"TokenMinted","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":[],"name":"PAID_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"aliases","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","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":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cnmWithEth","outputs":[{"internalType":"contract ICnM","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emitCatStakedEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emitCatUnStakedEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emitCrazyCatStakedEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emitCrazyCatUnStakedEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emitMouseStakedEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emitMouseUnStakedEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"generate","outputs":[{"components":[{"internalType":"bool","name":"isCat","type":"bool"},{"internalType":"bool","name":"isCrazy","type":"bool"},{"internalType":"uint8","name":"roll","type":"uint8"},{"internalType":"uint8","name":"body","type":"uint8"},{"internalType":"uint8","name":"color","type":"uint8"},{"internalType":"uint8","name":"eyes","type":"uint8"},{"internalType":"uint8","name":"eyebrows","type":"uint8"},{"internalType":"uint8","name":"neck","type":"uint8"},{"internalType":"uint8","name":"glasses","type":"uint8"},{"internalType":"uint8","name":"hair","type":"uint8"},{"internalType":"uint8","name":"head","type":"uint8"},{"internalType":"uint8","name":"markings","type":"uint8"},{"internalType":"uint8","name":"mouth","type":"uint8"},{"internalType":"uint8","name":"nose","type":"uint8"},{"internalType":"uint8","name":"props","type":"uint8"},{"internalType":"uint8","name":"shirts","type":"uint8"}],"internalType":"struct ICnM.CatMouse","name":"t","type":"tuple"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPaidTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenRoll","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenTraits","outputs":[{"components":[{"internalType":"bool","name":"isCat","type":"bool"},{"internalType":"bool","name":"isCrazy","type":"bool"},{"internalType":"uint8","name":"roll","type":"uint8"},{"internalType":"uint8","name":"body","type":"uint8"},{"internalType":"uint8","name":"color","type":"uint8"},{"internalType":"uint8","name":"eyes","type":"uint8"},{"internalType":"uint8","name":"eyebrows","type":"uint8"},{"internalType":"uint8","name":"neck","type":"uint8"},{"internalType":"uint8","name":"glasses","type":"uint8"},{"internalType":"uint8","name":"hair","type":"uint8"},{"internalType":"uint8","name":"head","type":"uint8"},{"internalType":"uint8","name":"markings","type":"uint8"},{"internalType":"uint8","name":"mouth","type":"uint8"},{"internalType":"uint8","name":"nose","type":"uint8"},{"internalType":"uint8","name":"props","type":"uint8"},{"internalType":"uint8","name":"shirts","type":"uint8"}],"internalType":"struct ICnM.CatMouse","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenWriteBlock","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"habitat","outputs":[{"internalType":"contract IHabitat","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isCat","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isClaimable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isCrazyCatLady","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomizer","outputs":[{"internalType":"contract IRandomizer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"rarities","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"selectTraits","outputs":[{"components":[{"internalType":"bool","name":"isCat","type":"bool"},{"internalType":"bool","name":"isCrazy","type":"bool"},{"internalType":"uint8","name":"roll","type":"uint8"},{"internalType":"uint8","name":"body","type":"uint8"},{"internalType":"uint8","name":"color","type":"uint8"},{"internalType":"uint8","name":"eyes","type":"uint8"},{"internalType":"uint8","name":"eyebrows","type":"uint8"},{"internalType":"uint8","name":"neck","type":"uint8"},{"internalType":"uint8","name":"glasses","type":"uint8"},{"internalType":"uint8","name":"hair","type":"uint8"},{"internalType":"uint8","name":"head","type":"uint8"},{"internalType":"uint8","name":"markings","type":"uint8"},{"internalType":"uint8","name":"mouth","type":"uint8"},{"internalType":"uint8","name":"nose","type":"uint8"},{"internalType":"uint8","name":"props","type":"uint8"},{"internalType":"uint8","name":"shirts","type":"uint8"}],"internalType":"struct ICnM.CatMouse","name":"t","type":"tuple"}],"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":"address","name":"_traits","type":"address"},{"internalType":"address","name":"_habitat","type":"address"},{"internalType":"address","name":"_rand","type":"address"},{"internalType":"address","name":"_cnm","type":"address"}],"name":"setContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setMaxToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setMinted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_paidTokens","type":"uint256"}],"name":"setPaidTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"habitatType","type":"uint8"}],"name":"setRoll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"updateOriginAccess","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162005f8138038062005f818339810160408190526200003491620013a2565b604080518082018252601081526f4361742026204d6f7573652067616d6560801b602080830191825283518085019094526003845262436e4d60e81b908401528151919291620000879160009162001259565b5080516200009d90600190602084019062001259565b505050620000ba620000b4620010ef60201b60201c565b620010f3565b600a805460ff60a01b19169055620000d28162001145565b620000dc620011aa565b604080516020810190915260508152620000fb906011906001620012e8565b506040805160208101909152600481526200011b906038906001620012e8565b506040805160a081018252609681526028602082015260f091810191909152605a60608201526073608082015262000158906012906005620012e8565b506040805160a0810182526000815260016020820152600291810191909152600360608201526004608082015262000195906039906005620012e8565b50604080516102e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c081018290526101e08101829052610200810182905261022081018290526102408101829052610260810182905261028081018290526102a081018290526102c08101919091526200025f906013906017620012e8565b50604080516102e08101825260008152600160208201526002918101919091526003606082015260046080820152600560a0820152600660c0820152600760e082015260086101008201526009610120820152600a610140820152600b610160820152600c610180820152600d6101a0820152600e6101c0820152600f6101e08201526010610200820152601161022082015260126102408201526013610260820152601461028082015260156102a082015260166102c08201526200032a90603a906017620012e8565b50604080516020810190915260dd81526200034a906014906001620012e8565b50604080516020810190915260018082526200036991603b91620012e8565b50604080516020810190915260af815262000389906015906001620012e8565b50604080516020810190915260038152620003a990603c906001620012e8565b50604080516020810190915260508152620003c9906016906001620012e8565b5060408051602081019091526001808252620003e891603d91620012e8565b50604080516020810190915260ff815262000408906017906001620012e8565b506040805160208101909152600081526200042890603e906001620012e8565b50604080516020810190915260f3815262000448906018906001620012e8565b50604080516020810190915260018082526200046791603f91620012e8565b506040805160a08101825260f3815260bd60208201526032918101919091526000606082018190526080820152620004a4906019906005620012e8565b506040805160a08101825260008152600160208201526002818301526003606082015260046080820152620004dc91906005620012e8565b506040805160808101825260f38152607c6020820152606b91810191909152600060608201526200051290601a906004620012e8565b506040805160808101825260008152600160208201526002918101919091526003606082015262000548906041906004620012e8565b50604080516020810190915260f381526200056890601b906001620012e8565b50604080516020810190915260018082526200058791604291620012e8565b50604080516101e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c08101919091526200061190601c90600f620012e8565b50604080516101e08101825260008152600160208201526002918101919091526003606082015260046080820152600560a0820152600660c0820152600760e082015260086101008201526009610120820152600a610140820152600b610160820152600c610180820152600d6101a0820152600e6101c08201526200069c90604390600f620012e8565b50604080516020810190915260f38152620006bc90601d906001620012e8565b5060408051602081019091526001808252620006db91604491620012e8565b506040805180820190915260508152602860208201526200070190601e906002620012e8565b5060408051808201909152600081526001602082015262000727906045906002620012e8565b506040805160208101909152609681526200074790601f906001620012e8565b5060408051602081019091526003815262000767906046906001620012e8565b506040805160808101825260ff815260876020820152600091810182905260608101919091526011600f620007a1929101906004620012e8565b5060408051608081018252600081526001602082015260029181019190915260036060820152620007d7906047906004620012e8565b506040805160608101825260dd81526064602082015260b59181019190915262000806906021906003620012e8565b5060408051606081018252600081526001602082015260029181019190915262000835906048906003620012e8565b50604080516020810190915260af815262000855906022906001620012e8565b5060408051602081019091526003815262000875906049906001620012e8565b50604080516060810182526050815260e1602082015260dc91810191909152620008a4906023906003620012e8565b50604080516060810182526000815260016020820152600291810191909152620008d390604a906003620012e8565b50604080516101008101825260f3815260bd6020820152603291810191909152601e60608201526037608082015260b460a0820152605060c0820152605a60e082015262000926906024906008620012e8565b50604080516101008101825260008152600160208201526002918101919091526003606082015260046080820152600560a0820152600660c0820152600760e08201526200097990604b906008620012e8565b50604080516020810190915260f3815262000999906025906001620012e8565b5060408051602081019091526001808252620009b891604c91620012e8565b50604080516020810190915260f38152620009d8906026906001620012e8565b5060408051602081019091526001808252620009f791604d91620012e8565b50604080516020810190915260f3815262000a17906027906001620012e8565b506040805160208101909152600180825262000a3691604e91620012e8565b50604080516020810190915260f3815262000a56906028906001620012e8565b506040805160208101909152600180825262000a7591604f91620012e8565b50604080516020810190915260f3815262000a95906029906001620012e8565b506040805160208101909152600180825262000ab491605091620012e8565b506040805160a081018252601e815260de602082015260ff91810191909152600060608201819052608082015262000af190602a906005620012e8565b506040805160c08101825260008152600160208201526002918101919091526003606082015260046080820152600560a082015262000b35906051906006620012e8565b506040805160a081018252609681526028602082015260f091810191909152605a60608201526000608082015262000b7290602b906005620012e8565b506040805160a0810182526000815260016020820152600291810191909152600360608201526004608082015262000baf906052906005620012e8565b5060408051610140810182526096815260f16020820152602891810182905260f06060820152605a6080820152607360a0820152608760c082015260e081019190915260c7610100820152606461012082015262000c1290602c90600a620012e8565b50604080516101408101825260008152600160208201526002918101919091526003606082015260046080820152600560a0820152600660c0820152600760e08201526008610100820152600961012082015262000c7590605390600a620012e8565b50604080516101408101825260878152603c6020820181905260829282019290925260be60608201819052609c608083015260fa60a0830152607860c083015260e0820192909252601961010082015261012081019190915262000cde90602d90600a620012e8565b50604080516101408101825260008152600160208201526002918101919091526003606082015260046080820152600560a0820152600660c0820152600760e08201526008610100820152600961012082015262000d4190605490600a620012e8565b50604080516020810190915260dd815262000d6190602e906001620012e8565b506040805160208101909152600180825262000d8091605591620012e8565b50604080516020810190915260af815262000da090602f906001620012e8565b5060408051602081019091526003815262000dc0906056906001620012e8565b5060408051602081019091526050815262000de0906030906001620012e8565b506040805160208101909152600180825262000dff91605791620012e8565b50604080516020810190915260ff815262000e1f906031906001620012e8565b5060408051602081019091526000815262000e3f906058906001620012e8565b506040805161020081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c081018290526101e081019190915262000ed1906032906010620012e8565b50604080516102008101825260008152600160208201526002918101919091526003606082015260046080820152600560a0820152600660c0820152600760e082015260086101008201526009610120820152600a610140820152600b610160820152600c610180820152600d6101a0820152600e6101c0820152600f6101e082015262000f64906059906010620012e8565b5060408051602081019091526018815262000f84906033906001620012e8565b506040805160208101909152600180825262000fa391605a91620012e8565b506040805160a081018252605a8152609b6020820152601e9181019190915260de606082015260ff608082015262000fe0906034906005620012e8565b506040805160a081018252600081526001602082015260029181019190915260036060820152600460808201526200101d90605b906005620012e8565b50604080518082019091526050815260ff602082015262001043906035906002620012e8565b506040805180820190915260008152600160208201526200106990605c906002620012e8565b50604080516020810190915260f3815262001089906036906001620012e8565b5060408051602081019091526001808252620010a891605d91620012e8565b50604080516020810190915260f38152620010c8906037906001620012e8565b5060408051602081019091526001808252620010e791605e91620012e8565b5050620013f8565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a546001600160a01b03163314620011a55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600b55565b620011be600a54600160a01b900460ff1690565b15620012005760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016200119c565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200123c3390565b6040516001600160a01b03909116815260200160405180910390a1565b8280546200126790620013bb565b90600052602060002090601f0160209004810192826200128b5760008555620012d6565b82601f10620012a657805160ff1916838001178555620012d6565b82800160010185558215620012d6579182015b82811115620012d6578251825591602001919060010190620012b9565b50620012e49291506200138b565b5090565b82805482825590600052602060002090601f01602090048101928215620012d65791602002820160005b838211156200135257835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030262001312565b8015620013815782816101000a81549060ff021916905560010160208160000104928301926001030262001352565b5050620012e49291505b5b80821115620012e457600081556001016200138c565b600060208284031215620013b4578081fd5b5051919050565b600181811c90821680620013d057607f821691505b60208210811415620013f257634e487b7160e01b600052602260045260246000fd5b50919050565b614b7980620014086000396000f3fe608060405234801561001057600080fd5b50600436106103785760003560e01c80636abcded1116101d3578063bf989b6e11610104578063e985e9c5116100a2578063ef34789d1161007c578063ef34789d14610882578063f10fb58414610895578063f2fde38b146108a8578063f31c996c146108bb57600080fd5b8063e985e9c514610831578063eb0aef6114610844578063ebd173681461085757600080fd5b8063d63a417a116100de578063d63a417a146107ef578063e1fc334f14610802578063e831574214610815578063e86eadcd1461081e57600080fd5b8063bf989b6e146107c0578063c084f540146107d3578063c87b56dd146107dc57600080fd5b806395d89b4111610171578063b63184461161014b578063b631844614610774578063b88d4fde14610787578063bc94b39c1461079a578063bf20740e146107ad57600080fd5b806395d89b4114610746578063a22cb4651461074e578063af1af34a1461076157600080fd5b8063715018a6116101ad578063715018a6146106fd57806374478bb3146107055780638da5cb5b1461071557806394e568471461072657600080fd5b80636abcded1146106cf57806370480275146106d757806370a08231146106ea57600080fd5b806336838391116102ad5780634b584daa1161024b57806358600e061161022557806358600e061461058a5780635c975abb14610592578063607f454e146105a45780636352211e146106bc57600080fd5b80634b584daa146105435780634f02c420146105565780634f6ccce71461057757600080fd5b806340c10f191161028757806340c10f19146104f757806342842e0e1461050a57806342966c681461051d5780634354873a1461053057600080fd5b806336838391146104c95780633995acfe146104dc5780634018b1f8146104ef57600080fd5b806318160ddd1161031a5780632f745c59116102f45780632f745c591461046b57806333df4b2c1461047e5780633431a753146104a357806335ca838b146104b657600080fd5b806318160ddd146104335780631f17299e1461044557806323b872dd1461045857600080fd5b8063095ea7b311610356578063095ea7b3146103e557806309acc2cb146103fa57806316c38b3c1461040d5780631785f53c1461042057600080fd5b806301ffc9a71461037d57806306fdde03146103a5578063081812fc146103ba575b600080fd5b61039061038b366004614368565b6108ce565b60405190151581526020015b60405180910390f35b6103ad6108f9565b60405161039c9190614623565b6103cd6103c8366004614545565b61098b565b6040516001600160a01b03909116815260200161039c565b6103f86103f3366004614218565b610a00565b005b6103f8610408366004614545565b610a69565b6103f861041b366004614330565b610a98565b6103f861042e36600461403a565b610b6b565b6008545b60405190815260200161039c565b6060546103cd906001600160a01b031681565b6103f8610466366004614105565b610bb6565b610437610479366004614218565b610cdc565b61049161048c366004614575565b610e05565b60405160ff909116815260200161039c565b6103f86104b1366004614545565b610e4b565b6103f86104c4366004614277565b610e7e565b6104916104d7366004614575565b610fbe565b6103f86104ea366004614218565b610fce565b600c54610437565b6103f8610505366004614218565b611042565b6103f8610518366004614105565b6112ab565b6103f861052b366004614545565b61143a565b61039061053e366004614545565b6115eb565b6103f8610551366004614218565b6117e3565b600d546105649061ffff1681565b60405161ffff909116815260200161039c565b610437610585366004614545565b61184f565b6103f86118b6565b600a54600160a01b900460ff16610390565b6104916105b2366004614545565b6000908152600e6020908152604091829020825161020081018452905460ff80821615158352610100808304821615159484019490945262010000820481169483018590526301000000820481166060840152640100000000820481166080840152600160281b8204811660a0840152600160301b8204811660c0840152600160381b8204811660e0840152600160401b8204811693830193909352600160481b81048316610120830152600160501b81048316610140830152600160581b81048316610160830152600160601b81048316610180830152600160681b810483166101a0830152600160701b810483166101c0830152600160781b90049091166101e09091015290565b6103cd6106ca366004614545565b611993565b600b54610437565b6103f86106e536600461403a565b611b42565b6104376106f836600461403a565b611b90565b6103f8611c59565b600c54600d5461ffff1611610390565b600a546001600160a01b03166103cd565b610739610734366004614545565b611c8f565b60405161039c919061479a565b6103ad611edf565b6103f861075c3660046141eb565b611eee565b61039061076f366004614545565b611f51565b6103f8610782366004614218565b6120f5565b6103f8610795366004614145565b612161565b6107396107a8366004614243565b612324565b6103f86107bb366004614218565b612731565b6103f86107ce3660046140aa565b61279d565b610437600c5481565b6103ad6107ea366004614545565b612817565b6103f86107fd366004614218565b6129ac565b6061546103cd906001600160a01b031681565b610437600b5481565b605f546103cd906001600160a01b031681565b61039061083f366004614072565b612a18565b610739610852366004614545565b612a9f565b61086a610865366004614545565b612cdb565b6040516001600160401b03909116815260200161039c565b6103f8610890366004614218565b612d2d565b6062546103cd906001600160a01b031681565b6103f86108b636600461403a565b612d99565b6103f86108c9366004614596565b612e31565b60006001600160e01b0319821663780e9d6360e01b14806108f357506108f382612f7a565b92915050565b606060008054610908906149f0565b80601f0160208091040260200160405190810160405280929190818152602001828054610934906149f0565b80156109815780601f1061095657610100808354040283529160200191610981565b820191906000526020600020905b81548152906001019060200180831161096457829003601f168201915b5050505050905090565b33600090815260636020526040812054829060ff16806109c9575060008181526010602052604090205443600160401b9091046001600160401b0316105b6109ee5760405162461bcd60e51b81526004016109e5906146bf565b60405180910390fd5b6109f783612fca565b91505b50919050565b33600090815260636020526040902054819060ff1680610a3e575060008181526010602052604090205443600160401b9091046001600160401b0316105b610a5a5760405162461bcd60e51b81526004016109e5906146bf565b610a648383613052565b505050565b600a546001600160a01b03163314610a935760405162461bcd60e51b81526004016109e590614714565b600b55565b6061546001600160a01b031615801590610abc5750605f546001600160a01b031615155b8015610ad257506062546001600160a01b031615155b8015610ae857506060546001600160a01b031615155b610b285760405162461bcd60e51b815260206004820152601160248201527010dbdb9d1c9858dd1cc81b9bdd081cd95d607a1b60448201526064016109e5565b600a546001600160a01b03163314610b525760405162461bcd60e51b81526004016109e590614714565b8015610b6357610b60613163565b50565b610b606131e5565b600a546001600160a01b03163314610b955760405162461bcd60e51b81526004016109e590614714565b6001600160a01b03166000908152606360205260409020805460ff19169055565b33600090815260636020526040902054819060ff1680610bf4575060008181526010602052604090205443600160401b9091046001600160401b0316105b610c105760405162461bcd60e51b81526004016109e5906146bf565b3360009081526063602052604090205460ff16610c4e57610c32335b83613269565b610c4e5760405162461bcd60e51b81526004016109e590614749565b600c548211610ccb576060546040516323b872dd60e01b81526001600160a01b038681166004830152858116602483015260448201859052909116906323b872dd906064015b600060405180830381600087803b158015610cae57600080fd5b505af1158015610cc2573d6000803e3d6000fd5b50505050610cd6565b610cd6848484613333565b50505050565b3360009081526063602052604081205460ff1680610d195750326000908152600f602052604090205443600160401b9091046001600160401b0316105b610d355760405162461bcd60e51b81526004016109e5906146bf565b3360009081526063602052604090205460ff1680610d7b57506001600160a01b0383166000908152600f602052604090205443600160401b9091046001600160401b0316105b610d975760405162461bcd60e51b81526004016109e5906146bf565b6000610da384846134de565b3360009081526063602052604090205490915060ff1680610de2575060008181526010602052604090205443600160401b9091046001600160401b0316105b610dfe5760405162461bcd60e51b81526004016109e5906146bf565b9392505050565b60118260278110610e1557600080fd5b018181548110610e2457600080fd5b9060005260206000209060209182820401919006915091509054906101000a900460ff1681565b600a546001600160a01b03163314610e755760405162461bcd60e51b81526004016109e590614714565b61ffff16600c55565b3360009081526063602052604090205460ff16610ead5760405162461bcd60e51b81526004016109e590614688565b6040805180820182526001600160401b03428181168352438281166020808601918252326000908152600f9091529586209451855491518516600160401b026001600160801b031990921694169390931792909217909255915b8351811015610cd6576040518060400160405280836001600160401b03168152602001846001600160401b031681525060106000868481518110610f5b57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015161ffff168252818101929092526040016000208251815493909201516001600160401b03908116600160401b026001600160801b031990941692169190911791909117905580610fb681614a47565b915050610f07565b60388260278110610e1557600080fd5b600a54600160a01b900460ff1615610ff85760405162461bcd60e51b81526004016109e5906146ea565b6040805143815242602082015282916001600160a01b038516917f4fa32c2b0aa5253823355304f7938ca3c6d11068bed4b77cebc3ebd0c344bd4791015b60405180910390a35050565b600a54600160a01b900460ff161561106c5760405162461bcd60e51b81526004016109e5906146ea565b3360009081526063602052604090205460ff1661109b5760405162461bcd60e51b81526004016109e590614688565b600b54600d546110b09061ffff16600161492b565b61ffff1611156110f65760405162461bcd60e51b8152602060048201526011602482015270105b1b081d1bdad95b9cc81b5a5b9d1959607a1b60448201526064016109e5565b600d805461ffff1690600061110a83614a25565b82546101009290920a61ffff818102199093169183160217909155600d54611136925084911683612324565b50326001600160a01b0383161480159061115e5750605f546001600160a01b03838116911614155b1561129557600d5461ffff166000908152600e602052604090205460ff161561124557600d5461ffff166000908152600e6020526040902054610100900460ff16156111f957600d546040805143815242602082015232926001600160a01b0386169261ffff909116917f6136abbe50a1ef0e1aec7d2ba8b5e021f5372e6c4d99d0ec6ebfe9c76a330dc991015b60405180910390a4611295565b600d546040805143815242602082015232926001600160a01b0386169261ffff909116917f37ae59e1f5e1d70d70ee5360765bdde09b82c4998154cf6fa065f95e63f0959191016111ec565b600d546040805143815242602082015232926001600160a01b0386169261ffff909116917f80aeaf4d1762bc16a3803b0075f5b50de10a831f917ce325e3f6d53123c66bda910160405180910390a45b600d546112a790839061ffff16613574565b5050565b33600090815260636020526040902054819060ff16806112e9575060008181526010602052604090205443600160401b9091046001600160401b0316105b6113055760405162461bcd60e51b81526004016109e5906146bf565b605f546001600160a01b031633141561142f57600c548211611411576060546040516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e9060240160206040518083038186803b15801561136557600080fd5b505afa925050508015611395575060408051601f3d908101601f1916820190925261139291810190614056565b60015b6113cf573d8080156113c3576040519150601f19603f3d011682016040523d82523d6000602084013e6113c8565b606091505b5050610cd6565b506060546040516323b872dd60e01b81526001600160a01b038681166004830152858116602483015260448201859052909116906323b872dd90606401610c94565b61141a8261358e565b1561142a5761142a8484846135ab565b610cd6565b610cd68484846135ab565b600a54600160a01b900460ff16156114645760405162461bcd60e51b81526004016109e5906146ea565b3360009081526063602052604090205460ff166114935760405162461bcd60e51b81526004016109e590614688565b600c5481116114fd57606054604051630852cd8d60e31b8152600481018390526001600160a01b03909116906342966c6890602401600060405180830381600087803b1580156114e257600080fd5b505af11580156114f6573d6000803e3d6000fd5b5050505050565b611506816135c6565b6000818152600e602052604090205460ff16156115ae576000818152600e6020526040902054610100900460ff1615611577576040805143815242602082015282917f9966b7e70d3ababe80955c13252aaaee4f11c14be860f7e3dde308516e8fbc7691015b60405180910390a250565b6040805143815242602082015282917f95c67930bb5b8a6a9b4000118e3f3a430855679494651c1d1ac56bbfd1f9fd1d910161156c565b6040805143815242602082015282917f7fcdc9026a933b36f60d53e9a47a4e8e2af1a2dbd4ff7e187417d5ea39bcfe53910160405180910390a250565b33600090815260636020526040812054829060ff1680611629575060008181526010602052604090205443600160401b9091046001600160401b0316105b6116455760405162461bcd60e51b81526004016109e5906146bf565b600c5483116116d2576060546040516321aa439d60e11b8152600481018590526001600160a01b0390911690634354873a906024015b60206040518083038186803b15801561169357600080fd5b505afa1580156116a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116cb919061434c565b91506109fa565b6000838152600e6020908152604091829020825161020081018452905460ff80821615158352610100808304821615159484018590526201000083048216958401959095526301000000820481166060840152640100000000820481166080840152600160281b8204811660a0840152600160301b8204811660c0840152600160381b8204811660e0840152600160401b8204811694830194909452600160481b81048416610120830152600160501b81048416610140830152600160581b81048416610160830152600160601b81048416610180830152600160681b810484166101a0830152600160701b810484166101c0830152600160781b90049092166101e09092019190915291506109fa565b600a54600160a01b900460ff161561180d5760405162461bcd60e51b81526004016109e5906146ea565b6040805143815242602082015282916001600160a01b038516917ff73abb164b1a2be75fb965419f5e4adc4b4a0276a2d38393c5d3fcbaf56baef89101611036565b60008061185b8361366d565b3360009081526063602052604090205490915060ff168061189a575060008181526010602052604090205443600160401b9091046001600160401b0316105b6108f35760405162461bcd60e51b81526004016109e5906146bf565b600a546001600160a01b031633146118e05760405162461bcd60e51b81526004016109e590614714565b606054604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561192557600080fd5b505afa158015611939573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061195d919061455d565b905061196a81600161492b565b600d805461ffff191661ffff92909216919091179055600c819055610b6061040882600561498e565b3360009081526063602052604081205460ff16806119d05750326000908152600f602052604090205443600160401b9091046001600160401b0316105b6119ec5760405162461bcd60e51b81526004016109e5906146bf565b33600090815260636020526040902054829060ff1680611a2a575060008181526010602052604090205443600160401b9091046001600160401b0316105b611a465760405162461bcd60e51b81526004016109e5906146bf565b6000600c548411611ad4576060546040516331a9108f60e11b8152600481018690526001600160a01b0390911690636352211e9060240160206040518083038186803b158015611a9557600080fd5b505afa158015611aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611acd9190614056565b90506109f7565b611add8461370e565b3360009081526063602052604090205490915060ff1680611b2657506001600160a01b0381166000908152600f602052604090205443600160401b9091046001600160401b0316105b6109f75760405162461bcd60e51b81526004016109e5906146bf565b600a546001600160a01b03163314611b6c5760405162461bcd60e51b81526004016109e590614714565b6001600160a01b03166000908152606360205260409020805460ff19166001179055565b3360009081526063602052604081205460ff1680611bcd5750326000908152600f602052604090205443600160401b9091046001600160401b0316105b611be95760405162461bcd60e51b81526004016109e5906146bf565b3360009081526063602052604090205460ff1680611c2f57506001600160a01b0382166000908152600f602052604090205443600160401b9091046001600160401b0316105b611c4b5760405162461bcd60e51b81526004016109e5906146bf565b6108f382613785565b919050565b600a546001600160a01b03163314611c835760405162461bcd60e51b81526004016109e590614714565b611c8d600061380c565b565b611c97613fa0565b3360009081526063602052604090205460ff1680611cd45750326000908152600f602052604090205443600160401b9091046001600160401b0316105b611cf05760405162461bcd60e51b81526004016109e5906146bf565b33600090815260636020526040902054829060ff1680611d2e575060008181526010602052604090205443600160401b9091046001600160401b0316105b611d4a5760405162461bcd60e51b81526004016109e5906146bf565b600c548311611dd0576060546040516394e5684760e01b8152600481018590526001600160a01b03909116906394e56847906024016102006040518083038186803b158015611d9857600080fd5b505afa158015611dac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116cb9190614412565b6000838152600e6020908152604091829020825161020081018452905460ff8082161515835261010080830482161515948401949094526201000082048116948301949094526301000000810484166060830152640100000000810484166080830152600160281b8104841660a0830152600160301b8104841660c0830152600160381b8104841660e0830152600160401b8104841692820192909252600160481b82048316610120820152600160501b82048316610140820152600160581b82048316610160820152600160601b82048316610180820152600160681b820483166101a0820152600160701b820483166101c0820152600160781b9091049091166101e082015291506109fa565b606060018054610908906149f0565b3360009081526063602052604090205460ff1680611f2b5750326000908152600f602052604090205443600160401b9091046001600160401b0316105b611f475760405162461bcd60e51b81526004016109e5906146bf565b6112a7828261385e565b33600090815260636020526040812054829060ff1680611f8f575060008181526010602052604090205443600160401b9091046001600160401b0316105b611fab5760405162461bcd60e51b81526004016109e5906146bf565b600c548311611fe55760605460405163578d79a560e11b8152600481018590526001600160a01b039091169063af1af34a9060240161167b565b6000838152600e6020908152604091829020825161020081018452905460ff808216151580845261010080840483161515958501959095526201000083048216958401959095526301000000820481166060840152640100000000820481166080840152600160281b8204811660a0840152600160301b8204811660c0840152600160381b8204811660e0840152600160401b8204811693830193909352600160481b81048316610120830152600160501b81048316610140830152600160581b81048316610160830152600160601b81048316610180830152600160681b810483166101a0830152600160701b810483166101c0830152600160781b90049091166101e09091015291506109fa565b600a54600160a01b900460ff161561211f5760405162461bcd60e51b81526004016109e5906146ea565b6040805143815242602082015282916001600160a01b038516917ff841d299607438478e405c305817bab7d5ae24540c4b84ab4407aa40bfa698169101611036565b33600090815260636020526040902054829060ff168061219f575060008181526010602052604090205443600160401b9091046001600160401b0316105b6121bb5760405162461bcd60e51b81526004016109e5906146bf565b605f546001600160a01b031633141561231857600c5483116122f9576060546040516331a9108f60e11b8152600481018590526001600160a01b0390911690636352211e9060240160206040518083038186803b15801561221b57600080fd5b505afa92505050801561224b575060408051601f3d908101601f1916820190925261224891810190614056565b60015b612285573d808015612279576040519150601f19603f3d011682016040523d82523d6000602084013e61227e565b606091505b50506114f6565b506060546040516323b872dd60e01b81526001600160a01b038781166004830152868116602483015260448201869052909116906323b872dd90606401600060405180830381600087803b1580156122dc57600080fd5b505af11580156122f0573d6000803e3d6000fd5b505050506114f6565b6123028361358e565b156123135761231385858585613869565b6114f6565b6114f685858585613869565b61232c613fa0565b606254604051636cb683e160e01b8152600481018490526000916001600160a01b031690636cb683e190602401602060405180830381600087803b15801561237357600080fd5b505af1158015612387573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123ab919061455d565b90506123b681612a9f565b91506000826040019060ff16908160ff168152505081600e600086815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548160ff021916908360ff16021790555060608201518160000160036101000a81548160ff021916908360ff16021790555060808201518160000160046101000a81548160ff021916908360ff16021790555060a08201518160000160056101000a81548160ff021916908360ff16021790555060c08201518160000160066101000a81548160ff021916908360ff16021790555060e08201518160000160076101000a81548160ff021916908360ff1602179055506101008201518160000160086101000a81548160ff021916908360ff1602179055506101208201518160000160096101000a81548160ff021916908360ff16021790555061014082015181600001600a6101000a81548160ff021916908360ff16021790555061016082015181600001600b6101000a81548160ff021916908360ff16021790555061018082015181600001600c6101000a81548160ff021916908360ff1602179055506101a082015181600001600d6101000a81548160ff021916908360ff1602179055506101c082015181600001600e6101000a81548160ff021916908360ff1602179055506101e082015181600001600f6101000a81548160ff021916908360ff16021790555090505083856001600160a01b03167f10546b1a6f5245ff0ffa18c256b9e46859c585cbb473b453fcd4c2dc39ae08db434260405161263d929190918252602082015260400190565b60405180910390a38151156126e3578160200151156126a1576040805143815242602082015285916001600160a01b038816917ffee439a66e6badac6d1cf73de0da635d973f368e1d49af27be9afd48ee29e18691015b60405180910390a3612729565b6040805143815242602082015285916001600160a01b038816917f6e4b82e9559cc0878d5d1bf4b563e9d27b45a340f649eddb2071f0f98aeeba259101612694565b6040805143815242602082015285916001600160a01b038816917f1f8ee631377b66b98264b5a73b7caf17af5ce10af0b7fe36ad4483801ed91b3f910160405180910390a35b509392505050565b600a54600160a01b900460ff161561275b5760405162461bcd60e51b81526004016109e5906146ea565b6040805143815242602082015282916001600160a01b038516917f76b5f35e80089203e2412b07430e059b3cb41ac9a79d20a6fd2dd3f30416032e9101611036565b600a546001600160a01b031633146127c75760405162461bcd60e51b81526004016109e590614714565b606180546001600160a01b039586166001600160a01b031991821617909155605f805494861694821694909417909355606280549285169284169290921790915560608054919093169116179055565b3360009081526063602052604090205460609060ff16806128575750326000908152600f602052604090205443600160401b9091046001600160401b0316105b6128735760405162461bcd60e51b81526004016109e5906146bf565b33600090815260636020526040902054829060ff16806128b1575060008181526010602052604090205443600160401b9091046001600160401b0316105b6128cd5760405162461bcd60e51b81526004016109e5906146bf565b600c5483111561292c576128e08361358e565b61292c5760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20494420646f6573206e6f7420657869737400000000000000000060448201526064016109e5565b60615460405163c87b56dd60e01b8152600481018590526001600160a01b039091169063c87b56dd9060240160006040518083038186803b15801561297057600080fd5b505afa158015612984573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109f791908101906143a0565b600a54600160a01b900460ff16156129d65760405162461bcd60e51b81526004016109e5906146ea565b6040805143815242602082015282916001600160a01b038516917f5ad0199d300cba765326ad96e454b10ea5241f286963ede1e48814c049dc562d9101611036565b3360009081526063602052604081205460ff1680612a555750326000908152600f602052604090205443600160401b9091046001600160401b0316105b612a715760405162461bcd60e51b81526004016109e5906146bf565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff16610dfe565b612aa7613fa0565b600a612ab8606461ffff8516614a62565b61ffff161080825215612ae1576002612ad6600a61ffff8516614a83565b106020820152612ae9565b600060208201525b8051600090612af957601a612b0c565b8160200151612b09576000612b0c565b600d5b60109390931c929050612b2d61ffff8416612b28836000614969565b61389a565b60ff16606083015260109290921c91612b4f61ffff8416612b28836001614969565b60ff16608083015260109290921c91612b7161ffff8416612b28836002614969565b60ff1660a083015260109290921c91612b9361ffff8416612b28836003614969565b60ff1660c083015260109290921c91612bb561ffff8416612b28836004614969565b60ff1660e083015260109290921c91612bd761ffff8416612b28836005614969565b60ff1661010083015260109290921c91612bfa61ffff8416612b28836006614969565b60ff1661012083015260109290921c91612c1d61ffff8416612b28836007614969565b60ff1661014083015260109290921c91612c4061ffff8416612b28836008614969565b60ff1661016083015260109290921c91612c6361ffff8416612b28836009614969565b60ff1661018083015260109290921c91612c8661ffff8416612b2883600a614969565b60ff166101a083015260109290921c91612ca961ffff8416612b2883600b614969565b60ff166101c083015260109290921c91612ccc61ffff8416612b2883600c614969565b60ff166101e083015250919050565b3360009081526063602052604081205460ff16612d0a5760405162461bcd60e51b81526004016109e590614688565b50600090815260106020526040902054600160401b90046001600160401b031690565b600a54600160a01b900460ff1615612d575760405162461bcd60e51b81526004016109e5906146ea565b6040805143815242602082015282916001600160a01b038516917faee5470e3296fcb7e6ea886c9255768548a79ff1e19ca76660039475b442dd479101611036565b600a546001600160a01b03163314612dc35760405162461bcd60e51b81526004016109e590614714565b6001600160a01b038116612e285760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109e5565b610b608161380c565b600a54600160a01b900460ff1615612e5b5760405162461bcd60e51b81526004016109e5906146ea565b3360009081526063602052604090205460ff16612e8a5760405162461bcd60e51b81526004016109e590614688565b600c548211612efe57606054604051633cc7265b60e21b81526004810184905260ff831660248201526001600160a01b039091169063f31c996c90604401600060405180830381600087803b158015612ee257600080fd5b505af1158015612ef6573d6000803e3d6000fd5b505050505050565b6000828152600e602052604090205460ff166112a7576000828152600e6020908152604091829020805462ff000019166201000060ff86169081029190911790915582518581529182015233917ff47173ac58b5ee21979af58ee2c69b2cddddb4f90eb80845f917867d091137c1910160405180910390a25050565b60006001600160e01b031982166380ac58cd60e01b1480612fab57506001600160e01b03198216635b5e139f60e01b145b806108f357506301ffc9a760e01b6001600160e01b03198316146108f3565b6000612fd58261358e565b6130365760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109e5565b506000908152600460205260409020546001600160a01b031690565b600061305d8261370e565b9050806001600160a01b0316836001600160a01b031614156130cb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109e5565b336001600160a01b03821614806130e757506130e78133612a18565b6131595760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109e5565b610a64838361393f565b600a54600160a01b900460ff161561318d5760405162461bcd60e51b81526004016109e5906146ea565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586131c83390565b6040516001600160a01b03909116815260200160405180910390a1565b600a54600160a01b900460ff166132355760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016109e5565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336131c8565b60006132748261358e565b6132d55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109e5565b60006132e08361370e565b9050806001600160a01b0316846001600160a01b0316148061331b5750836001600160a01b03166133108461098b565b6001600160a01b0316145b8061332b575061332b8185612a18565b949350505050565b826001600160a01b03166133468261370e565b6001600160a01b0316146133ae5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109e5565b6001600160a01b0382166134105760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109e5565b61341b8383836139ad565b61342660008261393f565b6001600160a01b038316600090815260036020526040812080546001929061344f9084906149ad565b90915550506001600160a01b038216600090815260036020526040812080546001929061347d908490614951565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006134e983613785565b821061354b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109e5565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6112a7828260405180602001604052806000815250613a65565b6000908152600260205260409020546001600160a01b0316151590565b610a6483838360405180602001604052806000815250612161565b60006135d18261370e565b90506135df816000846139ad565b6135ea60008361393f565b6001600160a01b03811660009081526003602052604081208054600192906136139084906149ad565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600061367860085490565b82106136db5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109e5565b600882815481106136fc57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806108f35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109e5565b60006001600160a01b0382166137f05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109e5565b506001600160a01b031660009081526003602052604090205490565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6112a7338383613a98565b61387233610c2c565b61388e5760405162461bcd60e51b81526004016109e590614749565b610cd684848484613b67565b60008060118360ff16602781106138c157634e487b7160e01b600052603260045260246000fd5b01546138cd9085614a97565b905060388360ff16602781106138f357634e487b7160e01b600052603260045260246000fd5b018160ff168154811061391657634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1691505092915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906139748261370e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038316613a0857613a0381600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613a2b565b816001600160a01b0316836001600160a01b031614613a2b57613a2b8382613b9a565b6001600160a01b038216613a4257610a6481613c37565b826001600160a01b0316826001600160a01b031614610a6457610a648282613d10565b613a6f8383613d54565b613a7c6000848484613e93565b610a645760405162461bcd60e51b81526004016109e590614636565b816001600160a01b0316836001600160a01b03161415613afa5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109e5565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613b72848484613333565b613b7e84848484613e93565b610cd65760405162461bcd60e51b81526004016109e590614636565b60006001613ba784613785565b613bb191906149ad565b600083815260076020526040902054909150808214613c04576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613c49906001906149ad565b60008381526009602052604081205460088054939450909284908110613c7f57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110613cae57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613cf457634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613d1b83613785565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216613daa5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109e5565b613db38161358e565b15613e005760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109e5565b613e0c600083836139ad565b6001600160a01b0382166000908152600360205260408120805460019290613e35908490614951565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15613f9557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613ed79033908990889088906004016145e6565b602060405180830381600087803b158015613ef157600080fd5b505af1925050508015613f21575060408051601f3d908101601f19168201909252613f1e91810190614384565b60015b613f7b573d808015613f4f576040519150601f19603f3d011682016040523d82523d6000602084013e613f54565b606091505b508051613f735760405162461bcd60e51b81526004016109e590614636565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061332b565b506001949350505050565b6040805161020081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c081018290526101e081019190915290565b8051611c5481614b10565b8051611c5481614b34565b60006020828403121561404b578081fd5b8135610dfe81614afb565b600060208284031215614067578081fd5b8151610dfe81614afb565b60008060408385031215614084578081fd5b823561408f81614afb565b9150602083013561409f81614afb565b809150509250929050565b600080600080608085870312156140bf578182fd5b84356140ca81614afb565b935060208501356140da81614afb565b925060408501356140ea81614afb565b915060608501356140fa81614afb565b939692955090935050565b600080600060608486031215614119578283fd5b833561412481614afb565b9250602084013561413481614afb565b929592945050506040919091013590565b6000806000806080858703121561415a578182fd5b843561416581614afb565b9350602085013561417581614afb565b92506040850135915060608501356001600160401b03811115614196578182fd5b8501601f810187136141a6578182fd5b80356141b96141b482614904565b6148d4565b8181528860208385010111156141cd578384fd5b81602084016020830137908101602001929092525092959194509250565b600080604083850312156141fd578182fd5b823561420881614afb565b9150602083013561409f81614b10565b6000806040838503121561422a578182fd5b823561423581614afb565b946020939093013593505050565b600080600060608486031215614257578081fd5b833561426281614afb565b95602085013595506040909401359392505050565b60006020808385031215614289578182fd5b82356001600160401b038082111561429f578384fd5b818501915085601f8301126142b2578384fd5b8135818111156142c4576142c4614ae5565b8060051b91506142d58483016148d4565b8181528481019084860184860187018a10156142ef578788fd5b8795505b83861015614323578035945061ffff8516851461430e578788fd5b848352600195909501949186019186016142f3565b5098975050505050505050565b600060208284031215614341578081fd5b8135610dfe81614b10565b60006020828403121561435d578081fd5b8151610dfe81614b10565b600060208284031215614379578081fd5b8135610dfe81614b1e565b600060208284031215614395578081fd5b8151610dfe81614b1e565b6000602082840312156143b1578081fd5b81516001600160401b038111156143c6578182fd5b8201601f810184136143d6578182fd5b80516143e46141b482614904565b8181528560208385010111156143f8578384fd5b6144098260208301602086016149c4565b95945050505050565b60006102008284031215614424578081fd5b61442c6148ab565b61443583614024565b815261444360208401614024565b60208201526144546040840161402f565b60408201526144656060840161402f565b60608201526144766080840161402f565b608082015261448760a0840161402f565b60a082015261449860c0840161402f565b60c08201526144a960e0840161402f565b60e08201526101006144bc81850161402f565b908201526101206144ce84820161402f565b908201526101406144e084820161402f565b908201526101606144f284820161402f565b9082015261018061450484820161402f565b908201526101a061451684820161402f565b908201526101c061452884820161402f565b908201526101e061453a84820161402f565b908201529392505050565b600060208284031215614556578081fd5b5035919050565b60006020828403121561456e578081fd5b5051919050565b60008060408385031215614587578182fd5b50508035926020909101359150565b600080604083850312156145a8578182fd5b82359150602083013561409f81614b34565b600081518084526145d28160208601602086016149c4565b601f01601f19169290920160200192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614619908301846145ba565b9695505050505050565b602081526000610dfe60208301846145ba565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526019908201527f4f6e6c792061646d696e732063616e2063616c6c207468697300000000000000604082015260600190565b602080825260119082015270686d6d6d6d207768617420646f696e673f60781b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b815115158152610200810160208301516147b8602084018215159052565b5060408301516147cd604084018260ff169052565b5060608301516147e2606084018260ff169052565b5060808301516147f7608084018260ff169052565b5060a083015161480c60a084018260ff169052565b5060c083015161482160c084018260ff169052565b5060e083015161483660e084018260ff169052565b506101008381015160ff90811691840191909152610120808501518216908401526101408085015182169084015261016080850151821690840152610180808501518216908401526101a0808501518216908401526101c0808501518216908401526101e09384015116929091019190915290565b60405161020081016001600160401b03811182821017156148ce576148ce614ae5565b60405290565b604051601f8201601f191681016001600160401b03811182821017156148fc576148fc614ae5565b604052919050565b60006001600160401b0382111561491d5761491d614ae5565b50601f01601f191660200190565b600061ffff80831681851680830382111561494857614948614ab9565b01949350505050565b6000821982111561496457614964614ab9565b500190565b600060ff821660ff84168060ff0382111561498657614986614ab9565b019392505050565b60008160001904831182151516156149a8576149a8614ab9565b500290565b6000828210156149bf576149bf614ab9565b500390565b60005b838110156149df5781810151838201526020016149c7565b83811115610cd65750506000910152565b600181811c90821680614a0457607f821691505b602082108114156109fa57634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415614a3d57614a3d614ab9565b6001019392505050565b6000600019821415614a5b57614a5b614ab9565b5060010190565b600061ffff80841680614a7757614a77614acf565b92169190910692915050565b600082614a9257614a92614acf565b500690565b600060ff831680614aaa57614aaa614acf565b8060ff84160691505092915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610b6057600080fd5b8015158114610b6057600080fd5b6001600160e01b031981168114610b6057600080fd5b60ff81168114610b6057600080fdfea2646970667358221220e61dfe8182e012c09c86fbf343c9f0ff41545c7ecb4495de464d03af8a0138b764736f6c63430008040033000000000000000000000000000000000000000000000000000000000000c350
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103785760003560e01c80636abcded1116101d3578063bf989b6e11610104578063e985e9c5116100a2578063ef34789d1161007c578063ef34789d14610882578063f10fb58414610895578063f2fde38b146108a8578063f31c996c146108bb57600080fd5b8063e985e9c514610831578063eb0aef6114610844578063ebd173681461085757600080fd5b8063d63a417a116100de578063d63a417a146107ef578063e1fc334f14610802578063e831574214610815578063e86eadcd1461081e57600080fd5b8063bf989b6e146107c0578063c084f540146107d3578063c87b56dd146107dc57600080fd5b806395d89b4111610171578063b63184461161014b578063b631844614610774578063b88d4fde14610787578063bc94b39c1461079a578063bf20740e146107ad57600080fd5b806395d89b4114610746578063a22cb4651461074e578063af1af34a1461076157600080fd5b8063715018a6116101ad578063715018a6146106fd57806374478bb3146107055780638da5cb5b1461071557806394e568471461072657600080fd5b80636abcded1146106cf57806370480275146106d757806370a08231146106ea57600080fd5b806336838391116102ad5780634b584daa1161024b57806358600e061161022557806358600e061461058a5780635c975abb14610592578063607f454e146105a45780636352211e146106bc57600080fd5b80634b584daa146105435780634f02c420146105565780634f6ccce71461057757600080fd5b806340c10f191161028757806340c10f19146104f757806342842e0e1461050a57806342966c681461051d5780634354873a1461053057600080fd5b806336838391146104c95780633995acfe146104dc5780634018b1f8146104ef57600080fd5b806318160ddd1161031a5780632f745c59116102f45780632f745c591461046b57806333df4b2c1461047e5780633431a753146104a357806335ca838b146104b657600080fd5b806318160ddd146104335780631f17299e1461044557806323b872dd1461045857600080fd5b8063095ea7b311610356578063095ea7b3146103e557806309acc2cb146103fa57806316c38b3c1461040d5780631785f53c1461042057600080fd5b806301ffc9a71461037d57806306fdde03146103a5578063081812fc146103ba575b600080fd5b61039061038b366004614368565b6108ce565b60405190151581526020015b60405180910390f35b6103ad6108f9565b60405161039c9190614623565b6103cd6103c8366004614545565b61098b565b6040516001600160a01b03909116815260200161039c565b6103f86103f3366004614218565b610a00565b005b6103f8610408366004614545565b610a69565b6103f861041b366004614330565b610a98565b6103f861042e36600461403a565b610b6b565b6008545b60405190815260200161039c565b6060546103cd906001600160a01b031681565b6103f8610466366004614105565b610bb6565b610437610479366004614218565b610cdc565b61049161048c366004614575565b610e05565b60405160ff909116815260200161039c565b6103f86104b1366004614545565b610e4b565b6103f86104c4366004614277565b610e7e565b6104916104d7366004614575565b610fbe565b6103f86104ea366004614218565b610fce565b600c54610437565b6103f8610505366004614218565b611042565b6103f8610518366004614105565b6112ab565b6103f861052b366004614545565b61143a565b61039061053e366004614545565b6115eb565b6103f8610551366004614218565b6117e3565b600d546105649061ffff1681565b60405161ffff909116815260200161039c565b610437610585366004614545565b61184f565b6103f86118b6565b600a54600160a01b900460ff16610390565b6104916105b2366004614545565b6000908152600e6020908152604091829020825161020081018452905460ff80821615158352610100808304821615159484019490945262010000820481169483018590526301000000820481166060840152640100000000820481166080840152600160281b8204811660a0840152600160301b8204811660c0840152600160381b8204811660e0840152600160401b8204811693830193909352600160481b81048316610120830152600160501b81048316610140830152600160581b81048316610160830152600160601b81048316610180830152600160681b810483166101a0830152600160701b810483166101c0830152600160781b90049091166101e09091015290565b6103cd6106ca366004614545565b611993565b600b54610437565b6103f86106e536600461403a565b611b42565b6104376106f836600461403a565b611b90565b6103f8611c59565b600c54600d5461ffff1611610390565b600a546001600160a01b03166103cd565b610739610734366004614545565b611c8f565b60405161039c919061479a565b6103ad611edf565b6103f861075c3660046141eb565b611eee565b61039061076f366004614545565b611f51565b6103f8610782366004614218565b6120f5565b6103f8610795366004614145565b612161565b6107396107a8366004614243565b612324565b6103f86107bb366004614218565b612731565b6103f86107ce3660046140aa565b61279d565b610437600c5481565b6103ad6107ea366004614545565b612817565b6103f86107fd366004614218565b6129ac565b6061546103cd906001600160a01b031681565b610437600b5481565b605f546103cd906001600160a01b031681565b61039061083f366004614072565b612a18565b610739610852366004614545565b612a9f565b61086a610865366004614545565b612cdb565b6040516001600160401b03909116815260200161039c565b6103f8610890366004614218565b612d2d565b6062546103cd906001600160a01b031681565b6103f86108b636600461403a565b612d99565b6103f86108c9366004614596565b612e31565b60006001600160e01b0319821663780e9d6360e01b14806108f357506108f382612f7a565b92915050565b606060008054610908906149f0565b80601f0160208091040260200160405190810160405280929190818152602001828054610934906149f0565b80156109815780601f1061095657610100808354040283529160200191610981565b820191906000526020600020905b81548152906001019060200180831161096457829003601f168201915b5050505050905090565b33600090815260636020526040812054829060ff16806109c9575060008181526010602052604090205443600160401b9091046001600160401b0316105b6109ee5760405162461bcd60e51b81526004016109e5906146bf565b60405180910390fd5b6109f783612fca565b91505b50919050565b33600090815260636020526040902054819060ff1680610a3e575060008181526010602052604090205443600160401b9091046001600160401b0316105b610a5a5760405162461bcd60e51b81526004016109e5906146bf565b610a648383613052565b505050565b600a546001600160a01b03163314610a935760405162461bcd60e51b81526004016109e590614714565b600b55565b6061546001600160a01b031615801590610abc5750605f546001600160a01b031615155b8015610ad257506062546001600160a01b031615155b8015610ae857506060546001600160a01b031615155b610b285760405162461bcd60e51b815260206004820152601160248201527010dbdb9d1c9858dd1cc81b9bdd081cd95d607a1b60448201526064016109e5565b600a546001600160a01b03163314610b525760405162461bcd60e51b81526004016109e590614714565b8015610b6357610b60613163565b50565b610b606131e5565b600a546001600160a01b03163314610b955760405162461bcd60e51b81526004016109e590614714565b6001600160a01b03166000908152606360205260409020805460ff19169055565b33600090815260636020526040902054819060ff1680610bf4575060008181526010602052604090205443600160401b9091046001600160401b0316105b610c105760405162461bcd60e51b81526004016109e5906146bf565b3360009081526063602052604090205460ff16610c4e57610c32335b83613269565b610c4e5760405162461bcd60e51b81526004016109e590614749565b600c548211610ccb576060546040516323b872dd60e01b81526001600160a01b038681166004830152858116602483015260448201859052909116906323b872dd906064015b600060405180830381600087803b158015610cae57600080fd5b505af1158015610cc2573d6000803e3d6000fd5b50505050610cd6565b610cd6848484613333565b50505050565b3360009081526063602052604081205460ff1680610d195750326000908152600f602052604090205443600160401b9091046001600160401b0316105b610d355760405162461bcd60e51b81526004016109e5906146bf565b3360009081526063602052604090205460ff1680610d7b57506001600160a01b0383166000908152600f602052604090205443600160401b9091046001600160401b0316105b610d975760405162461bcd60e51b81526004016109e5906146bf565b6000610da384846134de565b3360009081526063602052604090205490915060ff1680610de2575060008181526010602052604090205443600160401b9091046001600160401b0316105b610dfe5760405162461bcd60e51b81526004016109e5906146bf565b9392505050565b60118260278110610e1557600080fd5b018181548110610e2457600080fd5b9060005260206000209060209182820401919006915091509054906101000a900460ff1681565b600a546001600160a01b03163314610e755760405162461bcd60e51b81526004016109e590614714565b61ffff16600c55565b3360009081526063602052604090205460ff16610ead5760405162461bcd60e51b81526004016109e590614688565b6040805180820182526001600160401b03428181168352438281166020808601918252326000908152600f9091529586209451855491518516600160401b026001600160801b031990921694169390931792909217909255915b8351811015610cd6576040518060400160405280836001600160401b03168152602001846001600160401b031681525060106000868481518110610f5b57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015161ffff168252818101929092526040016000208251815493909201516001600160401b03908116600160401b026001600160801b031990941692169190911791909117905580610fb681614a47565b915050610f07565b60388260278110610e1557600080fd5b600a54600160a01b900460ff1615610ff85760405162461bcd60e51b81526004016109e5906146ea565b6040805143815242602082015282916001600160a01b038516917f4fa32c2b0aa5253823355304f7938ca3c6d11068bed4b77cebc3ebd0c344bd4791015b60405180910390a35050565b600a54600160a01b900460ff161561106c5760405162461bcd60e51b81526004016109e5906146ea565b3360009081526063602052604090205460ff1661109b5760405162461bcd60e51b81526004016109e590614688565b600b54600d546110b09061ffff16600161492b565b61ffff1611156110f65760405162461bcd60e51b8152602060048201526011602482015270105b1b081d1bdad95b9cc81b5a5b9d1959607a1b60448201526064016109e5565b600d805461ffff1690600061110a83614a25565b82546101009290920a61ffff818102199093169183160217909155600d54611136925084911683612324565b50326001600160a01b0383161480159061115e5750605f546001600160a01b03838116911614155b1561129557600d5461ffff166000908152600e602052604090205460ff161561124557600d5461ffff166000908152600e6020526040902054610100900460ff16156111f957600d546040805143815242602082015232926001600160a01b0386169261ffff909116917f6136abbe50a1ef0e1aec7d2ba8b5e021f5372e6c4d99d0ec6ebfe9c76a330dc991015b60405180910390a4611295565b600d546040805143815242602082015232926001600160a01b0386169261ffff909116917f37ae59e1f5e1d70d70ee5360765bdde09b82c4998154cf6fa065f95e63f0959191016111ec565b600d546040805143815242602082015232926001600160a01b0386169261ffff909116917f80aeaf4d1762bc16a3803b0075f5b50de10a831f917ce325e3f6d53123c66bda910160405180910390a45b600d546112a790839061ffff16613574565b5050565b33600090815260636020526040902054819060ff16806112e9575060008181526010602052604090205443600160401b9091046001600160401b0316105b6113055760405162461bcd60e51b81526004016109e5906146bf565b605f546001600160a01b031633141561142f57600c548211611411576060546040516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e9060240160206040518083038186803b15801561136557600080fd5b505afa925050508015611395575060408051601f3d908101601f1916820190925261139291810190614056565b60015b6113cf573d8080156113c3576040519150601f19603f3d011682016040523d82523d6000602084013e6113c8565b606091505b5050610cd6565b506060546040516323b872dd60e01b81526001600160a01b038681166004830152858116602483015260448201859052909116906323b872dd90606401610c94565b61141a8261358e565b1561142a5761142a8484846135ab565b610cd6565b610cd68484846135ab565b600a54600160a01b900460ff16156114645760405162461bcd60e51b81526004016109e5906146ea565b3360009081526063602052604090205460ff166114935760405162461bcd60e51b81526004016109e590614688565b600c5481116114fd57606054604051630852cd8d60e31b8152600481018390526001600160a01b03909116906342966c6890602401600060405180830381600087803b1580156114e257600080fd5b505af11580156114f6573d6000803e3d6000fd5b5050505050565b611506816135c6565b6000818152600e602052604090205460ff16156115ae576000818152600e6020526040902054610100900460ff1615611577576040805143815242602082015282917f9966b7e70d3ababe80955c13252aaaee4f11c14be860f7e3dde308516e8fbc7691015b60405180910390a250565b6040805143815242602082015282917f95c67930bb5b8a6a9b4000118e3f3a430855679494651c1d1ac56bbfd1f9fd1d910161156c565b6040805143815242602082015282917f7fcdc9026a933b36f60d53e9a47a4e8e2af1a2dbd4ff7e187417d5ea39bcfe53910160405180910390a250565b33600090815260636020526040812054829060ff1680611629575060008181526010602052604090205443600160401b9091046001600160401b0316105b6116455760405162461bcd60e51b81526004016109e5906146bf565b600c5483116116d2576060546040516321aa439d60e11b8152600481018590526001600160a01b0390911690634354873a906024015b60206040518083038186803b15801561169357600080fd5b505afa1580156116a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116cb919061434c565b91506109fa565b6000838152600e6020908152604091829020825161020081018452905460ff80821615158352610100808304821615159484018590526201000083048216958401959095526301000000820481166060840152640100000000820481166080840152600160281b8204811660a0840152600160301b8204811660c0840152600160381b8204811660e0840152600160401b8204811694830194909452600160481b81048416610120830152600160501b81048416610140830152600160581b81048416610160830152600160601b81048416610180830152600160681b810484166101a0830152600160701b810484166101c0830152600160781b90049092166101e09092019190915291506109fa565b600a54600160a01b900460ff161561180d5760405162461bcd60e51b81526004016109e5906146ea565b6040805143815242602082015282916001600160a01b038516917ff73abb164b1a2be75fb965419f5e4adc4b4a0276a2d38393c5d3fcbaf56baef89101611036565b60008061185b8361366d565b3360009081526063602052604090205490915060ff168061189a575060008181526010602052604090205443600160401b9091046001600160401b0316105b6108f35760405162461bcd60e51b81526004016109e5906146bf565b600a546001600160a01b031633146118e05760405162461bcd60e51b81526004016109e590614714565b606054604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561192557600080fd5b505afa158015611939573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061195d919061455d565b905061196a81600161492b565b600d805461ffff191661ffff92909216919091179055600c819055610b6061040882600561498e565b3360009081526063602052604081205460ff16806119d05750326000908152600f602052604090205443600160401b9091046001600160401b0316105b6119ec5760405162461bcd60e51b81526004016109e5906146bf565b33600090815260636020526040902054829060ff1680611a2a575060008181526010602052604090205443600160401b9091046001600160401b0316105b611a465760405162461bcd60e51b81526004016109e5906146bf565b6000600c548411611ad4576060546040516331a9108f60e11b8152600481018690526001600160a01b0390911690636352211e9060240160206040518083038186803b158015611a9557600080fd5b505afa158015611aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611acd9190614056565b90506109f7565b611add8461370e565b3360009081526063602052604090205490915060ff1680611b2657506001600160a01b0381166000908152600f602052604090205443600160401b9091046001600160401b0316105b6109f75760405162461bcd60e51b81526004016109e5906146bf565b600a546001600160a01b03163314611b6c5760405162461bcd60e51b81526004016109e590614714565b6001600160a01b03166000908152606360205260409020805460ff19166001179055565b3360009081526063602052604081205460ff1680611bcd5750326000908152600f602052604090205443600160401b9091046001600160401b0316105b611be95760405162461bcd60e51b81526004016109e5906146bf565b3360009081526063602052604090205460ff1680611c2f57506001600160a01b0382166000908152600f602052604090205443600160401b9091046001600160401b0316105b611c4b5760405162461bcd60e51b81526004016109e5906146bf565b6108f382613785565b919050565b600a546001600160a01b03163314611c835760405162461bcd60e51b81526004016109e590614714565b611c8d600061380c565b565b611c97613fa0565b3360009081526063602052604090205460ff1680611cd45750326000908152600f602052604090205443600160401b9091046001600160401b0316105b611cf05760405162461bcd60e51b81526004016109e5906146bf565b33600090815260636020526040902054829060ff1680611d2e575060008181526010602052604090205443600160401b9091046001600160401b0316105b611d4a5760405162461bcd60e51b81526004016109e5906146bf565b600c548311611dd0576060546040516394e5684760e01b8152600481018590526001600160a01b03909116906394e56847906024016102006040518083038186803b158015611d9857600080fd5b505afa158015611dac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116cb9190614412565b6000838152600e6020908152604091829020825161020081018452905460ff8082161515835261010080830482161515948401949094526201000082048116948301949094526301000000810484166060830152640100000000810484166080830152600160281b8104841660a0830152600160301b8104841660c0830152600160381b8104841660e0830152600160401b8104841692820192909252600160481b82048316610120820152600160501b82048316610140820152600160581b82048316610160820152600160601b82048316610180820152600160681b820483166101a0820152600160701b820483166101c0820152600160781b9091049091166101e082015291506109fa565b606060018054610908906149f0565b3360009081526063602052604090205460ff1680611f2b5750326000908152600f602052604090205443600160401b9091046001600160401b0316105b611f475760405162461bcd60e51b81526004016109e5906146bf565b6112a7828261385e565b33600090815260636020526040812054829060ff1680611f8f575060008181526010602052604090205443600160401b9091046001600160401b0316105b611fab5760405162461bcd60e51b81526004016109e5906146bf565b600c548311611fe55760605460405163578d79a560e11b8152600481018590526001600160a01b039091169063af1af34a9060240161167b565b6000838152600e6020908152604091829020825161020081018452905460ff808216151580845261010080840483161515958501959095526201000083048216958401959095526301000000820481166060840152640100000000820481166080840152600160281b8204811660a0840152600160301b8204811660c0840152600160381b8204811660e0840152600160401b8204811693830193909352600160481b81048316610120830152600160501b81048316610140830152600160581b81048316610160830152600160601b81048316610180830152600160681b810483166101a0830152600160701b810483166101c0830152600160781b90049091166101e09091015291506109fa565b600a54600160a01b900460ff161561211f5760405162461bcd60e51b81526004016109e5906146ea565b6040805143815242602082015282916001600160a01b038516917ff841d299607438478e405c305817bab7d5ae24540c4b84ab4407aa40bfa698169101611036565b33600090815260636020526040902054829060ff168061219f575060008181526010602052604090205443600160401b9091046001600160401b0316105b6121bb5760405162461bcd60e51b81526004016109e5906146bf565b605f546001600160a01b031633141561231857600c5483116122f9576060546040516331a9108f60e11b8152600481018590526001600160a01b0390911690636352211e9060240160206040518083038186803b15801561221b57600080fd5b505afa92505050801561224b575060408051601f3d908101601f1916820190925261224891810190614056565b60015b612285573d808015612279576040519150601f19603f3d011682016040523d82523d6000602084013e61227e565b606091505b50506114f6565b506060546040516323b872dd60e01b81526001600160a01b038781166004830152868116602483015260448201869052909116906323b872dd90606401600060405180830381600087803b1580156122dc57600080fd5b505af11580156122f0573d6000803e3d6000fd5b505050506114f6565b6123028361358e565b156123135761231385858585613869565b6114f6565b6114f685858585613869565b61232c613fa0565b606254604051636cb683e160e01b8152600481018490526000916001600160a01b031690636cb683e190602401602060405180830381600087803b15801561237357600080fd5b505af1158015612387573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123ab919061455d565b90506123b681612a9f565b91506000826040019060ff16908160ff168152505081600e600086815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548160ff021916908360ff16021790555060608201518160000160036101000a81548160ff021916908360ff16021790555060808201518160000160046101000a81548160ff021916908360ff16021790555060a08201518160000160056101000a81548160ff021916908360ff16021790555060c08201518160000160066101000a81548160ff021916908360ff16021790555060e08201518160000160076101000a81548160ff021916908360ff1602179055506101008201518160000160086101000a81548160ff021916908360ff1602179055506101208201518160000160096101000a81548160ff021916908360ff16021790555061014082015181600001600a6101000a81548160ff021916908360ff16021790555061016082015181600001600b6101000a81548160ff021916908360ff16021790555061018082015181600001600c6101000a81548160ff021916908360ff1602179055506101a082015181600001600d6101000a81548160ff021916908360ff1602179055506101c082015181600001600e6101000a81548160ff021916908360ff1602179055506101e082015181600001600f6101000a81548160ff021916908360ff16021790555090505083856001600160a01b03167f10546b1a6f5245ff0ffa18c256b9e46859c585cbb473b453fcd4c2dc39ae08db434260405161263d929190918252602082015260400190565b60405180910390a38151156126e3578160200151156126a1576040805143815242602082015285916001600160a01b038816917ffee439a66e6badac6d1cf73de0da635d973f368e1d49af27be9afd48ee29e18691015b60405180910390a3612729565b6040805143815242602082015285916001600160a01b038816917f6e4b82e9559cc0878d5d1bf4b563e9d27b45a340f649eddb2071f0f98aeeba259101612694565b6040805143815242602082015285916001600160a01b038816917f1f8ee631377b66b98264b5a73b7caf17af5ce10af0b7fe36ad4483801ed91b3f910160405180910390a35b509392505050565b600a54600160a01b900460ff161561275b5760405162461bcd60e51b81526004016109e5906146ea565b6040805143815242602082015282916001600160a01b038516917f76b5f35e80089203e2412b07430e059b3cb41ac9a79d20a6fd2dd3f30416032e9101611036565b600a546001600160a01b031633146127c75760405162461bcd60e51b81526004016109e590614714565b606180546001600160a01b039586166001600160a01b031991821617909155605f805494861694821694909417909355606280549285169284169290921790915560608054919093169116179055565b3360009081526063602052604090205460609060ff16806128575750326000908152600f602052604090205443600160401b9091046001600160401b0316105b6128735760405162461bcd60e51b81526004016109e5906146bf565b33600090815260636020526040902054829060ff16806128b1575060008181526010602052604090205443600160401b9091046001600160401b0316105b6128cd5760405162461bcd60e51b81526004016109e5906146bf565b600c5483111561292c576128e08361358e565b61292c5760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20494420646f6573206e6f7420657869737400000000000000000060448201526064016109e5565b60615460405163c87b56dd60e01b8152600481018590526001600160a01b039091169063c87b56dd9060240160006040518083038186803b15801561297057600080fd5b505afa158015612984573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109f791908101906143a0565b600a54600160a01b900460ff16156129d65760405162461bcd60e51b81526004016109e5906146ea565b6040805143815242602082015282916001600160a01b038516917f5ad0199d300cba765326ad96e454b10ea5241f286963ede1e48814c049dc562d9101611036565b3360009081526063602052604081205460ff1680612a555750326000908152600f602052604090205443600160401b9091046001600160401b0316105b612a715760405162461bcd60e51b81526004016109e5906146bf565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff16610dfe565b612aa7613fa0565b600a612ab8606461ffff8516614a62565b61ffff161080825215612ae1576002612ad6600a61ffff8516614a83565b106020820152612ae9565b600060208201525b8051600090612af957601a612b0c565b8160200151612b09576000612b0c565b600d5b60109390931c929050612b2d61ffff8416612b28836000614969565b61389a565b60ff16606083015260109290921c91612b4f61ffff8416612b28836001614969565b60ff16608083015260109290921c91612b7161ffff8416612b28836002614969565b60ff1660a083015260109290921c91612b9361ffff8416612b28836003614969565b60ff1660c083015260109290921c91612bb561ffff8416612b28836004614969565b60ff1660e083015260109290921c91612bd761ffff8416612b28836005614969565b60ff1661010083015260109290921c91612bfa61ffff8416612b28836006614969565b60ff1661012083015260109290921c91612c1d61ffff8416612b28836007614969565b60ff1661014083015260109290921c91612c4061ffff8416612b28836008614969565b60ff1661016083015260109290921c91612c6361ffff8416612b28836009614969565b60ff1661018083015260109290921c91612c8661ffff8416612b2883600a614969565b60ff166101a083015260109290921c91612ca961ffff8416612b2883600b614969565b60ff166101c083015260109290921c91612ccc61ffff8416612b2883600c614969565b60ff166101e083015250919050565b3360009081526063602052604081205460ff16612d0a5760405162461bcd60e51b81526004016109e590614688565b50600090815260106020526040902054600160401b90046001600160401b031690565b600a54600160a01b900460ff1615612d575760405162461bcd60e51b81526004016109e5906146ea565b6040805143815242602082015282916001600160a01b038516917faee5470e3296fcb7e6ea886c9255768548a79ff1e19ca76660039475b442dd479101611036565b600a546001600160a01b03163314612dc35760405162461bcd60e51b81526004016109e590614714565b6001600160a01b038116612e285760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109e5565b610b608161380c565b600a54600160a01b900460ff1615612e5b5760405162461bcd60e51b81526004016109e5906146ea565b3360009081526063602052604090205460ff16612e8a5760405162461bcd60e51b81526004016109e590614688565b600c548211612efe57606054604051633cc7265b60e21b81526004810184905260ff831660248201526001600160a01b039091169063f31c996c90604401600060405180830381600087803b158015612ee257600080fd5b505af1158015612ef6573d6000803e3d6000fd5b505050505050565b6000828152600e602052604090205460ff166112a7576000828152600e6020908152604091829020805462ff000019166201000060ff86169081029190911790915582518581529182015233917ff47173ac58b5ee21979af58ee2c69b2cddddb4f90eb80845f917867d091137c1910160405180910390a25050565b60006001600160e01b031982166380ac58cd60e01b1480612fab57506001600160e01b03198216635b5e139f60e01b145b806108f357506301ffc9a760e01b6001600160e01b03198316146108f3565b6000612fd58261358e565b6130365760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109e5565b506000908152600460205260409020546001600160a01b031690565b600061305d8261370e565b9050806001600160a01b0316836001600160a01b031614156130cb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109e5565b336001600160a01b03821614806130e757506130e78133612a18565b6131595760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109e5565b610a64838361393f565b600a54600160a01b900460ff161561318d5760405162461bcd60e51b81526004016109e5906146ea565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586131c83390565b6040516001600160a01b03909116815260200160405180910390a1565b600a54600160a01b900460ff166132355760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016109e5565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336131c8565b60006132748261358e565b6132d55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109e5565b60006132e08361370e565b9050806001600160a01b0316846001600160a01b0316148061331b5750836001600160a01b03166133108461098b565b6001600160a01b0316145b8061332b575061332b8185612a18565b949350505050565b826001600160a01b03166133468261370e565b6001600160a01b0316146133ae5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109e5565b6001600160a01b0382166134105760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109e5565b61341b8383836139ad565b61342660008261393f565b6001600160a01b038316600090815260036020526040812080546001929061344f9084906149ad565b90915550506001600160a01b038216600090815260036020526040812080546001929061347d908490614951565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006134e983613785565b821061354b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109e5565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6112a7828260405180602001604052806000815250613a65565b6000908152600260205260409020546001600160a01b0316151590565b610a6483838360405180602001604052806000815250612161565b60006135d18261370e565b90506135df816000846139ad565b6135ea60008361393f565b6001600160a01b03811660009081526003602052604081208054600192906136139084906149ad565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600061367860085490565b82106136db5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109e5565b600882815481106136fc57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806108f35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109e5565b60006001600160a01b0382166137f05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109e5565b506001600160a01b031660009081526003602052604090205490565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6112a7338383613a98565b61387233610c2c565b61388e5760405162461bcd60e51b81526004016109e590614749565b610cd684848484613b67565b60008060118360ff16602781106138c157634e487b7160e01b600052603260045260246000fd5b01546138cd9085614a97565b905060388360ff16602781106138f357634e487b7160e01b600052603260045260246000fd5b018160ff168154811061391657634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1691505092915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906139748261370e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038316613a0857613a0381600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613a2b565b816001600160a01b0316836001600160a01b031614613a2b57613a2b8382613b9a565b6001600160a01b038216613a4257610a6481613c37565b826001600160a01b0316826001600160a01b031614610a6457610a648282613d10565b613a6f8383613d54565b613a7c6000848484613e93565b610a645760405162461bcd60e51b81526004016109e590614636565b816001600160a01b0316836001600160a01b03161415613afa5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109e5565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613b72848484613333565b613b7e84848484613e93565b610cd65760405162461bcd60e51b81526004016109e590614636565b60006001613ba784613785565b613bb191906149ad565b600083815260076020526040902054909150808214613c04576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613c49906001906149ad565b60008381526009602052604081205460088054939450909284908110613c7f57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110613cae57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613cf457634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613d1b83613785565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216613daa5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109e5565b613db38161358e565b15613e005760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109e5565b613e0c600083836139ad565b6001600160a01b0382166000908152600360205260408120805460019290613e35908490614951565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15613f9557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613ed79033908990889088906004016145e6565b602060405180830381600087803b158015613ef157600080fd5b505af1925050508015613f21575060408051601f3d908101601f19168201909252613f1e91810190614384565b60015b613f7b573d808015613f4f576040519150601f19603f3d011682016040523d82523d6000602084013e613f54565b606091505b508051613f735760405162461bcd60e51b81526004016109e590614636565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061332b565b506001949350505050565b6040805161020081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c081018290526101e081019190915290565b8051611c5481614b10565b8051611c5481614b34565b60006020828403121561404b578081fd5b8135610dfe81614afb565b600060208284031215614067578081fd5b8151610dfe81614afb565b60008060408385031215614084578081fd5b823561408f81614afb565b9150602083013561409f81614afb565b809150509250929050565b600080600080608085870312156140bf578182fd5b84356140ca81614afb565b935060208501356140da81614afb565b925060408501356140ea81614afb565b915060608501356140fa81614afb565b939692955090935050565b600080600060608486031215614119578283fd5b833561412481614afb565b9250602084013561413481614afb565b929592945050506040919091013590565b6000806000806080858703121561415a578182fd5b843561416581614afb565b9350602085013561417581614afb565b92506040850135915060608501356001600160401b03811115614196578182fd5b8501601f810187136141a6578182fd5b80356141b96141b482614904565b6148d4565b8181528860208385010111156141cd578384fd5b81602084016020830137908101602001929092525092959194509250565b600080604083850312156141fd578182fd5b823561420881614afb565b9150602083013561409f81614b10565b6000806040838503121561422a578182fd5b823561423581614afb565b946020939093013593505050565b600080600060608486031215614257578081fd5b833561426281614afb565b95602085013595506040909401359392505050565b60006020808385031215614289578182fd5b82356001600160401b038082111561429f578384fd5b818501915085601f8301126142b2578384fd5b8135818111156142c4576142c4614ae5565b8060051b91506142d58483016148d4565b8181528481019084860184860187018a10156142ef578788fd5b8795505b83861015614323578035945061ffff8516851461430e578788fd5b848352600195909501949186019186016142f3565b5098975050505050505050565b600060208284031215614341578081fd5b8135610dfe81614b10565b60006020828403121561435d578081fd5b8151610dfe81614b10565b600060208284031215614379578081fd5b8135610dfe81614b1e565b600060208284031215614395578081fd5b8151610dfe81614b1e565b6000602082840312156143b1578081fd5b81516001600160401b038111156143c6578182fd5b8201601f810184136143d6578182fd5b80516143e46141b482614904565b8181528560208385010111156143f8578384fd5b6144098260208301602086016149c4565b95945050505050565b60006102008284031215614424578081fd5b61442c6148ab565b61443583614024565b815261444360208401614024565b60208201526144546040840161402f565b60408201526144656060840161402f565b60608201526144766080840161402f565b608082015261448760a0840161402f565b60a082015261449860c0840161402f565b60c08201526144a960e0840161402f565b60e08201526101006144bc81850161402f565b908201526101206144ce84820161402f565b908201526101406144e084820161402f565b908201526101606144f284820161402f565b9082015261018061450484820161402f565b908201526101a061451684820161402f565b908201526101c061452884820161402f565b908201526101e061453a84820161402f565b908201529392505050565b600060208284031215614556578081fd5b5035919050565b60006020828403121561456e578081fd5b5051919050565b60008060408385031215614587578182fd5b50508035926020909101359150565b600080604083850312156145a8578182fd5b82359150602083013561409f81614b34565b600081518084526145d28160208601602086016149c4565b601f01601f19169290920160200192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614619908301846145ba565b9695505050505050565b602081526000610dfe60208301846145ba565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526019908201527f4f6e6c792061646d696e732063616e2063616c6c207468697300000000000000604082015260600190565b602080825260119082015270686d6d6d6d207768617420646f696e673f60781b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b815115158152610200810160208301516147b8602084018215159052565b5060408301516147cd604084018260ff169052565b5060608301516147e2606084018260ff169052565b5060808301516147f7608084018260ff169052565b5060a083015161480c60a084018260ff169052565b5060c083015161482160c084018260ff169052565b5060e083015161483660e084018260ff169052565b506101008381015160ff90811691840191909152610120808501518216908401526101408085015182169084015261016080850151821690840152610180808501518216908401526101a0808501518216908401526101c0808501518216908401526101e09384015116929091019190915290565b60405161020081016001600160401b03811182821017156148ce576148ce614ae5565b60405290565b604051601f8201601f191681016001600160401b03811182821017156148fc576148fc614ae5565b604052919050565b60006001600160401b0382111561491d5761491d614ae5565b50601f01601f191660200190565b600061ffff80831681851680830382111561494857614948614ab9565b01949350505050565b6000821982111561496457614964614ab9565b500190565b600060ff821660ff84168060ff0382111561498657614986614ab9565b019392505050565b60008160001904831182151516156149a8576149a8614ab9565b500290565b6000828210156149bf576149bf614ab9565b500390565b60005b838110156149df5781810151838201526020016149c7565b83811115610cd65750506000910152565b600181811c90821680614a0457607f821691505b602082108114156109fa57634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415614a3d57614a3d614ab9565b6001019392505050565b6000600019821415614a5b57614a5b614ab9565b5060010190565b600061ffff80841680614a7757614a77614acf565b92169190910692915050565b600082614a9257614a92614acf565b500690565b600060ff831680614aaa57614aaa614acf565b8060ff84160691505092915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610b6057600080fd5b8015158114610b6057600080fd5b6001600160e01b031981168114610b6057600080fd5b60ff81168114610b6057600080fdfea2646970667358221220e61dfe8182e012c09c86fbf343c9f0ff41545c7ecb4495de464d03af8a0138b764736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000c350
-----Decoded View---------------
Arg [0] : _maxTokens (uint256): 50000
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000c350
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.