ERC-721
Overview
Max Total Supply
1,039 Beaver
Holders
173
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 BeaverLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BuildingBeaverz
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./Dam.sol"; contract BuildingBeaverz is ERC721A, Ownable { using SafeMath for uint256; using Address for address; Dam public damToken; string public baseURI; bytes32[4] public unlockRoots; bytes32[4] public boosterRoots; bytes32 public whiteListMerkleRoot = 0x2530b0ea0ea6774c3c0adea06b21c92b4a7b90832127597dc111a69109fc57c8; uint256 public mintPrice = 0.05 ether; uint256 public GEAR_EM_UP_PRICE = 25 ether; uint256 public BREED_PRICE = 50 ether; uint256 public DAM_PRICE = 60 ether; bool public publicMintLive; bool public preSaleMintLive; mapping(address => uint256) public balanceGen; mapping(uint256 => bool) public isAlpha; mapping(uint256 => bool) public isGameIDLive; mapping(uint256 => bool) public isGameIDWon; mapping(uint256 => mapping(uint256 => bool)) public houseHasWonGameId; mapping(uint256 => mapping(uint256 => bool)) public houseHasUnlockedGameId; mapping(uint256 => mapping(uint256 => bool)) public houseHasUnlockedBoosterId; mapping(uint256 => uint256) public houseAlphaPopulation; mapping(uint256 => uint256) public houseBabyPopulation; mapping(uint256 => uint256) public houseDamPopulation; mapping(uint256 => uint256) public houseVillagePopulation; mapping(uint256 => bool) public babyIsInColony; mapping(uint256 => uint256) public tokenIdToHouse; uint256 public amountBeavendor; uint256 public amountBeavranos; uint256 public amountBeaverzStrikeBack; uint256 public amountTarbeavyen; constructor() ERC721A("Building Beaverz", "Beaver") { baseURI = "https://buildingbeaverz.com/api/token/"; unlockRoots[0] = 0xb28561fb51803da58532f87c653b33d6aef008a9972a4f87b5094b920018412f; unlockRoots[1] = 0xb28561fb51803da58532f87c653b33d6aef008a9972a4f87b5094b920018412f; unlockRoots[2] = 0xb28561fb51803da58532f87c653b33d6aef008a9972a4f87b5094b920018412f; unlockRoots[3] = 0xb28561fb51803da58532f87c653b33d6aef008a9972a4f87b5094b920018412f; boosterRoots[0] = 0xb28561fb51803da58532f87c653b33d6aef008a9972a4f87b5094b920018412f; boosterRoots[1] = 0xb28561fb51803da58532f87c653b33d6aef008a9972a4f87b5094b920018412f; boosterRoots[2] = 0xb28561fb51803da58532f87c653b33d6aef008a9972a4f87b5094b920018412f; boosterRoots[3] = 0xb28561fb51803da58532f87c653b33d6aef008a9972a4f87b5094b920018412f; } function changeUnlockSecret(uint256 index, bytes32 _merkleRoot) external onlyOwner { unlockRoots[index] = _merkleRoot; } function changeWhitelistMerkleRoot(bytes32 _merkleRoot) external onlyOwner { whiteListMerkleRoot = _merkleRoot; } function changeBoosterSecret(uint256 index, bytes32 _merkleRoot) external onlyOwner { boosterRoots[index] = _merkleRoot; } function _baseURI() internal view override returns (string memory) { return baseURI; } function changeBase(string memory _newBase) external onlyOwner { baseURI = _newBase; } function setMintPrice(uint256 _price) external onlyOwner { mintPrice = _price; } function setGearEmUpPrice(uint256 _price) external onlyOwner { GEAR_EM_UP_PRICE = _price; } function setBreedPrice(uint256 _price) external onlyOwner { BREED_PRICE = _price; } function setDamPrice(uint256 _price) external onlyOwner { DAM_PRICE = _price; } function random() private view returns (uint) { uint randomHash = uint(keccak256(abi.encode(block.difficulty, block.timestamp))); return randomHash % 1000; } function setDamToken(address _dam) external onlyOwner { damToken = Dam(_dam); } function flipPublicMintLive() external onlyOwner { publicMintLive = !publicMintLive; } function flipPreSaleMintLive() external onlyOwner { preSaleMintLive = !preSaleMintLive; } function flipGameIDIsLive(uint256 gameId) external onlyOwner { isGameIDLive[gameId] = !isGameIDLive[gameId]; } function transferFrom(address from, address to, uint256 tokenId) public virtual override { damToken.updateReward(from, to, tokenId); if (tokenId < 10001) { balanceGen[from]--; balanceGen[to]++; } super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { damToken.updateReward(from, to, tokenId); if (tokenId < 10001) { balanceGen[from]--; balanceGen[to]++; } super.safeTransferFrom(from, to, tokenId, _data); } function getReward() external { damToken.updateReward(msg.sender, address(0), 0); damToken.getReward(msg.sender); } function fetchBalance() external onlyOwner { payable(msg.sender).transfer(address(this).balance); } function amountMinted() public view returns (uint256) { return totalSupply(); } function beavendorSupply() public view returns (uint256) { return amountBeavendor; } function beaveranosSupply() public view returns (uint256) { return amountBeavranos; } function beaverzStrikeBackSupply() public view returns (uint256) { return amountBeaverzStrikeBack; } function tarbeavynSupply() public view returns (uint256) { return amountTarbeavyen; } function canMintHouse(uint256 houseId, uint256 num) internal view returns (bool) { if (houseId == 1) { return(amountBeavendor + num <= 2500); } else if(houseId == 2) { return(amountBeavranos + num <= 2500); } else if(houseId == 3) { return(amountBeaverzStrikeBack + num <= 2500); } else if(houseId == 4) { return(amountTarbeavyen + num <= 2500); } } //Used for airdrops, giveaways, and vault storage function devMint(uint256 num, uint256 houseId) external payable onlyOwner { require(canMintHouse(houseId, num), "House full!"); uint256 currentTotalSupply = totalSupply(); for (uint i = 0; i < num; i++) { tokenIdToHouse[currentTotalSupply + i] = houseId; } if (houseId == 1) { amountBeavendor = amountBeavendor + num; } else if(houseId == 2) { amountBeavranos = amountBeavranos + num; } else if(houseId == 3) { amountBeaverzStrikeBack = amountBeaverzStrikeBack + num; } else if(houseId == 4) { amountTarbeavyen = amountTarbeavyen + num; } _safeMint(msg.sender, num); balanceGen[msg.sender] = balanceGen[msg.sender] + num; damToken.updateRewardOnMint(msg.sender, num); } // Let there be Beaverz! function publicMint(uint256 num, uint256 houseId) public payable { require(publicMintLive, "Public mint not live"); require(totalSupply() < 10001, "Sold Out!"); require(tx.origin == msg.sender, "No bots"); require(num <= 4, "You can only mint 4 at a time"); require(balanceGen[msg.sender] < 8, "Cant own more than 8 per address"); require(msg.value == mintPrice * num, "Valid price not sent"); require(canMintHouse(houseId, num), "House full!"); uint256 currentTotalSupply = totalSupply(); for (uint i = 0; i < num; i++) { tokenIdToHouse[currentTotalSupply + i] = houseId; } if (houseId == 1) { amountBeavendor = amountBeavendor + num; } else if(houseId == 2) { amountBeavranos = amountBeavranos + num; } else if(houseId == 3) { amountBeaverzStrikeBack = amountBeaverzStrikeBack + num; } else if(houseId == 4) { amountTarbeavyen = amountTarbeavyen + num; } _safeMint(msg.sender, num); balanceGen[msg.sender] = balanceGen[msg.sender] + num; damToken.updateRewardOnMint(msg.sender, num); } // Whitelist Mint! function whitelistMint(uint256 num, bytes32[] calldata whitelistProof, uint256 houseId) public payable { require(preSaleMintLive, "Whitelist mint not live"); require(totalSupply() < 10001, "Sold Out!"); require(tx.origin == msg.sender, "No bots"); require(num <= 4, "You can only mint 4 at a time"); require(balanceGen[msg.sender] < 8, "Cant own more than 8 per address"); require(msg.value == mintPrice * num, "Valid price not sent"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(whitelistProof, whiteListMerkleRoot, leaf), "Invalid whitelistProof"); require(canMintHouse(houseId, num), "House full!"); uint256 currentTotalSupply = totalSupply(); for (uint i = 0; i < num; i++) { tokenIdToHouse[currentTotalSupply + i] = houseId; } if (houseId == 1) { amountBeavendor = amountBeavendor + num; } else if(houseId == 2) { amountBeavranos = amountBeavranos + num; } else if(houseId == 3) { amountBeaverzStrikeBack = amountBeaverzStrikeBack + num; } else if(houseId == 4) { amountTarbeavyen = amountTarbeavyen + num; } _safeMint(msg.sender, num); balanceGen[msg.sender] = balanceGen[msg.sender] + num; damToken.updateRewardOnMint(msg.sender, num); } function unlockXGame(uint256 tokenId, uint256 gameId, bytes32[] calldata proof, bytes32 leaf) external { require(ERC721A.ownerOf(tokenId) == msg.sender, "must own a beaver"); bytes32 merkleRoot = unlockRoots[gameId]; require(MerkleProof.verify(proof, merkleRoot, leaf), "Invalid Proof"); uint256 houseId = whatHouse(tokenId); houseHasUnlockedGameId[houseId][gameId] = true; } function unlockXBooster(uint256 tokenId, uint256 gameId, bytes32[] calldata proof, bytes32 leaf) external { require(ERC721A.ownerOf(tokenId) == msg.sender, "must own a beaver"); bytes32 merkleRoot = boosterRoots[gameId]; require(MerkleProof.verify(proof, merkleRoot, leaf), "Invalid Proof"); uint256 houseId = whatHouse(tokenId); houseHasUnlockedBoosterId[houseId][gameId] = true; } function whatHouse(uint256 tokenId) public view returns (uint256) { return tokenIdToHouse[tokenId]; } function gearEmUp(uint256 tokenId) external payable returns (bool) { require(isGameIDLive[0], "Game not live"); require(ERC721A.ownerOf(tokenId) == msg.sender, "must own a beaver"); uint256 houseId = whatHouse(tokenId); // Check if that house has unlocked this game require(houseHasUnlockedGameId[houseId][0], "House has not unlocked this game"); // Burn $damn damToken.burn(msg.sender, GEAR_EM_UP_PRICE); // Upgrade 70% of the time or 100% if booster unlocked if (houseHasUnlockedBoosterId[houseId][0] || random() > 700) { houseAlphaPopulation[houseId]++; // Check if winner if(houseAlphaPopulation[houseId] == 250 && !isGameIDWon[0]){ houseHasWonGameId[houseId][0] = true; isGameIDWon[0] = true; } isAlpha[tokenId] = true; return true; } return false; } function spreadThySeed(uint256 tokenIdOne, uint256 tokenIdTwo) external payable returns (bool) { require(isGameIDLive[1], "Game not live"); require(ERC721A.ownerOf(tokenIdOne) == msg.sender && ERC721A.ownerOf(tokenIdTwo) == msg.sender, "not your beaverz"); uint256 houseId = whatHouse(tokenIdOne); require(houseId == whatHouse(tokenIdTwo), "Beaverz must be same house"); // Check if that house has unlocked this game require(houseHasUnlockedGameId[houseId][1], "House has not unlocked this game"); // Burn $damn damToken.burn(msg.sender, BREED_PRICE); // Upgrade 70% of the time or 100% if booster unlocked if (houseHasUnlockedBoosterId[houseId][1] || random() > 700) { houseBabyPopulation[houseId]++; // Check if winner if(houseBabyPopulation[houseId] == 2500 && !isGameIDWon[1]){ houseHasWonGameId[houseId][1] = true; isGameIDWon[1] = true; } _safeMint(msg.sender, 1); return true; } return false; } function toxicWasteSpill(uint256 tokenIdOne, uint256 tokenIdTwo, uint256 babyIdOne, uint256 babyIdTwo) external payable returns (bool) { require(isGameIDLive[2], "Game not live"); require(ERC721A.ownerOf(tokenIdOne) == msg.sender && ERC721A.ownerOf(tokenIdTwo) == msg.sender, "not your beaverz"); require(ERC721A.ownerOf(babyIdOne) == msg.sender && ERC721A.ownerOf(babyIdTwo) == msg.sender, "not your babies"); uint256 houseId = whatHouse(tokenIdOne); require(houseId == whatHouse(tokenIdTwo) && whatHouse(tokenIdTwo) == whatHouse(babyIdOne) && whatHouse(babyIdOne) == whatHouse(babyIdTwo), "Must be in same colony"); // Check if that house has unlocked this game require(houseHasUnlockedGameId[houseId][2], "House has not unlocked this game"); // Burn $damn damToken.burn(msg.sender, DAM_PRICE); // Upgrade 70% of the time or 100% if booster unlocked if (houseHasUnlockedBoosterId[houseId][2] || random() > 700) { houseDamPopulation[houseId]++; // Check if winner if(houseDamPopulation[houseId] == 1250 && !isGameIDWon[2]){ houseHasWonGameId[houseId][2] = true; isGameIDWon[2] = true; } babyIsInColony[babyIdOne] = true; babyIsInColony[babyIdTwo] = true; return true; } return false; } function saveTheHelplessHumans(uint256 tokenIdOne, uint256 tokenIdTwo, uint256 babyIdOne, uint256 babyIdTwo) external payable returns (bool) { require(isGameIDLive[3], "Game not live"); require(ERC721A.ownerOf(tokenIdOne) == msg.sender && ERC721A.ownerOf(tokenIdTwo) == msg.sender, "not your beaverz"); require(ERC721A.ownerOf(babyIdOne) == msg.sender && ERC721A.ownerOf(babyIdTwo) == msg.sender, "not your babies"); uint256 houseId = whatHouse(tokenIdOne); require(houseId == whatHouse(tokenIdTwo) && whatHouse(tokenIdTwo) == whatHouse(babyIdOne) && whatHouse(babyIdOne) == whatHouse(babyIdTwo), "Must be in same colony"); // Check if that house has unlocked this game require(houseHasUnlockedGameId[houseId][3], "House has not unlocked this game"); // Burn $damn damToken.burn(msg.sender, DAM_PRICE); // Upgrade 70% of the time or 100% if booster unlocked if (houseHasUnlockedBoosterId[houseId][3] || random() > 700) { if(houseDamPopulation[houseId] > 29) { houseVillagePopulation[houseId]++; // Check if winner if(houseVillagePopulation[houseId] == 99 && !isGameIDWon[3]){ houseHasWonGameId[houseId][3] = true; isGameIDWon[3] = true; } houseDamPopulation[houseId] = houseDamPopulation[houseId] - 30; return true; } } return false; } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**128 - 1 (max value of uint128). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; } // Compiler will pack the following // _currentIndex and _burnCounter into a single 256bit word. // The tokenId of the next token to be minted. uint128 internal _currentIndex; // The number of tokens burned. uint128 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex times unchecked { return _currentIndex - _burnCounter; } } /** * @dev See {IERC721Enumerable-tokenByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenByIndex(uint256 index) public view override returns (uint256) { uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (!ownership.burned) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } revert TokenIndexOutOfBounds(); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds(); uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } // Execution should never reach this point. revert(); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (!_checkOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1 // updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } updatedIndex++; } _currentIndex = uint128(updatedIndex); } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @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 { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.3; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./BuildingBeaverz.sol"; contract Dam is ERC20("DAM", "Dam") { using SafeMath for uint256; uint256 public constant BASE_RATE = 1 ether; uint256 public constant INITIAL_ISSUANCE = 1 ether; // Tue Mar 18 2031 17:46:47 GMT+0000 uint256 public constant END = 1931622407; mapping(address => uint256) public rewards; mapping(address => uint256) public lastUpdate; BuildingBeaverz public beaverContract; event RewardPaid(address indexed user, uint256 reward); constructor(address _contract) { beaverContract = BuildingBeaverz(_contract); } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } // called when minting many NFTs function updateRewardOnMint(address _user, uint256 _amount) external { require(msg.sender == address(beaverContract), "Can't call this"); uint256 time = min(block.timestamp, END); uint256 timerUser = lastUpdate[_user]; if (timerUser > 0) rewards[_user] = rewards[_user].add( beaverContract .balanceGen(_user) .mul(BASE_RATE.mul((time.sub(timerUser)))) .div(86400) .add(_amount.mul(INITIAL_ISSUANCE)) ); else rewards[_user] = rewards[_user].add(_amount.mul(INITIAL_ISSUANCE)); lastUpdate[_user] = time; } // called on transfers function updateReward( address _from, address _to, uint256 _tokenId ) external { require(msg.sender == address(beaverContract), "Cant call this"); if (_tokenId < 10001) { uint256 RATE = BASE_RATE; if(beaverContract.isAlpha(_tokenId)) { RATE = 2; } uint256 time = min(block.timestamp, END); uint256 timerFrom = lastUpdate[_from]; if (timerFrom > 0) rewards[_from] += beaverContract .balanceGen(_from) .mul(RATE.mul((time.sub(timerFrom)))) .div(86400); if (timerFrom != END) lastUpdate[_from] = time; if (_to != address(0)) { uint256 timerTo = lastUpdate[_to]; if (timerTo > 0) rewards[_to] += beaverContract .balanceGen(_to) .mul(RATE.mul((time.sub(timerTo)))) .div(86400); if (timerTo != END) lastUpdate[_to] = time; } } } function getReward(address _to) external { require(msg.sender == address(beaverContract), "Cant call this"); uint256 reward = rewards[_to]; if (reward > 0) { rewards[_to] = 0; _mint(_to, reward); emit RewardPaid(_to, reward); } } function burn(address _from, uint256 _amount) external { require(msg.sender == address(beaverContract), "Cant call this"); _burn(_from, _amount); } function getTotalClaimable(address _user) external view returns (uint256) { uint256 time = min(block.timestamp, END); uint256 pending = beaverContract .balanceGen(_user) .mul(BASE_RATE.mul((time.sub(lastUpdate[_user])))) .div(86400); return rewards[_user] + pending; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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 pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens 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 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
{ "optimizer": { "enabled": true, "runs": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BREED_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DAM_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GEAR_EM_UP_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountBeavendor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountBeaverzStrikeBack","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountBeavranos","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountTarbeavyen","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"","type":"uint256"}],"name":"babyIsInColony","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceGen","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beavendorSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beaveranosSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beaverzStrikeBackSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"boosterRoots","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_newBase","type":"string"}],"name":"changeBase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"changeBoosterSecret","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"changeUnlockSecret","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"changeWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"damToken","outputs":[{"internalType":"contract Dam","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"},{"internalType":"uint256","name":"houseId","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"fetchBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameId","type":"uint256"}],"name":"flipGameIDIsLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPreSaleMintLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPublicMintLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"gearEmUp","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"houseAlphaPopulation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"houseBabyPopulation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"houseDamPopulation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"houseHasUnlockedBoosterId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"houseHasUnlockedGameId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"houseHasWonGameId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"houseVillagePopulation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isAlpha","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isGameIDLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isGameIDWon","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"preSaleMintLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"},{"internalType":"uint256","name":"houseId","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMintLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIdOne","type":"uint256"},{"internalType":"uint256","name":"tokenIdTwo","type":"uint256"},{"internalType":"uint256","name":"babyIdOne","type":"uint256"},{"internalType":"uint256","name":"babyIdTwo","type":"uint256"}],"name":"saveTheHelplessHumans","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setBreedPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setDamPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_dam","type":"address"}],"name":"setDamToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setGearEmUpPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIdOne","type":"uint256"},{"internalType":"uint256","name":"tokenIdTwo","type":"uint256"}],"name":"spreadThySeed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","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":[],"name":"tarbeavynSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToHouse","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":[{"internalType":"uint256","name":"tokenIdOne","type":"uint256"},{"internalType":"uint256","name":"tokenIdTwo","type":"uint256"},{"internalType":"uint256","name":"babyIdOne","type":"uint256"},{"internalType":"uint256","name":"babyIdTwo","type":"uint256"}],"name":"toxicWasteSpill","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"unlockRoots","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"gameId","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bytes32","name":"leaf","type":"bytes32"}],"name":"unlockXBooster","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"gameId","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bytes32","name":"leaf","type":"bytes32"}],"name":"unlockXGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"whatHouse","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whiteListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"},{"internalType":"bytes32[]","name":"whitelistProof","type":"bytes32[]"},{"internalType":"uint256","name":"houseId","type":"uint256"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040527f2530b0ea0ea6774c3c0adea06b21c92b4a7b90832127597dc111a69109fc57c860125566b1a2bc2ec5000060135568015af1d78b58c400006014556802b5e3af16b1880000601555680340aad21b3b7000006016553480156200006757600080fd5b50604080518082018252601081526f213ab4b63234b733902132b0bb32b93d60811b6020808301918252835180850190945260068452652132b0bb32b960d11b908401528151919291620000be91600191620001c5565b508051620000d4906002906020840190620001c5565b505050620000f1620000eb6200016f60201b60201c565b62000173565b60405180606001604052806026815260200162004a1e6026913980516200012191600991602090910190620001c5565b507fb28561fb51803da58532f87c653b33d6aef008a9972a4f87b5094b920018412f600a819055600b819055600c819055600d819055600e819055600f8190556010819055601155620002a8565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001d3906200026b565b90600052602060002090601f016020900481019282620001f7576000855562000242565b82601f106200021257805160ff191683800117855562000242565b8280016001018555821562000242579182015b828111156200024257825182559160200191906001019062000225565b506200025092915062000254565b5090565b5b8082111562000250576000815560010162000255565b600181811c908216806200028057607f821691505b60208210811415620002a257634e487b7160e01b600052602260045260246000fd5b50919050565b61476680620002b86000396000f3fe6080604052600436106105075760003560e01c80636c0360eb11610294578063b67e76521161015e578063c8841f6f116100d6578063f2fde38b1161008a578063f80e02e61161006f578063f80e02e614610e61578063fa40f47614610e81578063fe9ef35c14610e9757600080fd5b8063f2fde38b14610e21578063f4a0a52814610e4157600080fd5b8063d50afe1d116100bb578063d50afe1d14610da3578063e58f85de14610dc3578063e985e9c514610dd857600080fd5b8063c8841f6f14610d63578063cd8d77f214610d8357600080fd5b8063bf424e7e1161012d578063c23475dc11610112578063c23475dc14610d01578063c44f9a2214610d16578063c87b56dd14610d4357600080fd5b8063bf424e7e14610cd6578063bf94ad8b14610cec57600080fd5b8063b67e765214610c53578063b88d4fde14610c73578063b9f78db014610c93578063bd6d82f714610ca957600080fd5b80638255b7601161020c5780639b7e9dc2116101c0578063a5b985a2116101a5578063a5b985a214610c00578063a839981014610c13578063af94e1ea14610c3357600080fd5b80639b7e9dc214610bcb578063a22cb46514610be057600080fd5b80638da5cb5b116101f15780638da5cb5b14610b8557806395d89b4114610ba357806398ae99a814610bb857600080fd5b80638255b76014610b505780638ac9a3f114610b7057600080fd5b806371beeba1116102635780637af284d5116102485780637af284d514610afb5780637c3d803814610b1057806380cfc62014610b3d57600080fd5b806371beeba114610aae5780637a9a586914610ace57600080fd5b80636c0360eb14610a4e57806370a0823114610a63578063715018a614610a8357806371ba191314610a9857600080fd5b80632bf5651a116103d55780634f6ccce71161034d5780636352211e116103015780636817c76c116102e65780636817c76c146109f257806369f5974e14610a085780636b3c4f6214610a1e57600080fd5b80636352211e146109bc57806364c03651146109dc57600080fd5b80635baddf4d116103325780635baddf4d146109765780635d5c0709146109895780635f135b571461099c57600080fd5b80634f6ccce7146109365780635771249e1461095657600080fd5b80633c219729116103a45780633f5a17ca116103895780633f5a17ca146108d357806342842e0e146108e65780634d40a9b21461090657600080fd5b80633c2197291461089f5780633d18b912146108be57600080fd5b80632bf5651a1461080e5780632f558dfa1461082e5780632f745c591461086957806334b6ab1a1461088957600080fd5b806318160ddd1161048357806323b872dd1161043757806327c7dde71161041c57806327c7dde7146107a45780632909e475146107be57806329ba85dc146107de57600080fd5b806323b872dd146107715780632458e8591461079157600080fd5b80631aa4823b116104685780631aa4823b1461070157806320323fc31461073c5780632157c46a1461075c57600080fd5b806318160ddd146106a257806319cdb781146106d157600080fd5b8063095ea7b3116104da5780630f6d4577116104bf5780630f6d4577146106335780631539c9801461066057806316adf21a1461068c57600080fd5b8063095ea7b3146105d65780630a884d66146105f857600080fd5b806301ffc9a71461050c578063048325cd1461054157806306fdde031461057c578063081812fc1461059e575b600080fd5b34801561051857600080fd5b5061052c610527366004614385565b610eac565b60405190151581526020015b60405180910390f35b34801561054d57600080fd5b5061052c61055c366004614454565b601d60209081526000928352604080842090915290825290205460ff1681565b34801561058857600080fd5b50610591610f19565b6040516105389190614596565b3480156105aa57600080fd5b506105be6105b936600461436d565b610fab565b6040516001600160a01b039091168152602001610538565b3480156105e257600080fd5b506105f66105f1366004614344565b610fef565b005b34801561060457600080fd5b5061062561061336600461436d565b60226020526000908152604090205481565b604051908152602001610538565b34801561063f57600080fd5b5061062561064e36600461436d565b60216020526000908152604090205481565b34801561066c57600080fd5b5061062561067b36600461436d565b602080526000908152604090205481565b34801561069857600080fd5b5061062560275481565b3480156106ae57600080fd5b506106256000546001600160801b03600160801b82048116918116919091031690565b3480156106dd57600080fd5b5061052c6106ec36600461436d565b601b6020526000908152604090205460ff1681565b34801561070d57600080fd5b5061052c61071c366004614454565b601e60209081526000928352604080842090915290825290205460ff1681565b34801561074857600080fd5b506105f6610757366004614475565b61107d565b34801561076857600080fd5b506105f66111ad565b34801561077d57600080fd5b506105f661078c366004614256565b611224565b61052c61079f3660046144ce565b6112fa565b3480156107b057600080fd5b5060175461052c9060ff1681565b3480156107ca57600080fd5b506008546105be906001600160a01b031681565b3480156107ea57600080fd5b5061052c6107f936600461436d565b601a6020526000908152604090205460ff1681565b34801561081a57600080fd5b506105f66108293660046143bd565b61170d565b34801561083a57600080fd5b5061052c610849366004614454565b601c60209081526000928352604080842090915290825290205460ff1681565b34801561087557600080fd5b50610625610884366004614344565b61176c565b34801561089557600080fd5b5061062560125481565b3480156108ab57600080fd5b5060175461052c90610100900460ff1681565b3480156108ca57600080fd5b506105f6611869565b61052c6108e1366004614454565b611933565b3480156108f257600080fd5b506105f6610901366004614256565b611c61565b34801561091257600080fd5b5061052c61092136600461436d565b60196020526000908152604090205460ff1681565b34801561094257600080fd5b5061062561095136600461436d565b611c7c565b34801561096257600080fd5b506105f6610971366004614454565b611d27565b61052c61098436600461436d565b611d97565b6105f6610997366004614403565b612057565b3480156109a857600080fd5b506105f66109b736600461436d565b6124de565b3480156109c857600080fd5b506105be6109d736600461436d565b612546565b3480156109e857600080fd5b5061062560165481565b3480156109fe57600080fd5b5061062560135481565b348015610a1457600080fd5b5061062560265481565b348015610a2a57600080fd5b5061052c610a3936600461436d565b60236020526000908152604090205460ff1681565b348015610a5a57600080fd5b50610591612558565b348015610a6f57600080fd5b50610625610a7e36600461420a565b6125e6565b348015610a8f57600080fd5b506105f6612635565b348015610aa457600080fd5b5061062560285481565b348015610aba57600080fd5b506105f6610ac936600461436d565b612689565b348015610ada57600080fd5b50610625610ae936600461436d565b60246020526000908152604090205481565b348015610b0757600080fd5b506106256126d6565b348015610b1c57600080fd5b50610625610b2b36600461420a565b60186020526000908152604090205481565b61052c610b4b3660046144ce565b6126ff565b348015610b5c57600080fd5b506105f6610b6b36600461436d565b612af0565b348015610b7c57600080fd5b506105f6612b3d565b348015610b9157600080fd5b506007546001600160a01b03166105be565b348015610baf57600080fd5b50610591612b99565b6105f6610bc6366004614454565b612ba8565b348015610bd757600080fd5b50602654610625565b348015610bec57600080fd5b506105f6610bfb36600461430a565b612f61565b6105f6610c0e366004614454565b612ff7565b348015610c1f57600080fd5b506105f6610c2e366004614454565b6130e6565b348015610c3f57600080fd5b50610625610c4e36600461436d565b613150565b348015610c5f57600080fd5b506105f6610c6e36600461420a565b613167565b348015610c7f57600080fd5b506105f6610c8e366004614291565b6131de565b348015610c9f57600080fd5b5061062560145481565b348015610cb557600080fd5b50610625610cc436600461436d565b601f6020526000908152604090205481565b348015610ce257600080fd5b5061062560155481565b348015610cf857600080fd5b506105f66132b5565b348015610d0d57600080fd5b50602754610625565b348015610d2257600080fd5b50610625610d3136600461436d565b60009081526024602052604090205490565b348015610d4f57600080fd5b50610591610d5e36600461436d565b61331a565b348015610d6f57600080fd5b506105f6610d7e36600461436d565b61339f565b348015610d8f57600080fd5b50610625610d9e36600461436d565b6133ec565b348015610daf57600080fd5b506105f6610dbe366004614475565b6133fc565b348015610dcf57600080fd5b50602554610625565b348015610de457600080fd5b5061052c610df3366004614224565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610e2d57600080fd5b506105f6610e3c36600461420a565b613527565b348015610e4d57600080fd5b506105f6610e5c36600461436d565b6135f4565b348015610e6d57600080fd5b506105f6610e7c36600461436d565b613641565b348015610e8d57600080fd5b5061062560255481565b348015610ea357600080fd5b50602854610625565b60006001600160e01b031982166380ac58cd60e01b1480610edd57506001600160e01b03198216635b5e139f60e01b145b80610ef857506001600160e01b0319821663780e9d6360e01b145b80610f1357506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610f289061464e565b80601f0160208091040260200160405190810160405280929190818152602001828054610f549061464e565b8015610fa15780601f10610f7657610100808354040283529160200191610fa1565b820191906000526020600020905b815481529060010190602001808311610f8457829003601f168201915b5050505050905090565b6000610fb68261368e565b610fd3576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610ffa82612546565b9050806001600160a01b0316836001600160a01b0316141561102f5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061104f575061104d8133610df3565b155b1561106d576040516367d9dca160e11b815260040160405180910390fd5b6110788383836136c2565b505050565b3361108786612546565b6001600160a01b0316146110d65760405162461bcd60e51b815260206004820152601160248201527036bab9ba1037bbb71030903132b0bb32b960791b60448201526064015b60405180910390fd5b6000600a85600481106110f957634e487b7160e01b600052603260045260246000fd5b0154905061113d84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525085925086915061372b9050565b6111795760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210283937b7b360991b60448201526064016110cd565b505050600092835250602460209081526040808420548452601d82528084209284529190529020805460ff19166001179055565b6007546001600160a01b031633146111f55760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b60405133904780156108fc02916000818181858888f19350505050158015611221573d6000803e3d6000fd5b50565b60085460405163164746fd60e11b81526001600160a01b03858116600483015284811660248301526044820184905290911690632c8e8dfa90606401600060405180830381600087803b15801561127a57600080fd5b505af115801561128e573d6000803e3d6000fd5b505050506127118110156112ef576001600160a01b03831660009081526018602052604081208054916112c083614637565b90915550506001600160a01b03821660009081526018602052604081208054916112e983614689565b91905055505b6110788383836137e8565b60036000908152601a6020527f4ac83fca211703e3ddb90093cd219714e5e3715bf0b4fd15b0441390534a24e25460ff166113675760405162461bcd60e51b815260206004820152600d60248201526c47616d65206e6f74206c69766560981b60448201526064016110cd565b3361137186612546565b6001600160a01b031614801561139757503361138c85612546565b6001600160a01b0316145b6113d65760405162461bcd60e51b815260206004820152601060248201526f3737ba103cb7bab9103132b0bb32b93d60811b60448201526064016110cd565b336113e084612546565b6001600160a01b03161480156114065750336113fb83612546565b6001600160a01b0316145b6114445760405162461bcd60e51b815260206004820152600f60248201526e6e6f7420796f75722062616269657360881b60448201526064016110cd565b600085815260246020526040808220548683529120548114801561147b575060008481526024602052604080822054878352912054145b801561149a575060008381526024602052604080822054868352912054145b6114e65760405162461bcd60e51b815260206004820152601660248201527f4d75737420626520696e2073616d6520636f6c6f6e790000000000000000000060448201526064016110cd565b6000818152601d602090815260408083206003845290915290205460ff166115505760405162461bcd60e51b815260206004820181905260248201527f486f75736520686173206e6f7420756e6c6f636b656420746869732067616d6560448201526064016110cd565b600854601654604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b1580156115a057600080fd5b505af11580156115b4573d6000803e3d6000fd5b5050506000828152601e602090815260408083206003845290915290205460ff169050806115ea57506102bc6115e86137f3565b115b156116ff57600081815260216020526040902054601d10156116ff57600081815260226020526040812080549161162083614689565b9091555050600081815260226020526040902054606314801561166f57506003600052601b6020527f804a3d0621e73505f5f0c57c922f3e57d6b48e175551184eb12f80d7b4a9c7835460ff16155b156116cc576000818152601c602090815260408083206003845282529091208054600160ff199182168117909255601b9092527f804a3d0621e73505f5f0c57c922f3e57d6b48e175551184eb12f80d7b4a9c78380549092161790555b6000818152602160205260409020546116e790601e906145f4565b60009182526021602052604090912055506001611705565b60009150505b949350505050565b6007546001600160a01b031633146117555760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b8051611768906009906020840190614095565b5050565b6000611777836125e6565b8210611796576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b8381101561186357600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529061180f575061185b565b80516001600160a01b03161561182457805192505b876001600160a01b0316836001600160a01b03161415611859578684141561185257509350610f1392505050565b6001909301925b505b6001016117a7565b50600080fd5b60085460405163164746fd60e11b815233600482015260006024820181905260448201526001600160a01b0390911690632c8e8dfa90606401600060405180830381600087803b1580156118bc57600080fd5b505af11580156118d0573d6000803e3d6000fd5b5050600854604051630c00007b60e41b81523360048201526001600160a01b03909116925063c00007b09150602401600060405180830381600087803b15801561191957600080fd5b505af115801561192d573d6000803e3d6000fd5b50505050565b60016000908152601a6020527ff88cd8d612926ebb404e40725c01084b6e9b3ce0344cde068570342cbd448c615460ff166119a05760405162461bcd60e51b815260206004820152600d60248201526c47616d65206e6f74206c69766560981b60448201526064016110cd565b336119aa84612546565b6001600160a01b03161480156119d05750336119c583612546565b6001600160a01b0316145b611a0f5760405162461bcd60e51b815260206004820152601060248201526f3737ba103cb7bab9103132b0bb32b93d60811b60448201526064016110cd565b600083815260246020526040808220548483529120548114611a735760405162461bcd60e51b815260206004820152601a60248201527f4265617665727a206d7573742062652073616d6520686f75736500000000000060448201526064016110cd565b6000818152601d602090815260408083206001845290915290205460ff16611add5760405162461bcd60e51b815260206004820181905260248201527f486f75736520686173206e6f7420756e6c6f636b656420746869732067616d6560448201526064016110cd565b600854601554604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b158015611b2d57600080fd5b505af1158015611b41573d6000803e3d6000fd5b5050506000828152601e602090815260408083206001845290915290205460ff16905080611b7757506102bc611b756137f3565b115b15611c575760008181526020805260408120805491611b9583614689565b909155505060008181526020805260409020546109c4148015611be457506001600052601b6020527f9fafca4c9c0d5c2cbf85f49fd8ab8212430ce78c2a0cb75b51e0f9c4f9ace0035460ff16155b15611c42576000818152601c6020908152604080832060018085529083529220805460ff199081168417909155601b9091527f9fafca4c9c0d5c2cbf85f49fd8ab8212430ce78c2a0cb75b51e0f9c4f9ace003805490911690911790555b611c4d33600161383e565b6001915050610f13565b5060009392505050565b611078838383604051806020016040528060008152506131de565b600080546001600160801b031681805b82811015611d0d57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290611d045785831415611cfd5750949350505050565b6001909201915b50600101611c8c565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b03163314611d6f5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b80600e8360048110611d9157634e487b7160e01b600052603260045260246000fd5b01555050565b6000808052601a6020527fb75ecc04ed35f89790e98640e901bda41eceff0cb896cf2765fb6976802537505460ff16611e025760405162461bcd60e51b815260206004820152600d60248201526c47616d65206e6f74206c69766560981b60448201526064016110cd565b33611e0c83612546565b6001600160a01b031614611e565760405162461bcd60e51b815260206004820152601160248201527036bab9ba1037bbb71030903132b0bb32b960791b60448201526064016110cd565b600082815260246020908152604080832054808452601d83528184208480529092529091205460ff16611ecb5760405162461bcd60e51b815260206004820181905260248201527f486f75736520686173206e6f7420756e6c6f636b656420746869732067616d6560448201526064016110cd565b600854601454604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b158015611f1b57600080fd5b505af1158015611f2f573d6000803e3d6000fd5b5050506000828152601e6020908152604080832083805290915290205460ff16905080611f6457506102bc611f626137f3565b115b1561204e576000818152601f60205260408120805491611f8383614689565b90915550506000818152601f602052604090205460fa148015611fd1575060008052601b6020527f584f46c60af19681376031579adb04a2416e54ee5505351c2a8435e3766026ea5460ff16155b1561202d576000818152601c6020908152604080832083805282529091208054600160ff199182168117909255601b9092527f584f46c60af19681376031579adb04a2416e54ee5505351c2a8435e3766026ea80549092161790555b50506000908152601960205260409020805460ff1916600190811790915590565b50600092915050565b601754610100900460ff166120ae5760405162461bcd60e51b815260206004820152601760248201527f57686974656c697374206d696e74206e6f74206c69766500000000000000000060448201526064016110cd565b6127116120d36000546001600160801b03600160801b82048116918116919091031690565b1061210c5760405162461bcd60e51b8152602060048201526009602482015268536f6c64204f75742160b81b60448201526064016110cd565b3233146121455760405162461bcd60e51b81526020600482015260076024820152664e6f20626f747360c81b60448201526064016110cd565b60048411156121965760405162461bcd60e51b815260206004820152601d60248201527f596f752063616e206f6e6c79206d696e74203420617420612074696d6500000060448201526064016110cd565b336000908152601860205260409020546008116121f55760405162461bcd60e51b815260206004820181905260248201527f43616e74206f776e206d6f7265207468616e203820706572206164647265737360448201526064016110cd565b8360135461220391906145d5565b34146122515760405162461bcd60e51b815260206004820152601460248201527f56616c6964207072696365206e6f742073656e7400000000000000000000000060448201526064016110cd565b6040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506122cb84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601254915084905061372b565b6123175760405162461bcd60e51b815260206004820152601660248201527f496e76616c69642077686974656c69737450726f6f660000000000000000000060448201526064016110cd565b6123218286613858565b61235b5760405162461bcd60e51b815260206004820152600b60248201526a486f7573652066756c6c2160a81b60448201526064016110cd565b600061237f6000546001600160801b03600160801b82048116918116919091031690565b905060005b868110156123be57836024600061239b84866145a9565b8152602081019190915260400160002055806123b681614689565b915050612384565b5082600114156123de57856025546123d691906145a9565b602555612437565b82600214156123fd57856026546123f591906145a9565b602655612437565b826003141561241c578560275461241491906145a9565b602755612437565b8260041415612437578560285461243391906145a9565b6028555b612441338761383e565b3360009081526018602052604090205461245c9087906145a9565b336000818152601860205260409081902092909255600854915163cc240c0160e01b81526004810191909152602481018890526001600160a01b039091169063cc240c0190604401600060405180830381600087803b1580156124be57600080fd5b505af11580156124d2573d6000803e3d6000fd5b50505050505050505050565b6007546001600160a01b031633146125265760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b6000908152601a60205260409020805460ff19811660ff90911615179055565b6000612551826138cb565b5192915050565b600980546125659061464e565b80601f01602080910402602001604051908101604052809291908181526020018280546125919061464e565b80156125de5780601f106125b3576101008083540402835291602001916125de565b820191906000526020600020905b8154815290600101906020018083116125c157829003601f168201915b505050505081565b60006001600160a01b03821661260f576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526004602052604090205467ffffffffffffffff1690565b6007546001600160a01b0316331461267d5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b61268760006139ef565b565b6007546001600160a01b031633146126d15760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b601555565b60006126fa6000546001600160801b03600160801b82048116918116919091031690565b905090565b60026000908152601a6020527f4c287b3e2c2cb129ae3ba596d613d760b15affdac7242e12903c37a886ea1c4f5460ff1661276c5760405162461bcd60e51b815260206004820152600d60248201526c47616d65206e6f74206c69766560981b60448201526064016110cd565b3361277686612546565b6001600160a01b031614801561279c57503361279185612546565b6001600160a01b0316145b6127db5760405162461bcd60e51b815260206004820152601060248201526f3737ba103cb7bab9103132b0bb32b93d60811b60448201526064016110cd565b336127e584612546565b6001600160a01b031614801561280b57503361280083612546565b6001600160a01b0316145b6128495760405162461bcd60e51b815260206004820152600f60248201526e6e6f7420796f75722062616269657360881b60448201526064016110cd565b6000858152602460205260408082205486835291205481148015612880575060008481526024602052604080822054878352912054145b801561289f575060008381526024602052604080822054868352912054145b6128eb5760405162461bcd60e51b815260206004820152601660248201527f4d75737420626520696e2073616d6520636f6c6f6e790000000000000000000060448201526064016110cd565b6000818152601d602090815260408083206002845290915290205460ff166129555760405162461bcd60e51b815260206004820181905260248201527f486f75736520686173206e6f7420756e6c6f636b656420746869732067616d6560448201526064016110cd565b600854601654604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b1580156129a557600080fd5b505af11580156129b9573d6000803e3d6000fd5b5050506000828152601e602090815260408083206002845290915290205460ff169050806129ef57506102bc6129ed6137f3565b115b156116ff576000818152602160205260408120805491612a0e83614689565b90915550506000818152602160205260409020546104e2148015612a5e57506002600052601b6020527f1dd2f4b94a51cfb409e6e317a497f7cfd9013960a1c723f830c49c05a25f08a55460ff16155b15612abb576000818152601c602090815260408083206002845282529091208054600160ff199182168117909255601b9092527f1dd2f4b94a51cfb409e6e317a497f7cfd9013960a1c723f830c49c05a25f08a580549092161790555b50506000828152602360205260408082208054600160ff19918216811790925584845291909220805490911682179055611705565b6007546001600160a01b03163314612b385760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b601455565b6007546001600160a01b03163314612b855760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b6017805460ff19811660ff90911615179055565b606060028054610f289061464e565b60175460ff16612bfa5760405162461bcd60e51b815260206004820152601460248201527f5075626c6963206d696e74206e6f74206c69766500000000000000000000000060448201526064016110cd565b612711612c1f6000546001600160801b03600160801b82048116918116919091031690565b10612c585760405162461bcd60e51b8152602060048201526009602482015268536f6c64204f75742160b81b60448201526064016110cd565b323314612c915760405162461bcd60e51b81526020600482015260076024820152664e6f20626f747360c81b60448201526064016110cd565b6004821115612ce25760405162461bcd60e51b815260206004820152601d60248201527f596f752063616e206f6e6c79206d696e74203420617420612074696d6500000060448201526064016110cd565b33600090815260186020526040902054600811612d415760405162461bcd60e51b815260206004820181905260248201527f43616e74206f776e206d6f7265207468616e203820706572206164647265737360448201526064016110cd565b81601354612d4f91906145d5565b3414612d9d5760405162461bcd60e51b815260206004820152601460248201527f56616c6964207072696365206e6f742073656e7400000000000000000000000060448201526064016110cd565b612da78183613858565b612de15760405162461bcd60e51b815260206004820152600b60248201526a486f7573652066756c6c2160a81b60448201526064016110cd565b6000612e056000546001600160801b03600160801b82048116918116919091031690565b905060005b83811015612e44578260246000612e2184866145a9565b815260208101919091526040016000205580612e3c81614689565b915050612e0a565b508160011415612e645782602554612e5c91906145a9565b602555612ebd565b8160021415612e835782602654612e7b91906145a9565b602655612ebd565b8160031415612ea25782602754612e9a91906145a9565b602755612ebd565b8160041415612ebd5782602854612eb991906145a9565b6028555b612ec7338461383e565b33600090815260186020526040902054612ee29084906145a9565b336000818152601860205260409081902092909255600854915163cc240c0160e01b81526004810191909152602481018590526001600160a01b039091169063cc240c0190604401600060405180830381600087803b158015612f4457600080fd5b505af1158015612f58573d6000803e3d6000fd5b50505050505050565b6001600160a01b038216331415612f8b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6007546001600160a01b0316331461303f5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b6130498183613858565b6130835760405162461bcd60e51b815260206004820152600b60248201526a486f7573652066756c6c2160a81b60448201526064016110cd565b60006130a76000546001600160801b03600160801b82048116918116919091031690565b905060005b83811015612e445782602460006130c384866145a9565b8152602081019190915260400160002055806130de81614689565b9150506130ac565b6007546001600160a01b0316331461312e5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b80600a8360048110611d9157634e487b7160e01b600052603260045260246000fd5b600e816004811061316057600080fd5b0154905081565b6007546001600160a01b031633146131af5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b6008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60085460405163164746fd60e11b81526001600160a01b03868116600483015285811660248301526044820185905290911690632c8e8dfa90606401600060405180830381600087803b15801561323457600080fd5b505af1158015613248573d6000803e3d6000fd5b505050506127118210156132a9576001600160a01b038416600090815260186020526040812080549161327a83614637565b90915550506001600160a01b03831660009081526018602052604081208054916132a383614689565b91905055505b61192d84848484613a4e565b6007546001600160a01b031633146132fd5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b6017805461ff001981166101009182900460ff1615909102179055565b60606133258261368e565b61334257604051630a14c4b560e41b815260040160405180910390fd5b600061334c613a82565b905080516000141561336d5760405180602001604052806000815250613398565b8061337784613a91565b60405160200161338892919061452b565b6040516020818303038152906040525b9392505050565b6007546001600160a01b031633146133e75760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b601655565b600a816004811061316057600080fd5b3361340686612546565b6001600160a01b0316146134505760405162461bcd60e51b815260206004820152601160248201527036bab9ba1037bbb71030903132b0bb32b960791b60448201526064016110cd565b6000600e856004811061347357634e487b7160e01b600052603260045260246000fd5b015490506134b784848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525085925086915061372b9050565b6134f35760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210283937b7b360991b60448201526064016110cd565b505050600092835250602460209081526040808420548452601e82528084209284529190529020805460ff19166001179055565b6007546001600160a01b0316331461356f5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b6001600160a01b0381166135eb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016110cd565b611221816139ef565b6007546001600160a01b0316331461363c5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b601355565b6007546001600160a01b031633146136895760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b601255565b600080546001600160801b031682108015610f13575050600090815260036020526040902054600160e01b900460ff161590565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600081815b85518110156137dd57600086828151811061375b57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161379d5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506137ca565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806137d581614689565b915050613730565b509092149392505050565b611078838383613bc3565b6000804442604051602001613812929190918252602082015260400190565b60408051601f19818403018152919052805160209091012090506138386103e8826146a4565b91505090565b611768828260405180602001604052806000815250613de2565b6000826001141561387d576109c48260255461387491906145a9565b11159050610f13565b8260021415613897576109c48260265461387491906145a9565b82600314156138b1576109c48260275461387491906145a9565b8260041415610f13576109c48260285461387491906145a9565b60408051606081018252600080825260208201819052918101829052905482906001600160801b03168110156139d657600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906139d45780516001600160a01b03161561396a579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156139cf579392505050565b61396a565b505b604051636f96cda160e11b815260040160405180910390fd5b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b613a59848484613bc3565b613a6584848484613def565b61192d576040516368d2bf6b60e11b815260040160405180910390fd5b606060098054610f289061464e565b606081613ab55750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613adf5780613ac981614689565b9150613ad89050600a836145c1565b9150613ab9565b60008167ffffffffffffffff811115613b0857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613b32576020820181803683370190505b5090505b841561170557613b476001836145f4565b9150613b54600a866146a4565b613b5f9060306145a9565b60f81b818381518110613b8257634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613bbc600a866145c1565b9450613b36565b6000613bce826138cb565b80519091506000906001600160a01b0316336001600160a01b03161480613bfc57508151613bfc9033610df3565b80613c17575033613c0c84610fab565b6001600160a01b0316145b905080613c3757604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614613c6c5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416613c9357604051633a954ecd60e21b815260040160405180910390fd5b613ca360008484600001516136c2565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116613d98576000546001600160801b0316811015613d98578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6110788383836001613efa565b60006001600160a01b0384163b15613ef257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613e3390339089908890889060040161455a565b602060405180830381600087803b158015613e4d57600080fd5b505af1925050508015613e7d575060408051601f3d908101601f19168201909252613e7a918101906143a1565b60015b613ed8573d808015613eab576040519150601f19603f3d011682016040523d82523d6000602084013e613eb0565b606091505b508051613ed0576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611705565b506001611705565b6000546001600160801b03166001600160a01b038516613f2c57604051622e076360e81b815260040160405180910390fd5b83613f4a5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156140665760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801561403c575061403a6000888488613def565b155b1561405a576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101613fe5565b50600080546fffffffffffffffffffffffffffffffff19166001600160801b0392909216919091179055613ddb565b8280546140a19061464e565b90600052602060002090601f0160209004810192826140c35760008555614109565b82601f106140dc57805160ff1916838001178555614109565b82800160010185558215614109579182015b828111156141095782518255916020019190600101906140ee565b50614115929150614119565b5090565b5b80821115614115576000815560010161411a565b600067ffffffffffffffff80841115614149576141496146e4565b604051601f8501601f19908116603f01168101908282118183101715614171576141716146e4565b8160405280935085815286868601111561418a57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146141bb57600080fd5b919050565b60008083601f8401126141d1578081fd5b50813567ffffffffffffffff8111156141e8578182fd5b6020830191508360208260051b850101111561420357600080fd5b9250929050565b60006020828403121561421b578081fd5b613398826141a4565b60008060408385031215614236578081fd5b61423f836141a4565b915061424d602084016141a4565b90509250929050565b60008060006060848603121561426a578081fd5b614273846141a4565b9250614281602085016141a4565b9150604084013590509250925092565b600080600080608085870312156142a6578081fd5b6142af856141a4565b93506142bd602086016141a4565b925060408501359150606085013567ffffffffffffffff8111156142df578182fd5b8501601f810187136142ef578182fd5b6142fe8782356020840161412e565b91505092959194509250565b6000806040838503121561431c578182fd5b614325836141a4565b915060208301358015158114614339578182fd5b809150509250929050565b60008060408385031215614356578182fd5b61435f836141a4565b946020939093013593505050565b60006020828403121561437e578081fd5b5035919050565b600060208284031215614396578081fd5b8135613398816146fa565b6000602082840312156143b2578081fd5b8151613398816146fa565b6000602082840312156143ce578081fd5b813567ffffffffffffffff8111156143e4578182fd5b8201601f810184136143f4578182fd5b6117058482356020840161412e565b60008060008060608587031215614418578384fd5b84359350602085013567ffffffffffffffff811115614435578384fd5b614441878288016141c0565b9598909750949560400135949350505050565b60008060408385031215614466578182fd5b50508035926020909101359150565b60008060008060006080868803121561448c578283fd5b8535945060208601359350604086013567ffffffffffffffff8111156144b0578384fd5b6144bc888289016141c0565b96999598509660600135949350505050565b600080600080608085870312156144e3578182fd5b5050823594602084013594506040840135936060013592509050565b6000815180845261451781602086016020860161460b565b601f01601f19169290920160200192915050565b6000835161453d81846020880161460b565b83519083019061455181836020880161460b565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261458c60808301846144ff565b9695505050505050565b60208152600061339860208301846144ff565b600082198211156145bc576145bc6146b8565b500190565b6000826145d0576145d06146ce565b500490565b60008160001904831182151516156145ef576145ef6146b8565b500290565b600082821015614606576146066146b8565b500390565b60005b8381101561462657818101518382015260200161460e565b8381111561192d5750506000910152565b600081614646576146466146b8565b506000190190565b600181811c9082168061466257607f821691505b6020821081141561468357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561469d5761469d6146b8565b5060010190565b6000826146b3576146b36146ce565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461122157600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212206bc46dc170e5a430a967966b40e1624feb70419461ea967d6378b872743e59e764736f6c6343000804003368747470733a2f2f6275696c64696e676265617665727a2e636f6d2f6170692f746f6b656e2f
Deployed Bytecode
0x6080604052600436106105075760003560e01c80636c0360eb11610294578063b67e76521161015e578063c8841f6f116100d6578063f2fde38b1161008a578063f80e02e61161006f578063f80e02e614610e61578063fa40f47614610e81578063fe9ef35c14610e9757600080fd5b8063f2fde38b14610e21578063f4a0a52814610e4157600080fd5b8063d50afe1d116100bb578063d50afe1d14610da3578063e58f85de14610dc3578063e985e9c514610dd857600080fd5b8063c8841f6f14610d63578063cd8d77f214610d8357600080fd5b8063bf424e7e1161012d578063c23475dc11610112578063c23475dc14610d01578063c44f9a2214610d16578063c87b56dd14610d4357600080fd5b8063bf424e7e14610cd6578063bf94ad8b14610cec57600080fd5b8063b67e765214610c53578063b88d4fde14610c73578063b9f78db014610c93578063bd6d82f714610ca957600080fd5b80638255b7601161020c5780639b7e9dc2116101c0578063a5b985a2116101a5578063a5b985a214610c00578063a839981014610c13578063af94e1ea14610c3357600080fd5b80639b7e9dc214610bcb578063a22cb46514610be057600080fd5b80638da5cb5b116101f15780638da5cb5b14610b8557806395d89b4114610ba357806398ae99a814610bb857600080fd5b80638255b76014610b505780638ac9a3f114610b7057600080fd5b806371beeba1116102635780637af284d5116102485780637af284d514610afb5780637c3d803814610b1057806380cfc62014610b3d57600080fd5b806371beeba114610aae5780637a9a586914610ace57600080fd5b80636c0360eb14610a4e57806370a0823114610a63578063715018a614610a8357806371ba191314610a9857600080fd5b80632bf5651a116103d55780634f6ccce71161034d5780636352211e116103015780636817c76c116102e65780636817c76c146109f257806369f5974e14610a085780636b3c4f6214610a1e57600080fd5b80636352211e146109bc57806364c03651146109dc57600080fd5b80635baddf4d116103325780635baddf4d146109765780635d5c0709146109895780635f135b571461099c57600080fd5b80634f6ccce7146109365780635771249e1461095657600080fd5b80633c219729116103a45780633f5a17ca116103895780633f5a17ca146108d357806342842e0e146108e65780634d40a9b21461090657600080fd5b80633c2197291461089f5780633d18b912146108be57600080fd5b80632bf5651a1461080e5780632f558dfa1461082e5780632f745c591461086957806334b6ab1a1461088957600080fd5b806318160ddd1161048357806323b872dd1161043757806327c7dde71161041c57806327c7dde7146107a45780632909e475146107be57806329ba85dc146107de57600080fd5b806323b872dd146107715780632458e8591461079157600080fd5b80631aa4823b116104685780631aa4823b1461070157806320323fc31461073c5780632157c46a1461075c57600080fd5b806318160ddd146106a257806319cdb781146106d157600080fd5b8063095ea7b3116104da5780630f6d4577116104bf5780630f6d4577146106335780631539c9801461066057806316adf21a1461068c57600080fd5b8063095ea7b3146105d65780630a884d66146105f857600080fd5b806301ffc9a71461050c578063048325cd1461054157806306fdde031461057c578063081812fc1461059e575b600080fd5b34801561051857600080fd5b5061052c610527366004614385565b610eac565b60405190151581526020015b60405180910390f35b34801561054d57600080fd5b5061052c61055c366004614454565b601d60209081526000928352604080842090915290825290205460ff1681565b34801561058857600080fd5b50610591610f19565b6040516105389190614596565b3480156105aa57600080fd5b506105be6105b936600461436d565b610fab565b6040516001600160a01b039091168152602001610538565b3480156105e257600080fd5b506105f66105f1366004614344565b610fef565b005b34801561060457600080fd5b5061062561061336600461436d565b60226020526000908152604090205481565b604051908152602001610538565b34801561063f57600080fd5b5061062561064e36600461436d565b60216020526000908152604090205481565b34801561066c57600080fd5b5061062561067b36600461436d565b602080526000908152604090205481565b34801561069857600080fd5b5061062560275481565b3480156106ae57600080fd5b506106256000546001600160801b03600160801b82048116918116919091031690565b3480156106dd57600080fd5b5061052c6106ec36600461436d565b601b6020526000908152604090205460ff1681565b34801561070d57600080fd5b5061052c61071c366004614454565b601e60209081526000928352604080842090915290825290205460ff1681565b34801561074857600080fd5b506105f6610757366004614475565b61107d565b34801561076857600080fd5b506105f66111ad565b34801561077d57600080fd5b506105f661078c366004614256565b611224565b61052c61079f3660046144ce565b6112fa565b3480156107b057600080fd5b5060175461052c9060ff1681565b3480156107ca57600080fd5b506008546105be906001600160a01b031681565b3480156107ea57600080fd5b5061052c6107f936600461436d565b601a6020526000908152604090205460ff1681565b34801561081a57600080fd5b506105f66108293660046143bd565b61170d565b34801561083a57600080fd5b5061052c610849366004614454565b601c60209081526000928352604080842090915290825290205460ff1681565b34801561087557600080fd5b50610625610884366004614344565b61176c565b34801561089557600080fd5b5061062560125481565b3480156108ab57600080fd5b5060175461052c90610100900460ff1681565b3480156108ca57600080fd5b506105f6611869565b61052c6108e1366004614454565b611933565b3480156108f257600080fd5b506105f6610901366004614256565b611c61565b34801561091257600080fd5b5061052c61092136600461436d565b60196020526000908152604090205460ff1681565b34801561094257600080fd5b5061062561095136600461436d565b611c7c565b34801561096257600080fd5b506105f6610971366004614454565b611d27565b61052c61098436600461436d565b611d97565b6105f6610997366004614403565b612057565b3480156109a857600080fd5b506105f66109b736600461436d565b6124de565b3480156109c857600080fd5b506105be6109d736600461436d565b612546565b3480156109e857600080fd5b5061062560165481565b3480156109fe57600080fd5b5061062560135481565b348015610a1457600080fd5b5061062560265481565b348015610a2a57600080fd5b5061052c610a3936600461436d565b60236020526000908152604090205460ff1681565b348015610a5a57600080fd5b50610591612558565b348015610a6f57600080fd5b50610625610a7e36600461420a565b6125e6565b348015610a8f57600080fd5b506105f6612635565b348015610aa457600080fd5b5061062560285481565b348015610aba57600080fd5b506105f6610ac936600461436d565b612689565b348015610ada57600080fd5b50610625610ae936600461436d565b60246020526000908152604090205481565b348015610b0757600080fd5b506106256126d6565b348015610b1c57600080fd5b50610625610b2b36600461420a565b60186020526000908152604090205481565b61052c610b4b3660046144ce565b6126ff565b348015610b5c57600080fd5b506105f6610b6b36600461436d565b612af0565b348015610b7c57600080fd5b506105f6612b3d565b348015610b9157600080fd5b506007546001600160a01b03166105be565b348015610baf57600080fd5b50610591612b99565b6105f6610bc6366004614454565b612ba8565b348015610bd757600080fd5b50602654610625565b348015610bec57600080fd5b506105f6610bfb36600461430a565b612f61565b6105f6610c0e366004614454565b612ff7565b348015610c1f57600080fd5b506105f6610c2e366004614454565b6130e6565b348015610c3f57600080fd5b50610625610c4e36600461436d565b613150565b348015610c5f57600080fd5b506105f6610c6e36600461420a565b613167565b348015610c7f57600080fd5b506105f6610c8e366004614291565b6131de565b348015610c9f57600080fd5b5061062560145481565b348015610cb557600080fd5b50610625610cc436600461436d565b601f6020526000908152604090205481565b348015610ce257600080fd5b5061062560155481565b348015610cf857600080fd5b506105f66132b5565b348015610d0d57600080fd5b50602754610625565b348015610d2257600080fd5b50610625610d3136600461436d565b60009081526024602052604090205490565b348015610d4f57600080fd5b50610591610d5e36600461436d565b61331a565b348015610d6f57600080fd5b506105f6610d7e36600461436d565b61339f565b348015610d8f57600080fd5b50610625610d9e36600461436d565b6133ec565b348015610daf57600080fd5b506105f6610dbe366004614475565b6133fc565b348015610dcf57600080fd5b50602554610625565b348015610de457600080fd5b5061052c610df3366004614224565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610e2d57600080fd5b506105f6610e3c36600461420a565b613527565b348015610e4d57600080fd5b506105f6610e5c36600461436d565b6135f4565b348015610e6d57600080fd5b506105f6610e7c36600461436d565b613641565b348015610e8d57600080fd5b5061062560255481565b348015610ea357600080fd5b50602854610625565b60006001600160e01b031982166380ac58cd60e01b1480610edd57506001600160e01b03198216635b5e139f60e01b145b80610ef857506001600160e01b0319821663780e9d6360e01b145b80610f1357506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610f289061464e565b80601f0160208091040260200160405190810160405280929190818152602001828054610f549061464e565b8015610fa15780601f10610f7657610100808354040283529160200191610fa1565b820191906000526020600020905b815481529060010190602001808311610f8457829003601f168201915b5050505050905090565b6000610fb68261368e565b610fd3576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610ffa82612546565b9050806001600160a01b0316836001600160a01b0316141561102f5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061104f575061104d8133610df3565b155b1561106d576040516367d9dca160e11b815260040160405180910390fd5b6110788383836136c2565b505050565b3361108786612546565b6001600160a01b0316146110d65760405162461bcd60e51b815260206004820152601160248201527036bab9ba1037bbb71030903132b0bb32b960791b60448201526064015b60405180910390fd5b6000600a85600481106110f957634e487b7160e01b600052603260045260246000fd5b0154905061113d84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525085925086915061372b9050565b6111795760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210283937b7b360991b60448201526064016110cd565b505050600092835250602460209081526040808420548452601d82528084209284529190529020805460ff19166001179055565b6007546001600160a01b031633146111f55760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b60405133904780156108fc02916000818181858888f19350505050158015611221573d6000803e3d6000fd5b50565b60085460405163164746fd60e11b81526001600160a01b03858116600483015284811660248301526044820184905290911690632c8e8dfa90606401600060405180830381600087803b15801561127a57600080fd5b505af115801561128e573d6000803e3d6000fd5b505050506127118110156112ef576001600160a01b03831660009081526018602052604081208054916112c083614637565b90915550506001600160a01b03821660009081526018602052604081208054916112e983614689565b91905055505b6110788383836137e8565b60036000908152601a6020527f4ac83fca211703e3ddb90093cd219714e5e3715bf0b4fd15b0441390534a24e25460ff166113675760405162461bcd60e51b815260206004820152600d60248201526c47616d65206e6f74206c69766560981b60448201526064016110cd565b3361137186612546565b6001600160a01b031614801561139757503361138c85612546565b6001600160a01b0316145b6113d65760405162461bcd60e51b815260206004820152601060248201526f3737ba103cb7bab9103132b0bb32b93d60811b60448201526064016110cd565b336113e084612546565b6001600160a01b03161480156114065750336113fb83612546565b6001600160a01b0316145b6114445760405162461bcd60e51b815260206004820152600f60248201526e6e6f7420796f75722062616269657360881b60448201526064016110cd565b600085815260246020526040808220548683529120548114801561147b575060008481526024602052604080822054878352912054145b801561149a575060008381526024602052604080822054868352912054145b6114e65760405162461bcd60e51b815260206004820152601660248201527f4d75737420626520696e2073616d6520636f6c6f6e790000000000000000000060448201526064016110cd565b6000818152601d602090815260408083206003845290915290205460ff166115505760405162461bcd60e51b815260206004820181905260248201527f486f75736520686173206e6f7420756e6c6f636b656420746869732067616d6560448201526064016110cd565b600854601654604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b1580156115a057600080fd5b505af11580156115b4573d6000803e3d6000fd5b5050506000828152601e602090815260408083206003845290915290205460ff169050806115ea57506102bc6115e86137f3565b115b156116ff57600081815260216020526040902054601d10156116ff57600081815260226020526040812080549161162083614689565b9091555050600081815260226020526040902054606314801561166f57506003600052601b6020527f804a3d0621e73505f5f0c57c922f3e57d6b48e175551184eb12f80d7b4a9c7835460ff16155b156116cc576000818152601c602090815260408083206003845282529091208054600160ff199182168117909255601b9092527f804a3d0621e73505f5f0c57c922f3e57d6b48e175551184eb12f80d7b4a9c78380549092161790555b6000818152602160205260409020546116e790601e906145f4565b60009182526021602052604090912055506001611705565b60009150505b949350505050565b6007546001600160a01b031633146117555760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b8051611768906009906020840190614095565b5050565b6000611777836125e6565b8210611796576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b8381101561186357600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529061180f575061185b565b80516001600160a01b03161561182457805192505b876001600160a01b0316836001600160a01b03161415611859578684141561185257509350610f1392505050565b6001909301925b505b6001016117a7565b50600080fd5b60085460405163164746fd60e11b815233600482015260006024820181905260448201526001600160a01b0390911690632c8e8dfa90606401600060405180830381600087803b1580156118bc57600080fd5b505af11580156118d0573d6000803e3d6000fd5b5050600854604051630c00007b60e41b81523360048201526001600160a01b03909116925063c00007b09150602401600060405180830381600087803b15801561191957600080fd5b505af115801561192d573d6000803e3d6000fd5b50505050565b60016000908152601a6020527ff88cd8d612926ebb404e40725c01084b6e9b3ce0344cde068570342cbd448c615460ff166119a05760405162461bcd60e51b815260206004820152600d60248201526c47616d65206e6f74206c69766560981b60448201526064016110cd565b336119aa84612546565b6001600160a01b03161480156119d05750336119c583612546565b6001600160a01b0316145b611a0f5760405162461bcd60e51b815260206004820152601060248201526f3737ba103cb7bab9103132b0bb32b93d60811b60448201526064016110cd565b600083815260246020526040808220548483529120548114611a735760405162461bcd60e51b815260206004820152601a60248201527f4265617665727a206d7573742062652073616d6520686f75736500000000000060448201526064016110cd565b6000818152601d602090815260408083206001845290915290205460ff16611add5760405162461bcd60e51b815260206004820181905260248201527f486f75736520686173206e6f7420756e6c6f636b656420746869732067616d6560448201526064016110cd565b600854601554604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b158015611b2d57600080fd5b505af1158015611b41573d6000803e3d6000fd5b5050506000828152601e602090815260408083206001845290915290205460ff16905080611b7757506102bc611b756137f3565b115b15611c575760008181526020805260408120805491611b9583614689565b909155505060008181526020805260409020546109c4148015611be457506001600052601b6020527f9fafca4c9c0d5c2cbf85f49fd8ab8212430ce78c2a0cb75b51e0f9c4f9ace0035460ff16155b15611c42576000818152601c6020908152604080832060018085529083529220805460ff199081168417909155601b9091527f9fafca4c9c0d5c2cbf85f49fd8ab8212430ce78c2a0cb75b51e0f9c4f9ace003805490911690911790555b611c4d33600161383e565b6001915050610f13565b5060009392505050565b611078838383604051806020016040528060008152506131de565b600080546001600160801b031681805b82811015611d0d57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290611d045785831415611cfd5750949350505050565b6001909201915b50600101611c8c565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b03163314611d6f5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b80600e8360048110611d9157634e487b7160e01b600052603260045260246000fd5b01555050565b6000808052601a6020527fb75ecc04ed35f89790e98640e901bda41eceff0cb896cf2765fb6976802537505460ff16611e025760405162461bcd60e51b815260206004820152600d60248201526c47616d65206e6f74206c69766560981b60448201526064016110cd565b33611e0c83612546565b6001600160a01b031614611e565760405162461bcd60e51b815260206004820152601160248201527036bab9ba1037bbb71030903132b0bb32b960791b60448201526064016110cd565b600082815260246020908152604080832054808452601d83528184208480529092529091205460ff16611ecb5760405162461bcd60e51b815260206004820181905260248201527f486f75736520686173206e6f7420756e6c6f636b656420746869732067616d6560448201526064016110cd565b600854601454604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b158015611f1b57600080fd5b505af1158015611f2f573d6000803e3d6000fd5b5050506000828152601e6020908152604080832083805290915290205460ff16905080611f6457506102bc611f626137f3565b115b1561204e576000818152601f60205260408120805491611f8383614689565b90915550506000818152601f602052604090205460fa148015611fd1575060008052601b6020527f584f46c60af19681376031579adb04a2416e54ee5505351c2a8435e3766026ea5460ff16155b1561202d576000818152601c6020908152604080832083805282529091208054600160ff199182168117909255601b9092527f584f46c60af19681376031579adb04a2416e54ee5505351c2a8435e3766026ea80549092161790555b50506000908152601960205260409020805460ff1916600190811790915590565b50600092915050565b601754610100900460ff166120ae5760405162461bcd60e51b815260206004820152601760248201527f57686974656c697374206d696e74206e6f74206c69766500000000000000000060448201526064016110cd565b6127116120d36000546001600160801b03600160801b82048116918116919091031690565b1061210c5760405162461bcd60e51b8152602060048201526009602482015268536f6c64204f75742160b81b60448201526064016110cd565b3233146121455760405162461bcd60e51b81526020600482015260076024820152664e6f20626f747360c81b60448201526064016110cd565b60048411156121965760405162461bcd60e51b815260206004820152601d60248201527f596f752063616e206f6e6c79206d696e74203420617420612074696d6500000060448201526064016110cd565b336000908152601860205260409020546008116121f55760405162461bcd60e51b815260206004820181905260248201527f43616e74206f776e206d6f7265207468616e203820706572206164647265737360448201526064016110cd565b8360135461220391906145d5565b34146122515760405162461bcd60e51b815260206004820152601460248201527f56616c6964207072696365206e6f742073656e7400000000000000000000000060448201526064016110cd565b6040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506122cb84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601254915084905061372b565b6123175760405162461bcd60e51b815260206004820152601660248201527f496e76616c69642077686974656c69737450726f6f660000000000000000000060448201526064016110cd565b6123218286613858565b61235b5760405162461bcd60e51b815260206004820152600b60248201526a486f7573652066756c6c2160a81b60448201526064016110cd565b600061237f6000546001600160801b03600160801b82048116918116919091031690565b905060005b868110156123be57836024600061239b84866145a9565b8152602081019190915260400160002055806123b681614689565b915050612384565b5082600114156123de57856025546123d691906145a9565b602555612437565b82600214156123fd57856026546123f591906145a9565b602655612437565b826003141561241c578560275461241491906145a9565b602755612437565b8260041415612437578560285461243391906145a9565b6028555b612441338761383e565b3360009081526018602052604090205461245c9087906145a9565b336000818152601860205260409081902092909255600854915163cc240c0160e01b81526004810191909152602481018890526001600160a01b039091169063cc240c0190604401600060405180830381600087803b1580156124be57600080fd5b505af11580156124d2573d6000803e3d6000fd5b50505050505050505050565b6007546001600160a01b031633146125265760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b6000908152601a60205260409020805460ff19811660ff90911615179055565b6000612551826138cb565b5192915050565b600980546125659061464e565b80601f01602080910402602001604051908101604052809291908181526020018280546125919061464e565b80156125de5780601f106125b3576101008083540402835291602001916125de565b820191906000526020600020905b8154815290600101906020018083116125c157829003601f168201915b505050505081565b60006001600160a01b03821661260f576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526004602052604090205467ffffffffffffffff1690565b6007546001600160a01b0316331461267d5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b61268760006139ef565b565b6007546001600160a01b031633146126d15760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b601555565b60006126fa6000546001600160801b03600160801b82048116918116919091031690565b905090565b60026000908152601a6020527f4c287b3e2c2cb129ae3ba596d613d760b15affdac7242e12903c37a886ea1c4f5460ff1661276c5760405162461bcd60e51b815260206004820152600d60248201526c47616d65206e6f74206c69766560981b60448201526064016110cd565b3361277686612546565b6001600160a01b031614801561279c57503361279185612546565b6001600160a01b0316145b6127db5760405162461bcd60e51b815260206004820152601060248201526f3737ba103cb7bab9103132b0bb32b93d60811b60448201526064016110cd565b336127e584612546565b6001600160a01b031614801561280b57503361280083612546565b6001600160a01b0316145b6128495760405162461bcd60e51b815260206004820152600f60248201526e6e6f7420796f75722062616269657360881b60448201526064016110cd565b6000858152602460205260408082205486835291205481148015612880575060008481526024602052604080822054878352912054145b801561289f575060008381526024602052604080822054868352912054145b6128eb5760405162461bcd60e51b815260206004820152601660248201527f4d75737420626520696e2073616d6520636f6c6f6e790000000000000000000060448201526064016110cd565b6000818152601d602090815260408083206002845290915290205460ff166129555760405162461bcd60e51b815260206004820181905260248201527f486f75736520686173206e6f7420756e6c6f636b656420746869732067616d6560448201526064016110cd565b600854601654604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b1580156129a557600080fd5b505af11580156129b9573d6000803e3d6000fd5b5050506000828152601e602090815260408083206002845290915290205460ff169050806129ef57506102bc6129ed6137f3565b115b156116ff576000818152602160205260408120805491612a0e83614689565b90915550506000818152602160205260409020546104e2148015612a5e57506002600052601b6020527f1dd2f4b94a51cfb409e6e317a497f7cfd9013960a1c723f830c49c05a25f08a55460ff16155b15612abb576000818152601c602090815260408083206002845282529091208054600160ff199182168117909255601b9092527f1dd2f4b94a51cfb409e6e317a497f7cfd9013960a1c723f830c49c05a25f08a580549092161790555b50506000828152602360205260408082208054600160ff19918216811790925584845291909220805490911682179055611705565b6007546001600160a01b03163314612b385760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b601455565b6007546001600160a01b03163314612b855760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b6017805460ff19811660ff90911615179055565b606060028054610f289061464e565b60175460ff16612bfa5760405162461bcd60e51b815260206004820152601460248201527f5075626c6963206d696e74206e6f74206c69766500000000000000000000000060448201526064016110cd565b612711612c1f6000546001600160801b03600160801b82048116918116919091031690565b10612c585760405162461bcd60e51b8152602060048201526009602482015268536f6c64204f75742160b81b60448201526064016110cd565b323314612c915760405162461bcd60e51b81526020600482015260076024820152664e6f20626f747360c81b60448201526064016110cd565b6004821115612ce25760405162461bcd60e51b815260206004820152601d60248201527f596f752063616e206f6e6c79206d696e74203420617420612074696d6500000060448201526064016110cd565b33600090815260186020526040902054600811612d415760405162461bcd60e51b815260206004820181905260248201527f43616e74206f776e206d6f7265207468616e203820706572206164647265737360448201526064016110cd565b81601354612d4f91906145d5565b3414612d9d5760405162461bcd60e51b815260206004820152601460248201527f56616c6964207072696365206e6f742073656e7400000000000000000000000060448201526064016110cd565b612da78183613858565b612de15760405162461bcd60e51b815260206004820152600b60248201526a486f7573652066756c6c2160a81b60448201526064016110cd565b6000612e056000546001600160801b03600160801b82048116918116919091031690565b905060005b83811015612e44578260246000612e2184866145a9565b815260208101919091526040016000205580612e3c81614689565b915050612e0a565b508160011415612e645782602554612e5c91906145a9565b602555612ebd565b8160021415612e835782602654612e7b91906145a9565b602655612ebd565b8160031415612ea25782602754612e9a91906145a9565b602755612ebd565b8160041415612ebd5782602854612eb991906145a9565b6028555b612ec7338461383e565b33600090815260186020526040902054612ee29084906145a9565b336000818152601860205260409081902092909255600854915163cc240c0160e01b81526004810191909152602481018590526001600160a01b039091169063cc240c0190604401600060405180830381600087803b158015612f4457600080fd5b505af1158015612f58573d6000803e3d6000fd5b50505050505050565b6001600160a01b038216331415612f8b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6007546001600160a01b0316331461303f5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b6130498183613858565b6130835760405162461bcd60e51b815260206004820152600b60248201526a486f7573652066756c6c2160a81b60448201526064016110cd565b60006130a76000546001600160801b03600160801b82048116918116919091031690565b905060005b83811015612e445782602460006130c384866145a9565b8152602081019190915260400160002055806130de81614689565b9150506130ac565b6007546001600160a01b0316331461312e5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b80600a8360048110611d9157634e487b7160e01b600052603260045260246000fd5b600e816004811061316057600080fd5b0154905081565b6007546001600160a01b031633146131af5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b6008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60085460405163164746fd60e11b81526001600160a01b03868116600483015285811660248301526044820185905290911690632c8e8dfa90606401600060405180830381600087803b15801561323457600080fd5b505af1158015613248573d6000803e3d6000fd5b505050506127118210156132a9576001600160a01b038416600090815260186020526040812080549161327a83614637565b90915550506001600160a01b03831660009081526018602052604081208054916132a383614689565b91905055505b61192d84848484613a4e565b6007546001600160a01b031633146132fd5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b6017805461ff001981166101009182900460ff1615909102179055565b60606133258261368e565b61334257604051630a14c4b560e41b815260040160405180910390fd5b600061334c613a82565b905080516000141561336d5760405180602001604052806000815250613398565b8061337784613a91565b60405160200161338892919061452b565b6040516020818303038152906040525b9392505050565b6007546001600160a01b031633146133e75760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b601655565b600a816004811061316057600080fd5b3361340686612546565b6001600160a01b0316146134505760405162461bcd60e51b815260206004820152601160248201527036bab9ba1037bbb71030903132b0bb32b960791b60448201526064016110cd565b6000600e856004811061347357634e487b7160e01b600052603260045260246000fd5b015490506134b784848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525085925086915061372b9050565b6134f35760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210283937b7b360991b60448201526064016110cd565b505050600092835250602460209081526040808420548452601e82528084209284529190529020805460ff19166001179055565b6007546001600160a01b0316331461356f5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b6001600160a01b0381166135eb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016110cd565b611221816139ef565b6007546001600160a01b0316331461363c5760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b601355565b6007546001600160a01b031633146136895760405162461bcd60e51b8152602060048201819052602482015260008051602061471183398151915260448201526064016110cd565b601255565b600080546001600160801b031682108015610f13575050600090815260036020526040902054600160e01b900460ff161590565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600081815b85518110156137dd57600086828151811061375b57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161379d5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506137ca565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806137d581614689565b915050613730565b509092149392505050565b611078838383613bc3565b6000804442604051602001613812929190918252602082015260400190565b60408051601f19818403018152919052805160209091012090506138386103e8826146a4565b91505090565b611768828260405180602001604052806000815250613de2565b6000826001141561387d576109c48260255461387491906145a9565b11159050610f13565b8260021415613897576109c48260265461387491906145a9565b82600314156138b1576109c48260275461387491906145a9565b8260041415610f13576109c48260285461387491906145a9565b60408051606081018252600080825260208201819052918101829052905482906001600160801b03168110156139d657600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906139d45780516001600160a01b03161561396a579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156139cf579392505050565b61396a565b505b604051636f96cda160e11b815260040160405180910390fd5b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b613a59848484613bc3565b613a6584848484613def565b61192d576040516368d2bf6b60e11b815260040160405180910390fd5b606060098054610f289061464e565b606081613ab55750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613adf5780613ac981614689565b9150613ad89050600a836145c1565b9150613ab9565b60008167ffffffffffffffff811115613b0857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613b32576020820181803683370190505b5090505b841561170557613b476001836145f4565b9150613b54600a866146a4565b613b5f9060306145a9565b60f81b818381518110613b8257634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613bbc600a866145c1565b9450613b36565b6000613bce826138cb565b80519091506000906001600160a01b0316336001600160a01b03161480613bfc57508151613bfc9033610df3565b80613c17575033613c0c84610fab565b6001600160a01b0316145b905080613c3757604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614613c6c5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416613c9357604051633a954ecd60e21b815260040160405180910390fd5b613ca360008484600001516136c2565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116613d98576000546001600160801b0316811015613d98578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6110788383836001613efa565b60006001600160a01b0384163b15613ef257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613e3390339089908890889060040161455a565b602060405180830381600087803b158015613e4d57600080fd5b505af1925050508015613e7d575060408051601f3d908101601f19168201909252613e7a918101906143a1565b60015b613ed8573d808015613eab576040519150601f19603f3d011682016040523d82523d6000602084013e613eb0565b606091505b508051613ed0576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611705565b506001611705565b6000546001600160801b03166001600160a01b038516613f2c57604051622e076360e81b815260040160405180910390fd5b83613f4a5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156140665760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801561403c575061403a6000888488613def565b155b1561405a576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101613fe5565b50600080546fffffffffffffffffffffffffffffffff19166001600160801b0392909216919091179055613ddb565b8280546140a19061464e565b90600052602060002090601f0160209004810192826140c35760008555614109565b82601f106140dc57805160ff1916838001178555614109565b82800160010185558215614109579182015b828111156141095782518255916020019190600101906140ee565b50614115929150614119565b5090565b5b80821115614115576000815560010161411a565b600067ffffffffffffffff80841115614149576141496146e4565b604051601f8501601f19908116603f01168101908282118183101715614171576141716146e4565b8160405280935085815286868601111561418a57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146141bb57600080fd5b919050565b60008083601f8401126141d1578081fd5b50813567ffffffffffffffff8111156141e8578182fd5b6020830191508360208260051b850101111561420357600080fd5b9250929050565b60006020828403121561421b578081fd5b613398826141a4565b60008060408385031215614236578081fd5b61423f836141a4565b915061424d602084016141a4565b90509250929050565b60008060006060848603121561426a578081fd5b614273846141a4565b9250614281602085016141a4565b9150604084013590509250925092565b600080600080608085870312156142a6578081fd5b6142af856141a4565b93506142bd602086016141a4565b925060408501359150606085013567ffffffffffffffff8111156142df578182fd5b8501601f810187136142ef578182fd5b6142fe8782356020840161412e565b91505092959194509250565b6000806040838503121561431c578182fd5b614325836141a4565b915060208301358015158114614339578182fd5b809150509250929050565b60008060408385031215614356578182fd5b61435f836141a4565b946020939093013593505050565b60006020828403121561437e578081fd5b5035919050565b600060208284031215614396578081fd5b8135613398816146fa565b6000602082840312156143b2578081fd5b8151613398816146fa565b6000602082840312156143ce578081fd5b813567ffffffffffffffff8111156143e4578182fd5b8201601f810184136143f4578182fd5b6117058482356020840161412e565b60008060008060608587031215614418578384fd5b84359350602085013567ffffffffffffffff811115614435578384fd5b614441878288016141c0565b9598909750949560400135949350505050565b60008060408385031215614466578182fd5b50508035926020909101359150565b60008060008060006080868803121561448c578283fd5b8535945060208601359350604086013567ffffffffffffffff8111156144b0578384fd5b6144bc888289016141c0565b96999598509660600135949350505050565b600080600080608085870312156144e3578182fd5b5050823594602084013594506040840135936060013592509050565b6000815180845261451781602086016020860161460b565b601f01601f19169290920160200192915050565b6000835161453d81846020880161460b565b83519083019061455181836020880161460b565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261458c60808301846144ff565b9695505050505050565b60208152600061339860208301846144ff565b600082198211156145bc576145bc6146b8565b500190565b6000826145d0576145d06146ce565b500490565b60008160001904831182151516156145ef576145ef6146b8565b500290565b600082821015614606576146066146b8565b500390565b60005b8381101561462657818101518382015260200161460e565b8381111561192d5750506000910152565b600081614646576146466146b8565b506000190190565b600181811c9082168061466257607f821691505b6020821081141561468357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561469d5761469d6146b8565b5060010190565b6000826146b3576146b36146ce565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461122157600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212206bc46dc170e5a430a967966b40e1624feb70419461ea967d6378b872743e59e764736f6c63430008040033
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.