ERC-721
NFT
Overview
Max Total Supply
8,858 MONSTERBLOCK
Holders
1,936
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MonsterBlocks
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 5 runs
Other Settings:
petersburg EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./MonsterBlockCoreERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@chainlink/contracts/src/v0.8/dev/VRFConsumerBase.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; contract MonsterBlocks is MonsterBlockCoreERC721, VRFConsumerBase { using Counters for Counters.Counter; Counters.Counter private _tokenIds; uint256 public totalMinted = 0; uint256 public totalMintedByOwner = 0; IUniswapV2Router02 public uniswapRouter; address private VRFCoordinator = 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952; address private LinkToken = 0x514910771AF9Ca656af840dff83E8264EcF986CA; bytes32 internal keyHash = 0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445; uint256 internal LinkFee = 2 * 10**18; // 2 LINK uint256 public constant NFTMintPrice = 55000000000000000; // 0.055 ETH uint256 public constant maxSupply = 10000; uint256 public constant maxOwnerMintedSupply = 50; uint256 public constant maxMintLimit = 20; uint256 public constant numberOfTraits = 6; uint256 internal constant traitWeighting = 1000; uint8[][numberOfTraits] internal traitProbabilities; string[numberOfTraits] internal traitCategories; string[][numberOfTraits] internal traitNames; // DNA is the root random number generated by Chainlink mapping(uint256 => uint256) public monsterBlocksDna; mapping(bytes32 => uint256[]) internal vrfRequestIds; mapping(uint256 => uint256[]) internal stacks; mapping(uint256 => bool) internal baseBrickFlourishOverrides; mapping(uint256 => bool) internal middleBrickFlourishOverrides; mapping(uint256 => bool) internal topBrickFlourishOverrides; mapping(address => uint256) internal amountPreMintableByAddress; /* Pre-Minting Reward your earliest supporters! */ event PreMintingPaused(address account); event PreMintingUnpaused(address account); bool private _preMintingPaused; function preMintingPaused() public view virtual returns (bool) { return _preMintingPaused; } function pausePreMinting() public onlyOwner { _preMintingPaused = true; emit PreMintingPaused(_msgSender()); } function unpausePreMinting() public onlyOwner { _preMintingPaused = false; emit PreMintingUnpaused(_msgSender()); } function preMintMonsterBlock(uint256 _quantity, uint256 _deadline) external payable nonReentrant { require(!preMintingPaused(), "Pre-minting paused"); require(totalMinted + _quantity < maxSupply + 1, "Not enough left"); require(_quantity < amountPreMintableByAddress[msg.sender] + 1, "Cannot pre-mint this many"); require(NFTMintPrice * _quantity <= msg.value, "Not enough ETH"); amountPreMintableByAddress[msg.sender] -= _quantity; customerMintMonsterBlock(_quantity, _deadline); } function pushPreMinters(address[] memory _preMinters, uint256[] memory _amounts) external onlyOwner whenPaused { require(_preMinters.length == _amounts.length); for(uint8 i = 0; i < _amounts.length; i++) { amountPreMintableByAddress[_preMinters[i]] = amountPreMintableByAddress[_preMinters[i]] + _amounts[i]; } } function getAmountPreMintable(address _userAddress) public view returns (uint256 amountPreMintable) { amountPreMintable = amountPreMintableByAddress[_userAddress]; } /* Owner Minting Allow a small number of pre-mints without ETH payment required */ function ownerMintMonsterBlocks(uint256 _quantity) external onlyOwner { require(totalMinted + _quantity < maxSupply + 1, "Not enough left"); require(totalMintedByOwner + _quantity <= maxOwnerMintedSupply, "Not enough left"); require(_quantity < maxMintLimit + 1, "Max mint is 20"); totalMintedByOwner += _quantity; mintMonsterBlock(_quantity); } /* Regular Minting */ event GenerateMonsterBlock( uint256 tokenId ); event UpdateMonsterBlock( uint256 indexed id, uint256 dna ); function generateMonsterBlock(uint256 _quantity, uint256 _deadline) external payable whenNotPaused nonReentrant { require(totalMinted + _quantity < maxSupply + 1, "Not enough left"); require(_quantity < maxMintLimit + 1, "Max mint is 20"); require(NFTMintPrice * _quantity <= msg.value, "Not enough ETH"); customerMintMonsterBlock(_quantity, _deadline); } function customerMintMonsterBlock(uint256 _quantity, uint256 _deadline) internal { /* Every Chainlink call can be used to generate many random numbers However, the gas limit for callbacks is 200k To balance cost with reliability, use one Chainlink call for every 5 mints */ uint256 vrfRequestsNeeded = (_quantity + 4) / 5; address[] memory path = new address[](2); path[0] = uniswapRouter.WETH(); path[1] = LinkToken; uniswapRouter.swapETHForExactTokens { value: msg.value } (LinkFee * vrfRequestsNeeded, path, address(this), _deadline); require(LINK.balanceOf(address(this)) >= LinkFee * vrfRequestsNeeded, "Not enough LINK"); mintMonsterBlock(_quantity); } function mintMonsterBlock(uint256 _quantity) internal { totalMinted += _quantity; bytes32 requestId; for (uint8 i = 0; i < _quantity; i++) { _tokenIds.increment(); if (i % 5 == 0) { // New Chainlink call for every five mints requestId = requestRandomness(keyHash, LinkFee); } vrfRequestIds[requestId].push(_tokenIds.current()); _safeMint(msg.sender, _tokenIds.current()); stacks[_tokenIds.current()] = [_tokenIds.current()]; emit GenerateMonsterBlock(_tokenIds.current()); } } /* Stacking Choose a top and bottom block (or tower), burn them and create a new tower */ event StackMonsterBlock( uint256 tokenId1, uint256 tokenId2, uint256 resultTokenId ); function engageStackinator(uint256 _bottomToken, uint256 _topToken) external nonReentrant { require(_exists(_bottomToken), "Bottom token does not exist"); require(_exists(_topToken), "Top token does not exist"); require(_isApprovedOrOwner(msg.sender, _bottomToken), "Not approved for bottom token"); require(_isApprovedOrOwner(msg.sender, _topToken), "Not approved for top token"); require(_bottomToken != _topToken, "Tokens cannot be the same"); require(stacks[_bottomToken].length > 1 || monsterBlocksDna[_bottomToken] != 0, "No traits for bottom token yet"); require(stacks[_topToken].length > 1 || monsterBlocksDna[_topToken] != 0, "No traits for top token yet"); _tokenIds.increment(); _burn(_bottomToken); _burn(_topToken); _safeMint(msg.sender, _tokenIds.current()); for (uint8 i = 0; i < stacks[_bottomToken].length; i++) { stacks[_tokenIds.current()].push(stacks[_bottomToken][i]); } for (uint8 i = 0; i < stacks[_topToken].length; i++) { stacks[_tokenIds.current()].push(stacks[_topToken][i]); } emit StackMonsterBlock(_bottomToken, _topToken, _tokenIds.current()); } /* Constructor */ constructor(address _withdrawContract, address _giveWellAddress, address _charityWalletAddress) ERC721("MonsterBlocks", "MONSTERBLOCK") VRFConsumerBase(VRFCoordinator, LinkToken) { uniswapRouter = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); withdrawContract = _withdrawContract; giveWellAddress = _giveWellAddress; charityWalletAddress = _charityWalletAddress; // Start in paused sale state pauseSale(); pausePreMinting(); setBaseURI('https://api.monsterblocks.io/metadata/'); traitProbabilities[0] = [1, 4, 10, 17, 20, 4, 17, 17, 17, 17, 4, 17, 17, 20, 17, 17, 17, 10, 17, 17, 10, 17, 17, 3, 17, 17, 10, 17, 20, 17, 17, 17, 17, 17, 8, 17, 19, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 2, 17, 8, 17, 17, 17, 10, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 3, 17, 17, 1]; traitCategories[0] = "Base Brick"; traitProbabilities[1] = [12, 10, 3, 10, 12, 12, 7, 13, 14, 12, 12, 12, 7, 12, 10, 12, 12, 15, 4, 12, 12, 6, 12, 2, 2, 12, 12, 12, 12, 12, 12, 12, 12, 10, 15, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 15, 12, 12, 12, 12, 12, 15, 12, 12, 12, 12, 12, 15, 12, 12, 12, 12, 15, 6, 3, 12, 12, 12, 15, 12, 6, 12, 15, 12, 12, 12, 12, 14, 6, 12, 12, 12, 8, 12, 12, 15, 14, 14]; traitCategories[1] = "Middle Brick"; traitProbabilities[2] = [2, 12, 10, 4, 10, 12, 12, 7, 12, 14, 12, 12, 12, 7, 12, 10, 12, 12, 14, 4, 12, 12, 6, 12, 4, 4, 12, 12, 12, 12, 12, 12, 12, 12, 10, 14, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 14, 12, 12, 12, 12, 12, 14, 12, 12, 12, 12, 12, 14, 12, 12, 12, 12, 13, 6, 3, 12, 12, 12, 14, 12, 6, 12, 15, 12, 12, 12, 12, 14, 6, 12, 12, 12, 8, 12, 12, 15, 15, 15]; traitCategories[2] = "Top Brick"; traitProbabilities[3] = [19, 19, 19, 19, 19, 22, 19, 19, 3, 19, 15, 19, 20, 22, 19, 19, 19, 19, 22, 15, 19, 19, 19, 3, 19, 19, 22, 10, 3, 3, 19, 19, 19, 9, 19, 22, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 2, 22, 19, 19, 19, 9, 19, 19, 22, 10, 19, 22, 0]; traitCategories[3] = "Base Flourish"; traitProbabilities[4] = [19, 19, 19, 19, 19, 22, 19, 19, 3, 19, 15, 19, 20, 22, 19, 19, 19, 19, 22, 15, 19, 19, 19, 3, 19, 19, 22, 10, 3, 3, 19, 19, 19, 9, 19, 22, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 2, 22, 19, 19, 19, 9, 19, 19, 22, 10, 19, 22, 0]; traitCategories[4] = "Middle Flourish"; traitProbabilities[5] = [19, 19, 19, 19, 19, 22, 19, 19, 3, 19, 15, 19, 20, 22, 19, 19, 19, 19, 22, 15, 19, 19, 19, 3, 19, 19, 22, 10, 3, 3, 19, 19, 19, 9, 19, 22, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 2, 22, 19, 19, 19, 9, 19, 19, 22, 10, 19, 22, 0]; traitCategories[5] = "Top Flourish"; traitNames[0] = [ 'Multivac', 'Purple Hallucinogenic Frog', 'Green Hallucinogenic Frog', 'A Shrewd Mind', 'Sorrowful Wyvern', 'Golden Sorrowful Wyvern', 'Blue Bull', 'Pink Bull', 'Crawling Skull', 'Fly Statue', 'Frothy Waterkin', 'Currish Lifter', 'Craven Maltworm', 'Mammering Moldwarp', 'Doghearted Hermit', 'Saucy Measle', 'Salacious Lewdster', 'Golden Vigilant Gator', 'Vigilant Gator', 'Primordial Pigdog', 'The Butcher', 'Gnarly Vegetation', 'Unwanted Octopus', 'Albino Neighborly Chameleon', 'Neighborly Chameleon', 'Red Squeamish Behemoth', 'Stone Squeamish Behemoth', 'Turquoise Squeamish Behemoth', 'Orange Lethargic Giraffe', 'Green Lethargic Giraffe', 'Green Pensive Serpent', 'Blue Pensive Serpent', 'Green Beleaguered Troll', 'Orange Beleaguered Troll', 'Gold Contemplative Grizzly', 'Stone Contemplative Grizzly', 'Burdened Hobgoblin', 'Turquoise Militarized Rodent', 'Amber Militarized Rodent', 'Concrete Militarized Rodent', 'Shielded Goblin', 'Welcoming Demon', 'Blue Paralyzed Bull', 'Brown Paralyzed Bull', 'Yellow Weaponized Hare', 'Green Weaponized Hare', 'Obedient Reptile', 'Red Phillip', 'Somber Ouroboros', 'Degenerate Collector', 'Despondent Skeleton', 'Merry Beast', 'Guffawing Skull', 'Golden Guffawing Skull', 'Gleeking Footlicker', 'Gorbellied Varlet', 'Frothy Wagtail', 'Red Lumpish Vassal', 'Grey Lumpish Vassal', 'Batfowl Statue', 'Milk Livered Scoundrel', 'Paunchy Chum', 'Boxed Cat', 'Masked Troll', 'Henrique', 'Frogwig', 'Flexible Menace', 'Shameful Troll' ]; traitNames[1] = [ 'Welcoming Palms', 'Volcanic Eruption', 'Vile Spider', 'Sluggish Tiger', 'Peculiar Seahorse', 'Intimidating Amphibian', 'Hostile Beetle', 'Golden Hound', 'Extinct Losers', 'Chunky Shark', 'Brown Hound', 'Cantankerous Snapper', 'Bodacious Twins', 'Paranoid Rex', 'Meek Triceratops', 'Contemplative Kiwi', 'Haughty Eagle', 'Squished Elephant', 'Jaded Cellmates', 'Angler Fish', 'Counterfeit Sphinx', 'Happy Meal Crown', 'Primitive Salamander', 'Trifling Hornrat', 'Ectoplasm', 'Red Grisly Harpy', 'Green Grisly Harpy', 'Stone Grisly Harpy', 'Yellow Frantic Coyote', 'Blue Frantic Coyote', 'Stone Petrified Owl', 'Amber Petrified Owl', 'Burrowing Reptile', 'Purple Space Walrus', 'Stone Space Walrus', 'Jolly Martian', 'Cement Irate Swine', 'Red Irate Swine', 'Plague Rat', 'Wooden Crate', 'Red Euphoric Pond Scum', 'Green Euphoric Pond Scum', 'Red Pipsqueak', 'Blue Pipsqueak', 'Worried Tiki', 'Sedated Ogre', 'Medicated Druid', 'Yellow Ecstatic Shrew', 'Green Ecstatic Shrew', 'Green Prancing Lurker', 'Stone Prancing Lurker', 'Forlorn Shaman', 'Marbled Moth', 'Piggish Vicar', 'Red Paltry Soothsayer', 'Green Paltry Soothsayer', 'Red Moon Hound', 'Yellow Moon Hound', 'Unsightly Vermin', 'Anonymous Eyeball', 'Weather Satellite', 'Treasure Chest', 'Thingamajig', 'Tesla Coil', 'Supreme Cyborg', 'Precious Crystals', 'Ice Cube', 'Decommissioned Cyborg', 'Comet Kohoutek', 'Boring Columns', 'Log', 'Quizzical Pig', 'Omnipotent Mutant', 'Psychedelic Bison', 'Scrunched Brain', 'Concerned Loaf', 'Uncultured Swine', 'Cyclone', 'Barrel of Fungible Tokens', 'Blue Odious Bird', 'Clumsy Eavesdropper', 'Disembodied Mouth', 'Just Some Bricks', 'Metallic Odious Bird', 'Putrid Underling', 'Useless Machine', 'Irritated Aardvark', 'Hungry Komodo' ]; traitNames[2] = [ 'Gold Bullion', 'Welcoming Palms', 'Volcanic Eruption', 'Vile Spider', 'Sluggish Tiger', 'Peculiar Seahorse', 'Intimidating Amphibian', 'Hostile Beetle', 'Golden Hound', 'Extinct Losers', 'Chunky Shark', 'Brown Hound', 'Cantankerous Snapper', 'Bodacious Twins', 'Paranoid Rex', 'Meek Triceratops', 'Contemplative Kiwi', 'Haughty Eagle', 'Squished Elephant', 'Jaded Cellmates', 'Angler Fish', 'Counterfeit Sphinx', 'Happy Meal Crown', 'Primitive Salamander', 'Trifling Hornrat', 'Ectoplasm', 'Red Grisly Harpy', 'Green Grisly Harpy', 'Stone Grisly Harpy', 'Yellow Frantic Coyote', 'Blue Frantic Coyote', 'Stone Petrified Owl', 'Amber Petrified Owl', 'Burrowing Reptile', 'Purple Space Walrus', 'Stone Space Walrus', 'Jolly Martian', 'Cement Irate Swine', 'Red Irate Swine', 'Plague Rat', 'Wooden Crate', 'Red Euphoric Pond Scum', 'Green Euphoric Pond Scum', 'Red Pipsqueak', 'Blue Pipsqueak', 'Worried Tiki', 'Sedated Ogre', 'Medicated Druid', 'Yellow Ecstatic Shrew', 'Green Ecstatic Shrew', 'Green Prancing Lurker', 'Stone Prancing Lurker', 'Forlorn Shaman', 'Marbled Moth', 'Piggish Vicar', 'Red Paltry Soothsayer', 'Green Paltry Soothsayer', 'Red Moon Hound', 'Yellow Moon Hound', 'Unsightly Vermin', 'Anonymous Eyeball', 'Weather Satellite', 'Treasure Chest', 'Thingamajig', 'Tesla Coil', 'Supreme Cyborg', 'Precious Crystals', 'Ice Cube', 'Decommissioned Cyborg', 'Comet Kohoutek', 'Boring Columns', 'Log', 'Quizzical Pig', 'Omnipotent Mutant', 'Psychedelic Bison', 'Scrunched Brain', 'Concerned Loaf', 'Uncultured Swine', 'Cyclone', 'Barrel of Fungible Tokens', 'Blue Odious Bird', 'Clumsy Eavesdropper', 'Disembodied Mouth', 'Just Some Bricks', 'Metallic Odious Bird', 'Putrid Underling', 'Useless Machine', 'Irritated Aardvark', 'Hungry Komodo' ]; string[59] memory flourishTraits = [ 'Stone Stern Fists', 'Blue Stern Fists', 'Orange Stern Fists', 'Green Depressive Lizard', 'Stone Depressive Lizard', 'Vengeful Dagger', 'Precious Little Antlers', 'Prominent Rooster', 'Gilded Wings', 'Cretinous Gargoyle', 'A Real Spark', 'Royal Flourish', 'Morning Star', 'Lush Foliage', 'Glorious Flappers', 'Fairy Ears', 'Expensive Gizmo', 'Dragonly Wings', 'Broad Sword', 'Bear Claw', 'Cool Hands', 'Nice Flippers', 'Feet', 'Sumptuous Amethyst', 'Primitive Clubs', 'Enticing Antennae', 'Raptor Claws', 'Skeleton Shield', 'Sick Flames', 'Rad Axe', 'Nice Leaves', 'Mother Nature', 'Decent Horns', 'Detached Eyeball', 'Impressive Pointers', 'Butterfly Wings', 'Fortified Spikes', 'Skeletal Wings', 'Tongue', 'Tentacles', 'Sumptuous Cactus', 'Skinless Wings', 'Satellite Dishes', 'Roman Columns', 'Ram Horns', 'Ominous Cloud', 'Night and Day', 'Mounted Cannons', 'Mortal Chameleon', 'Helpful Hands', 'Green Feelers', 'Fishmonger Hands', 'Disapproving Eyes', 'Delightful Wings', 'Crocodile Mouths', 'Cheap Ghost', 'Buzzsaws', 'Blue Whiskers', 'None' ]; traitNames[3] = flourishTraits; traitNames[4] = flourishTraits; traitNames[5] = flourishTraits; for (uint256 i = 0; i < 25; i++) { baseBrickFlourishOverrides[i] = true; } for (uint256 i = 0; i < 25; i++) { middleBrickFlourishOverrides[i] = true; } for (uint256 i = 0; i < 26; i++) { topBrickFlourishOverrides[i] = true; } } /* Utility & Metadata */ function latestSerialNumber() external view returns (uint256) { return _tokenIds.current(); } function traitMetadata(uint256 _tokenId) external view returns (string memory) { require(stacks[_tokenId].length > 1 || monsterBlocksDna[_tokenId] != 0, "No DNA yet"); string memory resultString = '{'; for (uint8 i = 0; i < stacks[_tokenId].length; i++) { uint256[numberOfTraits] memory mintedTraits; for (uint8 j = 0; j < numberOfTraits; j++) { mintedTraits[j] = getMintedTrait(stacks[_tokenId][i], j); } // Override traits with no flourish if (baseBrickFlourishOverrides[mintedTraits[0]]) { mintedTraits[3] = traitProbabilities[3].length - 1; } if (middleBrickFlourishOverrides[mintedTraits[1]]) { mintedTraits[4] = traitProbabilities[4].length - 1; } if (topBrickFlourishOverrides[mintedTraits[2]]) { mintedTraits[5] = traitProbabilities[5].length - 1; } for (uint8 j = 0; j < numberOfTraits; j++) { if (i > 0 || j > 0) { resultString = strConcat(resultString, ', '); } resultString = strConcat(resultString, '"'); resultString = strConcat(resultString, traitCategories[j]); resultString = strConcat(resultString, '": "'); resultString = strConcat(resultString, traitNames[j][mintedTraits[j]]); resultString = strConcat(resultString, '"'); } } resultString = strConcat(resultString, stackMetadata(_tokenId)); resultString = strConcat(resultString, ', "Tower Height": "'); resultString = strConcat(resultString, Strings.toString(stacks[_tokenId].length)); resultString = strConcat(resultString, '"'); return strConcat(resultString, '}'); } function getMintedTrait(uint256 _tokenId, uint8 _traitIndex) internal view returns (uint256) { uint256 currentWeight = traitWeighting; uint256 dnaModuloWeight = (uint256(keccak256(abi.encode(monsterBlocksDna[_tokenId], _traitIndex + 1))) % currentWeight) + 1; for (uint8 j = 0; j < traitProbabilities[_traitIndex].length; j++) { currentWeight -= traitProbabilities[_traitIndex][j]; if (dnaModuloWeight > currentWeight) { return j; } } return traitProbabilities[_traitIndex].length - 1; } function stackMetadata(uint256 _tokenId) internal view returns (string memory) { string memory resultString = ''; if (stacks[_tokenId].length < 2) { return resultString; } for (uint8 i = 0; i < stacks[_tokenId].length; i++) { resultString = strConcat(resultString, ', "Token '); resultString = strConcat(resultString, Strings.toString(i + 1)); resultString = strConcat(resultString, '": "'); resultString = strConcat(resultString, Strings.toString(stacks[_tokenId][i])); resultString = strConcat(resultString, '"'); } return resultString; } /* Chainlink */ function setLinkFee(uint256 _LinkFee) external onlyOwner { LinkFee = _LinkFee; } function fulfillRandomness(bytes32 _requestId, uint256 _randomNumber) internal override { for (uint8 i = 0; i < vrfRequestIds[_requestId].length; i++) { uint256 blockDna; if (i == 0) { blockDna = _randomNumber; } else { blockDna = uint256(keccak256(abi.encode(_randomNumber, numberOfTraits * i))); } monsterBlocksDna[vrfRequestIds[_requestId][i]] = blockDna; emit UpdateMonsterBlock(vrfRequestIds[_requestId][i], blockDna); } } // Fail-safe in case Chainlink callback fails - hopefully never required function retryChainlinkRequest(uint256 _tokenId) external onlyOwner { require(_exists(_tokenId), "Token does not exist"); require(monsterBlocksDna[_tokenId] == 0, "Already has DNA set - cannot be changed"); require(LINK.balanceOf(address(this)) >= LinkFee, "Not enough LINK"); bytes32 requestId = requestRandomness(keyHash, LinkFee); vrfRequestIds[requestId].push(_tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../interfaces/LinkTokenInterface.sol"; import "./VRFRequestIDBase.sol"; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constuctor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator, _link) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash), and have told you the minimum LINK * @dev price for VRF service. Make sure your contract has sufficient LINK, and * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you * @dev want to generate randomness from. * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomness method. * * @dev The randomness argument to fulfillRandomness is the actual random value * @dev generated from your seed. * * @dev The requestId argument is generated from the keyHash and the seed by * @dev makeRequestId(keyHash, seed). If your contract could have concurrent * @dev requests open, you can use the requestId to track which seed is * @dev associated with which randomness. See VRFRequestIDBase.sol for more * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously.) * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. (Which is critical to making unpredictable randomness! See the * @dev next section.) * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the ultimate input to the VRF is mixed with the block hash of the * @dev block in which the request is made, user-provided seeds have no impact * @dev on its economic security properties. They are only included for API * @dev compatability with previous versions of this contract. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. */ abstract contract VRFConsumerBase is VRFRequestIDBase { /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBase expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomness the VRF output */ function fulfillRandomness( bytes32 requestId, uint256 randomness ) internal virtual; /** * @dev In order to keep backwards compatibility we have kept the user * seed field around. We remove the use of it because given that the blockhash * enters later, it overrides whatever randomness the used seed provides. * Given that it adds no security, and can easily lead to misunderstandings, * we have removed it from usage and can now provide a simpler API. */ uint256 constant private USER_SEED_PLACEHOLDER = 0; /** * @notice requestRandomness initiates a request for VRF output given _seed * * @dev The fulfillRandomness method receives the output, once it's provided * @dev by the Oracle, and verified by the vrfCoordinator. * * @dev The _keyHash must already be registered with the VRFCoordinator, and * @dev the _fee must exceed the fee specified during registration of the * @dev _keyHash. * * @dev The _seed parameter is vestigial, and is kept only for API * @dev compatibility with older versions. It can't *hurt* to mix in some of * @dev your own randomness, here, but it's not necessary because the VRF * @dev oracle will mix the hash of the block containing your request into the * @dev VRF seed it ultimately uses. * * @param _keyHash ID of public key against which randomness is generated * @param _fee The amount of LINK to send with the request * * @return requestId unique ID for this request * * @dev The returned requestId can be used to distinguish responses to * @dev concurrent requests. It is passed as the first argument to * @dev fulfillRandomness. */ function requestRandomness( bytes32 _keyHash, uint256 _fee ) internal returns ( bytes32 requestId ) { LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER)); // This is the seed passed to VRFCoordinator. The oracle will mix this with // the hash of the block containing this request to obtain the seed/input // which is finally passed to the VRF cryptographic machinery. uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]); // nonces[_keyHash] must stay in sync with // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest). // This provides protection against the user repeating their input seed, // which would result in a predictable/duplicate output, if multiple such // requests appeared in the same block. nonces[_keyHash] = nonces[_keyHash] + 1; return makeRequestId(_keyHash, vRFSeed); } LinkTokenInterface immutable internal LINK; address immutable private vrfCoordinator; // Nonces for each VRF key from which randomness has been requested. // // Must stay in sync with VRFCoordinator[_keyHash][this] mapping(bytes32 /* keyHash */ => uint256 /* nonce */) private nonces; /** * @param _vrfCoordinator address of VRFCoordinator contract * @param _link address of LINK token contract * * @dev https://docs.chain.link/docs/link-token-contracts */ constructor( address _vrfCoordinator, address _link ) { vrfCoordinator = _vrfCoordinator; LINK = LinkTokenInterface(_link); } // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomness( bytes32 requestId, uint256 randomness ) external { require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill"); fulfillRandomness(requestId, randomness); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract VRFRequestIDBase { /** * @notice returns the seed which is actually input to the VRF coordinator * * @dev To prevent repetition of VRF output due to repetition of the * @dev user-supplied seed, that seed is combined in a hash with the * @dev user-specific nonce, and the address of the consuming contract. The * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in * @dev the final seed, but the nonce does protect against repetition in * @dev requests which are included in a single block. * * @param _userSeed VRF seed input provided by user * @param _requester Address of the requesting contract * @param _nonce User-specific nonce at the time of the request */ function makeVRFInputSeed( bytes32 _keyHash, uint256 _userSeed, address _requester, uint256 _nonce ) internal pure returns ( uint256 ) { return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce))); } /** * @notice Returns the id for this request * @param _keyHash The serviceAgreement ID to be used for this request * @param _vRFInputSeed The seed to be passed directly to the VRF * @return The id for this request * * @dev Note that _vRFInputSeed is not the seed passed by the consuming * @dev contract, but the one generated by makeVRFInputSeed */ function makeRequestId( bytes32 _keyHash, uint256 _vRFInputSeed ) internal pure returns ( bytes32 ) { return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface LinkTokenInterface { function allowance( address owner, address spender ) external view returns ( uint256 remaining ); function approve( address spender, uint256 value ) external returns ( bool success ); function balanceOf( address owner ) external view returns ( uint256 balance ); function decimals() external view returns ( uint8 decimalPlaces ); function decreaseApproval( address spender, uint256 addedValue ) external returns ( bool success ); function increaseApproval( address spender, uint256 subtractedValue ) external; function name() external view returns ( string memory tokenName ); function symbol() external view returns ( string memory tokenSymbol ); function totalSupply() external view returns ( uint256 totalTokensIssued ); function transfer( address to, uint256 value ) external returns ( bool success ); function transferAndCall( address to, uint256 value, bytes calldata data ) external returns ( bool success ); function transferFrom( address from, address to, uint256 value ) external returns ( bool success ); }
// 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor () { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping (uint256 => address) private _owners; // Mapping owner address to token count mapping (address => uint256) private _balances; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden * in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } }
// 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 "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping (uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// 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; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "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] = alphabet[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); }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Address.sol"; abstract contract MonsterBlockCoreERC721 is ERC721, ERC721Burnable, ERC721Enumerable, ERC721URIStorage, Pausable, Ownable, ReentrancyGuard { string public baseURI; address internal withdrawContract; address internal giveWellAddress; address internal charityWalletAddress; function strConcat(string memory _a, string memory _b) internal pure returns(string memory) { return string(abi.encodePacked(bytes(_a), bytes(_b))); } function pauseSale() public onlyOwner { _pause(); } function unpauseSale() public onlyOwner { _unpause(); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function setTokenURI(uint256 _tokenId, string memory _tokenURI) public onlyOwner { _setTokenURI(_tokenId, _tokenURI); } function setBaseURI(string memory baseURI_) public onlyOwner { baseURI = baseURI_; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function withdraw() public onlyOwner { // 10% to GiveWell Maximum Impact Fund Address.sendValue(payable(giveWellAddress), address(this).balance / 10); // 5% to Charity Wallet Address.sendValue(payable(charityWalletAddress), address(this).balance * 5 / 90); // Remainder to withdrawal contract Address.sendValue(payable(withdrawContract), address(this).balance); } function withdrawTokens(IERC20 token) public onlyOwner { require(address(token) != address(0)); token.transfer(msg.sender, token.balanceOf(address(this))); } receive() external payable {} }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 5 }, "evmVersion": "petersburg", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_withdrawContract","type":"address"},{"internalType":"address","name":"_giveWellAddress","type":"address"},{"internalType":"address","name":"_charityWalletAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"GenerateMonsterBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"PreMintingPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"PreMintingUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId2","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"resultTokenId","type":"uint256"}],"name":"StackMonsterBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dna","type":"uint256"}],"name":"UpdateMonsterBlock","type":"event"},{"inputs":[],"name":"NFTMintPrice","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":"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bottomToken","type":"uint256"},{"internalType":"uint256","name":"_topToken","type":"uint256"}],"name":"engageStackinator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"}],"name":"generateMonsterBlock","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"name":"getAmountPreMintable","outputs":[{"internalType":"uint256","name":"amountPreMintable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestSerialNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxOwnerMintedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"monsterBlocksDna","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":"numberOfTraits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"ownerMintMonsterBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pausePreMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"}],"name":"preMintMonsterBlock","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"preMintingPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_preMinters","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"pushPreMinters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"retryChainlinkRequest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_LinkFee","type":"uint256"}],"name":"setLinkFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintedByOwner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"traitMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpausePreMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c060405260006013819055601455601680546001600160a01b031990811673f0d54349addcf704f77ae15b96510dea15cb7952179091556017805490911673514910771af9ca656af840dff83e8264ecf986ca1790557faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445601855671bc16d674ec800006019553480156200009357600080fd5b506040516200a7e83803806200a7e8833981016040819052620000b69162005e68565b601654601754604080518082018252600d81527f4d6f6e73746572426c6f636b730000000000000000000000000000000000000060208083019182528351808501909452600c84527f4d4f4e53544552424c4f434b00000000000000000000000000000000000000009084015281516001600160a01b039586169590941693919291620001469160009162005b44565b5080516200015c90600190602084019062005b44565b5050600b80546001600160a81b0319163361010081029190911790915560405190915081906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600c55606091821b6001600160601b031990811660a052911b1660805260158054737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031991821617909155600e805482166001600160a01b0386811691909117909155600f80548316858316179055601080549092169083161790556200022d62005920565b6200023762005983565b6200025b6040518060600160405280602681526020016200a7c26026913962005a24565b60408051610880810182526001808252600460208301819052600a93830184905260116060840181905260146080850181905260a0850183905260c0850182905260e0850182905261010085018290526101208501829052610140850192909252610160840181905261018084018190526101a084018290526101c084018190526101e08401819052610200840181905261022084018590526102408401819052610260840181905261028084018590526102a084018190526102c0840181905260036102e0850181905261030085018290526103208501829052610340850186905261036085018290526103808501929092526103a084018190526103c084018190526103e084018190526104008401819052610420840181905260086104408501819052610460850182905260136104808601526104a085018290526104c085018290526104e08501829052610500850182905261052085018290526105408501829052610560850182905261058085018290526105a085018290526105c0850182905260026105e086015261060085018290526106208501526106408401819052610660840181905261068084018190526106a08401949094526106c083018490526106e08301849052610700830184905261072083018490526107408301849052610760830184905261078083018490526107a083018490526107c083018490526107e0830184905261080083015261082082018390526108408201929092526108608101919091526200049890601a90604462005bd3565b506040518060400160405280600a81526020017f4261736520427269636b000000000000000000000000000000000000000000008152506020600060068110620004e657620004e662005f80565b019080519060200190620004fc92919062005b44565b5060408051610b0081018252600c808252600a602083018190526003938301849052606083018190526080830182905260a08301829052600760c08401819052600d60e0850152600e61010085018190526101208501849052610140850184905261016085018490526101808501919091526101a084018390526101c084018290526101e084018390526102008401839052600f610220850181905260046102408601526102608501849052610280850184905260066102a086018190526102c0860185905260026102e0870181905261030087015261032086018590526103408601859052610360860185905261038086018590526103a086018590526103c086018590526103e0860185905261040086018590526104208601939093526104408501819052610460850184905261048085018490526104a085018490526104c085018490526104e08501849052610500850184905261052085018490526105408501849052610560850184905261058085018490526105a085018190526105c085018490526105e08501849052610600850184905261062085018490526106408501849052610660850181905261068085018490526106a085018490526106c085018490526106e08501849052610700850184905261072085018190526107408501849052610760850184905261078085018490526107a085018490526107c085018190526107e0850183905261080085019590955261082084018390526108408401839052610860840183905261088084018590526108a084018390526108c084018290526108e08401839052610900840185905261092084018390526109408401839052610960840183905261098084018390526109a084018190526109c08401919091526109e08301829052610a008301829052610a2083018290526008610a40840152610a608301829052610a80830191909152610aa0820192909252610ac08101829052610ae0810191909152620007e090601b90605862005bd3565b506040518060400160405280600c81526020017f4d6964646c6520427269636b000000000000000000000000000000000000000081525060206001600681106200082e576200082e62005f80565b0190805190602001906200084492919062005b44565b5060408051610b208101825260028152600c60208201819052600a9282018390526004606083018190526080830184905260a0830182905260c08301829052600760e084018190526101008401839052600e61012085018190526101408501849052610160850184905261018085018490526101a08501919091526101c084018390526101e08401859052610200840183905261022084018390526102408401819052610260840182905261028084018390526102a0840183905260066102c085018190526102e0850184905261030085018390526103208501929092526103408401839052610360840183905261038084018390526103a084018390526103c084018390526103e0840183905261040084018390526104208401839052610440840194909452610460830184905261048083018290526104a083018290526104c083018290526104e08301829052610500830182905261052083018290526105408301829052610560830182905261058083018290526105a083018290526105c083018490526105e08301829052610600830182905261062083018290526106408301829052610660830182905261068083018490526106a083018290526106c083018290526106e08301829052610700830182905261072083018290526107408301849052610760830182905261078083018290526107a083018290526107c08301829052600d6107e0840152610800830181905260036108208401526108408301829052610860830182905261088083018290526108a083018490526108c083018290526108e083018190526109008301829052600f61092084018190526109408401839052610960840183905261098084018390526109a084018390526109c08401949094526109e0830152610a008201819052610a208201819052610a4082018190526008610a60830152610a808201819052610aa0820152610ac08101829052610ae08101829052610b0081019190915262000b2b90601c90605962005bd3565b506040518060400160405280600981526020017f546f7020427269636b0000000000000000000000000000000000000000000000815250602060026006811062000b795762000b7962005f80565b01908051906020019062000b8f92919062005b44565b5060408051610760810182526013808252602082018190529181018290526060810182905260808101829052601660a0820181905260c0820183905260e08201839052600361010083018190526101208301849052600f6101408401819052610160840185905260146101808501526101a084018390526101c084018590526101e0840185905261020084018590526102208401859052610240840183905261026084015261028083018490526102a083018490526102c083018490526102e08301819052610300830184905261032083018490526103408301829052600a610360840181905261038084018290526103a084018290526103c084018590526103e084018590526104008401859052600961042085018190526104408501869052610460850184905261048085018690526104a085018690526104c085018690526104e08501869052610500850186905261052085018690526105408501869052610560850186905261058085018690526105a0850186905260026105c08601526105e0850184905261060085018690526106208501869052610640850186905261066085015261068084018590526106a084018590526106c084018390526106e0840152610700830193909352610720820152600061074082015290601a9062000d7f92910190603b62005bd3565b506040518060400160405280600d81526020017f4261736520466c6f757269736800000000000000000000000000000000000000815250602060036006811062000dcd5762000dcd62005f80565b01908051906020019062000de392919062005b44565b5060408051610760810182526013808252602082018190529181018290526060810182905260808101829052601660a0820181905260c0820183905260e08201839052600361010083018190526101208301849052600f6101408401819052610160840185905260146101808501526101a084018390526101c084018590526101e0840185905261020084018590526102208401859052610240840183905261026084015261028083018490526102a083018490526102c083018490526102e08301819052610300830184905261032083018490526103408301829052600a610360840181905261038084018290526103a08401919091526103c083018490526103e083018490526104008301849052600961042084018190526104408401859052610460840183905261048084018590526104a084018590526104c084018590526104e08401859052610500840185905261052084018590526105408401859052610560840185905261058084018590526105a0840185905260026105c08501526105e0840183905261060084018590526106208401859052610640840185905261066084015261068083018490526106a083018490526106c083018290526106e0830152610700820192909252610720810191909152600061074082015262000fd390601e90603b62005bd3565b506040518060400160405280600f81526020017f4d6964646c6520466c6f75726973680000000000000000000000000000000000815250602060046006811062001021576200102162005f80565b0190805190602001906200103792919062005b44565b5060408051610760810182526013808252602082018190529181018290526060810182905260808101829052601660a0820181905260c0820183905260e08201839052600361010083018190526101208301849052600f6101408401819052610160840185905260146101808501526101a084018390526101c084018590526101e0840185905261020084018590526102208401859052610240840183905261026084015261028083018490526102a083018490526102c083018490526102e08301819052610300830184905261032083018490526103408301829052600a610360840181905261038084018290526103a08401919091526103c083018490526103e083018490526104008301849052600961042084018190526104408401859052610460840183905261048084018590526104a084018590526104c084018590526104e08401859052610500840185905261052084018590526105408401859052610560840185905261058084018590526105a0840185905260026105c08501526105e0840183905261060084018590526106208401859052610640840185905261066084015261068083018490526106a083018490526106c083018290526106e083015261070082019290925261072081019190915260006107408201526200122790601f90603b62005bd3565b506040518060400160405280600c81526020017f546f7020466c6f75726973680000000000000000000000000000000000000000815250602060056006811062001275576200127562005f80565b0190805190602001906200128b92919062005b44565b506040518061088001604052806040518060400160405280600881526020017f4d756c746976616300000000000000000000000000000000000000000000000081525081526020016040518060400160405280601a81526020017f507572706c652048616c6c7563696e6f67656e69632046726f6700000000000081525081526020016040518060400160405280601981526020017f477265656e2048616c6c7563696e6f67656e69632046726f670000000000000081525081526020016040518060400160405280600d81526020017f4120536872657764204d696e640000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f536f72726f7766756c2057797665726e0000000000000000000000000000000081525081526020016040518060400160405280601781526020017f476f6c64656e20536f72726f7766756c2057797665726e00000000000000000081525081526020016040518060400160405280600981526020017f426c75652042756c6c000000000000000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f50696e6b2042756c6c000000000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f437261776c696e6720536b756c6c00000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f466c79205374617475650000000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f46726f7468792057617465726b696e000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f43757272697368204c696674657200000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f43726176656e204d616c74776f726d000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f4d616d6d6572696e67204d6f6c6477617270000000000000000000000000000081525081526020016040518060400160405280601181526020017f446f6768656172746564204865726d697400000000000000000000000000000081525081526020016040518060400160405280600c81526020017f5361756379204d6561736c65000000000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f53616c6163696f7573204c65776473746572000000000000000000000000000081525081526020016040518060400160405280601581526020017f476f6c64656e20566967696c616e74204761746f72000000000000000000000081525081526020016040518060400160405280600e81526020017f566967696c616e74204761746f7200000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f5072696d6f726469616c20506967646f6700000000000000000000000000000081525081526020016040518060400160405280600b81526020017f546865204275746368657200000000000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f476e61726c792056656765746174696f6e00000000000000000000000000000081525081526020016040518060400160405280601081526020017f556e77616e746564204f63746f7075730000000000000000000000000000000081525081526020016040518060400160405280601b81526020017f416c62696e6f204e65696768626f726c79204368616d656c656f6e000000000081525081526020016040518060400160405280601481526020017f4e65696768626f726c79204368616d656c656f6e00000000000000000000000081525081526020016040518060400160405280601681526020017f5265642053717565616d69736820426568656d6f74680000000000000000000081525081526020016040518060400160405280601881526020017f53746f6e652053717565616d69736820426568656d6f7468000000000000000081525081526020016040518060400160405280601c81526020017f54757271756f6973652053717565616d69736820426568656d6f74680000000081525081526020016040518060400160405280601881526020017f4f72616e6765204c65746861726769632047697261666665000000000000000081525081526020016040518060400160405280601781526020017f477265656e204c6574686172676963204769726166666500000000000000000081525081526020016040518060400160405280601581526020017f477265656e2050656e736976652053657270656e74000000000000000000000081525081526020016040518060400160405280601481526020017f426c75652050656e736976652053657270656e7400000000000000000000000081525081526020016040518060400160405280601781526020017f477265656e2042656c65616775657265642054726f6c6c00000000000000000081525081526020016040518060400160405280601881526020017f4f72616e67652042656c65616775657265642054726f6c6c000000000000000081525081526020016040518060400160405280601a81526020017f476f6c6420436f6e74656d706c6174697665204772697a7a6c7900000000000081525081526020016040518060400160405280601b81526020017f53746f6e6520436f6e74656d706c6174697665204772697a7a6c79000000000081525081526020016040518060400160405280601281526020017f42757264656e656420486f62676f626c696e000000000000000000000000000081525081526020016040518060400160405280601c81526020017f54757271756f697365204d696c69746172697a656420526f64656e740000000081525081526020016040518060400160405280601881526020017f416d626572204d696c69746172697a656420526f64656e74000000000000000081525081526020016040518060400160405280601b81526020017f436f6e6372657465204d696c69746172697a656420526f64656e74000000000081525081526020016040518060400160405280600f81526020017f536869656c64656420476f626c696e000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f57656c636f6d696e672044656d6f6e000000000000000000000000000000000081525081526020016040518060400160405280601381526020017f426c756520506172616c797a65642042756c6c0000000000000000000000000081525081526020016040518060400160405280601481526020017f42726f776e20506172616c797a65642042756c6c00000000000000000000000081525081526020016040518060400160405280601681526020017f59656c6c6f7720576561706f6e697a656420486172650000000000000000000081525081526020016040518060400160405280601581526020017f477265656e20576561706f6e697a65642048617265000000000000000000000081525081526020016040518060400160405280601081526020017f4f62656469656e742052657074696c650000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f526564205068696c6c697000000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f536f6d626572204f75726f626f726f730000000000000000000000000000000081525081526020016040518060400160405280601481526020017f446567656e657261746520436f6c6c6563746f7200000000000000000000000081525081526020016040518060400160405280601381526020017f446573706f6e64656e7420536b656c65746f6e0000000000000000000000000081525081526020016040518060400160405280600b81526020017f4d6572727920426561737400000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f477566666177696e6720536b756c6c000000000000000000000000000000000081525081526020016040518060400160405280601681526020017f476f6c64656e20477566666177696e6720536b756c6c0000000000000000000081525081526020016040518060400160405280601381526020017f476c65656b696e6720466f6f746c69636b65720000000000000000000000000081525081526020016040518060400160405280601181526020017f476f7262656c6c696564205661726c657400000000000000000000000000000081525081526020016040518060400160405280600e81526020017f46726f746879205761677461696c00000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f526564204c756d706973682056617373616c000000000000000000000000000081525081526020016040518060400160405280601381526020017f47726579204c756d706973682056617373616c0000000000000000000000000081525081526020016040518060400160405280600e81526020017f426174666f776c2053746174756500000000000000000000000000000000000081525081526020016040518060400160405280601681526020017f4d696c6b204c6976657265642053636f756e6472656c0000000000000000000081525081526020016040518060400160405280600c81526020017f5061756e636879204368756d000000000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f426f78656420436174000000000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f4d61736b65642054726f6c6c000000000000000000000000000000000000000081525081526020016040518060400160405280600881526020017f48656e726971756500000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f46726f677769670000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f466c657869626c65204d656e616365000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f5368616d6566756c2054726f6c6c000000000000000000000000000000000000815250815250602660006006811062002259576200225962005f80565b6200226992910190604462005c7b565b5060405180610b0001604052806040518060400160405280600f81526020017f57656c636f6d696e672050616c6d73000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f566f6c63616e6963204572757074696f6e00000000000000000000000000000081525081526020016040518060400160405280600b81526020017f56696c652053706964657200000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f536c75676769736820546967657200000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f506563756c69617220536561686f72736500000000000000000000000000000081525081526020016040518060400160405280601681526020017f496e74696d69646174696e6720416d7068696269616e0000000000000000000081525081526020016040518060400160405280600e81526020017f486f7374696c6520426565746c6500000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f476f6c64656e20486f756e64000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f457874696e6374204c6f7365727300000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f4368756e6b7920536861726b000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f42726f776e20486f756e6400000000000000000000000000000000000000000081525081526020016040518060400160405280601481526020017f43616e74616e6b65726f757320536e617070657200000000000000000000000081525081526020016040518060400160405280600f81526020017f426f646163696f7573205477696e73000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f506172616e6f696420526578000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f4d65656b2054726963657261746f70730000000000000000000000000000000081525081526020016040518060400160405280601281526020017f436f6e74656d706c6174697665204b697769000000000000000000000000000081525081526020016040518060400160405280600d81526020017f48617567687479204561676c650000000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f537175697368656420456c657068616e7400000000000000000000000000000081525081526020016040518060400160405280600f81526020017f4a616465642043656c6c6d61746573000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f416e676c6572204669736800000000000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f436f756e7465726665697420537068696e78000000000000000000000000000081525081526020016040518060400160405280601081526020017f4861707079204d65616c2043726f776e0000000000000000000000000000000081525081526020016040518060400160405280601481526020017f5072696d69746976652053616c616d616e64657200000000000000000000000081525081526020016040518060400160405280601081526020017f547269666c696e6720486f726e7261740000000000000000000000000000000081525081526020016040518060400160405280600981526020017f4563746f706c61736d000000000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f52656420477269736c792048617270790000000000000000000000000000000081525081526020016040518060400160405280601281526020017f477265656e20477269736c79204861727079000000000000000000000000000081525081526020016040518060400160405280601281526020017f53746f6e6520477269736c79204861727079000000000000000000000000000081525081526020016040518060400160405280601581526020017f59656c6c6f77204672616e74696320436f796f7465000000000000000000000081525081526020016040518060400160405280601381526020017f426c7565204672616e74696320436f796f74650000000000000000000000000081525081526020016040518060400160405280601381526020017f53746f6e6520506574726966696564204f776c0000000000000000000000000081525081526020016040518060400160405280601381526020017f416d62657220506574726966696564204f776c0000000000000000000000000081525081526020016040518060400160405280601181526020017f427572726f77696e672052657074696c6500000000000000000000000000000081525081526020016040518060400160405280601381526020017f507572706c652053706163652057616c7275730000000000000000000000000081525081526020016040518060400160405280601281526020017f53746f6e652053706163652057616c727573000000000000000000000000000081525081526020016040518060400160405280600d81526020017f4a6f6c6c79204d61727469616e0000000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f43656d656e74204972617465205377696e65000000000000000000000000000081525081526020016040518060400160405280600f81526020017f526564204972617465205377696e65000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f506c61677565205261740000000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f576f6f64656e204372617465000000000000000000000000000000000000000081525081526020016040518060400160405280601681526020017f52656420457570686f72696320506f6e64205363756d0000000000000000000081525081526020016040518060400160405280601881526020017f477265656e20457570686f72696320506f6e64205363756d000000000000000081525081526020016040518060400160405280600d81526020017f5265642050697073717565616b0000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f426c75652050697073717565616b00000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f576f72726965642054696b69000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f53656461746564204f677265000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f4d6564696361746564204472756964000000000000000000000000000000000081525081526020016040518060400160405280601581526020017f59656c6c6f77204563737461746963205368726577000000000000000000000081525081526020016040518060400160405280601481526020017f477265656e20456373746174696320536872657700000000000000000000000081525081526020016040518060400160405280601581526020017f477265656e205072616e63696e67204c75726b6572000000000000000000000081525081526020016040518060400160405280601581526020017f53746f6e65205072616e63696e67204c75726b6572000000000000000000000081525081526020016040518060400160405280600e81526020017f466f726c6f726e205368616d616e00000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f4d6172626c6564204d6f7468000000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f506967676973682056696361720000000000000000000000000000000000000081525081526020016040518060400160405280601581526020017f5265642050616c74727920536f6f74687361796572000000000000000000000081525081526020016040518060400160405280601781526020017f477265656e2050616c74727920536f6f7468736179657200000000000000000081525081526020016040518060400160405280600e81526020017f526564204d6f6f6e20486f756e6400000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f59656c6c6f77204d6f6f6e20486f756e6400000000000000000000000000000081525081526020016040518060400160405280601081526020017f556e73696768746c79205665726d696e0000000000000000000000000000000081525081526020016040518060400160405280601181526020017f416e6f6e796d6f75732045796562616c6c00000000000000000000000000000081525081526020016040518060400160405280601181526020017f5765617468657220536174656c6c69746500000000000000000000000000000081525081526020016040518060400160405280600e81526020017f547265617375726520436865737400000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f5468696e67616d616a696700000000000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f5465736c6120436f696c0000000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f53757072656d65204379626f726700000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f50726563696f7573204372797374616c7300000000000000000000000000000081525081526020016040518060400160405280600881526020017f496365204375626500000000000000000000000000000000000000000000000081525081526020016040518060400160405280601581526020017f4465636f6d6d697373696f6e6564204379626f7267000000000000000000000081525081526020016040518060400160405280600e81526020017f436f6d6574204b6f686f7574656b00000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f426f72696e6720436f6c756d6e7300000000000000000000000000000000000081525081526020016040518060400160405280600381526020017f4c6f67000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f5175697a7a6963616c205069670000000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f4f6d6e69706f74656e74204d7574616e7400000000000000000000000000000081525081526020016040518060400160405280601181526020017f50737963686564656c6963204269736f6e00000000000000000000000000000081525081526020016040518060400160405280600f81526020017f536372756e6368656420427261696e000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f436f6e6365726e6564204c6f616600000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f556e63756c7475726564205377696e650000000000000000000000000000000081525081526020016040518060400160405280600781526020017f4379636c6f6e650000000000000000000000000000000000000000000000000081525081526020016040518060400160405280601981526020017f42617272656c206f662046756e6769626c6520546f6b656e730000000000000081525081526020016040518060400160405280601081526020017f426c7565204f64696f757320426972640000000000000000000000000000000081525081526020016040518060400160405280601381526020017f436c756d737920456176657364726f707065720000000000000000000000000081525081526020016040518060400160405280601181526020017f446973656d626f64696564204d6f75746800000000000000000000000000000081525081526020016040518060400160405280601081526020017f4a75737420536f6d6520427269636b730000000000000000000000000000000081525081526020016040518060400160405280601481526020017f4d6574616c6c6963204f64696f7573204269726400000000000000000000000081525081526020016040518060400160405280601081526020017f50757472696420556e6465726c696e670000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f5573656c657373204d616368696e65000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f49727269746174656420416172647661726b000000000000000000000000000081525081526020016040518060400160405280600d81526020017f48756e677279204b6f6d6f646f000000000000000000000000000000000000008152508152506026600160068110620036d357620036d362005f80565b620036e392910190605862005cdb565b5060405180610b2001604052806040518060400160405280600c81526020017f476f6c642042756c6c696f6e000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f57656c636f6d696e672050616c6d73000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f566f6c63616e6963204572757074696f6e00000000000000000000000000000081525081526020016040518060400160405280600b81526020017f56696c652053706964657200000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f536c75676769736820546967657200000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f506563756c69617220536561686f72736500000000000000000000000000000081525081526020016040518060400160405280601681526020017f496e74696d69646174696e6720416d7068696269616e0000000000000000000081525081526020016040518060400160405280600e81526020017f486f7374696c6520426565746c6500000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f476f6c64656e20486f756e64000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f457874696e6374204c6f7365727300000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f4368756e6b7920536861726b000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f42726f776e20486f756e6400000000000000000000000000000000000000000081525081526020016040518060400160405280601481526020017f43616e74616e6b65726f757320536e617070657200000000000000000000000081525081526020016040518060400160405280600f81526020017f426f646163696f7573205477696e73000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f506172616e6f696420526578000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f4d65656b2054726963657261746f70730000000000000000000000000000000081525081526020016040518060400160405280601281526020017f436f6e74656d706c6174697665204b697769000000000000000000000000000081525081526020016040518060400160405280600d81526020017f48617567687479204561676c650000000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f537175697368656420456c657068616e7400000000000000000000000000000081525081526020016040518060400160405280600f81526020017f4a616465642043656c6c6d61746573000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f416e676c6572204669736800000000000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f436f756e7465726665697420537068696e78000000000000000000000000000081525081526020016040518060400160405280601081526020017f4861707079204d65616c2043726f776e0000000000000000000000000000000081525081526020016040518060400160405280601481526020017f5072696d69746976652053616c616d616e64657200000000000000000000000081525081526020016040518060400160405280601081526020017f547269666c696e6720486f726e7261740000000000000000000000000000000081525081526020016040518060400160405280600981526020017f4563746f706c61736d000000000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f52656420477269736c792048617270790000000000000000000000000000000081525081526020016040518060400160405280601281526020017f477265656e20477269736c79204861727079000000000000000000000000000081525081526020016040518060400160405280601281526020017f53746f6e6520477269736c79204861727079000000000000000000000000000081525081526020016040518060400160405280601581526020017f59656c6c6f77204672616e74696320436f796f7465000000000000000000000081525081526020016040518060400160405280601381526020017f426c7565204672616e74696320436f796f74650000000000000000000000000081525081526020016040518060400160405280601381526020017f53746f6e6520506574726966696564204f776c0000000000000000000000000081525081526020016040518060400160405280601381526020017f416d62657220506574726966696564204f776c0000000000000000000000000081525081526020016040518060400160405280601181526020017f427572726f77696e672052657074696c6500000000000000000000000000000081525081526020016040518060400160405280601381526020017f507572706c652053706163652057616c7275730000000000000000000000000081525081526020016040518060400160405280601281526020017f53746f6e652053706163652057616c727573000000000000000000000000000081525081526020016040518060400160405280600d81526020017f4a6f6c6c79204d61727469616e0000000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f43656d656e74204972617465205377696e65000000000000000000000000000081525081526020016040518060400160405280600f81526020017f526564204972617465205377696e65000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f506c61677565205261740000000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f576f6f64656e204372617465000000000000000000000000000000000000000081525081526020016040518060400160405280601681526020017f52656420457570686f72696320506f6e64205363756d0000000000000000000081525081526020016040518060400160405280601881526020017f477265656e20457570686f72696320506f6e64205363756d000000000000000081525081526020016040518060400160405280600d81526020017f5265642050697073717565616b0000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f426c75652050697073717565616b00000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f576f72726965642054696b69000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f53656461746564204f677265000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f4d6564696361746564204472756964000000000000000000000000000000000081525081526020016040518060400160405280601581526020017f59656c6c6f77204563737461746963205368726577000000000000000000000081525081526020016040518060400160405280601481526020017f477265656e20456373746174696320536872657700000000000000000000000081525081526020016040518060400160405280601581526020017f477265656e205072616e63696e67204c75726b6572000000000000000000000081525081526020016040518060400160405280601581526020017f53746f6e65205072616e63696e67204c75726b6572000000000000000000000081525081526020016040518060400160405280600e81526020017f466f726c6f726e205368616d616e00000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f4d6172626c6564204d6f7468000000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f506967676973682056696361720000000000000000000000000000000000000081525081526020016040518060400160405280601581526020017f5265642050616c74727920536f6f74687361796572000000000000000000000081525081526020016040518060400160405280601781526020017f477265656e2050616c74727920536f6f7468736179657200000000000000000081525081526020016040518060400160405280600e81526020017f526564204d6f6f6e20486f756e6400000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f59656c6c6f77204d6f6f6e20486f756e6400000000000000000000000000000081525081526020016040518060400160405280601081526020017f556e73696768746c79205665726d696e0000000000000000000000000000000081525081526020016040518060400160405280601181526020017f416e6f6e796d6f75732045796562616c6c00000000000000000000000000000081525081526020016040518060400160405280601181526020017f5765617468657220536174656c6c69746500000000000000000000000000000081525081526020016040518060400160405280600e81526020017f547265617375726520436865737400000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f5468696e67616d616a696700000000000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f5465736c6120436f696c0000000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f53757072656d65204379626f726700000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f50726563696f7573204372797374616c7300000000000000000000000000000081525081526020016040518060400160405280600881526020017f496365204375626500000000000000000000000000000000000000000000000081525081526020016040518060400160405280601581526020017f4465636f6d6d697373696f6e6564204379626f7267000000000000000000000081525081526020016040518060400160405280600e81526020017f436f6d6574204b6f686f7574656b00000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f426f72696e6720436f6c756d6e7300000000000000000000000000000000000081525081526020016040518060400160405280600381526020017f4c6f67000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f5175697a7a6963616c205069670000000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f4f6d6e69706f74656e74204d7574616e7400000000000000000000000000000081525081526020016040518060400160405280601181526020017f50737963686564656c6963204269736f6e00000000000000000000000000000081525081526020016040518060400160405280600f81526020017f536372756e6368656420427261696e000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f436f6e6365726e6564204c6f616600000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f556e63756c7475726564205377696e650000000000000000000000000000000081525081526020016040518060400160405280600781526020017f4379636c6f6e650000000000000000000000000000000000000000000000000081525081526020016040518060400160405280601981526020017f42617272656c206f662046756e6769626c6520546f6b656e730000000000000081525081526020016040518060400160405280601081526020017f426c7565204f64696f757320426972640000000000000000000000000000000081525081526020016040518060400160405280601381526020017f436c756d737920456176657364726f707065720000000000000000000000000081525081526020016040518060400160405280601181526020017f446973656d626f64696564204d6f75746800000000000000000000000000000081525081526020016040518060400160405280601081526020017f4a75737420536f6d6520427269636b730000000000000000000000000000000081525081526020016040518060400160405280601481526020017f4d6574616c6c6963204f64696f7573204269726400000000000000000000000081525081526020016040518060400160405280601081526020017f50757472696420556e6465726c696e670000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f5573656c657373204d616368696e65000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f49727269746174656420416172647661726b000000000000000000000000000081525081526020016040518060400160405280600d81526020017f48756e677279204b6f6d6f646f00000000000000000000000000000000000000815250815250602660026006811062004b885762004b8862005f80565b62004b9892910190605962005d2d565b50604080516107a081018252601161076082018181527f53746f6e6520537465726e20466973747300000000000000000000000000000061078084015282528251808401845260108082527f426c756520537465726e20466973747300000000000000000000000000000000602080840191909152808501929092528451808601865260128082527f4f72616e676520537465726e204669737473000000000000000000000000000082850152858701919091528551808701875260178082527f477265656e2044657072657373697665204c697a617264000000000000000000828601526060870191909152865180880188528181527f53746f6e652044657072657373697665204c697a61726400000000000000000081860152608087015286518088018852600f8082527f56656e676566756c2044616767657200000000000000000000000000000000008287015260a0880191909152875180890189529182527f50726563696f7573204c6974746c6520416e746c6572730000000000000000008286015260c0870191909152865180880188528581527f50726f6d696e656e7420526f6f737465720000000000000000000000000000008186015260e087015286518088018852600c8082527f47696c6465642057696e6773000000000000000000000000000000000000000082870152610100880191909152875180890189528381527f43726574696e6f757320476172676f796c65000000000000000000000000000081870152610120880152875180890189528181527f41205265616c20537061726b00000000000000000000000000000000000000008187015261014088015287518089018952600e8082527f526f79616c20466c6f7572697368000000000000000000000000000000000000828801526101608901919091528851808a018a528281527f4d6f726e696e6720537461720000000000000000000000000000000000000000818801526101808901528851808a018a528281527f4c75736820466f6c696167650000000000000000000000000000000000000000818801526101a08901528851808a018a528781527f476c6f72696f757320466c617070657273000000000000000000000000000000818801526101c08901528851808a018a52600a8082527f4661697279204561727300000000000000000000000000000000000000000000828901526101e08a01919091528951808b018b528481527f457870656e736976652047697a6d6f0000000000000000000000000000000000818901526102008a01528951808b018b528281527f447261676f6e6c792057696e6773000000000000000000000000000000000000818901526102208a01528951808b018b52600b8082527f42726f61642053776f7264000000000000000000000000000000000000000000828a01526102408b01919091528a51808c018c5260098082527f4265617220436c61770000000000000000000000000000000000000000000000828b01526102608c01919091528b51808d018d529283527f436f6f6c2048616e647300000000000000000000000000000000000000000000838a01526102808b01929092528a51808c018c52600d8082527f4e69636520466c69707065727300000000000000000000000000000000000000828b01526102a08c01919091528b51808d018d5260048082527f4665657400000000000000000000000000000000000000000000000000000000828c01526102c08d01919091528c51808e018e529788527f53756d7074756f757320416d6574687973740000000000000000000000000000888b01526102e08c01979097528b51808d018d528681527f5072696d697469766520436c7562730000000000000000000000000000000000818b01526103008c01528b51808d018d528a81527f456e746963696e6720416e74656e6e6165000000000000000000000000000000818b01526103208c01528b51808d018d528581527f526170746f7220436c6177730000000000000000000000000000000000000000818b01526103408c01528b51808d018d528681527f536b656c65746f6e20536869656c640000000000000000000000000000000000818b01526103608c01528b51808d018d528281527f5369636b20466c616d6573000000000000000000000000000000000000000000818b01526103808c01528b51808d018d52600781527f5261642041786500000000000000000000000000000000000000000000000000818b01526103a08c01528b51808d018d528281527f4e696365204c6561766573000000000000000000000000000000000000000000818b01526103c08c01528b51808d018d528181527f4d6f74686572204e617475726500000000000000000000000000000000000000818b01526103e08c01528b51808d018d529485527f446563656e7420486f726e730000000000000000000000000000000000000000858a01526104008b01949094528a51808c018c528781527f44657461636865642045796562616c6c00000000000000000000000000000000818a01526104208b01528a51808c018c52601381527f496d707265737369766520506f696e7465727300000000000000000000000000818a01526104408b01528a51808c018c528581527f427574746572666c792057696e67730000000000000000000000000000000000818a01526104608b01528a51808c018c528781527f466f72746966696564205370696b657300000000000000000000000000000000818a01526104808b01528a51808c018c528381527f536b656c6574616c2057696e6773000000000000000000000000000000000000818a01526104a08b01528a51808c018c52600681527f546f6e6775650000000000000000000000000000000000000000000000000000818a01526104c08b01528a51808c018c528281527f54656e7461636c65730000000000000000000000000000000000000000000000818a01526104e08b01528a51808c018c528781527f53756d7074756f75732043616374757300000000000000000000000000000000818a01526105008b01528a51808c018c529283527f536b696e6c6573732057696e6773000000000000000000000000000000000000838901526105208a01929092528951808b018b528681527f536174656c6c6974652044697368657300000000000000000000000000000000818901526105408a01528951808b018b528381527f526f6d616e20436f6c756d6e7300000000000000000000000000000000000000818901526105608a01528951808b018b529081527f52616d20486f726e730000000000000000000000000000000000000000000000818801526105808901528851808a018a528281527f4f6d696e6f757320436c6f756400000000000000000000000000000000000000818801526105a08901528851808a018a528281527f4e6967687420616e642044617900000000000000000000000000000000000000818801526105c08901528851808a018a529283527f4d6f756e7465642043616e6e6f6e730000000000000000000000000000000000838701526105e0880192909252875180890189528481527f4d6f7274616c204368616d656c656f6e0000000000000000000000000000000081870152610600880152875180890189528181527f48656c7066756c2048616e64730000000000000000000000000000000000000081870152610620880152875180890189528181527f477265656e204665656c6572730000000000000000000000000000000000000081870152610640880152875180890189528481527f466973686d6f6e6765722048616e64730000000000000000000000000000000081870152610660880152875180890189529586527f446973617070726f76696e67204579657300000000000000000000000000000086860152610680870195909552865180880188528381527f44656c6967687466756c2057696e677300000000000000000000000000000000818601526106a0870152865180880188529283527f43726f636f64696c65204d6f7574687300000000000000000000000000000000838501526106c0860192909252855180870187529182527f43686561702047686f7374000000000000000000000000000000000000000000828401526106e085019190915284518086018652600881527f42757a7a7361777300000000000000000000000000000000000000000000000081840152610700850152845180860186529283527f426c756520576869736b657273000000000000000000000000000000000000008383015261072084019290925283518085019094529083527f4e6f6e65000000000000000000000000000000000000000000000000000000009083015261074081019190915262005841602982603b62005d7f565b5062005851602a82603b62005d7f565b5062005861602b82603b62005d7f565b5060005b60198110156200589d576000818152602f60205260409020805460ff1916600117905580620058948162005f3d565b91505062005865565b5060005b6019811015620058d9576000818152603060205260409020805460ff1916600117905580620058d08162005f3d565b915050620058a1565b5060005b601a81101562005915576000818152603160205260409020805460ff19166001179055806200590c8162005f3d565b915050620058dd565b505050505062005faf565b336200592b62005a8b565b6001600160a01b03161462005977576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200596e9062005eb2565b60405180910390fd5b6200598162005a9f565b565b336200598e62005a8b565b6001600160a01b031614620059d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200596e9062005eb2565b6033805460ff191660011790557f8a9b2f934a15da94b3675704d527c90d3c8e5a78917596875681a9d22dbda0de62005a073390565b6040516001600160a01b03909116815260200160405180910390a1565b3362005a2f62005a8b565b6001600160a01b03161462005a72576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200596e9062005eb2565b805162005a8790600d90602084019062005b44565b5050565b600b5461010090046001600160a01b031690565b600b5460ff161562005b0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016200596e565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25862005a073390565b82805462005b529062005ee7565b90600052602060002090601f01602090048101928262005b76576000855562005bc1565b82601f1062005b9157805160ff191683800117855562005bc1565b8280016001018555821562005bc1579182015b8281111562005bc157825182559160200191906001019062005ba4565b5062005bcf92915062005dd1565b5090565b82805482825590600052602060002090601f0160209004810192821562005bc15791602002820160005b8382111562005c3d57835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030262005bfd565b801562005c6c5782816101000a81549060ff021916905560010160208160000104928301926001030262005c3d565b505062005bcf92915062005dd1565b82805482825590600052602060002090810192821562005ccd579160200282015b8281111562005ccd578251805162005cbc91849160209091019062005b44565b509160200191906001019062005c9c565b5062005bcf92915062005de8565b82805482825590600052602060002090810192821562005ccd579160200282015b8281111562005ccd578251805162005d1c91849160209091019062005b44565b509160200191906001019062005cfc565b82805482825590600052602060002090810192821562005ccd579160200282015b8281111562005ccd578251805162005d6e91849160209091019062005b44565b509160200191906001019062005d4e565b82805482825590600052602060002090810192821562005ccd579160200282015b8281111562005ccd578251805162005dc091849160209091019062005b44565b509160200191906001019062005da0565b5b8082111562005bcf576000815560010162005dd2565b8082111562005bcf57600062005dff828262005e09565b5060010162005de8565b50805462005e179062005ee7565b6000825580601f1062005e28575050565b601f01602090049060005260206000209081019062005e48919062005dd1565b50565b80516001600160a01b038116811462005e6357600080fd5b919050565b60008060006060848603121562005e7e57600080fd5b62005e898462005e4b565b925062005e996020850162005e4b565b915062005ea96040850162005e4b565b90509250925092565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168062005efc57607f821691505b6020821081141562005f37577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b600060001982141562005f79577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60805160601c60a05160601c6147d262005ff06000396000818161160e01526129d1015260008181610dee015281816129a20152612cf801526147d26000f3fe6080604052600436106102475760003560e01c8062094c721461025357806301ffc9a71461027b57806306fdde03146102ab578063081812fc146102cd578063095ea7b3146102fa578063162094c41461031c57806318160ddd1461033c57806323b872dd146103515780632eed8c09146103715780632f745c59146103915780633ccfd60b146103b15780633e155d0a146103c657806340de9f10146103e657806342842e0e146103f957806342966c6814610419578063473f63591461043957806349df728c1461044e5780634f6ccce71461046e57806355367ba91461048e57806355f804b3146104a3578063586ce5d0146104c35780635bfdfb0d146104d85780635c975abb146104ed5780636352211e1461050557806363eacaef146105255780636c0360eb1461053d57806370a082311461055257806370e2f82714610572578063715018a614610587578063735de9f71461059c5780637e659f23146105bc5780638da5cb5b146105d157806394985ddd146105e657806395d89b41146106065780639df7c7981461061b578063a22cb46514610651578063a2309ff814610671578063b88d4fde14610687578063bb33d729146106a7578063c02dc0fe146106bc578063c0af8fcb146106d7578063c7890b4d146106f7578063c87b56dd14610717578063cd8ff65714610737578063cfe3675314610757578063d5abeb0114610777578063e7d26fc01461078d578063e985e9c5146107ba578063ebf81b0d146107da578063f2fde38b146107f0578063fe47c7981461081057600080fd5b3661024e57005b600080fd5b34801561025f57600080fd5b50610268610823565b6040519081526020015b60405180910390f35b34801561028757600080fd5b5061029b6102963660046140ce565b610833565b6040519015158152602001610272565b3480156102b757600080fd5b506102c0610844565b604051610272919061427d565b3480156102d957600080fd5b506102ed6102e836600461413c565b6108d6565b6040516102729190614205565b34801561030657600080fd5b5061031a610315366004613f04565b610963565b005b34801561032857600080fd5b5061031a61033736600461416e565b610a74565b34801561034857600080fd5b50600854610268565b34801561035d57600080fd5b5061031a61036c366004613e16565b610ab1565b34801561037d57600080fd5b5061031a61038c36600461413c565b610ae3565b34801561039d57600080fd5b506102686103ac366004613f04565b610bc6565b3480156103bd57600080fd5b5061031a610c5c565b3480156103d257600080fd5b5061031a6103e136600461413c565b610ced565b61031a6103f43660046140ac565b610ec6565b34801561040557600080fd5b5061031a610414366004613e16565b61103b565b34801561042557600080fd5b5061031a61043436600461413c565b611056565b34801561044557600080fd5b50610268603281565b34801561045a57600080fd5b5061031a610469366004613da3565b6110cd565b34801561047a57600080fd5b5061026861048936600461413c565b611213565b34801561049a57600080fd5b5061031a6112a6565b3480156104af57600080fd5b5061031a6104be366004614108565b6112dd565b3480156104cf57600080fd5b5061031a61131f565b3480156104e457600080fd5b5061031a611392565b3480156104f957600080fd5b50600b5460ff1661029b565b34801561051157600080fd5b506102ed61052036600461413c565b6113f6565b34801561053157600080fd5b5060335460ff1661029b565b34801561054957600080fd5b506102c061146d565b34801561055e57600080fd5b5061026861056d366004613da3565b6114fb565b34801561057e57600080fd5b50610268601481565b34801561059357600080fd5b5061031a611582565b3480156105a857600080fd5b506015546102ed906001600160a01b031681565b3480156105c857600080fd5b50610268600681565b3480156105dd57600080fd5b506102ed6115ef565b3480156105f257600080fd5b5061031a6106013660046140ac565b611603565b34801561061257600080fd5b506102c0611685565b34801561062757600080fd5b50610268610636366004613da3565b6001600160a01b031660009081526032602052604090205490565b34801561065d57600080fd5b5061031a61066c366004613ed6565b611694565b34801561067d57600080fd5b5061026860135481565b34801561069357600080fd5b5061031a6106a2366004613e57565b611755565b3480156106b357600080fd5b5061031a61178d565b3480156106c857600080fd5b5061026866c3663566a5800081565b3480156106e357600080fd5b5061031a6106f2366004613f30565b6117c4565b34801561070357600080fd5b5061031a6107123660046140ac565b6118f3565b34801561072357600080fd5b506102c061073236600461413c565b611d42565b34801561074357600080fd5b5061031a61075236600461413c565b611d4d565b34801561076357600080fd5b506102c061077236600461413c565b611d81565b34801561078357600080fd5b5061026861271081565b34801561079957600080fd5b506102686107a836600461413c565b602c6020526000908152604090205481565b3480156107c657600080fd5b5061029b6107d5366004613ddd565b6121d3565b3480156107e657600080fd5b5061026860145481565b3480156107fc57600080fd5b5061031a61080b366004613da3565b612201565b61031a61081e3660046140ac565b6122ea565b600061082e60125490565b905090565b600061083e826123d1565b92915050565b60606000805461085390614609565b80601f016020809104026020016040519081016040528092919081815260200182805461087f90614609565b80156108cc5780601f106108a1576101008083540402835291602001916108cc565b820191906000526020600020905b8154815290600101906020018083116108af57829003601f168201915b5050505050905090565b60006108e1826123f6565b6109475760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061096e826113f6565b9050806001600160a01b0316836001600160a01b031614156109dc5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161093e565b336001600160a01b03821614806109f857506109f881336121d3565b610a655760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606482015260840161093e565b610a6f8383612413565b505050565b33610a7d6115ef565b6001600160a01b031614610aa35760405162461bcd60e51b815260040161093e9061438b565b610aad8282612481565b5050565b610abc335b8261250c565b610ad85760405162461bcd60e51b815260040161093e906143c0565b610a6f8383836125d6565b33610aec6115ef565b6001600160a01b031614610b125760405162461bcd60e51b815260040161093e9061438b565b610b1f6127106001614556565b81601354610b2d9190614556565b10610b4a5760405162461bcd60e51b815260040161093e90614411565b603281601454610b5a9190614556565b1115610b785760405162461bcd60e51b815260040161093e90614411565b610b8460146001614556565b8110610ba25760405162461bcd60e51b815260040161093e90614471565b8060146000828254610bb49190614556565b90915550610bc390508161276f565b50565b6000610bd1836114fb565b8210610c335760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161093e565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b33610c656115ef565b6001600160a01b031614610c8b5760405162461bcd60e51b815260040161093e9061438b565b600f54610cac906001600160a01b0316610ca7600a3031614593565b612887565b601054610cd4906001600160a01b0316605a610cca303160056145a7565b610ca79190614593565b600e54610ceb906001600160a01b03163031612887565b565b33610cf66115ef565b6001600160a01b031614610d1c5760405162461bcd60e51b815260040161093e9061438b565b610d25816123f6565b610d685760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b604482015260640161093e565b6000818152602c602052604090205415610dd45760405162461bcd60e51b815260206004820152602760248201527f416c72656164792068617320444e4120736574202d2063616e6e6f742062652060448201526618da185b99d95960ca1b606482015260840161093e565b6019546040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610e23903090600401614205565b60206040518083038186803b158015610e3b57600080fd5b505afa158015610e4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e739190614155565b1015610e915760405162461bcd60e51b815260040161093e9061433a565b6000610ea160185460195461299e565b6000908152602d60209081526040822080546001810182559083529120019190915550565b6002600c541415610ee95760405162461bcd60e51b815260040161093e9061443a565b6002600c5560335460ff1615610f365760405162461bcd60e51b8152602060048201526012602482015271141c994b5b5a5b9d1a5b99c81c185d5cd95960721b604482015260640161093e565b610f436127106001614556565b82601354610f519190614556565b10610f6e5760405162461bcd60e51b815260040161093e90614411565b33600090815260326020526040902054610f89906001614556565b8210610fd35760405162461bcd60e51b815260206004820152601960248201527843616e6e6f74207072652d6d696e742074686973206d616e7960381b604482015260640161093e565b34610fe58366c3663566a580006145a7565b11156110035760405162461bcd60e51b815260040161093e90614363565b33600090815260326020526040812080548492906110229084906145c6565b9091555061103290508282612b29565b50506001600c55565b610a6f83838360405180602001604052806000815250611755565b61105f33610ab6565b6110c45760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b606482015260840161093e565b610bc381612da4565b336110d66115ef565b6001600160a01b0316146110fc5760405162461bcd60e51b815260040161093e9061438b565b6001600160a01b03811661110f57600080fd5b6040516370a0823160e01b81526001600160a01b0382169063a9059cbb90339083906370a0823190611145903090600401614205565b60206040518083038186803b15801561115d57600080fd5b505afa158015611171573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111959190614155565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156111db57600080fd5b505af11580156111ef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aad919061408f565b600061121e60085490565b82106112815760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161093e565b60088281548110611294576112946146f7565b90600052602060002001549050919050565b336112af6115ef565b6001600160a01b0316146112d55760405162461bcd60e51b815260040161093e9061438b565b610ceb612dad565b336112e66115ef565b6001600160a01b03161461130c5760405162461bcd60e51b815260040161093e9061438b565b8051610aad90600d906020840190613b93565b336113286115ef565b6001600160a01b03161461134e5760405162461bcd60e51b815260040161093e9061438b565b6033805460ff191690557fe65470f695a4704d33f5da2d1e5293d2e0313fff3d43e358da033c494cba7019335b6040516113889190614205565b60405180910390a1565b3361139b6115ef565b6001600160a01b0316146113c15760405162461bcd60e51b815260040161093e9061438b565b6033805460ff191660011790557f8a9b2f934a15da94b3675704d527c90d3c8e5a78917596875681a9d22dbda0de61137b3390565b6000818152600260205260408120546001600160a01b03168061083e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161093e565b600d805461147a90614609565b80601f01602080910402602001604051908101604052809291908181526020018280546114a690614609565b80156114f35780601f106114c8576101008083540402835291602001916114f3565b820191906000526020600020905b8154815290600101906020018083116114d657829003601f168201915b505050505081565b60006001600160a01b0382166115665760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161093e565b506001600160a01b031660009081526003602052604090205490565b3361158b6115ef565b6001600160a01b0316146115b15760405162461bcd60e51b815260040161093e9061438b565b600b5460405160009161010090046001600160a01b03169060008051602061475d833981519152908390a3600b8054610100600160a81b0319169055565b600b5461010090046001600160a01b031690565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461167b5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604482015260640161093e565b610aad8282612e05565b60606001805461085390614609565b6001600160a01b0382163314156116e95760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161093e565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61175f338361250c565b61177b5760405162461bcd60e51b815260040161093e906143c0565b61178784848484612f36565b50505050565b336117966115ef565b6001600160a01b0316146117bc5760405162461bcd60e51b815260040161093e9061438b565b610ceb612f69565b336117cd6115ef565b6001600160a01b0316146117f35760405162461bcd60e51b815260040161093e9061438b565b600b5460ff166118155760405162461bcd60e51b815260040161093e90614290565b805182511461182357600080fd5b60005b81518160ff161015610a6f57818160ff1681518110611847576118476146f7565b602002602001015160326000858460ff1681518110611868576118686146f7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205461189b9190614556565b60326000858460ff16815181106118b4576118b46146f7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555080806118eb9061465f565b915050611826565b6002600c5414156119165760405162461bcd60e51b815260040161093e9061443a565b6002600c55611924826123f6565b61196e5760405162461bcd60e51b815260206004820152601b60248201527a109bdd1d1bdb481d1bdad95b88191bd95cc81b9bdd08195e1a5cdd602a1b604482015260640161093e565b611977816123f6565b6119be5760405162461bcd60e51b8152602060048201526018602482015277151bdc081d1bdad95b88191bd95cc81b9bdd08195e1a5cdd60421b604482015260640161093e565b6119c8338361250c565b611a145760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420617070726f76656420666f7220626f74746f6d20746f6b656e000000604482015260640161093e565b611a1e338261250c565b611a675760405162461bcd60e51b815260206004820152601a6024820152792737ba1030b8383937bb32b2103337b9103a37b8103a37b5b2b760311b604482015260640161093e565b80821415611ab35760405162461bcd60e51b8152602060048201526019602482015278546f6b656e732063616e6e6f74206265207468652073616d6560381b604482015260640161093e565b6000828152602e602052604090205460011080611add57506000828152602c602052604090205415155b611b295760405162461bcd60e51b815260206004820152601e60248201527f4e6f2074726169747320666f7220626f74746f6d20746f6b656e207965740000604482015260640161093e565b6000818152602e602052604090205460011080611b5357506000818152602c602052604090205415155b611b9d5760405162461bcd60e51b815260206004820152601b60248201527a139bc81d1c985a5d1cc8199bdc881d1bdc081d1bdad95b881e595d602a1b604482015260640161093e565b611bab601280546001019055565b611bb482612da4565b611bbd81612da4565b611bcf33611bca60125490565b612fbc565b60005b6000838152602e602052604090205460ff82161015611c5e57602e6000611bf860125490565b8152602001908152602001600020602e60008581526020019081526020016000208260ff1681548110611c2d57611c2d6146f7565b6000918252602080832090910154835460018101855593835291209091015580611c568161465f565b915050611bd2565b5060005b6000828152602e602052604090205460ff82161015611cee57602e6000611c8860125490565b8152602001908152602001600020602e60008481526020019081526020016000208260ff1681548110611cbd57611cbd6146f7565b6000918252602080832090910154835460018101855593835291209091015580611ce68161465f565b915050611c62565b507fd414523b819544947344dcb05de50cf4613dae51623cecfec7fea8b28500894a8282611d1b60125490565b6040805193845260208401929092529082015260600160405180910390a150506001600c55565b606061083e82612fd6565b33611d566115ef565b6001600160a01b031614611d7c5760405162461bcd60e51b815260040161093e9061438b565b601955565b6000818152602e602052604090205460609060011080611dae57506000828152602c602052604090205415155b611de75760405162461bcd60e51b815260206004820152600a602482015269139bc8111390481e595d60b21b604482015260640161093e565b6040805180820190915260018152607b60f81b602082015260005b6000848152602e602052604090205460ff8216101561211757611e23613c17565b60005b60068160ff161015611e97576000868152602e602052604090208054611e6b919060ff8616908110611e5a57611e5a6146f7565b906000526020600020015482613138565b828260ff1660068110611e8057611e806146f7565b602002015280611e8f8161465f565b915050611e26565b5080516000908152602f602052604090205460ff1615611ec657601d54611ec0906001906145c6565b60608201525b60208082015160009081526030909152604090205460ff1615611ef857601e54611ef2906001906145c6565b60808201525b60408082015160009081526031602052205460ff1615611f2757601f54611f21906001906145c6565b60a08201525b60005b60068160ff1610156121025760008360ff161180611f4b575060008160ff16115b15611f7757611f748460405180604001604052806002815260200161016160f51b815250613276565b93505b611f9a84604051806040016040528060018152602001601160f91b815250613276565b93506120458460208360ff1660068110611fb657611fb66146f7565b018054611fc290614609565b80601f0160208091040260200160405190810160405280929190818152602001828054611fee90614609565b801561203b5780601f106120105761010080835404028352916020019161203b565b820191906000526020600020905b81548152906001019060200180831161201e57829003601f168201915b5050505050613276565b935061206d8460405180604001604052806004815260200163111d101160e11b815250613276565b93506120c98460268360ff1660068110612089576120896146f7565b01848460ff166006811061209f5761209f6146f7565b6020020151815481106120b4576120b46146f7565b906000526020600020018054611fc290614609565b93506120ee84604051806040016040528060018152602001601160f91b815250613276565b9350806120fa8161465f565b915050611f2a565b5050808061210f9061465f565b915050611e02565b5061212a81612125856132a2565b613276565b905061216181604051806040016040528060138152602001721610112a37bbb2b9102432b4b3b43a111d101160691b815250613276565b6000848152602e6020526040902054909150612182908290612125906133dc565b90506121a781604051806040016040528060018152602001601160f91b815250613276565b90506121cc81604051806040016040528060018152602001607d60f81b815250613276565b9392505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3361220a6115ef565b6001600160a01b0316146122305760405162461bcd60e51b815260040161093e9061438b565b6001600160a01b0381166122955760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161093e565b600b546040516001600160a01b03808416926101009004169060008051602061475d83398151915290600090a3600b80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600b5460ff161561230d5760405162461bcd60e51b815260040161093e90614310565b6002600c5414156123305760405162461bcd60e51b815260040161093e9061443a565b6002600c556123426127106001614556565b826013546123509190614556565b1061236d5760405162461bcd60e51b815260040161093e90614411565b61237960146001614556565b82106123975760405162461bcd60e51b815260040161093e90614471565b346123a98366c3663566a580006145a7565b11156123c75760405162461bcd60e51b815260040161093e90614363565b6110328282612b29565b60006001600160e01b0319821663780e9d6360e01b148061083e575061083e826134d9565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612448826113f6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61248a826123f6565b6124ed5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161093e565b6000828152600a602090815260409091208251610a6f92840190613b93565b6000612517826123f6565b6125785760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161093e565b6000612583836113f6565b9050806001600160a01b0316846001600160a01b031614806125be5750836001600160a01b03166125b3846108d6565b6001600160a01b0316145b806125ce57506125ce81856121d3565b949350505050565b826001600160a01b03166125e9826113f6565b6001600160a01b0316146126515760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161093e565b6001600160a01b0382166126b35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161093e565b6126be838383613529565b6126c9600082612413565b6001600160a01b03831660009081526003602052604081208054600192906126f29084906145c6565b90915550506001600160a01b0382166000908152600360205260408120805460019290612720908490614556565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061477d83398151915291a4505050565b80601360008282546127819190614556565b9091555060009050805b828160ff161015610a6f576127a4601280546001019055565b6127af600582614693565b60ff166127c7576127c460185460195461299e565b91505b6000828152602d60205260409020601254815460018101835560009283526020909220909101556127fb33611bca60125490565b604051806020016040528061280f60125490565b9052602e600061281e60125490565b81526020810191909152604001600020612839916001613c35565b507fe38a5102423400d1b5b4da2806384f4a5b099b5ad83e3a7f5ea0b1f3740119d061286460125490565b60405190815260200160405180910390a18061287f8161465f565b91505061278b565b30318111156128d85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161093e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612925576040519150601f19603f3d011682016040523d82523d6000602084013e61292a565b606091505b5050905080610a6f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b606482015260840161093e565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612a0e929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612a3b93929190614256565b602060405180830381600087803b158015612a5557600080fd5b505af1158015612a69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a8d919061408f565b50600083815260116020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052612ae9906001614556565b6000858152601160205260409020556125ce8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b60006005612b38846004614556565b612b429190614593565b60408051600280825260608201835292935060009290916020830190803683375050601554604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c464892506004808301926020929190829003018186803b158015612bac57600080fd5b505afa158015612bc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612be49190613dc0565b81600081518110612bf757612bf76146f7565b6001600160a01b039283166020918202929092010152601754825191169082906001908110612c2857612c286146f7565b6001600160a01b03928316602091820292909201015260155460195491169063fb3bdb41903490612c5a9086906145a7565b8430886040518663ffffffff1660e01b8152600401612c7c9493929190614499565b6000604051808303818588803b158015612c9557600080fd5b505af1158015612ca9573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052612cd29190810190613ff8565b5081601954612ce191906145a7565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190612d2d903090600401614205565b60206040518083038186803b158015612d4557600080fd5b505afa158015612d59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d7d9190614155565b1015612d9b5760405162461bcd60e51b815260040161093e9061433a565b6117878461276f565b610bc381613534565b600b5460ff1615612dd05760405162461bcd60e51b815260040161093e90614310565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861137b3390565b60005b6000838152602d602052604090205460ff82161015610a6f57600060ff8216612e32575081612e6f565b82612e4160ff841660066145a7565b6040805160208101939093528201526060016040516020818303038152906040528051906020012060001c90505b80602c6000602d60008881526020019081526020016000208560ff1681548110612e9b57612e9b6146f7565b9060005260206000200154815260200190815260200160002081905550602d60008581526020019081526020016000208260ff1681548110612edf57612edf6146f7565b90600052602060002001547ff8a1c91da753d4ecdf98c005e9688ba205e18b0cf3bb314acf7458fba4f1e39382604051612f1b91815260200190565b60405180910390a25080612f2e8161465f565b915050612e08565b612f418484846125d6565b612f4d84848484613574565b6117875760405162461bcd60e51b815260040161093e906142be565b600b5460ff16612f8b5760405162461bcd60e51b815260040161093e90614290565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa3361137b565b610aad82826040518060200160405280600081525061367e565b6060612fe1826123f6565b6130475760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b606482015260840161093e565b6000828152600a60205260408120805461306090614609565b80601f016020809104026020016040519081016040528092919081815260200182805461308c90614609565b80156130d95780601f106130ae576101008083540402835291602001916130d9565b820191906000526020600020905b8154815290600101906020018083116130bc57829003601f168201915b5050505050905060006130ea6136b1565b90508051600014156130fd575092915050565b81511561312f5780826040516020016131179291906141d6565b60405160208183030381529060405292505050919050565b6125ce846136c0565b6000828152602c60205260408120546103e8908290829061315a86600161456e565b60405160200161317792919091825260ff16602082015260400190565b6040516020818303038152906040528051906020012060001c61319a919061467f565b6131a5906001614556565b905060005b601a8560ff16600681106131c0576131c06146f7565b015460ff8216101561324857601a8560ff16600681106131e2576131e26146f7565b018160ff16815481106131f7576131f76146f7565b60009182526020918290209181049091015461321f91601f166101000a900460ff16846145c6565b9250828211156132365760ff16925061083e915050565b806132408161465f565b9150506131aa565b506001601a8560ff1660068110613261576132616146f7565b015461326d91906145c6565b95945050505050565b6060828260405160200161328b9291906141d6565b604051602081830303815290604052905092915050565b60408051602080820183526000808352848152602e909152919091205460609190600211156132d15792915050565b60005b6000848152602e602052604090205460ff821610156133d557613318826040518060400160405280600981526020016801610112a37b5b2b7160bd1b815250613276565b91506133348261212561332c84600161456e565b60ff166133dc565b915061335c8260405180604001604052806004815260200163111d101160e11b815250613276565b915061339c82612125602e60008881526020019081526020016000208460ff168154811061338c5761338c6146f7565b90600052602060002001546133dc565b91506133c182604051806040016040528060018152602001601160f91b815250613276565b9150806133cd8161465f565b9150506132d4565b5092915050565b6060816134005750506040805180820190915260018152600360fc1b602082015290565b8160005b811561342a578061341481614644565b91506134239050600a83614593565b9150613404565b6000816001600160401b038111156134445761344461470d565b6040519080825280601f01601f19166020018201604052801561346e576020820181803683370190505b5090505b84156125ce576134836001836145c6565b9150613490600a8661467f565b61349b906030614556565b60f81b8183815181106134b0576134b06146f7565b60200101906001600160f81b031916908160001a9053506134d2600a86614593565b9450613472565b60006001600160e01b031982166380ac58cd60e01b148061350a57506001600160e01b03198216635b5e139f60e01b145b8061083e57506301ffc9a760e01b6001600160e01b031983161461083e565b610a6f83838361378a565b61353d81613842565b6000818152600a60205260409020805461355690614609565b159050610bc3576000818152600a60205260408120610bc391613c6f565b60006001600160a01b0384163b1561367657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906135b8903390899088908890600401614219565b602060405180830381600087803b1580156135d257600080fd5b505af1925050508015613602575060408051601f3d908101601f191682019092526135ff918101906140eb565b60015b61365c573d808015613630576040519150601f19603f3d011682016040523d82523d6000602084013e613635565b606091505b5080516136545760405162461bcd60e51b815260040161093e906142be565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125ce565b5060016125ce565b61368883836138d7565b6136956000848484613574565b610a6f5760405162461bcd60e51b815260040161093e906142be565b6060600d805461085390614609565b60606136cb826123f6565b61372f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161093e565b60006137396136b1565b9050600081511161375957604051806020016040528060008152506121cc565b80613763846133dc565b6040516020016137749291906141d6565b6040516020818303038152906040529392505050565b6001600160a01b0383166137e5576137e081600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613808565b816001600160a01b0316836001600160a01b031614613808576138088382613a03565b6001600160a01b03821661381f57610a6f81613aa0565b826001600160a01b0316826001600160a01b031614610a6f57610a6f8282613b4f565b600061384d826113f6565b905061385b81600084613529565b613866600083612413565b6001600160a01b038116600090815260036020526040812080546001929061388f9084906145c6565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b0384169060008051602061477d833981519152908390a45050565b6001600160a01b03821661392d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161093e565b613936816123f6565b156139825760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604482015260640161093e565b61398e60008383613529565b6001600160a01b03821660009081526003602052604081208054600192906139b7908490614556565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b038616908117909155905183929060008051602061477d833981519152908290a45050565b60006001613a10846114fb565b613a1a91906145c6565b600083815260076020526040902054909150808214613a6d576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613ab2906001906145c6565b60008381526009602052604081205460088054939450909284908110613ada57613ada6146f7565b906000526020600020015490508060088381548110613afb57613afb6146f7565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613b3357613b336146e1565b6001900381819060005260206000200160009055905550505050565b6000613b5a836114fb565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613b9f90614609565b90600052602060002090601f016020900481019282613bc15760008555613c07565b82601f10613bda57805160ff1916838001178555613c07565b82800160010185558215613c07579182015b82811115613c07578251825591602001919060010190613bec565b50613c13929150613ca5565b5090565b6040518060c001604052806006906020820280368337509192915050565b828054828255906000526020600020908101928215613c075791602002820182811115613c07578251825591602001919060010190613bec565b508054613c7b90614609565b6000825580601f10613c8b575050565b601f016020900490600052602060002090810190610bc391905b5b80821115613c135760008155600101613ca6565b60006001600160401b03831115613cd357613cd361470d565b613ce6601f8401601f1916602001614503565b9050828152838383011115613cfa57600080fd5b828260208301376000602084830101529392505050565b600082601f830112613d2257600080fd5b81356020613d37613d3283614533565b614503565b80838252828201915082860187848660051b8901011115613d5757600080fd5b60005b85811015613d7657813584529284019290840190600101613d5a565b5090979650505050505050565b600082601f830112613d9457600080fd5b6121cc83833560208501613cba565b600060208284031215613db557600080fd5b81356121cc81614723565b600060208284031215613dd257600080fd5b81516121cc81614723565b60008060408385031215613df057600080fd5b8235613dfb81614723565b91506020830135613e0b81614723565b809150509250929050565b600080600060608486031215613e2b57600080fd5b8335613e3681614723565b92506020840135613e4681614723565b929592945050506040919091013590565b60008060008060808587031215613e6d57600080fd5b8435613e7881614723565b93506020850135613e8881614723565b92506040850135915060608501356001600160401b03811115613eaa57600080fd5b8501601f81018713613ebb57600080fd5b613eca87823560208401613cba565b91505092959194509250565b60008060408385031215613ee957600080fd5b8235613ef481614723565b91506020830135613e0b81614738565b60008060408385031215613f1757600080fd5b8235613f2281614723565b946020939093013593505050565b60008060408385031215613f4357600080fd5b82356001600160401b0380821115613f5a57600080fd5b818501915085601f830112613f6e57600080fd5b81356020613f7e613d3283614533565b8083825282820191508286018a848660051b8901011115613f9e57600080fd5b600096505b84871015613fca578035613fb681614723565b835260019690960195918301918301613fa3565b5096505086013592505080821115613fe157600080fd5b50613fee85828601613d11565b9150509250929050565b6000602080838503121561400b57600080fd5b82516001600160401b0381111561402157600080fd5b8301601f8101851361403257600080fd5b8051614040613d3282614533565b80828252848201915084840188868560051b870101111561406057600080fd5b600094505b83851015614083578051835260019490940193918501918501614065565b50979650505050505050565b6000602082840312156140a157600080fd5b81516121cc81614738565b600080604083850312156140bf57600080fd5b50508035926020909101359150565b6000602082840312156140e057600080fd5b81356121cc81614746565b6000602082840312156140fd57600080fd5b81516121cc81614746565b60006020828403121561411a57600080fd5b81356001600160401b0381111561413057600080fd5b6125ce84828501613d83565b60006020828403121561414e57600080fd5b5035919050565b60006020828403121561416757600080fd5b5051919050565b6000806040838503121561418157600080fd5b8235915060208301356001600160401b0381111561419e57600080fd5b613fee85828601613d83565b600081518084526141c28160208601602086016145dd565b601f01601f19169290920160200192915050565b600083516141e88184602088016145dd565b8351908301906141fc8183602088016145dd565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061424c908301846141aa565b9695505050505050565b60018060a01b038416815282602082015260606040820152600061326d60608301846141aa565b6020815260006121cc60208301846141aa565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252600f908201526e4e6f7420656e6f756768204c494e4b60881b604082015260600190565b6020808252600e908201526d09cdee840cadcdeeaced0408aa8960931b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600f908201526e139bdd08195b9bdd59da081b19599d608a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600e908201526d04d6178206d696e742069732032360941b604082015260600190565b600060808201868352602060808185015281875180845260a086019150828901935060005b818110156144e35784516001600160a01b0316835293830193918301916001016144be565b50506001600160a01b039690961660408501525050506060015292915050565b604051601f8201601f191681016001600160401b038111828210171561452b5761452b61470d565b604052919050565b60006001600160401b0382111561454c5761454c61470d565b5060051b60200190565b60008219821115614569576145696146b5565b500190565b600060ff821660ff84168060ff0382111561458b5761458b6146b5565b019392505050565b6000826145a2576145a26146cb565b500490565b60008160001904831182151516156145c1576145c16146b5565b500290565b6000828210156145d8576145d86146b5565b500390565b60005b838110156145f85781810151838201526020016145e0565b838111156117875750506000910152565b600181811c9082168061461d57607f821691505b6020821081141561463e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614658576146586146b5565b5060010190565b600060ff821660ff811415614676576146766146b5565b60010192915050565b60008261468e5761468e6146cb565b500690565b600060ff8316806146a6576146a66146cb565b8060ff84160691505092915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610bc357600080fd5b8015158114610bc357600080fd5b6001600160e01b031981168114610bc357600080fdfe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212209e8fbd67d90ac32b3d5ff4db10ee3f28f80920cc07f9b7ea9852781ba3d8233b64736f6c6343000807003368747470733a2f2f6170692e6d6f6e73746572626c6f636b732e696f2f6d657461646174612f000000000000000000000000eb5dd8f31a9d0f8749b940c9155a47abc10a24f10000000000000000000000007cf2ebb5ca55a8bd671a020f8bdbaf07f60f26c1000000000000000000000000b6d0a1ecbdbf4f42a8f1e0c8729a56505225d903
Deployed Bytecode
0x6080604052600436106102475760003560e01c8062094c721461025357806301ffc9a71461027b57806306fdde03146102ab578063081812fc146102cd578063095ea7b3146102fa578063162094c41461031c57806318160ddd1461033c57806323b872dd146103515780632eed8c09146103715780632f745c59146103915780633ccfd60b146103b15780633e155d0a146103c657806340de9f10146103e657806342842e0e146103f957806342966c6814610419578063473f63591461043957806349df728c1461044e5780634f6ccce71461046e57806355367ba91461048e57806355f804b3146104a3578063586ce5d0146104c35780635bfdfb0d146104d85780635c975abb146104ed5780636352211e1461050557806363eacaef146105255780636c0360eb1461053d57806370a082311461055257806370e2f82714610572578063715018a614610587578063735de9f71461059c5780637e659f23146105bc5780638da5cb5b146105d157806394985ddd146105e657806395d89b41146106065780639df7c7981461061b578063a22cb46514610651578063a2309ff814610671578063b88d4fde14610687578063bb33d729146106a7578063c02dc0fe146106bc578063c0af8fcb146106d7578063c7890b4d146106f7578063c87b56dd14610717578063cd8ff65714610737578063cfe3675314610757578063d5abeb0114610777578063e7d26fc01461078d578063e985e9c5146107ba578063ebf81b0d146107da578063f2fde38b146107f0578063fe47c7981461081057600080fd5b3661024e57005b600080fd5b34801561025f57600080fd5b50610268610823565b6040519081526020015b60405180910390f35b34801561028757600080fd5b5061029b6102963660046140ce565b610833565b6040519015158152602001610272565b3480156102b757600080fd5b506102c0610844565b604051610272919061427d565b3480156102d957600080fd5b506102ed6102e836600461413c565b6108d6565b6040516102729190614205565b34801561030657600080fd5b5061031a610315366004613f04565b610963565b005b34801561032857600080fd5b5061031a61033736600461416e565b610a74565b34801561034857600080fd5b50600854610268565b34801561035d57600080fd5b5061031a61036c366004613e16565b610ab1565b34801561037d57600080fd5b5061031a61038c36600461413c565b610ae3565b34801561039d57600080fd5b506102686103ac366004613f04565b610bc6565b3480156103bd57600080fd5b5061031a610c5c565b3480156103d257600080fd5b5061031a6103e136600461413c565b610ced565b61031a6103f43660046140ac565b610ec6565b34801561040557600080fd5b5061031a610414366004613e16565b61103b565b34801561042557600080fd5b5061031a61043436600461413c565b611056565b34801561044557600080fd5b50610268603281565b34801561045a57600080fd5b5061031a610469366004613da3565b6110cd565b34801561047a57600080fd5b5061026861048936600461413c565b611213565b34801561049a57600080fd5b5061031a6112a6565b3480156104af57600080fd5b5061031a6104be366004614108565b6112dd565b3480156104cf57600080fd5b5061031a61131f565b3480156104e457600080fd5b5061031a611392565b3480156104f957600080fd5b50600b5460ff1661029b565b34801561051157600080fd5b506102ed61052036600461413c565b6113f6565b34801561053157600080fd5b5060335460ff1661029b565b34801561054957600080fd5b506102c061146d565b34801561055e57600080fd5b5061026861056d366004613da3565b6114fb565b34801561057e57600080fd5b50610268601481565b34801561059357600080fd5b5061031a611582565b3480156105a857600080fd5b506015546102ed906001600160a01b031681565b3480156105c857600080fd5b50610268600681565b3480156105dd57600080fd5b506102ed6115ef565b3480156105f257600080fd5b5061031a6106013660046140ac565b611603565b34801561061257600080fd5b506102c0611685565b34801561062757600080fd5b50610268610636366004613da3565b6001600160a01b031660009081526032602052604090205490565b34801561065d57600080fd5b5061031a61066c366004613ed6565b611694565b34801561067d57600080fd5b5061026860135481565b34801561069357600080fd5b5061031a6106a2366004613e57565b611755565b3480156106b357600080fd5b5061031a61178d565b3480156106c857600080fd5b5061026866c3663566a5800081565b3480156106e357600080fd5b5061031a6106f2366004613f30565b6117c4565b34801561070357600080fd5b5061031a6107123660046140ac565b6118f3565b34801561072357600080fd5b506102c061073236600461413c565b611d42565b34801561074357600080fd5b5061031a61075236600461413c565b611d4d565b34801561076357600080fd5b506102c061077236600461413c565b611d81565b34801561078357600080fd5b5061026861271081565b34801561079957600080fd5b506102686107a836600461413c565b602c6020526000908152604090205481565b3480156107c657600080fd5b5061029b6107d5366004613ddd565b6121d3565b3480156107e657600080fd5b5061026860145481565b3480156107fc57600080fd5b5061031a61080b366004613da3565b612201565b61031a61081e3660046140ac565b6122ea565b600061082e60125490565b905090565b600061083e826123d1565b92915050565b60606000805461085390614609565b80601f016020809104026020016040519081016040528092919081815260200182805461087f90614609565b80156108cc5780601f106108a1576101008083540402835291602001916108cc565b820191906000526020600020905b8154815290600101906020018083116108af57829003601f168201915b5050505050905090565b60006108e1826123f6565b6109475760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061096e826113f6565b9050806001600160a01b0316836001600160a01b031614156109dc5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161093e565b336001600160a01b03821614806109f857506109f881336121d3565b610a655760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606482015260840161093e565b610a6f8383612413565b505050565b33610a7d6115ef565b6001600160a01b031614610aa35760405162461bcd60e51b815260040161093e9061438b565b610aad8282612481565b5050565b610abc335b8261250c565b610ad85760405162461bcd60e51b815260040161093e906143c0565b610a6f8383836125d6565b33610aec6115ef565b6001600160a01b031614610b125760405162461bcd60e51b815260040161093e9061438b565b610b1f6127106001614556565b81601354610b2d9190614556565b10610b4a5760405162461bcd60e51b815260040161093e90614411565b603281601454610b5a9190614556565b1115610b785760405162461bcd60e51b815260040161093e90614411565b610b8460146001614556565b8110610ba25760405162461bcd60e51b815260040161093e90614471565b8060146000828254610bb49190614556565b90915550610bc390508161276f565b50565b6000610bd1836114fb565b8210610c335760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161093e565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b33610c656115ef565b6001600160a01b031614610c8b5760405162461bcd60e51b815260040161093e9061438b565b600f54610cac906001600160a01b0316610ca7600a3031614593565b612887565b601054610cd4906001600160a01b0316605a610cca303160056145a7565b610ca79190614593565b600e54610ceb906001600160a01b03163031612887565b565b33610cf66115ef565b6001600160a01b031614610d1c5760405162461bcd60e51b815260040161093e9061438b565b610d25816123f6565b610d685760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b604482015260640161093e565b6000818152602c602052604090205415610dd45760405162461bcd60e51b815260206004820152602760248201527f416c72656164792068617320444e4120736574202d2063616e6e6f742062652060448201526618da185b99d95960ca1b606482015260840161093e565b6019546040516370a0823160e01b81526001600160a01b037f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca16906370a0823190610e23903090600401614205565b60206040518083038186803b158015610e3b57600080fd5b505afa158015610e4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e739190614155565b1015610e915760405162461bcd60e51b815260040161093e9061433a565b6000610ea160185460195461299e565b6000908152602d60209081526040822080546001810182559083529120019190915550565b6002600c541415610ee95760405162461bcd60e51b815260040161093e9061443a565b6002600c5560335460ff1615610f365760405162461bcd60e51b8152602060048201526012602482015271141c994b5b5a5b9d1a5b99c81c185d5cd95960721b604482015260640161093e565b610f436127106001614556565b82601354610f519190614556565b10610f6e5760405162461bcd60e51b815260040161093e90614411565b33600090815260326020526040902054610f89906001614556565b8210610fd35760405162461bcd60e51b815260206004820152601960248201527843616e6e6f74207072652d6d696e742074686973206d616e7960381b604482015260640161093e565b34610fe58366c3663566a580006145a7565b11156110035760405162461bcd60e51b815260040161093e90614363565b33600090815260326020526040812080548492906110229084906145c6565b9091555061103290508282612b29565b50506001600c55565b610a6f83838360405180602001604052806000815250611755565b61105f33610ab6565b6110c45760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b606482015260840161093e565b610bc381612da4565b336110d66115ef565b6001600160a01b0316146110fc5760405162461bcd60e51b815260040161093e9061438b565b6001600160a01b03811661110f57600080fd5b6040516370a0823160e01b81526001600160a01b0382169063a9059cbb90339083906370a0823190611145903090600401614205565b60206040518083038186803b15801561115d57600080fd5b505afa158015611171573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111959190614155565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156111db57600080fd5b505af11580156111ef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aad919061408f565b600061121e60085490565b82106112815760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161093e565b60088281548110611294576112946146f7565b90600052602060002001549050919050565b336112af6115ef565b6001600160a01b0316146112d55760405162461bcd60e51b815260040161093e9061438b565b610ceb612dad565b336112e66115ef565b6001600160a01b03161461130c5760405162461bcd60e51b815260040161093e9061438b565b8051610aad90600d906020840190613b93565b336113286115ef565b6001600160a01b03161461134e5760405162461bcd60e51b815260040161093e9061438b565b6033805460ff191690557fe65470f695a4704d33f5da2d1e5293d2e0313fff3d43e358da033c494cba7019335b6040516113889190614205565b60405180910390a1565b3361139b6115ef565b6001600160a01b0316146113c15760405162461bcd60e51b815260040161093e9061438b565b6033805460ff191660011790557f8a9b2f934a15da94b3675704d527c90d3c8e5a78917596875681a9d22dbda0de61137b3390565b6000818152600260205260408120546001600160a01b03168061083e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161093e565b600d805461147a90614609565b80601f01602080910402602001604051908101604052809291908181526020018280546114a690614609565b80156114f35780601f106114c8576101008083540402835291602001916114f3565b820191906000526020600020905b8154815290600101906020018083116114d657829003601f168201915b505050505081565b60006001600160a01b0382166115665760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161093e565b506001600160a01b031660009081526003602052604090205490565b3361158b6115ef565b6001600160a01b0316146115b15760405162461bcd60e51b815260040161093e9061438b565b600b5460405160009161010090046001600160a01b03169060008051602061475d833981519152908390a3600b8054610100600160a81b0319169055565b600b5461010090046001600160a01b031690565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952161461167b5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604482015260640161093e565b610aad8282612e05565b60606001805461085390614609565b6001600160a01b0382163314156116e95760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161093e565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61175f338361250c565b61177b5760405162461bcd60e51b815260040161093e906143c0565b61178784848484612f36565b50505050565b336117966115ef565b6001600160a01b0316146117bc5760405162461bcd60e51b815260040161093e9061438b565b610ceb612f69565b336117cd6115ef565b6001600160a01b0316146117f35760405162461bcd60e51b815260040161093e9061438b565b600b5460ff166118155760405162461bcd60e51b815260040161093e90614290565b805182511461182357600080fd5b60005b81518160ff161015610a6f57818160ff1681518110611847576118476146f7565b602002602001015160326000858460ff1681518110611868576118686146f7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205461189b9190614556565b60326000858460ff16815181106118b4576118b46146f7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555080806118eb9061465f565b915050611826565b6002600c5414156119165760405162461bcd60e51b815260040161093e9061443a565b6002600c55611924826123f6565b61196e5760405162461bcd60e51b815260206004820152601b60248201527a109bdd1d1bdb481d1bdad95b88191bd95cc81b9bdd08195e1a5cdd602a1b604482015260640161093e565b611977816123f6565b6119be5760405162461bcd60e51b8152602060048201526018602482015277151bdc081d1bdad95b88191bd95cc81b9bdd08195e1a5cdd60421b604482015260640161093e565b6119c8338361250c565b611a145760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420617070726f76656420666f7220626f74746f6d20746f6b656e000000604482015260640161093e565b611a1e338261250c565b611a675760405162461bcd60e51b815260206004820152601a6024820152792737ba1030b8383937bb32b2103337b9103a37b8103a37b5b2b760311b604482015260640161093e565b80821415611ab35760405162461bcd60e51b8152602060048201526019602482015278546f6b656e732063616e6e6f74206265207468652073616d6560381b604482015260640161093e565b6000828152602e602052604090205460011080611add57506000828152602c602052604090205415155b611b295760405162461bcd60e51b815260206004820152601e60248201527f4e6f2074726169747320666f7220626f74746f6d20746f6b656e207965740000604482015260640161093e565b6000818152602e602052604090205460011080611b5357506000818152602c602052604090205415155b611b9d5760405162461bcd60e51b815260206004820152601b60248201527a139bc81d1c985a5d1cc8199bdc881d1bdc081d1bdad95b881e595d602a1b604482015260640161093e565b611bab601280546001019055565b611bb482612da4565b611bbd81612da4565b611bcf33611bca60125490565b612fbc565b60005b6000838152602e602052604090205460ff82161015611c5e57602e6000611bf860125490565b8152602001908152602001600020602e60008581526020019081526020016000208260ff1681548110611c2d57611c2d6146f7565b6000918252602080832090910154835460018101855593835291209091015580611c568161465f565b915050611bd2565b5060005b6000828152602e602052604090205460ff82161015611cee57602e6000611c8860125490565b8152602001908152602001600020602e60008481526020019081526020016000208260ff1681548110611cbd57611cbd6146f7565b6000918252602080832090910154835460018101855593835291209091015580611ce68161465f565b915050611c62565b507fd414523b819544947344dcb05de50cf4613dae51623cecfec7fea8b28500894a8282611d1b60125490565b6040805193845260208401929092529082015260600160405180910390a150506001600c55565b606061083e82612fd6565b33611d566115ef565b6001600160a01b031614611d7c5760405162461bcd60e51b815260040161093e9061438b565b601955565b6000818152602e602052604090205460609060011080611dae57506000828152602c602052604090205415155b611de75760405162461bcd60e51b815260206004820152600a602482015269139bc8111390481e595d60b21b604482015260640161093e565b6040805180820190915260018152607b60f81b602082015260005b6000848152602e602052604090205460ff8216101561211757611e23613c17565b60005b60068160ff161015611e97576000868152602e602052604090208054611e6b919060ff8616908110611e5a57611e5a6146f7565b906000526020600020015482613138565b828260ff1660068110611e8057611e806146f7565b602002015280611e8f8161465f565b915050611e26565b5080516000908152602f602052604090205460ff1615611ec657601d54611ec0906001906145c6565b60608201525b60208082015160009081526030909152604090205460ff1615611ef857601e54611ef2906001906145c6565b60808201525b60408082015160009081526031602052205460ff1615611f2757601f54611f21906001906145c6565b60a08201525b60005b60068160ff1610156121025760008360ff161180611f4b575060008160ff16115b15611f7757611f748460405180604001604052806002815260200161016160f51b815250613276565b93505b611f9a84604051806040016040528060018152602001601160f91b815250613276565b93506120458460208360ff1660068110611fb657611fb66146f7565b018054611fc290614609565b80601f0160208091040260200160405190810160405280929190818152602001828054611fee90614609565b801561203b5780601f106120105761010080835404028352916020019161203b565b820191906000526020600020905b81548152906001019060200180831161201e57829003601f168201915b5050505050613276565b935061206d8460405180604001604052806004815260200163111d101160e11b815250613276565b93506120c98460268360ff1660068110612089576120896146f7565b01848460ff166006811061209f5761209f6146f7565b6020020151815481106120b4576120b46146f7565b906000526020600020018054611fc290614609565b93506120ee84604051806040016040528060018152602001601160f91b815250613276565b9350806120fa8161465f565b915050611f2a565b5050808061210f9061465f565b915050611e02565b5061212a81612125856132a2565b613276565b905061216181604051806040016040528060138152602001721610112a37bbb2b9102432b4b3b43a111d101160691b815250613276565b6000848152602e6020526040902054909150612182908290612125906133dc565b90506121a781604051806040016040528060018152602001601160f91b815250613276565b90506121cc81604051806040016040528060018152602001607d60f81b815250613276565b9392505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3361220a6115ef565b6001600160a01b0316146122305760405162461bcd60e51b815260040161093e9061438b565b6001600160a01b0381166122955760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161093e565b600b546040516001600160a01b03808416926101009004169060008051602061475d83398151915290600090a3600b80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600b5460ff161561230d5760405162461bcd60e51b815260040161093e90614310565b6002600c5414156123305760405162461bcd60e51b815260040161093e9061443a565b6002600c556123426127106001614556565b826013546123509190614556565b1061236d5760405162461bcd60e51b815260040161093e90614411565b61237960146001614556565b82106123975760405162461bcd60e51b815260040161093e90614471565b346123a98366c3663566a580006145a7565b11156123c75760405162461bcd60e51b815260040161093e90614363565b6110328282612b29565b60006001600160e01b0319821663780e9d6360e01b148061083e575061083e826134d9565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612448826113f6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61248a826123f6565b6124ed5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161093e565b6000828152600a602090815260409091208251610a6f92840190613b93565b6000612517826123f6565b6125785760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161093e565b6000612583836113f6565b9050806001600160a01b0316846001600160a01b031614806125be5750836001600160a01b03166125b3846108d6565b6001600160a01b0316145b806125ce57506125ce81856121d3565b949350505050565b826001600160a01b03166125e9826113f6565b6001600160a01b0316146126515760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161093e565b6001600160a01b0382166126b35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161093e565b6126be838383613529565b6126c9600082612413565b6001600160a01b03831660009081526003602052604081208054600192906126f29084906145c6565b90915550506001600160a01b0382166000908152600360205260408120805460019290612720908490614556565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061477d83398151915291a4505050565b80601360008282546127819190614556565b9091555060009050805b828160ff161015610a6f576127a4601280546001019055565b6127af600582614693565b60ff166127c7576127c460185460195461299e565b91505b6000828152602d60205260409020601254815460018101835560009283526020909220909101556127fb33611bca60125490565b604051806020016040528061280f60125490565b9052602e600061281e60125490565b81526020810191909152604001600020612839916001613c35565b507fe38a5102423400d1b5b4da2806384f4a5b099b5ad83e3a7f5ea0b1f3740119d061286460125490565b60405190815260200160405180910390a18061287f8161465f565b91505061278b565b30318111156128d85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161093e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612925576040519150601f19603f3d011682016040523d82523d6000602084013e61292a565b606091505b5050905080610a6f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b606482015260840161093e565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001612a0e929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612a3b93929190614256565b602060405180830381600087803b158015612a5557600080fd5b505af1158015612a69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a8d919061408f565b50600083815260116020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052612ae9906001614556565b6000858152601160205260409020556125ce8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b60006005612b38846004614556565b612b429190614593565b60408051600280825260608201835292935060009290916020830190803683375050601554604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c464892506004808301926020929190829003018186803b158015612bac57600080fd5b505afa158015612bc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612be49190613dc0565b81600081518110612bf757612bf76146f7565b6001600160a01b039283166020918202929092010152601754825191169082906001908110612c2857612c286146f7565b6001600160a01b03928316602091820292909201015260155460195491169063fb3bdb41903490612c5a9086906145a7565b8430886040518663ffffffff1660e01b8152600401612c7c9493929190614499565b6000604051808303818588803b158015612c9557600080fd5b505af1158015612ca9573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052612cd29190810190613ff8565b5081601954612ce191906145a7565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca16906370a0823190612d2d903090600401614205565b60206040518083038186803b158015612d4557600080fd5b505afa158015612d59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d7d9190614155565b1015612d9b5760405162461bcd60e51b815260040161093e9061433a565b6117878461276f565b610bc381613534565b600b5460ff1615612dd05760405162461bcd60e51b815260040161093e90614310565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861137b3390565b60005b6000838152602d602052604090205460ff82161015610a6f57600060ff8216612e32575081612e6f565b82612e4160ff841660066145a7565b6040805160208101939093528201526060016040516020818303038152906040528051906020012060001c90505b80602c6000602d60008881526020019081526020016000208560ff1681548110612e9b57612e9b6146f7565b9060005260206000200154815260200190815260200160002081905550602d60008581526020019081526020016000208260ff1681548110612edf57612edf6146f7565b90600052602060002001547ff8a1c91da753d4ecdf98c005e9688ba205e18b0cf3bb314acf7458fba4f1e39382604051612f1b91815260200190565b60405180910390a25080612f2e8161465f565b915050612e08565b612f418484846125d6565b612f4d84848484613574565b6117875760405162461bcd60e51b815260040161093e906142be565b600b5460ff16612f8b5760405162461bcd60e51b815260040161093e90614290565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa3361137b565b610aad82826040518060200160405280600081525061367e565b6060612fe1826123f6565b6130475760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b606482015260840161093e565b6000828152600a60205260408120805461306090614609565b80601f016020809104026020016040519081016040528092919081815260200182805461308c90614609565b80156130d95780601f106130ae576101008083540402835291602001916130d9565b820191906000526020600020905b8154815290600101906020018083116130bc57829003601f168201915b5050505050905060006130ea6136b1565b90508051600014156130fd575092915050565b81511561312f5780826040516020016131179291906141d6565b60405160208183030381529060405292505050919050565b6125ce846136c0565b6000828152602c60205260408120546103e8908290829061315a86600161456e565b60405160200161317792919091825260ff16602082015260400190565b6040516020818303038152906040528051906020012060001c61319a919061467f565b6131a5906001614556565b905060005b601a8560ff16600681106131c0576131c06146f7565b015460ff8216101561324857601a8560ff16600681106131e2576131e26146f7565b018160ff16815481106131f7576131f76146f7565b60009182526020918290209181049091015461321f91601f166101000a900460ff16846145c6565b9250828211156132365760ff16925061083e915050565b806132408161465f565b9150506131aa565b506001601a8560ff1660068110613261576132616146f7565b015461326d91906145c6565b95945050505050565b6060828260405160200161328b9291906141d6565b604051602081830303815290604052905092915050565b60408051602080820183526000808352848152602e909152919091205460609190600211156132d15792915050565b60005b6000848152602e602052604090205460ff821610156133d557613318826040518060400160405280600981526020016801610112a37b5b2b7160bd1b815250613276565b91506133348261212561332c84600161456e565b60ff166133dc565b915061335c8260405180604001604052806004815260200163111d101160e11b815250613276565b915061339c82612125602e60008881526020019081526020016000208460ff168154811061338c5761338c6146f7565b90600052602060002001546133dc565b91506133c182604051806040016040528060018152602001601160f91b815250613276565b9150806133cd8161465f565b9150506132d4565b5092915050565b6060816134005750506040805180820190915260018152600360fc1b602082015290565b8160005b811561342a578061341481614644565b91506134239050600a83614593565b9150613404565b6000816001600160401b038111156134445761344461470d565b6040519080825280601f01601f19166020018201604052801561346e576020820181803683370190505b5090505b84156125ce576134836001836145c6565b9150613490600a8661467f565b61349b906030614556565b60f81b8183815181106134b0576134b06146f7565b60200101906001600160f81b031916908160001a9053506134d2600a86614593565b9450613472565b60006001600160e01b031982166380ac58cd60e01b148061350a57506001600160e01b03198216635b5e139f60e01b145b8061083e57506301ffc9a760e01b6001600160e01b031983161461083e565b610a6f83838361378a565b61353d81613842565b6000818152600a60205260409020805461355690614609565b159050610bc3576000818152600a60205260408120610bc391613c6f565b60006001600160a01b0384163b1561367657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906135b8903390899088908890600401614219565b602060405180830381600087803b1580156135d257600080fd5b505af1925050508015613602575060408051601f3d908101601f191682019092526135ff918101906140eb565b60015b61365c573d808015613630576040519150601f19603f3d011682016040523d82523d6000602084013e613635565b606091505b5080516136545760405162461bcd60e51b815260040161093e906142be565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125ce565b5060016125ce565b61368883836138d7565b6136956000848484613574565b610a6f5760405162461bcd60e51b815260040161093e906142be565b6060600d805461085390614609565b60606136cb826123f6565b61372f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161093e565b60006137396136b1565b9050600081511161375957604051806020016040528060008152506121cc565b80613763846133dc565b6040516020016137749291906141d6565b6040516020818303038152906040529392505050565b6001600160a01b0383166137e5576137e081600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613808565b816001600160a01b0316836001600160a01b031614613808576138088382613a03565b6001600160a01b03821661381f57610a6f81613aa0565b826001600160a01b0316826001600160a01b031614610a6f57610a6f8282613b4f565b600061384d826113f6565b905061385b81600084613529565b613866600083612413565b6001600160a01b038116600090815260036020526040812080546001929061388f9084906145c6565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b0384169060008051602061477d833981519152908390a45050565b6001600160a01b03821661392d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161093e565b613936816123f6565b156139825760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604482015260640161093e565b61398e60008383613529565b6001600160a01b03821660009081526003602052604081208054600192906139b7908490614556565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b038616908117909155905183929060008051602061477d833981519152908290a45050565b60006001613a10846114fb565b613a1a91906145c6565b600083815260076020526040902054909150808214613a6d576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613ab2906001906145c6565b60008381526009602052604081205460088054939450909284908110613ada57613ada6146f7565b906000526020600020015490508060088381548110613afb57613afb6146f7565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613b3357613b336146e1565b6001900381819060005260206000200160009055905550505050565b6000613b5a836114fb565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613b9f90614609565b90600052602060002090601f016020900481019282613bc15760008555613c07565b82601f10613bda57805160ff1916838001178555613c07565b82800160010185558215613c07579182015b82811115613c07578251825591602001919060010190613bec565b50613c13929150613ca5565b5090565b6040518060c001604052806006906020820280368337509192915050565b828054828255906000526020600020908101928215613c075791602002820182811115613c07578251825591602001919060010190613bec565b508054613c7b90614609565b6000825580601f10613c8b575050565b601f016020900490600052602060002090810190610bc391905b5b80821115613c135760008155600101613ca6565b60006001600160401b03831115613cd357613cd361470d565b613ce6601f8401601f1916602001614503565b9050828152838383011115613cfa57600080fd5b828260208301376000602084830101529392505050565b600082601f830112613d2257600080fd5b81356020613d37613d3283614533565b614503565b80838252828201915082860187848660051b8901011115613d5757600080fd5b60005b85811015613d7657813584529284019290840190600101613d5a565b5090979650505050505050565b600082601f830112613d9457600080fd5b6121cc83833560208501613cba565b600060208284031215613db557600080fd5b81356121cc81614723565b600060208284031215613dd257600080fd5b81516121cc81614723565b60008060408385031215613df057600080fd5b8235613dfb81614723565b91506020830135613e0b81614723565b809150509250929050565b600080600060608486031215613e2b57600080fd5b8335613e3681614723565b92506020840135613e4681614723565b929592945050506040919091013590565b60008060008060808587031215613e6d57600080fd5b8435613e7881614723565b93506020850135613e8881614723565b92506040850135915060608501356001600160401b03811115613eaa57600080fd5b8501601f81018713613ebb57600080fd5b613eca87823560208401613cba565b91505092959194509250565b60008060408385031215613ee957600080fd5b8235613ef481614723565b91506020830135613e0b81614738565b60008060408385031215613f1757600080fd5b8235613f2281614723565b946020939093013593505050565b60008060408385031215613f4357600080fd5b82356001600160401b0380821115613f5a57600080fd5b818501915085601f830112613f6e57600080fd5b81356020613f7e613d3283614533565b8083825282820191508286018a848660051b8901011115613f9e57600080fd5b600096505b84871015613fca578035613fb681614723565b835260019690960195918301918301613fa3565b5096505086013592505080821115613fe157600080fd5b50613fee85828601613d11565b9150509250929050565b6000602080838503121561400b57600080fd5b82516001600160401b0381111561402157600080fd5b8301601f8101851361403257600080fd5b8051614040613d3282614533565b80828252848201915084840188868560051b870101111561406057600080fd5b600094505b83851015614083578051835260019490940193918501918501614065565b50979650505050505050565b6000602082840312156140a157600080fd5b81516121cc81614738565b600080604083850312156140bf57600080fd5b50508035926020909101359150565b6000602082840312156140e057600080fd5b81356121cc81614746565b6000602082840312156140fd57600080fd5b81516121cc81614746565b60006020828403121561411a57600080fd5b81356001600160401b0381111561413057600080fd5b6125ce84828501613d83565b60006020828403121561414e57600080fd5b5035919050565b60006020828403121561416757600080fd5b5051919050565b6000806040838503121561418157600080fd5b8235915060208301356001600160401b0381111561419e57600080fd5b613fee85828601613d83565b600081518084526141c28160208601602086016145dd565b601f01601f19169290920160200192915050565b600083516141e88184602088016145dd565b8351908301906141fc8183602088016145dd565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061424c908301846141aa565b9695505050505050565b60018060a01b038416815282602082015260606040820152600061326d60608301846141aa565b6020815260006121cc60208301846141aa565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252600f908201526e4e6f7420656e6f756768204c494e4b60881b604082015260600190565b6020808252600e908201526d09cdee840cadcdeeaced0408aa8960931b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600f908201526e139bdd08195b9bdd59da081b19599d608a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600e908201526d04d6178206d696e742069732032360941b604082015260600190565b600060808201868352602060808185015281875180845260a086019150828901935060005b818110156144e35784516001600160a01b0316835293830193918301916001016144be565b50506001600160a01b039690961660408501525050506060015292915050565b604051601f8201601f191681016001600160401b038111828210171561452b5761452b61470d565b604052919050565b60006001600160401b0382111561454c5761454c61470d565b5060051b60200190565b60008219821115614569576145696146b5565b500190565b600060ff821660ff84168060ff0382111561458b5761458b6146b5565b019392505050565b6000826145a2576145a26146cb565b500490565b60008160001904831182151516156145c1576145c16146b5565b500290565b6000828210156145d8576145d86146b5565b500390565b60005b838110156145f85781810151838201526020016145e0565b838111156117875750506000910152565b600181811c9082168061461d57607f821691505b6020821081141561463e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614658576146586146b5565b5060010190565b600060ff821660ff811415614676576146766146b5565b60010192915050565b60008261468e5761468e6146cb565b500690565b600060ff8316806146a6576146a66146cb565b8060ff84160691505092915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610bc357600080fd5b8015158114610bc357600080fd5b6001600160e01b031981168114610bc357600080fdfe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212209e8fbd67d90ac32b3d5ff4db10ee3f28f80920cc07f9b7ea9852781ba3d8233b64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000eb5dd8f31a9d0f8749b940c9155a47abc10a24f10000000000000000000000007cf2ebb5ca55a8bd671a020f8bdbaf07f60f26c1000000000000000000000000b6d0a1ecbdbf4f42a8f1e0c8729a56505225d903
-----Decoded View---------------
Arg [0] : _withdrawContract (address): 0xeb5dD8F31A9D0F8749B940C9155a47ABC10a24f1
Arg [1] : _giveWellAddress (address): 0x7cF2eBb5Ca55A8bd671A020F8BDbAF07f60F26C1
Arg [2] : _charityWalletAddress (address): 0xb6D0A1Ecbdbf4f42a8f1E0C8729a56505225D903
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000eb5dd8f31a9d0f8749b940c9155a47abc10a24f1
Arg [1] : 0000000000000000000000007cf2ebb5ca55a8bd671a020f8bdbaf07f60f26c1
Arg [2] : 000000000000000000000000b6d0a1ecbdbf4f42a8f1e0c8729a56505225d903
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.