Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 20 from a total of 20 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 18878099 | 793 days ago | IN | 0 ETH | 0.00131988 | ||||
| Transfer From | 14945160 | 1357 days ago | IN | 0 ETH | 0.00696051 | ||||
| Mint | 14941114 | 1357 days ago | IN | 0.08 ETH | 0.00842834 | ||||
| Mint | 14941106 | 1357 days ago | IN | 0.08 ETH | 0.00962686 | ||||
| Mint | 14941085 | 1357 days ago | IN | 0.08 ETH | 0.00776331 | ||||
| Mint | 14939032 | 1358 days ago | IN | 0.08 ETH | 0.00978206 | ||||
| Mint | 14938953 | 1358 days ago | IN | 0.08 ETH | 0.00933069 | ||||
| Transfer From | 14806266 | 1379 days ago | IN | 0 ETH | 0.00203637 | ||||
| Owner Mint | 14773871 | 1385 days ago | IN | 0 ETH | 0.13248902 | ||||
| Owner Mint | 14773818 | 1385 days ago | IN | 0 ETH | 0.16306159 | ||||
| Owner Mint | 14756364 | 1387 days ago | IN | 0 ETH | 0.10636417 | ||||
| Mint | 14746451 | 1389 days ago | IN | 0.08 ETH | 0.0105125 | ||||
| Mint | 14746417 | 1389 days ago | IN | 0.24 ETH | 0.02987109 | ||||
| Mint | 14746273 | 1389 days ago | IN | 0.8 ETH | 0.1166804 | ||||
| Mint | 14746266 | 1389 days ago | IN | 0.24 ETH | 0.027646 | ||||
| Mint | 14745239 | 1389 days ago | IN | 0.08 ETH | 0.01069601 | ||||
| Mint | 14745032 | 1389 days ago | IN | 0.08 ETH | 0.01175942 | ||||
| Set Minting Open | 14744905 | 1389 days ago | IN | 0 ETH | 0.00395359 | ||||
| Owner Mint | 14744695 | 1389 days ago | IN | 0 ETH | 0.04276273 | ||||
| Owner Mint | 14744643 | 1389 days ago | IN | 0 ETH | 0.01660693 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 18878099 | 793 days ago | 1.92 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
FlockParty
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
/**
A flock of 10,000 groovy animated parrots partying it up in the ether.
FlockParty.xyz
*/
contract FlockParty is ERC721Enumerable, ReentrancyGuard, Ownable {
using Counters for Counters.Counter;
struct Traits {
string background;
string feathers;
string outline;
string head;
string eyes;
string beak;
string beakInner;
string beakOuter;
string torso;
string accessory;
string partiedTooHardy;
}
uint256 public constant MAX_SUPPLY = 10000;
uint256 public constant MAX_OWNER_MINT = 80;
uint256 public constant MAX_PER_MINT = 10;
uint256 public constant PRICE_PER_MINT = 0.08 ether;
string public constant NO_TRAIT_FLAG = "0";
string public constant TRAIT_FLAG = "1";
string public baseTokenURI;
bool public mintingOpen;
Counters.Counter private currentId;
Counters.Counter private ownerMints;
mapping(uint256 => uint256) private tokenIdToSeed;
constructor(string memory _baseTokenURI) ERC721("FlockParty", "FLOCK") {
setBaseURI(_baseTokenURI);
}
function mint(uint256 _count) public payable nonReentrant {
require(mintingOpen == true, "Minting not currently open");
require(currentId.current() < MAX_SUPPLY - MAX_OWNER_MINT, "Max supply reached");
require(currentId.current() + _count <= MAX_SUPPLY - MAX_OWNER_MINT, "Not enough NFTs");
require(_count > 0 && _count <= MAX_PER_MINT, "Outside of allowed mint range");
require(msg.value >= PRICE_PER_MINT * _count, "Incorrect value");
for (uint256 i = 0; i < _count; i++) {
_mint();
}
}
function ownerMint(uint256 _count) public onlyOwner {
require(currentId.current() < MAX_SUPPLY, "Max supply reached");
require(ownerMints.current() < MAX_OWNER_MINT, "Max owner supply reached");
require(currentId.current() + _count <= MAX_SUPPLY, "Not enough NFTs");
require(ownerMints.current() + _count <= MAX_OWNER_MINT, "Not enough owner NFTs");
for (uint256 i = 0; i < _count; i++) {
ownerMints.increment();
_mint();
}
}
function getSpecies(uint256 _tokenId) public view returns (string memory) {
require(_exists(_tokenId), "Token ID does not exist");
string[6] memory solidSpecies = [
"Blue",
"Green",
"Orange",
"Pink",
"Red",
"Yellow"
];
uint256 seed = _getTraitSeed(_tokenId, "SPECIES");
if (_randomOdds(seed, 550)) return solidSpecies[seed % solidSpecies.length];
else if (_randomOdds(seed, 650)) return "Shifter";
else if (_randomOdds(seed, 700)) return "Macaw";
else if (_randomOdds(seed, 750)) return "Quaker";
else if (_randomOdds(seed, 800)) return "Love";
else if (_randomOdds(seed, 850)) return "Lory";
else if (_randomOdds(seed, 900)) return "Lorikeet";
else if (_randomOdds(seed, 950)) return "Grey";
else if (_randomOdds(seed, 970)) return "Black";
else if (_randomOdds(seed, 990)) return "Gold";
else if (_randomOdds(seed, 1000)) return "Alien";
else return solidSpecies[seed % solidSpecies.length];
}
function getTraits(uint256 _tokenId) public view returns (Traits memory) {
require(_exists(_tokenId), "Token ID does not exist");
Traits memory traits;
traits.accessory = _getAccessory(_tokenId);
traits.background = _getBackground(_tokenId);
traits.beak = _getBeak(_tokenId);
traits.beakInner = _getBeakInner(_tokenId);
traits.beakOuter = _getBeakOuter(_tokenId);
traits.eyes = _getEyes(_tokenId);
traits.feathers = _getFeathers(_tokenId);
traits.head = _getHead(_tokenId);
traits.outline = _getOutline(_tokenId);
traits.partiedTooHardy = _getPartiedTooHardy(_tokenId);
traits.torso = _getTorso(_tokenId);
return traits;
}
function getSeed(uint256 _tokenId) public view returns (uint256) {
require(_exists(_tokenId), "Token ID does not exist");
return tokenIdToSeed[_tokenId];
}
function setBaseURI(string memory _baseTokenURI) public onlyOwner {
baseTokenURI = _baseTokenURI;
}
function setMintingOpen(bool _isOpen) public onlyOwner {
mintingOpen = _isOpen;
}
function withdraw(address _sendTo) public onlyOwner {
uint256 balance = address(this).balance;
payable(_sendTo).transfer(balance);
}
function _mint() internal {
currentId.increment();
tokenIdToSeed[currentId.current()] = uint256(
keccak256(
abi.encodePacked(currentId.current(), blockhash(block.number - 1), msg.sender)
)
);
_safeMint(msg.sender, currentId.current());
}
function _baseURI() internal view virtual override returns (string memory) {
return baseTokenURI;
}
function _getFeathers(uint256 _tokenId) internal view returns (string memory) {
return getSpecies(_tokenId);
}
function _getOutline(uint256 _tokenId) internal view returns (string memory) {
return getSpecies(_tokenId);
}
function _getBeak(uint256 _tokenId) internal view returns (string memory) {
return getSpecies(_tokenId);
}
function _getHead(uint256 _tokenId) internal view returns (string memory) {
string[48] memory head = [
"BeanieBlue",
"BeanieGreen",
"BeanieGrey",
"BeanieHoliday",
"BeanieRed",
"BeanieYellow",
"Crown",
"Flames",
"FlowerOrange",
"FlowerPink",
"FlowerYellow",
"HairBalding",
"HairBobCut",
"HairCombOver",
"HairMessyCrop",
"HairMohawk",
"HairPompadour",
"HairPuff",
"HairPuffPigtails",
"HairSpikedLiberty",
"HairSpikedLibertyPink",
"HairSpikedMessy",
"Halo",
"HatCop",
"HatCowboy",
"HatFedora",
"HatFiesta",
"HatPartyBlue",
"HatPartyDots",
"HatPartyFP",
"HatPartyLines",
"HatPartyPink",
"HatPartyRed",
"HatPartyYellow",
"HatPartyZigZag",
"HatPirate",
"HatSanta",
"HatTrapper",
"HeadbandFlowersBlue",
"HeadbandFlowersPurple",
"Headphones",
"HelmetViking",
"HornsLarge",
"HornsSmall",
"LightBulb",
"UnicornGold",
"UnicornIvory",
"UnicornRainbow"
];
uint256 seed = _getTraitSeed(_tokenId, "HEAD");
if (_isSpecies(_tokenId, "Alien")) return NO_TRAIT_FLAG;
else if (_isPartiedTooHardy(_tokenId)) return NO_TRAIT_FLAG;
else if (_randomOdds(seed, 250)) return NO_TRAIT_FLAG;
else return head[seed % head.length];
}
function _getEyes(uint256 _tokenId) internal view returns (string memory) {
string[34] memory eyes = [
"Blindfold",
"EyesAngry",
"EyesAsterick",
"EyesCheckered",
"EyesCrossed",
"EyesEvil",
"EyesFaded",
"EyesLaserBlue",
"EyesLaserRed",
"EyesOvalWithEyelashes",
"EyesSleepy",
"EyesSurprised",
"EyesVerified",
"EyesWandering",
"EyesWink",
"EyesWorried",
"EyesX",
"Glasses3d",
"GlassesAngular",
"GlassesAviator",
"GlassesDoubleWideBlue",
"GlassesDoubleWideRed",
"GlassesDoubleWideYellow",
"GlassesPrescriptionAngular",
"GlassesPrescriptionRound",
"GlassesShutterBlue",
"GlassesShutterGreen",
"GlassesShutterRed",
"GlassesShutterYellow",
"HeadsetCyclops",
"HeadsetCyclopsLaser",
"HeadsetVr",
"MaskMasquerade",
"Patch"
];
uint256 seed = _getTraitSeed(_tokenId, "EYES");
if (_isSpecies(_tokenId, "Alien")) return "EyesAlien";
else if (_randomOdds(seed, 100)) return "EyesOval";
else return eyes[seed % eyes.length];
}
function _getBeakInner(uint256 _tokenId) internal view returns (string memory) {
string[9] memory beakInner = [
"Joint",
"MustacheBandito",
"MustacheChevron",
"MustacheEnglish",
"MustacheHandlebar",
"MustacheHorseshoe",
"MustacheImperial",
"Pipe",
"Worm"
];
uint256 seed = _getTraitSeed(_tokenId, "BEAK_INNER");
if (_randomOdds(seed, 750)) return NO_TRAIT_FLAG;
else return beakInner[seed % beakInner.length];
}
function _getBeakOuter(uint256 _tokenId) internal view returns (string memory) {
string[8] memory beakOuter = [
"BandageGreen",
"BandageRed",
"Crack",
"PiercingHoopDoubleGold",
"PiercingHoopDoubleSilver",
"PiercingHoopGold",
"PiercingHoopSilver",
"PiercingStud"
];
uint256 seed = _getTraitSeed(_tokenId, "BEAK_OUTER");
if (_randomOdds(seed, 750)) return NO_TRAIT_FLAG;
else return beakOuter[seed % beakOuter.length];
}
function _getTorso(uint256 _tokenId) internal view returns (string memory) {
string[41] memory torso = [
"ShirtAligator",
"ShirtClub",
"ShirtConfettiBlack",
"ShirtConfettiBlue",
"ShirtCrewNeckBlue",
"ShirtCrewNeckGreen",
"ShirtCrewNeckRed",
"ShirtCrewNeckWhite",
"ShirtFP",
"ShirtGradient",
"ShirtHawaiian",
"ShirtHodl",
"ShirtLeopard",
"ShirtMarijuana",
"ShirtPineapples",
"ShirtPlaidBlue",
"ShirtPlaidRed",
"ShirtPlaidWhite",
"ShirtPsychodelic",
"ShirtRasta",
"ShirtRoses",
"ShirtTieDye",
"ShirtTiger",
"ShirtUnicode",
"ShirtVNeckBabyBlue",
"ShirtVNeckGrey",
"ShirtVNeckPurple",
"ShirtVNeckWhite",
"ShirtWagmi",
"ShirtZebra",
"SweaterChristmas",
"TattooAnchor",
"TattooBarbedWire",
"TattooEthLogo",
"TattooHeartAndArrow",
"TattooHodl",
"TattooMom",
"TattooRose",
"TattooSparrow",
"TattooVerified",
"TattooWagmi"
];
uint256 seed = _getTraitSeed(_tokenId, "TORSO");
if (_randomOdds(seed, 250)) return NO_TRAIT_FLAG;
else return torso[seed % torso.length];
}
function _getAccessory(uint256 _tokenId) internal view returns (string memory) {
string[21] memory accessory = [
"BeerMug",
"Bong",
"Broom",
"Burger",
"ChainFPGold",
"ChainFPSilver",
"ChainGold",
"ChainSilver",
"CoffeeCup",
"Diamond",
"FortyHands",
"Hammer",
"Lolipop",
"Moon",
"Pizza",
"RocketShip",
"RubberDuck",
"ScienceBeaker",
"UpVote",
"Verified",
"WineGlass"
];
uint256 seed = _getTraitSeed(_tokenId, "ACCESSORY");
if (_isPartiedTooHardy(_tokenId)) return "NeckBrace";
else if (_randomOdds(seed, 900)) return NO_TRAIT_FLAG;
else return accessory[seed % accessory.length];
}
function _getBackground(uint256 _tokenId) internal view returns (string memory) {
string[10] memory solidBg = [
"Blue",
"Cyan",
"Green",
"Grey",
"Orange",
"Pink",
"Purple",
"Red",
"White",
"Yellow"
];
string[4] memory animatedBg = [
"FlashingOne",
"FlashingTwo",
"FlashingThree",
"FlashingFour"
];
uint256 seed = _getTraitSeed(_tokenId, "BACKGROUND");
if (_isPartiedTooHardy(_tokenId)) return animatedBg[seed % animatedBg.length];
else if (_randomOdds(seed, 930)) return solidBg[seed % solidBg.length];
else if (_randomOdds(seed, 940)) return "GradientOne";
else if (_randomOdds(seed, 950)) return "GradientTwo";
else if (_randomOdds(seed, 960)) return "GradientThree";
else if (_randomOdds(seed, 970)) return "ConfettiOne";
else if (_randomOdds(seed, 980)) return "ConfettiTwo";
else if (_randomOdds(seed, 985)) return "Gold";
else if (_randomOdds(seed, 990)) return "BinaryGrass";
else if (_randomOdds(seed, 995)) return "BinaryRedSands";
else if (_randomOdds(seed, 1000)) return "BinaryHomebrew";
else return solidBg[seed % solidBg.length];
}
function _getPartiedTooHardy(uint256 _tokenId) internal view returns (string memory) {
uint256 seed = _getTraitSeed(_tokenId, "PARTIED_TOO_HARDY");
if (_randomOdds(seed, 975)) return NO_TRAIT_FLAG;
else return TRAIT_FLAG;
}
function _isSpecies(uint256 _tokenId, string memory _species) internal view returns (bool) {
return _stringToBytes(getSpecies(_tokenId)) == _stringToBytes(_species);
}
function _isPartiedTooHardy(uint256 _tokenId) internal view returns (bool) {
return _stringToBytes(_getPartiedTooHardy(_tokenId)) == _stringToBytes(TRAIT_FLAG);
}
function _getTraitSeed(uint256 _tokenId, string memory _traitName) internal view returns (uint256) {
uint256 tokenIdSeed = getSeed(_tokenId);
return uint256(keccak256(abi.encodePacked(
string(abi.encodePacked(_traitName, Strings.toString(tokenIdSeed)))
)));
}
function _randomOdds(uint256 _seed, uint256 _chance) internal pure returns (bool) {
return (_seed % 1000) + 1 <= _chance;
}
function _stringToBytes(string memory _string) internal pure returns (bytes32) {
return keccak256(bytes(_string));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. 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;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @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
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)
pragma solidity ^0.8.0;
import "../ERC721.sol";
import "./IERC721Enumerable.sol";
/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
/**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overridden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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);
_afterTokenTransfer(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);
_afterTokenTransfer(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 from incorrect owner");
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);
_afterTokenTransfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}{
"remappings": [],
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "london",
"libraries": {},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_OWNER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NO_TRAIT_FLAG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAIT_FLAG","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint256","name":"_tokenId","type":"uint256"}],"name":"getSeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getSpecies","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTraits","outputs":[{"components":[{"internalType":"string","name":"background","type":"string"},{"internalType":"string","name":"feathers","type":"string"},{"internalType":"string","name":"outline","type":"string"},{"internalType":"string","name":"head","type":"string"},{"internalType":"string","name":"eyes","type":"string"},{"internalType":"string","name":"beak","type":"string"},{"internalType":"string","name":"beakInner","type":"string"},{"internalType":"string","name":"beakOuter","type":"string"},{"internalType":"string","name":"torso","type":"string"},{"internalType":"string","name":"accessory","type":"string"},{"internalType":"string","name":"partiedTooHardy","type":"string"}],"internalType":"struct FlockParty.Traits","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"ownerMint","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOpen","type":"bool"}],"name":"setMintingOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sendTo","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b506040516200517138038062005171833981016040819052620000349162000244565b604080518082018252600a815269466c6f636b506172747960b01b602080830191825283518085019094526005845264464c4f434b60d81b908401528151919291620000839160009162000188565b5080516200009990600190602084019062000188565b50506001600a5550620000ac33620000be565b620000b78162000110565b506200035c565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b546001600160a01b031633146200016f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b80516200018490600c90602084019062000188565b5050565b828054620001969062000320565b90600052602060002090601f016020900481019282620001ba576000855562000205565b82601f10620001d557805160ff191683800117855562000205565b8280016001018555821562000205579182015b8281111562000205578251825591602001919060010190620001e8565b506200021392915062000217565b5090565b5b8082111562000213576000815560010162000218565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200025857600080fd5b82516001600160401b03808211156200027057600080fd5b818501915085601f8301126200028557600080fd5b8151818111156200029a576200029a6200022e565b604051601f8201601f19908116603f01168101908382118183101715620002c557620002c56200022e565b816040528281528886848701011115620002de57600080fd5b600093505b82841015620003025784840186015181850187015292850192620002e3565b82841115620003145760008684830101525b98975050505050505050565b600181811c908216806200033557607f821691505b6020821081036200035657634e487b7160e01b600052602260045260246000fd5b50919050565b614e05806200036c6000396000f3fe6080604052600436106102045760003560e01c8063789d308c11610118578063b033caf1116100a0578063e0d4ea371161006f578063e0d4ea37146105bd578063e1dc0761146105dd578063e985e9c51461060a578063f19e75d414610653578063f2fde38b1461067357600080fd5b8063b033caf114610548578063b88d4fde14610568578063c87b56dd14610588578063d547cfb7146105a857600080fd5b8063938007aa116100e7578063938007aa146104be57806395d89b41146104eb5780639eb6ab6214610500578063a0712d6814610515578063a22cb4651461052857600080fd5b8063789d308c1461043d57806386b8703b1461046a5780638da5cb5b146104865780638f4bb497146104a457600080fd5b80632f745c591161019b57806351cff8d91161016a57806351cff8d9146103a857806355f804b3146103c85780636352211e146103e857806370a0823114610408578063715018a61461042857600080fd5b80632f745c591461033257806332cb6b0c1461035257806342842e0e146103685780634f6ccce71461038857600080fd5b806309d42b30116101d757806309d42b30146102ba57806318160ddd146102dd57806323b872dd146102f25780632be6a2a91461031257600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b506102296102243660046146a2565b610693565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b506102536106be565b6040516102359190614717565b34801561026c57600080fd5b5061028061027b36600461472a565b610750565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b336600461475f565b6107dd565b005b3480156102c657600080fd5b506102cf600a81565b604051908152602001610235565b3480156102e957600080fd5b506008546102cf565b3480156102fe57600080fd5b506102b861030d366004614789565b6108f2565b34801561031e57600080fd5b5061025361032d36600461472a565b610923565b34801561033e57600080fd5b506102cf61034d36600461475f565b610cae565b34801561035e57600080fd5b506102cf61271081565b34801561037457600080fd5b506102b8610383366004614789565b610d44565b34801561039457600080fd5b506102cf6103a336600461472a565b610d5f565b3480156103b457600080fd5b506102b86103c33660046147c5565b610df2565b3480156103d457600080fd5b506102b86103e336600461486c565b610e54565b3480156103f457600080fd5b5061028061040336600461472a565b610e95565b34801561041457600080fd5b506102cf6104233660046147c5565b610f0c565b34801561043457600080fd5b506102b8610f93565b34801561044957600080fd5b50610253604051806040016040528060018152602001600360fc1b81525081565b34801561047657600080fd5b506102cf67011c37937e08000081565b34801561049257600080fd5b50600b546001600160a01b0316610280565b3480156104b057600080fd5b50600d546102299060ff1681565b3480156104ca57600080fd5b50610253604051806040016040528060018152602001603160f81b81525081565b3480156104f757600080fd5b50610253610fc9565b34801561050c57600080fd5b506102cf605081565b6102b861052336600461472a565b610fd8565b34801561053457600080fd5b506102b86105433660046148c5565b611217565b34801561055457600080fd5b506102b86105633660046148f8565b611222565b34801561057457600080fd5b506102b8610583366004614913565b61125f565b34801561059457600080fd5b506102536105a336600461472a565b611297565b3480156105b457600080fd5b50610253611362565b3480156105c957600080fd5b506102cf6105d836600461472a565b6113f0565b3480156105e957600080fd5b506105fd6105f836600461472a565b61142a565b604051610235919061498f565b34801561061657600080fd5b50610229610625366004614ae0565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561065f57600080fd5b506102b861066e36600461472a565b6114ff565b34801561067f57600080fd5b506102b861068e3660046147c5565b6116b5565b60006001600160e01b0319821663780e9d6360e01b14806106b857506106b882611750565b92915050565b6060600080546106cd90614b0a565b80601f01602080910402602001604051908101604052809291908181526020018280546106f990614b0a565b80156107465780601f1061071b57610100808354040283529160200191610746565b820191906000526020600020905b81548152906001019060200180831161072957829003601f168201915b5050505050905090565b600061075b826117a0565b6107c15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107e882610e95565b9050806001600160a01b0316836001600160a01b0316036108555760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107b8565b336001600160a01b038216148061087157506108718133610625565b6108e35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107b8565b6108ed83836117bd565b505050565b6108fc338261182b565b6109185760405162461bcd60e51b81526004016107b890614b3e565b6108ed838383611915565b606061092e826117a0565b61094a5760405162461bcd60e51b81526004016107b890614b8f565b60006040518060c0016040528060405180604001604052806004815260200163426c756560e01b81525081526020016040518060400160405280600581526020016423b932b2b760d91b8152508152602001604051806040016040528060068152602001654f72616e676560d01b81525081526020016040518060400160405280600481526020016350696e6b60e01b81525081526020016040518060400160405280600381526020016214995960ea1b81525081526020016040518060400160405280600681526020016559656c6c6f7760d01b81525081525090506000610a5284604051806040016040528060078152602001665350454349455360c81b815250611abc565b9050610a6081610226611b22565b15610a8e5781610a71600683614bdc565b60068110610a8157610a81614bf0565b6020020151949350505050565b610a9a8161028a611b22565b15610ac557505060408051808201909152600781526629b434b33a32b960c91b602082015292915050565b610ad1816102bc611b22565b15610afa5750506040805180820190915260058152644d6163617760d81b602082015292915050565b610b06816102ee611b22565b15610b3057505060408051808201909152600681526528bab0b5b2b960d11b602082015292915050565b610b3c81610320611b22565b15610b645750506040805180820190915260048152634c6f766560e01b602082015292915050565b610b7081610352611b22565b15610b985750506040805180820190915260048152634c6f727960e01b602082015292915050565b610ba481610384611b22565b15610bd0575050604080518082019091526008815267131bdc9a5ad9595d60c21b602082015292915050565b610bdc816103b6611b22565b15610c045750506040805180820190915260048152634772657960e01b602082015292915050565b610c10816103ca611b22565b15610c39575050604080518082019091526005815264426c61636b60d81b602082015292915050565b610c45816103de611b22565b15610c6d57505060408051808201909152600481526311dbdb1960e21b602082015292915050565b610c79816103e8611b22565b15610ca257505060408051808201909152600581526420b634b2b760d91b602082015292915050565b81610a71600683614bdc565b6000610cb983610f0c565b8210610d1b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107b8565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6108ed8383836040518060200160405280600081525061125f565b6000610d6a60085490565b8210610dcd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107b8565b60088281548110610de057610de0614bf0565b90600052602060002001549050919050565b600b546001600160a01b03163314610e1c5760405162461bcd60e51b81526004016107b890614c06565b60405147906001600160a01b0383169082156108fc029083906000818181858888f193505050501580156108ed573d6000803e3d6000fd5b600b546001600160a01b03163314610e7e5760405162461bcd60e51b81526004016107b890614c06565b8051610e9190600c906020840190614599565b5050565b6000818152600260205260408120546001600160a01b0316806106b85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107b8565b60006001600160a01b038216610f775760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107b8565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03163314610fbd5760405162461bcd60e51b81526004016107b890614c06565b610fc76000611b45565b565b6060600180546106cd90614b0a565b6002600a540361102a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107b8565b6002600a55600d5460ff1615156001146110865760405162461bcd60e51b815260206004820152601a60248201527f4d696e74696e67206e6f742063757272656e746c79206f70656e00000000000060448201526064016107b8565b6110936050612710614c51565b600e54106110d85760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b60448201526064016107b8565b6110e56050612710614c51565b816110ef600e5490565b6110f99190614c68565b11156111395760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420656e6f756768204e46547360881b60448201526064016107b8565b60008111801561114a5750600a8111155b6111965760405162461bcd60e51b815260206004820152601d60248201527f4f757473696465206f6620616c6c6f776564206d696e742072616e676500000060448201526064016107b8565b6111a88167011c37937e080000614c80565b3410156111e95760405162461bcd60e51b815260206004820152600f60248201526e496e636f72726563742076616c756560881b60448201526064016107b8565b60005b8181101561120e576111fc611b97565b8061120681614c9f565b9150506111ec565b50506001600a55565b610e91338383611c33565b600b546001600160a01b0316331461124c5760405162461bcd60e51b81526004016107b890614c06565b600d805460ff1916911515919091179055565b611269338361182b565b6112855760405162461bcd60e51b81526004016107b890614b3e565b61129184848484611d01565b50505050565b60606112a2826117a0565b6113065760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107b8565b6000611310611d34565b90506000815111611330576040518060200160405280600081525061135b565b8061133a84611d43565b60405160200161134b929190614cb8565b6040516020818303038152906040525b9392505050565b600c805461136f90614b0a565b80601f016020809104026020016040519081016040528092919081815260200182805461139b90614b0a565b80156113e85780601f106113bd576101008083540402835291602001916113e8565b820191906000526020600020905b8154815290600101906020018083116113cb57829003601f168201915b505050505081565b60006113fb826117a0565b6114175760405162461bcd60e51b81526004016107b890614b8f565b5060009081526010602052604090205490565b61143261461d565b61143b826117a0565b6114575760405162461bcd60e51b81526004016107b890614b8f565b61145f61461d565b61146883611e44565b61012082015261147783612226565b815261148283612703565b60a08201526114908361270e565b60c082015261149e83612915565b60e08201526114ac83612ae1565b60808201526114ba83612703565b60208201526114c88361311e565b60608201526114d683612703565b60408201526114e483613901565b6101408201526114f38361398f565b61010082015292915050565b600b546001600160a01b031633146115295760405162461bcd60e51b81526004016107b890614c06565b612710611535600e5490565b106115775760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b60448201526064016107b8565b6050611582600f5490565b106115cf5760405162461bcd60e51b815260206004820152601860248201527f4d6178206f776e657220737570706c792072656163686564000000000000000060448201526064016107b8565b612710816115dc600e5490565b6115e69190614c68565b11156116265760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420656e6f756768204e46547360881b60448201526064016107b8565b605081611632600f5490565b61163c9190614c68565b11156116825760405162461bcd60e51b81526020600482015260156024820152744e6f7420656e6f756768206f776e6572204e46547360581b60448201526064016107b8565b60005b81811015610e915761169b600f80546001019055565b6116a3611b97565b806116ad81614c9f565b915050611685565b600b546001600160a01b031633146116df5760405162461bcd60e51b81526004016107b890614c06565b6001600160a01b0381166117445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107b8565b61174d81611b45565b50565b60006001600160e01b031982166380ac58cd60e01b148061178157506001600160e01b03198216635b5e139f60e01b145b806106b857506301ffc9a760e01b6001600160e01b03198316146106b8565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906117f282610e95565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611836826117a0565b6118975760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107b8565b60006118a283610e95565b9050806001600160a01b0316846001600160a01b031614806118e957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061190d5750836001600160a01b031661190284610750565b6001600160a01b0316145b949350505050565b826001600160a01b031661192882610e95565b6001600160a01b03161461198c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016107b8565b6001600160a01b0382166119ee5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107b8565b6119f983838361404c565b611a046000826117bd565b6001600160a01b0383166000908152600360205260408120805460019290611a2d908490614c51565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a5b908490614c68565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080611ac8846113f0565b905082611ad482611d43565b604051602001611ae5929190614cb8565b60408051601f1981840301815290829052611b0291602001614ce7565b60408051601f198184030181529190528051602090910120949350505050565b600081611b316103e885614bdc565b611b3c906001614c68565b11159392505050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611ba5600e80546001019055565b600e54611bb3600143614c51565b4033604051602001611bea93929190928352602083019190915260601b6bffffffffffffffffffffffff1916604082015260540190565b6040516020818303038152906040528051906020012060001c60106000611c10600e5490565b8152602081019190915260400160002055610fc733611c2e600e5490565b614104565b816001600160a01b0316836001600160a01b031603611c945760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107b8565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611d0c848484611915565b611d188484848461411e565b6112915760405162461bcd60e51b81526004016107b890614d03565b6060600c80546106cd90614b0a565b606081600003611d6a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d945780611d7e81614c9f565b9150611d8d9050600a83614d55565b9150611d6e565b60008167ffffffffffffffff811115611daf57611daf6147e0565b6040519080825280601f01601f191660200182016040528015611dd9576020820181803683370190505b5090505b841561190d57611dee600183614c51565b9150611dfb600a86614bdc565b611e06906030614c68565b60f81b818381518110611e1b57611e1b614bf0565b60200101906001600160f81b031916908160001a905350611e3d600a86614d55565b9450611ddd565b60606000604051806102a0016040528060405180604001604052806007815260200166426565724d756760c81b815250815260200160405180604001604052806004815260200163426f6e6760e01b81525081526020016040518060400160405280600581526020016442726f6f6d60d81b815250815260200160405180604001604052806006815260200165213ab933b2b960d11b81525081526020016040518060400160405280600b81526020016a10da185a5b919411dbdb1960aa1b81525081526020016040518060400160405280600d81526020016c21b430b4b7232829b4b63b32b960991b81525081526020016040518060400160405280600981526020016810da185a5b91dbdb1960ba1b81525081526020016040518060400160405280600b81526020016a21b430b4b729b4b63b32b960a91b8152508152602001604051806040016040528060098152602001680436f666665654375760bc1b815250815260200160405180604001604052806007815260200166111a585b5bdb9960ca1b81525081526020016040518060400160405280600a815260200169466f72747948616e647360b01b8152508152602001604051806040016040528060068152602001652430b6b6b2b960d11b81525081526020016040518060400160405280600781526020016604c6f6c69706f760cc1b81525081526020016040518060400160405280600481526020016326b7b7b760e11b81525081526020016040518060400160405280600581526020016450697a7a6160d81b81525081526020016040518060400160405280600a8152602001690526f636b6574536869760b41b81525081526020016040518060400160405280600a8152602001695275626265724475636b60b01b81525081526020016040518060400160405280600d81526020016c29b1b4b2b731b2a132b0b5b2b960991b8152508152602001604051806040016040528060068152602001655570566f746560d01b81525081526020016040518060400160405280600881526020016715995c9a599a595960c21b81525081526020016040518060400160405280600981526020016857696e65476c61737360b81b815250815250905060006121a184604051806040016040528060098152602001684143434553534f525960b81b815250611abc565b90506121ac8461421f565b156121d95750506040805180820190915260098152684e65636b427261636560b81b602082015292915050565b6121e581610384611b22565b1561220a5750506040805180820190915260018152600360fc1b602082015292915050565b81612216601583614bdc565b60158110610a8157610a81614bf0565b6060600060405180610140016040528060405180604001604052806004815260200163426c756560e01b81525081526020016040518060400160405280600481526020016321bcb0b760e11b81525081526020016040518060400160405280600581526020016423b932b2b760d91b8152508152602001604051806040016040528060048152602001634772657960e01b8152508152602001604051806040016040528060068152602001654f72616e676560d01b81525081526020016040518060400160405280600481526020016350696e6b60e01b815250815260200160405180604001604052806006815260200165507572706c6560d01b81525081526020016040518060400160405280600381526020016214995960ea1b815250815260200160405180604001604052806005815260200164576869746560d81b81525081526020016040518060400160405280600681526020016559656c6c6f7760d01b8152508152509050600060405180608001604052806040518060400160405280600b81526020016a466c617368696e674f6e6560a81b81525081526020016040518060400160405280600b81526020016a466c617368696e6754776f60a81b81525081526020016040518060400160405280600d81526020016c466c617368696e67546872656560981b81525081526020016040518060400160405280600c81526020016b233630b9b434b733a337bab960a11b81525081525090506000612473856040518060400160405280600a815260200169109050d2d1d493d5539160b21b815250611abc565b905061247e8561421f565b156124ad578161248f600483614bdc565b6004811061249f5761249f614bf0565b602002015195945050505050565b6124b9816103a2611b22565b156124da57826124ca600a83614bdc565b600a811061249f5761249f614bf0565b6124e6816103ac611b22565b1561251657505060408051808201909152600b81526a4772616469656e744f6e6560a81b60208201529392505050565b612522816103b6611b22565b1561255257505060408051808201909152600b81526a4772616469656e7454776f60a81b60208201529392505050565b61255e816103c0611b22565b1561259057505060408051808201909152600d81526c4772616469656e74546872656560981b60208201529392505050565b61259c816103ca611b22565b156125cc57505060408051808201909152600b81526a436f6e66657474694f6e6560a81b60208201529392505050565b6125d8816103d4611b22565b1561260857505060408051808201909152600b81526a436f6e666574746954776f60a81b60208201529392505050565b612614816103d9611b22565b1561263d57505060408051808201909152600481526311dbdb1960e21b60208201529392505050565b612649816103de611b22565b1561267957505060408051808201909152600b81526a42696e617279477261737360a81b60208201529392505050565b612685816103e3611b22565b156126b857505060408051808201909152600e81526d42696e61727952656453616e647360901b60208201529392505050565b6126c4816103e8611b22565b156126f757505060408051808201909152600e81526d42696e617279486f6d656272657760901b60208201529392505050565b826124ca600a83614bdc565b60606106b882610923565b6060600060405180610120016040528060405180604001604052806005815260200164129bda5b9d60da1b81525081526020016040518060400160405280600f81526020016e4d7573746163686542616e6469746f60881b81525081526020016040518060400160405280600f81526020016e26bab9ba30b1b432a1b432bb3937b760891b81525081526020016040518060400160405280600f81526020016e09aeae6e8c2c6d0ca8adcced8d2e6d608b1b81525081526020016040518060400160405280601181526020017026bab9ba30b1b432a430b7323632b130b960791b8152508152602001604051806040016040528060118152602001704d75737461636865486f72736573686f6560781b81525081526020016040518060400160405280601081526020016f135d5cdd1858da19525b5c195c9a585b60821b8152508152602001604051806040016040528060048152602001635069706560e01b815250815260200160405180604001604052806004815260200163576f726d60e01b815250815250905060006128c6846040518060400160405280600a8152602001692122a0a5afa4a72722a960b11b815250611abc565b90506128d4816102ee611b22565b156128f95750506040805180820190915260018152600360fc1b602082015292915050565b81612905600983614bdc565b60098110610a8157610a81614bf0565b6040805161014081018252600c61010082018181526b2130b73230b3b2a3b932b2b760a11b610120840152825282518084018452600a8082526910985b991859d954995960b21b60208381019190915280850192909252845180860186526005815264437261636b60d81b8184015284860152845180860186526016815275141a595c98da5b99d21bdbdc111bdd589b1951dbdb1960521b8184015260608581019190915285518087018752601881527f5069657263696e67486f6f70446f75626c6553696c766572000000000000000081850152608086015285518087018752601081526f141a595c98da5b99d21bdbdc11dbdb1960821b8185015260a08601528551808701875260128152712834b2b931b4b733a437b7b829b4b63b32b960711b8185015260c0860152855180870187529384526b141a595c98da5b99d4dd1d5960a21b8484015260e085019390935284518086019095528452692122a0a5afa7aaaa22a960b11b9084015291600090612a92908590611abc565b9050612aa0816102ee611b22565b15612ac55750506040805180820190915260018152600360fc1b602082015292915050565b81612ad1600883614bdc565b60088110610a8157610a81614bf0565b60408051610480810182526009610440820181815268109b1a5b99199bdb1960ba1b6104608401528252825180840184528181526845796573416e67727960b81b6020828101919091528084019190915283518085018552600c8082526b45796573417374657269636b60a01b828401528486019190915284518086018652600d8082526c115e595cd0da1958dad95c9959609a1b8285015260608681019290925286518088018852600b8082526a115e595cd0dc9bdcdcd95960aa1b82870152608088019190915287518089018952600880825267115e595cd15d9a5b60c21b8288015260a08901919091528851808a018a5287815268115e595cd19859195960ba1b8188015260c08901528851808a018a528381526c457965734c61736572426c756560981b8188015260e08901528851808a018a528581526b115e595cd3185cd95c94995960a21b818801526101008901528851808a018a52601580825274457965734f76616c576974684579656c617368657360581b828901526101208a01919091528951808b018b52600a81526945796573536c6565707960b01b818901526101408a01528951808b018b528481526c115e595cd4dd5c9c1c9a5cd959609a1b818901526101608a01528951808b018b529586526b115e595cd5995c9a599a595960a21b868801526101808901959095528851808a018a529283526c4579657357616e646572696e6760981b838701526101a088019290925287518089018952918252674579657357696e6b60c01b828601526101c0870191909152865180880188529081526a115e595cd5dbdc9c9a595960aa1b818501526101e08601528551808701875260058082526408af2cae6b60db1b82860152610200870191909152865180880188528581526811db185cdcd95cccd960ba1b8186015261022087015286518088018852600e8082526d23b630b9b9b2b9a0b733bab630b960911b82870152610240880191909152875180890189528181526d23b630b9b9b2b9a0bb34b0ba37b960911b818701526102608801528751808901895293845274476c6173736573446f75626c6557696465426c756560581b848601526102808701939093528651808801885260148082527311db185cdcd95cd11bdd589b1955da591954995960621b828701526102a088019190915287518089018952601781527f476c6173736573446f75626c655769646559656c6c6f77000000000000000000818701526102c088015287518089018952601a81527f476c6173736573507265736372697074696f6e416e67756c6172000000000000818701526102e088015287518089018952601881527f476c6173736573507265736372697074696f6e526f756e64000000000000000081870152610300880152875180890189526012815271476c617373657353687574746572426c756560701b818701526103208801528751808901895260138082527223b630b9b9b2b9a9b43aba3a32b923b932b2b760691b828801526103408901919091528851808a018a52601181527011db185cdcd95cd4da1d5d1d195c949959607a1b818801526103608901528851808a018a5291825273476c61737365735368757474657259656c6c6f7760601b82870152610380880191909152875180890189528481526d486561647365744379636c6f707360901b818701526103a088015287518089018952908152722432b0b239b2ba21bcb1b637b839a630b9b2b960691b818601526103c087015286518088018852948552682432b0b239b2ba2b3960b91b858501526103e0860194909452855180870187529182526d4d61736b4d61737175657261646560901b8284015261040085019190915284518086018652928352640a0c2e8c6d60db1b83830152610420840192909252835180850190945260048452634559455360e01b9084015291600090613075908590611abc565b905061309e846040518060400160405280600581526020016420b634b2b760d91b815250614279565b156130cb57505060408051808201909152600981526822bcb2b9a0b634b2b760b91b602082015292915050565b6130d6816064611b22565b15613102575050604080518082019091526008815267115e595cd3dd985b60c21b602082015292915050565b8161310e602283614bdc565b60228110610a8157610a81614bf0565b6040805161064081018252600a6106008201818152694265616e6965426c756560b01b610620840152825282518084018452600b8082526a2132b0b734b2a3b932b2b760a91b6020838101919091528085019290925284518086018652838152694265616e69654772657960b01b818401528486015284518086018652600d8082526c4265616e6965486f6c6964617960981b82850152606086810192909252865180880188526009808252681099585b9a5954995960ba1b82870152608088019190915287518089018952600c8082526b4265616e696559656c6c6f7760a01b8288015260a08901919091528851808a018a52600581526421b937bbb760d91b8188015260c08901528851808a018a52600680825265466c616d657360d01b8289015260e08a01919091528951808b018b528281526b466c6f7765724f72616e676560a01b818901526101008a01528951808b018b5288815269466c6f77657250696e6b60b01b818901526101208a01528951808b018b528281526b466c6f77657259656c6c6f7760a01b818901526101408a01528951808b018b528681526a4861697242616c64696e6760a81b818901526101608a01528951808b018b528881526912185a5c909bd890dd5d60b21b818901526101808a01528951808b018b528281526b2430b4b921b7b6b127bb32b960a11b818901526101a08a01528951808b018b528481526c0486169724d6573737943726f7609c1b818901526101c08a01528951808b018b5288815269486169724d6f6861776b60b01b818901526101e08a01528951808b018b528481526c2430b4b92837b6b830b237bab960991b818901526102008a01528951808b018b526008808252672430b4b9283ab33360c11b828a01526102208b01919091528a51808c018c52601081526f48616972507566665069677461696c7360801b818a01526102408b01528a51808c018c526011815270486169725370696b65644c69626572747960781b818a01526102608b01528a51808c018c52601580825274486169725370696b65644c69626572747950696e6b60581b828b01526102808c01919091528b51808d018d52600f81526e486169725370696b65644d6573737960881b818b01526102a08c01528b51808d018d5260048082526348616c6f60e01b828c01526102c08d01919091528c51808e018e52938452650486174436f760d41b848b01526102e08c01939093528b51808d018d5285815268486174436f77626f7960b81b818b01526103008c01528b51808d018d52858152684861744665646f726160b81b818b01526103208c01528b51808d018d528581526848617446696573746160b81b818b01526103408c01528b51808d018d528481526b4861745061727479426c756560a01b818b01526103608c01528b51808d018d528481526b4861745061727479446f747360a01b818b01526103808c01528b51808d018d528a8152690486174506172747946560b41b818b01526103a08c01528b51808d018d529586526c48617450617274794c696e657360981b868a01526103c08b01959095528a51808c018c528381526b486174506172747950696e6b60a01b818a01526103e08b01528a51808c018c528781526a12185d14185c9d1e54995960aa1b818a01526104008b01528a51808c018c52600e8082526d486174506172747959656c6c6f7760901b828b01526104208c01919091528b51808d018d528181526d48617450617274795a69675a616760901b818b01526104408c01528b51808d018d528581526848617450697261746560b81b818b01526104608c01528b51808d018d529182526748617453616e746160c01b828a01526104808b01919091528a51808c018c52898152692430ba2a3930b83832b960b11b818a01526104a08b01528a51808c018c5260138152724865616462616e64466c6f77657273426c756560681b818a01526104c08b01528a51808c018c52948552744865616462616e64466c6f77657273507572706c6560581b858901526104e08a01949094528951808b018b52888152694865616470686f6e657360b01b818901526105008a01528951808b018b528281526b48656c6d657456696b696e6760a01b818901526105208a01528951808b018b5288815269486f726e734c6172676560b01b818901526105408a01528951808b018b5297885269121bdc9b9cd4db585b1b60b21b888801526105608901979097528851808a018a52918252682634b3b43a213ab63160b91b82870152610580880191909152875180890189529384526a155b9a58dbdc9b91dbdb1960aa1b848601526105a0870193909352865180880188529283526b556e69636f726e49766f727960a01b838501526105c0860192909252855180870187529182526d556e69636f726e5261696e626f7760901b828401526105e08501919091528451808601909552918452631211505160e21b9084015291600090613839908590611abc565b9050613862846040518060400160405280600581526020016420b634b2b760d91b815250614279565b156138875750506040805180820190915260018152600360fc1b602082015292915050565b6138908461421f565b156138b55750506040805180820190915260018152600360fc1b602082015292915050565b6138c08160fa611b22565b156138e55750506040805180820190915260018152600360fc1b602082015292915050565b816138f1603083614bdc565b60308110610a8157610a81614bf0565b606060006139388360405180604001604052806011815260200170504152544945445f544f4f5f484152445960781b815250611abc565b9050613946816103cf611b22565b1561396a5750506040805180820190915260018152600360fc1b6020820152919050565b50506040805180820190915260018152603160f81b6020820152919050565b50919050565b6040805161056081018252600d61052082018181526c29b434b93a20b634b3b0ba37b960991b61054084015282528251808401845260098082526829b434b93a21b63ab160b91b60208381019190915280850192909252845180860186526012808252715368697274436f6e6665747469426c61636b60701b8285015285870191909152855180870187526011808252705368697274436f6e6665747469426c756560781b8286015260608781019290925287518089018952908152705368697274437265774e65636b426c756560781b818601526080870152865180880188528281527129b434b93a21b932bba732b1b5a3b932b2b760711b8186015260a08701528651808801885260108082526f14da1a5c9d10dc995dd39958dad4995960821b8287015260c088019190915287518089018952838152715368697274437265774e65636b576869746560701b8187015260e08801528751808901895260078152660536869727446560cc1b81870152610100880152875180890189528681526c14da1a5c9d11dc98591a595b9d609a1b81870152610120880152875180890189528681526c29b434b93a2430bbb0b4b4b0b760991b81870152610140880152875180890189528481526814da1a5c9d121bd91b60ba1b8187015261016088015287518089018952600c8082526b14da1a5c9d13195bdc185c9960a21b828801526101808901919091528851808a018a52600e8082526d53686972744d6172696a75616e6160901b828901526101a08a01919091528951808b018b52600f8082526e536869727450696e656170706c657360881b828a01526101c08b01919091528a51808c018c528281526d5368697274506c616964426c756560901b818a01526101e08b01528a51808c018c528981526c14da1a5c9d141b185a59149959609a1b818a01526102008b01528a51808c018c528181526e5368697274506c616964576869746560881b818a01526102208b01528a51808c018c528481526f536869727450737963686f64656c696360801b818a01526102408b01528a51808c018c52600a808252695368697274526173746160b01b828b01526102608c01919091528b51808d018d52818152695368697274526f73657360b01b818b01526102808c01528b51808d018d52600b8082526a536869727454696544796560a81b828c01526102a08d01919091528c51808e018e528281526929b434b93a2a34b3b2b960b11b818c01526102c08d01528c51808e018e528581526b5368697274556e69636f646560a01b818c01526102e08d01528c51808e018e52978852715368697274564e65636b42616279426c756560701b888b01526103008c01979097528b51808d018d528381526d5368697274564e65636b4772657960901b818b01526103208c01528b51808d018d528581526f5368697274564e65636b507572706c6560801b818b01526103408c01528b51808d018d529182526e5368697274564e65636b576869746560881b828a01526103608b01919091528a51808c018c528181526953686972745761676d6960b01b818a01526103808b01528a51808c018c528181526953686972745a6562726160b01b818a01526103a08b01528a51808c018c528481526f537765617465724368726973746d617360801b818a01526103c08b01528a51808c018c529283526b2a30ba3a37b7a0b731b437b960a11b838901526103e08a01929092528951808b018b529283526f546174746f6f4261726265645769726560801b838801526104008901929092528851808a018a528781526c546174746f6f4574684c6f676f60981b818801526104208901528851808a018a526013815272546174746f6f4865617274416e644172726f7760681b818801526104408901528851808a018a528181526915185d1d1bdbd21bd91b60b21b818801526104608901528851808a018a5294855268546174746f6f4d6f6d60b81b858701526104808801949094528751808901895293845269546174746f6f526f736560b01b848601526104a0870193909352865180880188529485526c546174746f6f53706172726f7760981b858501526104c0860194909452855180870187529182526d15185d1d1bdbd5995c9a599a595960921b828401526104e0850191909152845180860186529081526a546174746f6f5761676d6960a81b8183015261050084015283518085019094526005845264544f52534f60d81b9084015291600090613ffe908590611abc565b905061400b8160fa611b22565b156140305750506040805180820190915260018152600360fc1b602082015292915050565b8161403c602983614bdc565b60298110610a8157610a81614bf0565b6001600160a01b0383166140a7576140a281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6140ca565b816001600160a01b0316836001600160a01b0316146140ca576140ca8382614297565b6001600160a01b0382166140e1576108ed81614334565b826001600160a01b0316826001600160a01b0316146108ed576108ed82826143e3565b610e91828260405180602001604052806000815250614427565b60006001600160a01b0384163b1561421457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290614162903390899088908890600401614d69565b6020604051808303816000875af192505050801561419d575060408051601f3d908101601f1916820190925261419a91810190614d9c565b60015b6141fa573d8080156141cb576040519150601f19603f3d011682016040523d82523d6000602084013e6141d0565b606091505b5080516000036141f25760405162461bcd60e51b81526004016107b890614d03565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061190d565b506001949350505050565b6040805180820190915260018152603160f81b60209091015260007fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc661427261426784613901565b805160209091012090565b1492915050565b8051602082012060009061428f61426785610923565b149392505050565b600060016142a484610f0c565b6142ae9190614c51565b600083815260076020526040902054909150808214614301576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061434690600190614c51565b6000838152600960205260408120546008805493945090928490811061436e5761436e614bf0565b90600052602060002001549050806008838154811061438f5761438f614bf0565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806143c7576143c7614db9565b6001900381819060005260206000200160009055905550505050565b60006143ee83610f0c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b614431838361445a565b61443e600084848461411e565b6108ed5760405162461bcd60e51b81526004016107b890614d03565b6001600160a01b0382166144b05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107b8565b6144b9816117a0565b156145065760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107b8565b6145126000838361404c565b6001600160a01b038216600090815260036020526040812080546001929061453b908490614c68565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546145a590614b0a565b90600052602060002090601f0160209004810192826145c7576000855561460d565b82601f106145e057805160ff191683800117855561460d565b8280016001018555821561460d579182015b8281111561460d5782518255916020019190600101906145f2565b50614619929150614677565b5090565b60405180610160016040528060608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081525090565b5b808211156146195760008155600101614678565b6001600160e01b03198116811461174d57600080fd5b6000602082840312156146b457600080fd5b813561135b8161468c565b60005b838110156146da5781810151838201526020016146c2565b838111156112915750506000910152565b600081518084526147038160208601602086016146bf565b601f01601f19169290920160200192915050565b60208152600061135b60208301846146eb565b60006020828403121561473c57600080fd5b5035919050565b80356001600160a01b038116811461475a57600080fd5b919050565b6000806040838503121561477257600080fd5b61477b83614743565b946020939093013593505050565b60008060006060848603121561479e57600080fd5b6147a784614743565b92506147b560208501614743565b9150604084013590509250925092565b6000602082840312156147d757600080fd5b61135b82614743565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115614811576148116147e0565b604051601f8501601f19908116603f01168101908282118183101715614839576148396147e0565b8160405280935085815286868601111561485257600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561487e57600080fd5b813567ffffffffffffffff81111561489557600080fd5b8201601f810184136148a657600080fd5b61190d848235602084016147f6565b8035801515811461475a57600080fd5b600080604083850312156148d857600080fd5b6148e183614743565b91506148ef602084016148b5565b90509250929050565b60006020828403121561490a57600080fd5b61135b826148b5565b6000806000806080858703121561492957600080fd5b61493285614743565b935061494060208601614743565b925060408501359150606085013567ffffffffffffffff81111561496357600080fd5b8501601f8101871361497457600080fd5b614983878235602084016147f6565b91505092959194509250565b60208152600082516101608060208501526149ae6101808501836146eb565b91506020850151601f19808685030160408701526149cc84836146eb565b935060408701519150808685030160608701526149e984836146eb565b93506060870151915080868503016080870152614a0684836146eb565b935060808701519150808685030160a0870152614a2384836146eb565b935060a08701519150808685030160c0870152614a4084836146eb565b935060c08701519150808685030160e0870152614a5d84836146eb565b935060e08701519150610100818786030181880152614a7c85846146eb565b945080880151925050610120818786030181880152614a9b85846146eb565b945080880151925050610140818786030181880152614aba85846146eb565b908801518782039092018488015293509050614ad683826146eb565b9695505050505050565b60008060408385031215614af357600080fd5b614afc83614743565b91506148ef60208401614743565b600181811c90821680614b1e57607f821691505b60208210810361398957634e487b7160e01b600052602260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526017908201527f546f6b656e20494420646f6573206e6f74206578697374000000000000000000604082015260600190565b634e487b7160e01b600052601260045260246000fd5b600082614beb57614beb614bc6565b500690565b634e487b7160e01b600052603260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015614c6357614c63614c3b565b500390565b60008219821115614c7b57614c7b614c3b565b500190565b6000816000190483118215151615614c9a57614c9a614c3b565b500290565b600060018201614cb157614cb1614c3b565b5060010190565b60008351614cca8184602088016146bf565b835190830190614cde8183602088016146bf565b01949350505050565b60008251614cf98184602087016146bf565b9190910192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082614d6457614d64614bc6565b500490565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614ad6908301846146eb565b600060208284031215614dae57600080fd5b815161135b8161468c565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220c0625f9a5e56a3a40bf12267f766f068c9dc1dd1586c879d166cad343131e0b364736f6c634300080d00330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004168747470733a2f2f75732d63656e7472616c312d6c696d652d6c696c792d626f612e636c6f756466756e6374696f6e732e6e65742f6765744d657461646174612f00000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102045760003560e01c8063789d308c11610118578063b033caf1116100a0578063e0d4ea371161006f578063e0d4ea37146105bd578063e1dc0761146105dd578063e985e9c51461060a578063f19e75d414610653578063f2fde38b1461067357600080fd5b8063b033caf114610548578063b88d4fde14610568578063c87b56dd14610588578063d547cfb7146105a857600080fd5b8063938007aa116100e7578063938007aa146104be57806395d89b41146104eb5780639eb6ab6214610500578063a0712d6814610515578063a22cb4651461052857600080fd5b8063789d308c1461043d57806386b8703b1461046a5780638da5cb5b146104865780638f4bb497146104a457600080fd5b80632f745c591161019b57806351cff8d91161016a57806351cff8d9146103a857806355f804b3146103c85780636352211e146103e857806370a0823114610408578063715018a61461042857600080fd5b80632f745c591461033257806332cb6b0c1461035257806342842e0e146103685780634f6ccce71461038857600080fd5b806309d42b30116101d757806309d42b30146102ba57806318160ddd146102dd57806323b872dd146102f25780632be6a2a91461031257600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b506102296102243660046146a2565b610693565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b506102536106be565b6040516102359190614717565b34801561026c57600080fd5b5061028061027b36600461472a565b610750565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b336600461475f565b6107dd565b005b3480156102c657600080fd5b506102cf600a81565b604051908152602001610235565b3480156102e957600080fd5b506008546102cf565b3480156102fe57600080fd5b506102b861030d366004614789565b6108f2565b34801561031e57600080fd5b5061025361032d36600461472a565b610923565b34801561033e57600080fd5b506102cf61034d36600461475f565b610cae565b34801561035e57600080fd5b506102cf61271081565b34801561037457600080fd5b506102b8610383366004614789565b610d44565b34801561039457600080fd5b506102cf6103a336600461472a565b610d5f565b3480156103b457600080fd5b506102b86103c33660046147c5565b610df2565b3480156103d457600080fd5b506102b86103e336600461486c565b610e54565b3480156103f457600080fd5b5061028061040336600461472a565b610e95565b34801561041457600080fd5b506102cf6104233660046147c5565b610f0c565b34801561043457600080fd5b506102b8610f93565b34801561044957600080fd5b50610253604051806040016040528060018152602001600360fc1b81525081565b34801561047657600080fd5b506102cf67011c37937e08000081565b34801561049257600080fd5b50600b546001600160a01b0316610280565b3480156104b057600080fd5b50600d546102299060ff1681565b3480156104ca57600080fd5b50610253604051806040016040528060018152602001603160f81b81525081565b3480156104f757600080fd5b50610253610fc9565b34801561050c57600080fd5b506102cf605081565b6102b861052336600461472a565b610fd8565b34801561053457600080fd5b506102b86105433660046148c5565b611217565b34801561055457600080fd5b506102b86105633660046148f8565b611222565b34801561057457600080fd5b506102b8610583366004614913565b61125f565b34801561059457600080fd5b506102536105a336600461472a565b611297565b3480156105b457600080fd5b50610253611362565b3480156105c957600080fd5b506102cf6105d836600461472a565b6113f0565b3480156105e957600080fd5b506105fd6105f836600461472a565b61142a565b604051610235919061498f565b34801561061657600080fd5b50610229610625366004614ae0565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561065f57600080fd5b506102b861066e36600461472a565b6114ff565b34801561067f57600080fd5b506102b861068e3660046147c5565b6116b5565b60006001600160e01b0319821663780e9d6360e01b14806106b857506106b882611750565b92915050565b6060600080546106cd90614b0a565b80601f01602080910402602001604051908101604052809291908181526020018280546106f990614b0a565b80156107465780601f1061071b57610100808354040283529160200191610746565b820191906000526020600020905b81548152906001019060200180831161072957829003601f168201915b5050505050905090565b600061075b826117a0565b6107c15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107e882610e95565b9050806001600160a01b0316836001600160a01b0316036108555760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107b8565b336001600160a01b038216148061087157506108718133610625565b6108e35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107b8565b6108ed83836117bd565b505050565b6108fc338261182b565b6109185760405162461bcd60e51b81526004016107b890614b3e565b6108ed838383611915565b606061092e826117a0565b61094a5760405162461bcd60e51b81526004016107b890614b8f565b60006040518060c0016040528060405180604001604052806004815260200163426c756560e01b81525081526020016040518060400160405280600581526020016423b932b2b760d91b8152508152602001604051806040016040528060068152602001654f72616e676560d01b81525081526020016040518060400160405280600481526020016350696e6b60e01b81525081526020016040518060400160405280600381526020016214995960ea1b81525081526020016040518060400160405280600681526020016559656c6c6f7760d01b81525081525090506000610a5284604051806040016040528060078152602001665350454349455360c81b815250611abc565b9050610a6081610226611b22565b15610a8e5781610a71600683614bdc565b60068110610a8157610a81614bf0565b6020020151949350505050565b610a9a8161028a611b22565b15610ac557505060408051808201909152600781526629b434b33a32b960c91b602082015292915050565b610ad1816102bc611b22565b15610afa5750506040805180820190915260058152644d6163617760d81b602082015292915050565b610b06816102ee611b22565b15610b3057505060408051808201909152600681526528bab0b5b2b960d11b602082015292915050565b610b3c81610320611b22565b15610b645750506040805180820190915260048152634c6f766560e01b602082015292915050565b610b7081610352611b22565b15610b985750506040805180820190915260048152634c6f727960e01b602082015292915050565b610ba481610384611b22565b15610bd0575050604080518082019091526008815267131bdc9a5ad9595d60c21b602082015292915050565b610bdc816103b6611b22565b15610c045750506040805180820190915260048152634772657960e01b602082015292915050565b610c10816103ca611b22565b15610c39575050604080518082019091526005815264426c61636b60d81b602082015292915050565b610c45816103de611b22565b15610c6d57505060408051808201909152600481526311dbdb1960e21b602082015292915050565b610c79816103e8611b22565b15610ca257505060408051808201909152600581526420b634b2b760d91b602082015292915050565b81610a71600683614bdc565b6000610cb983610f0c565b8210610d1b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107b8565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6108ed8383836040518060200160405280600081525061125f565b6000610d6a60085490565b8210610dcd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107b8565b60088281548110610de057610de0614bf0565b90600052602060002001549050919050565b600b546001600160a01b03163314610e1c5760405162461bcd60e51b81526004016107b890614c06565b60405147906001600160a01b0383169082156108fc029083906000818181858888f193505050501580156108ed573d6000803e3d6000fd5b600b546001600160a01b03163314610e7e5760405162461bcd60e51b81526004016107b890614c06565b8051610e9190600c906020840190614599565b5050565b6000818152600260205260408120546001600160a01b0316806106b85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107b8565b60006001600160a01b038216610f775760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107b8565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03163314610fbd5760405162461bcd60e51b81526004016107b890614c06565b610fc76000611b45565b565b6060600180546106cd90614b0a565b6002600a540361102a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107b8565b6002600a55600d5460ff1615156001146110865760405162461bcd60e51b815260206004820152601a60248201527f4d696e74696e67206e6f742063757272656e746c79206f70656e00000000000060448201526064016107b8565b6110936050612710614c51565b600e54106110d85760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b60448201526064016107b8565b6110e56050612710614c51565b816110ef600e5490565b6110f99190614c68565b11156111395760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420656e6f756768204e46547360881b60448201526064016107b8565b60008111801561114a5750600a8111155b6111965760405162461bcd60e51b815260206004820152601d60248201527f4f757473696465206f6620616c6c6f776564206d696e742072616e676500000060448201526064016107b8565b6111a88167011c37937e080000614c80565b3410156111e95760405162461bcd60e51b815260206004820152600f60248201526e496e636f72726563742076616c756560881b60448201526064016107b8565b60005b8181101561120e576111fc611b97565b8061120681614c9f565b9150506111ec565b50506001600a55565b610e91338383611c33565b600b546001600160a01b0316331461124c5760405162461bcd60e51b81526004016107b890614c06565b600d805460ff1916911515919091179055565b611269338361182b565b6112855760405162461bcd60e51b81526004016107b890614b3e565b61129184848484611d01565b50505050565b60606112a2826117a0565b6113065760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107b8565b6000611310611d34565b90506000815111611330576040518060200160405280600081525061135b565b8061133a84611d43565b60405160200161134b929190614cb8565b6040516020818303038152906040525b9392505050565b600c805461136f90614b0a565b80601f016020809104026020016040519081016040528092919081815260200182805461139b90614b0a565b80156113e85780601f106113bd576101008083540402835291602001916113e8565b820191906000526020600020905b8154815290600101906020018083116113cb57829003601f168201915b505050505081565b60006113fb826117a0565b6114175760405162461bcd60e51b81526004016107b890614b8f565b5060009081526010602052604090205490565b61143261461d565b61143b826117a0565b6114575760405162461bcd60e51b81526004016107b890614b8f565b61145f61461d565b61146883611e44565b61012082015261147783612226565b815261148283612703565b60a08201526114908361270e565b60c082015261149e83612915565b60e08201526114ac83612ae1565b60808201526114ba83612703565b60208201526114c88361311e565b60608201526114d683612703565b60408201526114e483613901565b6101408201526114f38361398f565b61010082015292915050565b600b546001600160a01b031633146115295760405162461bcd60e51b81526004016107b890614c06565b612710611535600e5490565b106115775760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b60448201526064016107b8565b6050611582600f5490565b106115cf5760405162461bcd60e51b815260206004820152601860248201527f4d6178206f776e657220737570706c792072656163686564000000000000000060448201526064016107b8565b612710816115dc600e5490565b6115e69190614c68565b11156116265760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420656e6f756768204e46547360881b60448201526064016107b8565b605081611632600f5490565b61163c9190614c68565b11156116825760405162461bcd60e51b81526020600482015260156024820152744e6f7420656e6f756768206f776e6572204e46547360581b60448201526064016107b8565b60005b81811015610e915761169b600f80546001019055565b6116a3611b97565b806116ad81614c9f565b915050611685565b600b546001600160a01b031633146116df5760405162461bcd60e51b81526004016107b890614c06565b6001600160a01b0381166117445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107b8565b61174d81611b45565b50565b60006001600160e01b031982166380ac58cd60e01b148061178157506001600160e01b03198216635b5e139f60e01b145b806106b857506301ffc9a760e01b6001600160e01b03198316146106b8565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906117f282610e95565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611836826117a0565b6118975760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107b8565b60006118a283610e95565b9050806001600160a01b0316846001600160a01b031614806118e957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061190d5750836001600160a01b031661190284610750565b6001600160a01b0316145b949350505050565b826001600160a01b031661192882610e95565b6001600160a01b03161461198c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016107b8565b6001600160a01b0382166119ee5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107b8565b6119f983838361404c565b611a046000826117bd565b6001600160a01b0383166000908152600360205260408120805460019290611a2d908490614c51565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a5b908490614c68565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080611ac8846113f0565b905082611ad482611d43565b604051602001611ae5929190614cb8565b60408051601f1981840301815290829052611b0291602001614ce7565b60408051601f198184030181529190528051602090910120949350505050565b600081611b316103e885614bdc565b611b3c906001614c68565b11159392505050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611ba5600e80546001019055565b600e54611bb3600143614c51565b4033604051602001611bea93929190928352602083019190915260601b6bffffffffffffffffffffffff1916604082015260540190565b6040516020818303038152906040528051906020012060001c60106000611c10600e5490565b8152602081019190915260400160002055610fc733611c2e600e5490565b614104565b816001600160a01b0316836001600160a01b031603611c945760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107b8565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611d0c848484611915565b611d188484848461411e565b6112915760405162461bcd60e51b81526004016107b890614d03565b6060600c80546106cd90614b0a565b606081600003611d6a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d945780611d7e81614c9f565b9150611d8d9050600a83614d55565b9150611d6e565b60008167ffffffffffffffff811115611daf57611daf6147e0565b6040519080825280601f01601f191660200182016040528015611dd9576020820181803683370190505b5090505b841561190d57611dee600183614c51565b9150611dfb600a86614bdc565b611e06906030614c68565b60f81b818381518110611e1b57611e1b614bf0565b60200101906001600160f81b031916908160001a905350611e3d600a86614d55565b9450611ddd565b60606000604051806102a0016040528060405180604001604052806007815260200166426565724d756760c81b815250815260200160405180604001604052806004815260200163426f6e6760e01b81525081526020016040518060400160405280600581526020016442726f6f6d60d81b815250815260200160405180604001604052806006815260200165213ab933b2b960d11b81525081526020016040518060400160405280600b81526020016a10da185a5b919411dbdb1960aa1b81525081526020016040518060400160405280600d81526020016c21b430b4b7232829b4b63b32b960991b81525081526020016040518060400160405280600981526020016810da185a5b91dbdb1960ba1b81525081526020016040518060400160405280600b81526020016a21b430b4b729b4b63b32b960a91b8152508152602001604051806040016040528060098152602001680436f666665654375760bc1b815250815260200160405180604001604052806007815260200166111a585b5bdb9960ca1b81525081526020016040518060400160405280600a815260200169466f72747948616e647360b01b8152508152602001604051806040016040528060068152602001652430b6b6b2b960d11b81525081526020016040518060400160405280600781526020016604c6f6c69706f760cc1b81525081526020016040518060400160405280600481526020016326b7b7b760e11b81525081526020016040518060400160405280600581526020016450697a7a6160d81b81525081526020016040518060400160405280600a8152602001690526f636b6574536869760b41b81525081526020016040518060400160405280600a8152602001695275626265724475636b60b01b81525081526020016040518060400160405280600d81526020016c29b1b4b2b731b2a132b0b5b2b960991b8152508152602001604051806040016040528060068152602001655570566f746560d01b81525081526020016040518060400160405280600881526020016715995c9a599a595960c21b81525081526020016040518060400160405280600981526020016857696e65476c61737360b81b815250815250905060006121a184604051806040016040528060098152602001684143434553534f525960b81b815250611abc565b90506121ac8461421f565b156121d95750506040805180820190915260098152684e65636b427261636560b81b602082015292915050565b6121e581610384611b22565b1561220a5750506040805180820190915260018152600360fc1b602082015292915050565b81612216601583614bdc565b60158110610a8157610a81614bf0565b6060600060405180610140016040528060405180604001604052806004815260200163426c756560e01b81525081526020016040518060400160405280600481526020016321bcb0b760e11b81525081526020016040518060400160405280600581526020016423b932b2b760d91b8152508152602001604051806040016040528060048152602001634772657960e01b8152508152602001604051806040016040528060068152602001654f72616e676560d01b81525081526020016040518060400160405280600481526020016350696e6b60e01b815250815260200160405180604001604052806006815260200165507572706c6560d01b81525081526020016040518060400160405280600381526020016214995960ea1b815250815260200160405180604001604052806005815260200164576869746560d81b81525081526020016040518060400160405280600681526020016559656c6c6f7760d01b8152508152509050600060405180608001604052806040518060400160405280600b81526020016a466c617368696e674f6e6560a81b81525081526020016040518060400160405280600b81526020016a466c617368696e6754776f60a81b81525081526020016040518060400160405280600d81526020016c466c617368696e67546872656560981b81525081526020016040518060400160405280600c81526020016b233630b9b434b733a337bab960a11b81525081525090506000612473856040518060400160405280600a815260200169109050d2d1d493d5539160b21b815250611abc565b905061247e8561421f565b156124ad578161248f600483614bdc565b6004811061249f5761249f614bf0565b602002015195945050505050565b6124b9816103a2611b22565b156124da57826124ca600a83614bdc565b600a811061249f5761249f614bf0565b6124e6816103ac611b22565b1561251657505060408051808201909152600b81526a4772616469656e744f6e6560a81b60208201529392505050565b612522816103b6611b22565b1561255257505060408051808201909152600b81526a4772616469656e7454776f60a81b60208201529392505050565b61255e816103c0611b22565b1561259057505060408051808201909152600d81526c4772616469656e74546872656560981b60208201529392505050565b61259c816103ca611b22565b156125cc57505060408051808201909152600b81526a436f6e66657474694f6e6560a81b60208201529392505050565b6125d8816103d4611b22565b1561260857505060408051808201909152600b81526a436f6e666574746954776f60a81b60208201529392505050565b612614816103d9611b22565b1561263d57505060408051808201909152600481526311dbdb1960e21b60208201529392505050565b612649816103de611b22565b1561267957505060408051808201909152600b81526a42696e617279477261737360a81b60208201529392505050565b612685816103e3611b22565b156126b857505060408051808201909152600e81526d42696e61727952656453616e647360901b60208201529392505050565b6126c4816103e8611b22565b156126f757505060408051808201909152600e81526d42696e617279486f6d656272657760901b60208201529392505050565b826124ca600a83614bdc565b60606106b882610923565b6060600060405180610120016040528060405180604001604052806005815260200164129bda5b9d60da1b81525081526020016040518060400160405280600f81526020016e4d7573746163686542616e6469746f60881b81525081526020016040518060400160405280600f81526020016e26bab9ba30b1b432a1b432bb3937b760891b81525081526020016040518060400160405280600f81526020016e09aeae6e8c2c6d0ca8adcced8d2e6d608b1b81525081526020016040518060400160405280601181526020017026bab9ba30b1b432a430b7323632b130b960791b8152508152602001604051806040016040528060118152602001704d75737461636865486f72736573686f6560781b81525081526020016040518060400160405280601081526020016f135d5cdd1858da19525b5c195c9a585b60821b8152508152602001604051806040016040528060048152602001635069706560e01b815250815260200160405180604001604052806004815260200163576f726d60e01b815250815250905060006128c6846040518060400160405280600a8152602001692122a0a5afa4a72722a960b11b815250611abc565b90506128d4816102ee611b22565b156128f95750506040805180820190915260018152600360fc1b602082015292915050565b81612905600983614bdc565b60098110610a8157610a81614bf0565b6040805161014081018252600c61010082018181526b2130b73230b3b2a3b932b2b760a11b610120840152825282518084018452600a8082526910985b991859d954995960b21b60208381019190915280850192909252845180860186526005815264437261636b60d81b8184015284860152845180860186526016815275141a595c98da5b99d21bdbdc111bdd589b1951dbdb1960521b8184015260608581019190915285518087018752601881527f5069657263696e67486f6f70446f75626c6553696c766572000000000000000081850152608086015285518087018752601081526f141a595c98da5b99d21bdbdc11dbdb1960821b8185015260a08601528551808701875260128152712834b2b931b4b733a437b7b829b4b63b32b960711b8185015260c0860152855180870187529384526b141a595c98da5b99d4dd1d5960a21b8484015260e085019390935284518086019095528452692122a0a5afa7aaaa22a960b11b9084015291600090612a92908590611abc565b9050612aa0816102ee611b22565b15612ac55750506040805180820190915260018152600360fc1b602082015292915050565b81612ad1600883614bdc565b60088110610a8157610a81614bf0565b60408051610480810182526009610440820181815268109b1a5b99199bdb1960ba1b6104608401528252825180840184528181526845796573416e67727960b81b6020828101919091528084019190915283518085018552600c8082526b45796573417374657269636b60a01b828401528486019190915284518086018652600d8082526c115e595cd0da1958dad95c9959609a1b8285015260608681019290925286518088018852600b8082526a115e595cd0dc9bdcdcd95960aa1b82870152608088019190915287518089018952600880825267115e595cd15d9a5b60c21b8288015260a08901919091528851808a018a5287815268115e595cd19859195960ba1b8188015260c08901528851808a018a528381526c457965734c61736572426c756560981b8188015260e08901528851808a018a528581526b115e595cd3185cd95c94995960a21b818801526101008901528851808a018a52601580825274457965734f76616c576974684579656c617368657360581b828901526101208a01919091528951808b018b52600a81526945796573536c6565707960b01b818901526101408a01528951808b018b528481526c115e595cd4dd5c9c1c9a5cd959609a1b818901526101608a01528951808b018b529586526b115e595cd5995c9a599a595960a21b868801526101808901959095528851808a018a529283526c4579657357616e646572696e6760981b838701526101a088019290925287518089018952918252674579657357696e6b60c01b828601526101c0870191909152865180880188529081526a115e595cd5dbdc9c9a595960aa1b818501526101e08601528551808701875260058082526408af2cae6b60db1b82860152610200870191909152865180880188528581526811db185cdcd95cccd960ba1b8186015261022087015286518088018852600e8082526d23b630b9b9b2b9a0b733bab630b960911b82870152610240880191909152875180890189528181526d23b630b9b9b2b9a0bb34b0ba37b960911b818701526102608801528751808901895293845274476c6173736573446f75626c6557696465426c756560581b848601526102808701939093528651808801885260148082527311db185cdcd95cd11bdd589b1955da591954995960621b828701526102a088019190915287518089018952601781527f476c6173736573446f75626c655769646559656c6c6f77000000000000000000818701526102c088015287518089018952601a81527f476c6173736573507265736372697074696f6e416e67756c6172000000000000818701526102e088015287518089018952601881527f476c6173736573507265736372697074696f6e526f756e64000000000000000081870152610300880152875180890189526012815271476c617373657353687574746572426c756560701b818701526103208801528751808901895260138082527223b630b9b9b2b9a9b43aba3a32b923b932b2b760691b828801526103408901919091528851808a018a52601181527011db185cdcd95cd4da1d5d1d195c949959607a1b818801526103608901528851808a018a5291825273476c61737365735368757474657259656c6c6f7760601b82870152610380880191909152875180890189528481526d486561647365744379636c6f707360901b818701526103a088015287518089018952908152722432b0b239b2ba21bcb1b637b839a630b9b2b960691b818601526103c087015286518088018852948552682432b0b239b2ba2b3960b91b858501526103e0860194909452855180870187529182526d4d61736b4d61737175657261646560901b8284015261040085019190915284518086018652928352640a0c2e8c6d60db1b83830152610420840192909252835180850190945260048452634559455360e01b9084015291600090613075908590611abc565b905061309e846040518060400160405280600581526020016420b634b2b760d91b815250614279565b156130cb57505060408051808201909152600981526822bcb2b9a0b634b2b760b91b602082015292915050565b6130d6816064611b22565b15613102575050604080518082019091526008815267115e595cd3dd985b60c21b602082015292915050565b8161310e602283614bdc565b60228110610a8157610a81614bf0565b6040805161064081018252600a6106008201818152694265616e6965426c756560b01b610620840152825282518084018452600b8082526a2132b0b734b2a3b932b2b760a91b6020838101919091528085019290925284518086018652838152694265616e69654772657960b01b818401528486015284518086018652600d8082526c4265616e6965486f6c6964617960981b82850152606086810192909252865180880188526009808252681099585b9a5954995960ba1b82870152608088019190915287518089018952600c8082526b4265616e696559656c6c6f7760a01b8288015260a08901919091528851808a018a52600581526421b937bbb760d91b8188015260c08901528851808a018a52600680825265466c616d657360d01b8289015260e08a01919091528951808b018b528281526b466c6f7765724f72616e676560a01b818901526101008a01528951808b018b5288815269466c6f77657250696e6b60b01b818901526101208a01528951808b018b528281526b466c6f77657259656c6c6f7760a01b818901526101408a01528951808b018b528681526a4861697242616c64696e6760a81b818901526101608a01528951808b018b528881526912185a5c909bd890dd5d60b21b818901526101808a01528951808b018b528281526b2430b4b921b7b6b127bb32b960a11b818901526101a08a01528951808b018b528481526c0486169724d6573737943726f7609c1b818901526101c08a01528951808b018b5288815269486169724d6f6861776b60b01b818901526101e08a01528951808b018b528481526c2430b4b92837b6b830b237bab960991b818901526102008a01528951808b018b526008808252672430b4b9283ab33360c11b828a01526102208b01919091528a51808c018c52601081526f48616972507566665069677461696c7360801b818a01526102408b01528a51808c018c526011815270486169725370696b65644c69626572747960781b818a01526102608b01528a51808c018c52601580825274486169725370696b65644c69626572747950696e6b60581b828b01526102808c01919091528b51808d018d52600f81526e486169725370696b65644d6573737960881b818b01526102a08c01528b51808d018d5260048082526348616c6f60e01b828c01526102c08d01919091528c51808e018e52938452650486174436f760d41b848b01526102e08c01939093528b51808d018d5285815268486174436f77626f7960b81b818b01526103008c01528b51808d018d52858152684861744665646f726160b81b818b01526103208c01528b51808d018d528581526848617446696573746160b81b818b01526103408c01528b51808d018d528481526b4861745061727479426c756560a01b818b01526103608c01528b51808d018d528481526b4861745061727479446f747360a01b818b01526103808c01528b51808d018d528a8152690486174506172747946560b41b818b01526103a08c01528b51808d018d529586526c48617450617274794c696e657360981b868a01526103c08b01959095528a51808c018c528381526b486174506172747950696e6b60a01b818a01526103e08b01528a51808c018c528781526a12185d14185c9d1e54995960aa1b818a01526104008b01528a51808c018c52600e8082526d486174506172747959656c6c6f7760901b828b01526104208c01919091528b51808d018d528181526d48617450617274795a69675a616760901b818b01526104408c01528b51808d018d528581526848617450697261746560b81b818b01526104608c01528b51808d018d529182526748617453616e746160c01b828a01526104808b01919091528a51808c018c52898152692430ba2a3930b83832b960b11b818a01526104a08b01528a51808c018c5260138152724865616462616e64466c6f77657273426c756560681b818a01526104c08b01528a51808c018c52948552744865616462616e64466c6f77657273507572706c6560581b858901526104e08a01949094528951808b018b52888152694865616470686f6e657360b01b818901526105008a01528951808b018b528281526b48656c6d657456696b696e6760a01b818901526105208a01528951808b018b5288815269486f726e734c6172676560b01b818901526105408a01528951808b018b5297885269121bdc9b9cd4db585b1b60b21b888801526105608901979097528851808a018a52918252682634b3b43a213ab63160b91b82870152610580880191909152875180890189529384526a155b9a58dbdc9b91dbdb1960aa1b848601526105a0870193909352865180880188529283526b556e69636f726e49766f727960a01b838501526105c0860192909252855180870187529182526d556e69636f726e5261696e626f7760901b828401526105e08501919091528451808601909552918452631211505160e21b9084015291600090613839908590611abc565b9050613862846040518060400160405280600581526020016420b634b2b760d91b815250614279565b156138875750506040805180820190915260018152600360fc1b602082015292915050565b6138908461421f565b156138b55750506040805180820190915260018152600360fc1b602082015292915050565b6138c08160fa611b22565b156138e55750506040805180820190915260018152600360fc1b602082015292915050565b816138f1603083614bdc565b60308110610a8157610a81614bf0565b606060006139388360405180604001604052806011815260200170504152544945445f544f4f5f484152445960781b815250611abc565b9050613946816103cf611b22565b1561396a5750506040805180820190915260018152600360fc1b6020820152919050565b50506040805180820190915260018152603160f81b6020820152919050565b50919050565b6040805161056081018252600d61052082018181526c29b434b93a20b634b3b0ba37b960991b61054084015282528251808401845260098082526829b434b93a21b63ab160b91b60208381019190915280850192909252845180860186526012808252715368697274436f6e6665747469426c61636b60701b8285015285870191909152855180870187526011808252705368697274436f6e6665747469426c756560781b8286015260608781019290925287518089018952908152705368697274437265774e65636b426c756560781b818601526080870152865180880188528281527129b434b93a21b932bba732b1b5a3b932b2b760711b8186015260a08701528651808801885260108082526f14da1a5c9d10dc995dd39958dad4995960821b8287015260c088019190915287518089018952838152715368697274437265774e65636b576869746560701b8187015260e08801528751808901895260078152660536869727446560cc1b81870152610100880152875180890189528681526c14da1a5c9d11dc98591a595b9d609a1b81870152610120880152875180890189528681526c29b434b93a2430bbb0b4b4b0b760991b81870152610140880152875180890189528481526814da1a5c9d121bd91b60ba1b8187015261016088015287518089018952600c8082526b14da1a5c9d13195bdc185c9960a21b828801526101808901919091528851808a018a52600e8082526d53686972744d6172696a75616e6160901b828901526101a08a01919091528951808b018b52600f8082526e536869727450696e656170706c657360881b828a01526101c08b01919091528a51808c018c528281526d5368697274506c616964426c756560901b818a01526101e08b01528a51808c018c528981526c14da1a5c9d141b185a59149959609a1b818a01526102008b01528a51808c018c528181526e5368697274506c616964576869746560881b818a01526102208b01528a51808c018c528481526f536869727450737963686f64656c696360801b818a01526102408b01528a51808c018c52600a808252695368697274526173746160b01b828b01526102608c01919091528b51808d018d52818152695368697274526f73657360b01b818b01526102808c01528b51808d018d52600b8082526a536869727454696544796560a81b828c01526102a08d01919091528c51808e018e528281526929b434b93a2a34b3b2b960b11b818c01526102c08d01528c51808e018e528581526b5368697274556e69636f646560a01b818c01526102e08d01528c51808e018e52978852715368697274564e65636b42616279426c756560701b888b01526103008c01979097528b51808d018d528381526d5368697274564e65636b4772657960901b818b01526103208c01528b51808d018d528581526f5368697274564e65636b507572706c6560801b818b01526103408c01528b51808d018d529182526e5368697274564e65636b576869746560881b828a01526103608b01919091528a51808c018c528181526953686972745761676d6960b01b818a01526103808b01528a51808c018c528181526953686972745a6562726160b01b818a01526103a08b01528a51808c018c528481526f537765617465724368726973746d617360801b818a01526103c08b01528a51808c018c529283526b2a30ba3a37b7a0b731b437b960a11b838901526103e08a01929092528951808b018b529283526f546174746f6f4261726265645769726560801b838801526104008901929092528851808a018a528781526c546174746f6f4574684c6f676f60981b818801526104208901528851808a018a526013815272546174746f6f4865617274416e644172726f7760681b818801526104408901528851808a018a528181526915185d1d1bdbd21bd91b60b21b818801526104608901528851808a018a5294855268546174746f6f4d6f6d60b81b858701526104808801949094528751808901895293845269546174746f6f526f736560b01b848601526104a0870193909352865180880188529485526c546174746f6f53706172726f7760981b858501526104c0860194909452855180870187529182526d15185d1d1bdbd5995c9a599a595960921b828401526104e0850191909152845180860186529081526a546174746f6f5761676d6960a81b8183015261050084015283518085019094526005845264544f52534f60d81b9084015291600090613ffe908590611abc565b905061400b8160fa611b22565b156140305750506040805180820190915260018152600360fc1b602082015292915050565b8161403c602983614bdc565b60298110610a8157610a81614bf0565b6001600160a01b0383166140a7576140a281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6140ca565b816001600160a01b0316836001600160a01b0316146140ca576140ca8382614297565b6001600160a01b0382166140e1576108ed81614334565b826001600160a01b0316826001600160a01b0316146108ed576108ed82826143e3565b610e91828260405180602001604052806000815250614427565b60006001600160a01b0384163b1561421457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290614162903390899088908890600401614d69565b6020604051808303816000875af192505050801561419d575060408051601f3d908101601f1916820190925261419a91810190614d9c565b60015b6141fa573d8080156141cb576040519150601f19603f3d011682016040523d82523d6000602084013e6141d0565b606091505b5080516000036141f25760405162461bcd60e51b81526004016107b890614d03565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061190d565b506001949350505050565b6040805180820190915260018152603160f81b60209091015260007fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc661427261426784613901565b805160209091012090565b1492915050565b8051602082012060009061428f61426785610923565b149392505050565b600060016142a484610f0c565b6142ae9190614c51565b600083815260076020526040902054909150808214614301576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061434690600190614c51565b6000838152600960205260408120546008805493945090928490811061436e5761436e614bf0565b90600052602060002001549050806008838154811061438f5761438f614bf0565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806143c7576143c7614db9565b6001900381819060005260206000200160009055905550505050565b60006143ee83610f0c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b614431838361445a565b61443e600084848461411e565b6108ed5760405162461bcd60e51b81526004016107b890614d03565b6001600160a01b0382166144b05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107b8565b6144b9816117a0565b156145065760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107b8565b6145126000838361404c565b6001600160a01b038216600090815260036020526040812080546001929061453b908490614c68565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546145a590614b0a565b90600052602060002090601f0160209004810192826145c7576000855561460d565b82601f106145e057805160ff191683800117855561460d565b8280016001018555821561460d579182015b8281111561460d5782518255916020019190600101906145f2565b50614619929150614677565b5090565b60405180610160016040528060608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081525090565b5b808211156146195760008155600101614678565b6001600160e01b03198116811461174d57600080fd5b6000602082840312156146b457600080fd5b813561135b8161468c565b60005b838110156146da5781810151838201526020016146c2565b838111156112915750506000910152565b600081518084526147038160208601602086016146bf565b601f01601f19169290920160200192915050565b60208152600061135b60208301846146eb565b60006020828403121561473c57600080fd5b5035919050565b80356001600160a01b038116811461475a57600080fd5b919050565b6000806040838503121561477257600080fd5b61477b83614743565b946020939093013593505050565b60008060006060848603121561479e57600080fd5b6147a784614743565b92506147b560208501614743565b9150604084013590509250925092565b6000602082840312156147d757600080fd5b61135b82614743565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115614811576148116147e0565b604051601f8501601f19908116603f01168101908282118183101715614839576148396147e0565b8160405280935085815286868601111561485257600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561487e57600080fd5b813567ffffffffffffffff81111561489557600080fd5b8201601f810184136148a657600080fd5b61190d848235602084016147f6565b8035801515811461475a57600080fd5b600080604083850312156148d857600080fd5b6148e183614743565b91506148ef602084016148b5565b90509250929050565b60006020828403121561490a57600080fd5b61135b826148b5565b6000806000806080858703121561492957600080fd5b61493285614743565b935061494060208601614743565b925060408501359150606085013567ffffffffffffffff81111561496357600080fd5b8501601f8101871361497457600080fd5b614983878235602084016147f6565b91505092959194509250565b60208152600082516101608060208501526149ae6101808501836146eb565b91506020850151601f19808685030160408701526149cc84836146eb565b935060408701519150808685030160608701526149e984836146eb565b93506060870151915080868503016080870152614a0684836146eb565b935060808701519150808685030160a0870152614a2384836146eb565b935060a08701519150808685030160c0870152614a4084836146eb565b935060c08701519150808685030160e0870152614a5d84836146eb565b935060e08701519150610100818786030181880152614a7c85846146eb565b945080880151925050610120818786030181880152614a9b85846146eb565b945080880151925050610140818786030181880152614aba85846146eb565b908801518782039092018488015293509050614ad683826146eb565b9695505050505050565b60008060408385031215614af357600080fd5b614afc83614743565b91506148ef60208401614743565b600181811c90821680614b1e57607f821691505b60208210810361398957634e487b7160e01b600052602260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526017908201527f546f6b656e20494420646f6573206e6f74206578697374000000000000000000604082015260600190565b634e487b7160e01b600052601260045260246000fd5b600082614beb57614beb614bc6565b500690565b634e487b7160e01b600052603260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015614c6357614c63614c3b565b500390565b60008219821115614c7b57614c7b614c3b565b500190565b6000816000190483118215151615614c9a57614c9a614c3b565b500290565b600060018201614cb157614cb1614c3b565b5060010190565b60008351614cca8184602088016146bf565b835190830190614cde8183602088016146bf565b01949350505050565b60008251614cf98184602087016146bf565b9190910192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082614d6457614d64614bc6565b500490565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614ad6908301846146eb565b600060208284031215614dae57600080fd5b815161135b8161468c565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220c0625f9a5e56a3a40bf12267f766f068c9dc1dd1586c879d166cad343131e0b364736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004168747470733a2f2f75732d63656e7472616c312d6c696d652d6c696c792d626f612e636c6f756466756e6374696f6e732e6e65742f6765744d657461646174612f00000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _baseTokenURI (string): https://us-central1-lime-lily-boa.cloudfunctions.net/getMetadata/
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000041
Arg [2] : 68747470733a2f2f75732d63656e7472616c312d6c696d652d6c696c792d626f
Arg [3] : 612e636c6f756466756e6374696f6e732e6e65742f6765744d65746164617461
Arg [4] : 2f00000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.