ERC-721
Overview
Max Total Supply
4,444 KAWAII
Holders
1,992
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 KAWAIILoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Collection
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "./SuperShop.sol"; library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } struct Inventory { Item weapon; uint weaponTokenID; Item collar; uint collarTokenID; Item armor; uint armorTokenID; } struct KawaiiPet { uint kawaiiID; uint xp; uint currentHealth; uint totalHealth; uint strength; uint agility; uint defense; uint lastAtk; uint lastDef; } contract FightCenter is Ownable { using SafeMath for uint; // Global Datas uint public hitXP = 25; uint public killXP = 30; uint public dodgeXP = 17; uint public hurtXP = 6; uint public missXP = 6; uint public hitCoins = 25; uint public killCoins = 20; uint public dodgeCoins = 20; uint public hurtCoins = 7; uint public missCoins = 7; uint public atkTime = 10 minutes; uint public defTime = 0; // KawaiiID to its inventory mapping(uint => Inventory) public inventory; // Shop System SuperShop public shop; Collection public collection; constructor(address _shopContract, address _collectionContract){ shop = SuperShop(payable(_shopContract)); collection = Collection(payable(_collectionContract)); } modifier onlyAllowedContract() { require(msg.sender == address(collection) || msg.sender == owner(), "Not owner"); _; } function setAddresses(address _collection, address newShop) public onlyOwner { collection = Collection(payable(_collection)); shop = SuperShop(payable(newShop)); } function setCombatTimespans(uint _newatkTime, uint _newDefendSpan) public onlyOwner { atkTime = _newatkTime; defTime = _newDefendSpan; } function setCoins(uint _hit, uint _dodge, uint _downBonus, uint _gettingHit, uint _miss) public onlyOwner{ hitCoins = _hit; dodgeCoins = _dodge; killCoins = _downBonus; hurtCoins = _gettingHit; missCoins = _miss; } function setXP(uint _hit, uint _dodge, uint _downBonus, uint _gettingHit, uint _miss) public onlyOwner{ hitXP = _hit; dodgeXP = _dodge; killXP = _downBonus; hurtXP = _gettingHit; missXP = _miss; } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } function dodgeAttack(uint atkAgility, uint defAgility) public view returns (bool) { require( defAgility + atkAgility > 0, "Denominator > 0"); uint256 agilitySum = atkAgility.add( defAgility); uint256 agilityRatio = atkAgility.mul(100).div(agilitySum); uint256 cappedChance = min(agilityRatio, 30); uint256 randomChance = uint(keccak256(abi.encodePacked(block.timestamp))).mod(100); return randomChance < cappedChance; } function fight(uint atkID, uint defID) external{ require(collection.ownerOf(atkID) != collection.ownerOf(defID), "Owner not diff"); require(collection.ownerOf(atkID) == msg.sender, "Not the owner"); KawaiiPet memory attacker = KawaiiPets[atkID]; KawaiiPet memory defender = KawaiiPets[defID]; require(attacker.lastAtk.add(atkTime) <= block.timestamp, "Cant attack now"); require(defender.lastDef.add(defTime) <= block.timestamp, "Got attacked recently"); require(attacker.currentHealth > 0 && defender.currentHealth > 0, "1 of them needs revive"); KawaiiPets[atkID].lastAtk = block.timestamp; KawaiiPets[defID].lastDef = block.timestamp; if (dodgeAttack(attacker.agility, defender.agility)) { // Dodged fightRewards(atkID, defID, 0, true); } else { uint damage = 0; if(defender.defense < attacker.strength){ damage = attacker.strength.sub(defender.defense); } uint newHealth = 0; if (!(damage > defender.currentHealth)) { newHealth = defender.currentHealth.sub(damage); } fightRewards(atkID, defID, newHealth, false); } } function fightRewards(uint _atkID, uint _defID, uint newHealth, bool dodged) internal { // Add xp amount depending on situation uint atkXP; uint defXP; uint atkCoin; uint defCoin; uint atkLvl = 0; uint defLvl = 0; atkLvl = KawaiiPets[_atkID].xp.div(100); defLvl = KawaiiPets[_defID].xp.div(100); if(!dodged){ // Set health KawaiiPets[_defID].currentHealth = newHealth; // Just a hit atkXP = atkXP.add(hitXP); atkCoin = atkCoin.add(hitCoins); defXP = defXP.add(hurtXP); defCoin = defCoin.add(hurtCoins); if (KawaiiPets[_defID].currentHealth <= 0){ // Defender fainted - add bonus atkXP = atkXP.add(killXP); atkCoin = atkCoin.add(killCoins); } } else { // Dodged atkXP = atkXP.add(missXP); atkCoin = atkCoin.add(missCoins); defXP = defXP.add(dodgeXP); defCoin = defCoin.add(dodgeCoins); } // Add rewards coin shop.increaseCoin(atkCoin, collection.ownerOf(_atkID)); shop.increaseCoin(defCoin, collection.ownerOf(_defID)); // Add xp KawaiiPets[_atkID].xp = KawaiiPets[_atkID].xp.add(atkXP); KawaiiPets[_defID].xp = KawaiiPets[_defID].xp.add(defXP); // Calculate intial xp to track level up if(KawaiiPets[_atkID].xp >= 100 && atkLvl != KawaiiPets[_atkID].xp.div(100)){ shop.mintRune(collection.ownerOf(_atkID)); } if(KawaiiPets[_defID].xp >= 100 && defLvl != KawaiiPets[_defID].xp.div(100)){ shop.mintRune(collection.ownerOf(_defID)); } } function unequipItem(uint tokenID, address owner, uint _nftId) private { if(tokenID != 0) { Item memory item = shop.getItem(shop.tokenToItemIds(tokenID)); KawaiiPet memory pet = KawaiiPets[_nftId]; pet.totalHealth -= item.healthBonus; pet.agility -= item.agilityBonus; pet.defense -= item.defenseBonus; pet.strength -= item.strengthBonus; KawaiiPets[_nftId] = pet; shop.unequipItem(tokenID, owner); } } function addItemStatsToPet(Item memory item, KawaiiPet memory pet, uint _nftId) private { pet.totalHealth = pet.totalHealth.add(item.healthBonus); pet.agility = pet.agility.add(item.agilityBonus); pet.defense = pet.defense.add(item.defenseBonus); pet.strength = pet.strength.add(item.strengthBonus); KawaiiPets[_nftId] = pet; } function useItem(uint _tokenID, uint _nftId) external { require(shop.ownerOf(_tokenID) == msg.sender, "You do not own this item"); require(collection.ownerOf(_nftId) == msg.sender, "You do not own this pet"); uint id = shop.tokenToItemIds(_tokenID); Item memory item = shop.getItem(id); KawaiiPet memory pet = KawaiiPets[_nftId]; bytes32 itemType = keccak256(bytes(item.itemType)); if(itemType == keccak256(bytes("Consumable"))){ if(item.healAmount > 0 && pet.currentHealth <= 0) { revert("Cant use heal consumable if dead"); } pet.currentHealth += item.healAmount; if(pet.currentHealth > pet.totalHealth) { pet.currentHealth = pet.totalHealth; } shop.transferFrom(msg.sender, address(0x000000000000000000000000000000000000dEaD), _tokenID); } else if(itemType == keccak256(bytes("Weapon"))){ unequipItem(inventory[_nftId].weaponTokenID, msg.sender, _nftId); inventory[_nftId].weapon = item; inventory[_nftId].weaponTokenID = _tokenID; shop.transferFrom(msg.sender, address(this), _tokenID); } else if(itemType == keccak256(bytes("Collar"))) { unequipItem(inventory[_nftId].collarTokenID, msg.sender, _nftId); inventory[_nftId].collar = item; inventory[_nftId].collarTokenID = _tokenID; shop.transferFrom(msg.sender, address(this), _tokenID); } else if(itemType == keccak256(bytes("Armor"))) { unequipItem(inventory[_nftId].armorTokenID, msg.sender, _nftId); inventory[_nftId].armor = item; inventory[_nftId].armorTokenID = _tokenID; shop.transferFrom(msg.sender, address(this), _tokenID); }else{ revert("Unknown item type"); } addItemStatsToPet(item, pet, _nftId); } uint randomRunenonce = 0; function specialItems(uint _tokenID, uint _nftId, uint _itemId) external{ require(_itemId <= 2); require(shop.ownerOf(_tokenID) == msg.sender, "Not owner - item"); require(collection.ownerOf(_nftId) == msg.sender, "Not owner - pet"); require(shop.tokenToItemIds(_tokenID) == _itemId); // Random Rune if(_itemId == 0) { uint randomNumber = uint(keccak256(abi.encodePacked(block.timestamp, msg.sender, randomRunenonce))) % 3; randomRunenonce++; uint randomNumber2 = uint(keccak256(abi.encodePacked(block.timestamp, msg.sender, randomRunenonce))) % 3; randomRunenonce++; KawaiiPets[_nftId].agility += randomNumber + 1; KawaiiPets[_nftId].strength += randomNumber2 + 1; KawaiiPets[_nftId].defense += randomNumber + 1; KawaiiPets[_nftId].totalHealth += randomNumber2 + 1; KawaiiPets[_nftId].currentHealth += randomNumber2 + 1; } else if(_itemId == 1) { require(KawaiiPets[_nftId].currentHealth > 0, "Your pet cant be healed if dead"); uint half = KawaiiPets[_nftId].totalHealth; KawaiiPets[_nftId].currentHealth += half; if(KawaiiPets[_nftId].currentHealth > KawaiiPets[_nftId].totalHealth){ KawaiiPets[_nftId].currentHealth = KawaiiPets[_nftId].totalHealth; } } else if(_itemId == 2) { require(KawaiiPets[_nftId].currentHealth <= 0, "Your pet isnt dead"); uint newHealth = KawaiiPets[_nftId].totalHealth; KawaiiPets[_nftId].currentHealth = newHealth; } shop.safeTransferFrom(msg.sender, address(0x0), _tokenID); } // Will contain all KawaiiPets informations mapping(uint => KawaiiPet) public KawaiiPets; function getKawaiiList(uint offset, uint limit) public view returns (KawaiiPet[] memory) { KawaiiPet[] memory result = new KawaiiPet[](limit); uint count = 0; for (uint i = offset; i < offset + limit; i++) { if(KawaiiPets[i].kawaiiID != 0){ result[count] = KawaiiPets[i]; count++; } } return result; } function initialisePet(uint id, address owner, bool isWL) external onlyAllowedContract { KawaiiPets[id] = KawaiiPet(id, 0, 10, 10, 4, 1, 1, block.timestamp - atkTime, block.timestamp - defTime); if(isWL) { shop.wlRewards(owner); } else { shop.normalRewards(owner); } } } contract Collection is Ownable, ERC721AQueryable, PaymentSplitter { using ECDSA for bytes32; using Strings for uint; address private signerAddressWL1; address private signerAddressWL2; enum Step { Before, WhitelistSale1, WhitelistSale2, PublicSale, SoldOut } string public baseURI; Step public sellingStep; // Mint Condition - 1 per wallet hardcoded uint private constant MAX_SUPPLY = 4444; uint private MAX_WL1 = 2222; uint private MAX_WL2 = 2222; uint public wlSalePrice = 0.0321 ether; uint public publicSalePrice = 0.04321 ether; mapping(address => uint) public mintedAmountNFTsperWalletWLs; mapping(address => uint) public mintedAmountNFTsperWalletPublic; uint public maxWL = 2; uint public maxPublic = 2; function changeMax(uint _newWL, uint _newPublic) public onlyOwner { maxWL = _newWL; maxPublic = _newPublic; } uint private teamLength; FightCenter public fightCenter; constructor(address[] memory _team, uint[] memory _teamShares, address _signerAddressWL1, address _signerAddressWL2, string memory _baseURI) ERC721A("Super Kawaii", "KAWAII") PaymentSplitter(_team, _teamShares) { signerAddressWL1 = _signerAddressWL1; signerAddressWL2 = _signerAddressWL2; baseURI = _baseURI; teamLength = _team.length; } function mintForOpensea() public onlyOwner{ require(totalSupply() == 0, "cant mint after opened"); _mint(msg.sender, 33); } function initialisePet(uint _nftID) external { require(ownerOf(_nftID) == address(msg.sender), "Sender not owner"); fightCenter.initialisePet(_nftID, msg.sender, false); } function setRing(address _ring) external onlyOwner{ fightCenter = FightCenter(payable(_ring)); } function changeSigners(address _newSignerWL1, address _newSignerWL2) external onlyOwner{ signerAddressWL1 = _newSignerWL1; signerAddressWL2 = _newSignerWL2; } function publicSaleMint(uint _quantity) external payable { uint price = publicSalePrice; if(price <= 0) revert("Price is 0"); if(msg.value < publicSalePrice * _quantity) revert("Not enough funds"); if(sellingStep != Step.PublicSale) revert("Public Mint not live."); if(totalSupply() + _quantity > MAX_SUPPLY) revert("Max supply exceeded"); if(mintedAmountNFTsperWalletPublic[msg.sender] + _quantity > maxPublic) revert("Max exceeded for Public Sale"); mintedAmountNFTsperWalletPublic[msg.sender] += _quantity; _mint(msg.sender, _quantity); } function WLMint1(uint _quantity, bytes calldata signature) external payable { uint price = wlSalePrice; if(price <= 0) revert("Price is 0"); if(msg.value < price * _quantity) revert("Not enough funds"); if(sellingStep != Step.WhitelistSale1) revert("WL Mint not live."); if(totalSupply() + _quantity > MAX_SUPPLY) revert("Max supply exceeded for WL"); if(totalSupply() + _quantity > MAX_WL1) revert("Max supply wl exceeded"); if(signerAddressWL1 != keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", bytes32(uint256(uint160(msg.sender))) ) ).recover(signature)) revert("You are not in WL whitelist"); if(mintedAmountNFTsperWalletWLs[msg.sender] + _quantity > maxWL) revert("Max exceeded for Whitelist Sale"); mintedAmountNFTsperWalletWLs[msg.sender] += _quantity; _mint(msg.sender, _quantity); } function WLMint2(uint _quantity, bytes calldata signature) external payable { uint price = publicSalePrice; if(price <= 0) revert("Price is 0"); if(msg.value < price * _quantity) revert("Not enough funds"); if(sellingStep != Step.WhitelistSale2) revert("WL Mint not live."); if(totalSupply() + _quantity > MAX_SUPPLY) revert("Max supply exceeded for WL"); if(totalSupply() + _quantity > (MAX_WL1 + MAX_WL2)) revert("Max supply wl exceeded"); if(signerAddressWL2 != keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", bytes32(uint256(uint160(msg.sender))) ) ).recover(signature)) revert("You are not in WL whitelist"); if(mintedAmountNFTsperWalletWLs[msg.sender] + _quantity > maxWL) revert("Max exceeded for Whitelist Sale"); mintedAmountNFTsperWalletWLs[msg.sender] += _quantity; _mint(msg.sender, _quantity); } function currentState() external view returns (Step, uint, uint) { return (sellingStep, publicSalePrice, wlSalePrice); } function changeWL1Supply(uint new_supply) external onlyOwner{ MAX_WL1 = new_supply; } function changeWL2Supply(uint new_supply) external onlyOwner{ MAX_WL2 = new_supply; } function changeWlSalePrice(uint256 new_price) external onlyOwner{ wlSalePrice = new_price; } function changePublicSalePrice(uint256 new_price) external onlyOwner{ publicSalePrice = new_price; } function setBaseUri(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } function setStep(uint _step) external onlyOwner { sellingStep = Step(_step); } function getNumberMinted(address account) external view returns (uint256) { return _numberMinted(account); } function getNumberWLMinted(address account) external view returns (uint256) { return mintedAmountNFTsperWalletWLs[account]; } function getNumberPublicMinted(address account) external view returns (uint256) { return mintedAmountNFTsperWalletPublic[account]; } function tokenURI(uint _tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) { require(_exists(_tokenId), "URI query for nonexistent token"); return string(abi.encodePacked(baseURI, _toString(_tokenId), ".json")); } function releaseAll() external { for(uint i = 0 ; i < teamLength ; i++) { release(payable(payee(i))); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } 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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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); } } interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Getter for the amount of payee's releasable Ether. */ function releasable(address account) public view returns (uint256) { uint256 totalReceived = address(this).balance + totalReleased(); return _pendingPayment(account, totalReceived, released(account)); } /** * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an * IERC20 contract. */ function releasable(IERC20 token, address account) public view returns (uint256) { uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); return _pendingPayment(account, totalReceived, released(token, account)); } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(account); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(token, account); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } } interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @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); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 1; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) revert OwnerQueryForNonexistentToken(); // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; return packed; } } // Otherwise, the data exists and is not burned. We can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. return packed; } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); //if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck) if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } } struct Item { uint itemID; string name; string description; string rarity; string itemType; uint price; string metadatasURI; uint healAmount; uint healthBonus; uint defenseBonus; uint strengthBonus; uint agilityBonus; } contract SuperShop is Ownable, ERC721AQueryable, PaymentSplitter { using SafeMath for uint; using Strings for uint; bool public openedMint = false; // Payable services uint public coinsPrice = 0.003 ether; uint public randomRunePrice = 0.002 ether; uint public magicCookiePrice = 0.001 ether; uint public resScrollPrice = 0.002 ether; uint public coinsAmountToSell = 100; uint constant randomRuneID = 0; uint constant magicCookieID = 1; uint constant reviveScrollID = 2; uint public shopTaxes = 20; function setPrices(uint _coins,uint _randomRune, uint _cookie,uint _revive) public onlyOwner { coinsPrice = _coins; randomRunePrice = _randomRune; magicCookiePrice = _cookie; resScrollPrice = _revive; } function sellItem(uint _tokenID) external { require(ownerOf(_tokenID) == msg.sender, "Not owner of item"); // Get item data by tokenID uint itemID = tokenToItemIds[_tokenID]; Item memory item = getItem(itemID); // Sell with shop taxes uint sellAmount = item.price.mul(100 - shopTaxes).div(100); balances[msg.sender] += sellAmount; // Transfer nft to dead address safeTransferFrom(msg.sender, address(0x0), _tokenID); } function setShopTaxes (uint _newTaxes) public onlyOwner { shopTaxes = _newTaxes; } uint private teamLength; string private itemsURI="ipfs://bafybeifneeuquffyrjmcw3udatrbrkg6sx3hxvq4kzykby5mm6jr6taarq/"; constructor(address[] memory _team, uint[] memory _teamShares) ERC721A("SuperShop", "SuperShop") PaymentSplitter(_team, _teamShares){ // Special Items setItem(randomRuneID, "Random Rune", "Gives random stats when used.", 120, "Unusual", "Rune", string(abi.encodePacked(itemsURI, "0.json")), 0, 0, 0, 0, 0); setItem(magicCookieID, "Magic Cookie", "Heals 50% of Kawaii Health.", 50, "Common", "Cookie", string(abi.encodePacked(itemsURI, "1.json")), 0, 0, 0, 0, 0); setItem(reviveScrollID, "Resurrection Scroll", "Revive your Super Kawaii.", 70, "Common", "Scroll", string(abi.encodePacked(itemsURI, "2.json")), 0, 0, 0, 0, 0); teamLength = _team.length; balances[msg.sender] = 1000000; } function setArmors() public onlyOwner{ // Armors setItem(3, "Chain Armor", "Increase defense and resistance to physical damage, such as slashing or piercing attacks.", 100, "Common", "Armor", string(abi.encodePacked(itemsURI, "3.json")), 0, 10, 10, 0, 0); setItem(4, "Plate Armor", "Provides an increased defense and resistance, at the cost of being heavy and reduces agility.", 150, "Common", "Armor", string(abi.encodePacked(itemsURI, "4.json")), 0, 15, 15, 0, 0); setItem(5, "Magic Cloak", "Provides increased resistance and magic damage, the user of the cloak will have an increased rate of agility.", 250, "Uncommon", "Armor", string(abi.encodePacked(itemsURI, "5.json")), 5, 10, 18, 3, 6); setItem(6, "Holy Relic", "Increase holy defense and resistance to physical damage.", 350, "Rare", "Armor", string(abi.encodePacked(itemsURI, "6.json")), 20, 15, 35, 0, 0); setItem(7, "Enchanted Boots", "Enhance Agility a lot, but lack of defense (as you dont have any armor)", 500, "Rare", "Armor", string(abi.encodePacked(itemsURI, "7.json")), 40, 5, 50, 2, 2); setItem(8, "Cursed Armor", "Increase defense but not strength :(", 750, "Rare", "Armor", string(abi.encodePacked(itemsURI, "8.json")), 50, 5, 70, 0, 5); setItem(9, "Legendary Armor", "Increase it all !", 1000, "Legendary", "Armor", string(abi.encodePacked(itemsURI, "9.json")), 50, 100, 100, 10, 20); } function setWeapons() public onlyOwner{ // Weapons setItem(10, "Enchanted Sword", "Increase strength greatly", 250, "Common", "Weapon", string(abi.encodePacked(itemsURI, "10.json")), 5, 2, 1, 15, 2); setItem(11, "Magic Staff", "Magicaly increase strength and agility", 350, "Common", "Weapon", string(abi.encodePacked(itemsURI, "11.json")), 10, 4, 1, 20, 4); setItem(12, "Holy Bow", "Increase holy damages", 500, "Common", "Weapon", string(abi.encodePacked(itemsURI, "12.json")), 22, 2, 2, 50, 20); setItem(13, "Cursed Claws", "Graou Graou =^.^=", 666, "Common", "Weapon", string(abi.encodePacked(itemsURI, "13.json")), 0, 0, 0, 75, 0); setItem(33, "Stick", "STICK STICK STICK", 1000, "Common", "Weapon", string(abi.encodePacked(itemsURI, "33.json")), 50, 15, 10, 100, 10); } function setCollars() public onlyOwner{ // Collar setItem(14, "Enchanted Collar", "Will get you some shady enchantment ?", 80, "Common", "Collar", string(abi.encodePacked(itemsURI, "14.json")), 0, 15, 10, 2, 2); setItem(15, "Magical Collar", "Idk magic or something", 200, "Uncommon", "Collar", string(abi.encodePacked(itemsURI, "15.json")), 0, 15, 10, 2, 2); setItem(16, "Cursed Collar", "Lower your total health, but increase everything else", 350, "Uncommon", "Collar", string(abi.encodePacked(itemsURI, "16.json")), 0, 0, 20, 20, 20); setItem(17, "Holy Collar", "Increased holy defense", 750, "Rare", "Collar", string(abi.encodePacked(itemsURI, "17.json")), 0, 35, 32, 25, 25); setItem(18, "Stealth Collar", "Increase agility a lot", 450, "Rare", "Collar", string(abi.encodePacked(itemsURI, "18.json")), 0, 10, 10, 2, 35); setItem(20, "Legendary Collar", "Increase it all !", 1200, "Legendary", "Collar", string(abi.encodePacked(itemsURI, "20.json")), 60, 60, 60, 60, 40); } function setConsumables() public onlyOwner{ // Consumables setItem(21, "Agility Pot", "Increase agility slightly", 45, "Common", "Consumable", string(abi.encodePacked(itemsURI, "21.json")), 0, 0, 0, 0, 6); setItem(22, "Defense Pot", "Increase defense slightly", 45, "Common", "Consumable", string(abi.encodePacked(itemsURI, "22.json")), 0, 0, 6, 0, 0); setItem(23, "Health Pot", "Increase total health slightly", 45, "Common", "Consumable", string(abi.encodePacked(itemsURI, "23.json")), 6, 6, 0, 0, 0); setItem(24, "Dog Bone", "Increase strength slightly", 45, "Common", "Consumable", string(abi.encodePacked(itemsURI, "24.json")), 0, 0, 0, 6, 2); setItem(25, "Whistle", "Heals bit of health", 50, "Common", "Consumable", string(abi.encodePacked(itemsURI, "25.json")), 15, 5, 0, 0, 0); setItem(26, "Health Rune", "Increase Health a lot !", 200, "Common", "Consumable", string(abi.encodePacked(itemsURI, "26.json")),15, 35, 5, 5, 5); setItem(27, "Defense Rune", "Increase Defense a lot !", 200, "Common", "Consumable", string(abi.encodePacked(itemsURI, "27.json")), 5, 5, 35, 2, 5); setItem(28, "Strength Rune", "Increase Strength a lot !", 200, "Common", "Consumable", string(abi.encodePacked(itemsURI, "28.json")), 5, 5, 5, 35, 2); setItem(29, "Agility Rune", "Increase Agility a lot !", 200, "Common", "Consumable", string(abi.encodePacked(itemsURI, "29.json")), 5, 5, 5, 2, 35); setItem(30, "Training Book", "Increase everything a lot !", 405, "Common", "Consumable", string(abi.encodePacked(itemsURI, "30.json")), 17, 17, 17, 17, 17); setItem(31, "Grooming Kit", "Increase Defense and Strength a lot !", 380, "Common", "Consumable", string(abi.encodePacked(itemsURI, "31.json")), 5, 5, 35, 35, 2); setItem(32, "Dog House", "Increase Defense and total health !", 400, "Common", "Consumable", string(abi.encodePacked(itemsURI, "32.json")), 2, 35, 35, 7, 2); setItem(19, "Training Equipment", "Increase it all !", 700, "Legendary", "Collar", string(abi.encodePacked(itemsURI, "19.json")), 35, 35, 35, 35, 35); } function mintForMarket() public onlyOwner { require(totalSupply() == 0); tokenToItemIds[0] = 0; _mint(msg.sender, 1); } function setOpenedMint(bool _opened) public onlyOwner{ openedMint = _opened; } address public allowedContract; modifier onlyAllowedContract() { require(msg.sender == allowedContract || msg.sender == owner() , "Only the allowed contract can call this function"); _; } function setFightCenter(address fightCenter) public onlyOwner{ allowedContract = fightCenter; setApprovalForAll(fightCenter, true); } function changeCoinsAmount(uint _amount) public onlyOwner { coinsAmountToSell = _amount; } function getCoins(uint _quantity) external payable{ if(msg.value < coinsPrice * _quantity) revert("Not enough funds"); balances[msg.sender] += coinsAmountToSell * _quantity; } function wlRewards(address owner) external onlyAllowedContract { balances[owner] += 75; tokenToItemIds[_nextTokenId()] = randomRuneID; _mint(owner, 1); tokenToItemIds[_nextTokenId()] = magicCookieID; _mint(owner, 1); tokenToItemIds[_nextTokenId()] = reviveScrollID; _mint(owner, 1); } function normalRewards(address owner) external onlyAllowedContract { balances[owner] += 50; } function getRandomRune(uint _quantity, address owner) external payable{ if(msg.value < randomRunePrice * _quantity) revert("Not enough funds"); for(uint256 i=0; i < _quantity; i++){ tokenToItemIds[_nextTokenId()] = randomRuneID; _mint(owner, 1); } } function getMagicCookie(uint _quantity, address owner) external payable{ if(msg.value < magicCookiePrice * _quantity) revert("Not enough funds"); for(uint256 i=0; i < _quantity; i++){ tokenToItemIds[_nextTokenId()] = magicCookieID; _mint(owner, 1); } } function getResurrectionScroll(uint _quantity, address owner) external payable{ if(msg.value < resScrollPrice * _quantity) revert("Not enough funds"); for(uint256 i=0; i < _quantity; i++){ tokenToItemIds[_nextTokenId()] = reviveScrollID; _mint(owner, 1); } } mapping(uint256 => Item) public items; mapping(address => uint) public balances; mapping(uint => uint) public tokenToItemIds; function getItem(uint256 id) public view returns (Item memory) { return items[id]; } function setItem( uint itemId, string memory name, string memory description, uint price, string memory rarity, string memory itemType, string memory metadatasURI, uint healAmount, uint healthBonus, uint defenseBonus, uint strengthBonus, uint agilityBonus) public onlyOwner { items[itemId] = Item(itemId, name, description, rarity, itemType, price, metadatasURI, healAmount, healthBonus, defenseBonus, strengthBonus, agilityBonus); } function increaseCoin(uint _amount, address owner) external onlyAllowedContract{ balances[owner] += _amount; } function mintRune(address owner) external onlyAllowedContract { // Get a random rune object tokenToItemIds[_nextTokenId()] = randomRuneID; _mint(owner, 1); } function buyItem(uint _quantity, uint _itemId) external { require(openedMint == true, "Mint isnt opened"); require(balances[msg.sender] > items[_itemId].price * _quantity || msg.sender == owner(), "Balance of buyer is too low"); for (uint i = 0; i < _quantity; i++) { uint nextId = _nextTokenId() + i; tokenToItemIds[nextId] = _itemId; } if (msg.sender != owner()) balances[msg.sender] -= items[_itemId].price * _quantity; if(!isApprovedForAll(msg.sender, address(allowedContract))) setApprovalForAll(address(allowedContract), true); _mint(msg.sender, _quantity); } function unequipItem(uint _tokenID, address owner) external onlyAllowedContract { approve(allowedContract, _tokenID); transferFrom(address(allowedContract), address(owner), _tokenID); } function tokenURI(uint _tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) { require(_exists(_tokenId), "URI query for nonexistent token"); Item memory item = items[tokenToItemIds[_tokenId]]; return string(abi.encodePacked(item.metadatasURI)); } function releaseAll() external { for(uint i = 0 ; i < teamLength ; i++) { release(payable(payee(i))); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"_team","type":"address[]"},{"internalType":"uint256[]","name":"_teamShares","type":"uint256[]"},{"internalType":"address","name":"_signerAddressWL1","type":"address"},{"internalType":"address","name":"_signerAddressWL2","type":"address"},{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"WLMint1","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"WLMint2","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newWL","type":"uint256"},{"internalType":"uint256","name":"_newPublic","type":"uint256"}],"name":"changeMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"new_price","type":"uint256"}],"name":"changePublicSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newSignerWL1","type":"address"},{"internalType":"address","name":"_newSignerWL2","type":"address"}],"name":"changeSigners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"new_supply","type":"uint256"}],"name":"changeWL1Supply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"new_supply","type":"uint256"}],"name":"changeWL2Supply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"new_price","type":"uint256"}],"name":"changeWlSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentState","outputs":[{"internalType":"enum Collection.Step","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fightCenter","outputs":[{"internalType":"contract FightCenter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getNumberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getNumberPublicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getNumberWLMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nftID","type":"uint256"}],"name":"initialisePet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintForOpensea","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedAmountNFTsperWalletPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedAmountNFTsperWalletWLs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"payable","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":"payable","type":"function"},{"inputs":[],"name":"sellingStep","outputs":[{"internalType":"enum Collection.Step","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ring","type":"address"}],"name":"setRing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_step","type":"uint256"}],"name":"setStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wlSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526108ae6014556108ae60155566720ac7a94a4000601655669983441cbea0006017556002601a556002601b553480156200003d57600080fd5b50604051620040cb380380620040cb833981016040819052620000609162000635565b84846040518060400160405280600c81526020016b5375706572204b617761696960a01b815250604051806040016040528060068152602001654b415741494960d01b815250620000c0620000ba6200026760201b60201c565b6200026b565b6003620000ce8382620007e1565b506004620000dd8282620007e1565b506001805550508051825114620001565760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001a95760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200014d565b60005b8251811015620002155762000200838281518110620001cf57620001cf620008ad565b6020026020010151838381518110620001ec57620001ec620008ad565b6020026020010151620002bb60201b60201c565b806200020c81620008d9565b915050620001ac565b5050601080546001600160a01b038087166001600160a01b0319928316179092556011805492861692909116919091179055506012620002568282620007e1565b50509251601c555062000911915050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620003285760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200014d565b600081116200037a5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200014d565b6001600160a01b0382166000908152600b602052604090205415620003f65760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200014d565b600d8054600181019091557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319166001600160a01b0384169081179091556000908152600b6020526040902081905560095462000460908290620008f5565b600955604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620004ea57620004ea620004a9565b604052919050565b60006001600160401b038211156200050e576200050e620004a9565b5060051b60200190565b80516001600160a01b03811681146200053057600080fd5b919050565b600082601f8301126200054757600080fd5b81516020620005606200055a83620004f2565b620004bf565b82815260059290921b840181019181810190868411156200058057600080fd5b8286015b848110156200059d578051835291830191830162000584565b509695505050505050565b600082601f830112620005ba57600080fd5b81516001600160401b03811115620005d657620005d6620004a9565b6020620005ec601f8301601f19168201620004bf565b82815285828487010111156200060157600080fd5b60005b838110156200062157858101830151828201840152820162000604565b506000928101909101919091529392505050565b600080600080600060a086880312156200064e57600080fd5b85516001600160401b03808211156200066657600080fd5b818801915088601f8301126200067b57600080fd5b815160206200068e6200055a83620004f2565b82815260059290921b8401810191818101908c841115620006ae57600080fd5b948201945b83861015620006d757620006c78662000518565b82529482019490820190620006b3565b918b0151919950909350505080821115620006f157600080fd5b620006ff89838a0162000535565b95506200070f6040890162000518565b94506200071f6060890162000518565b935060808801519150808211156200073657600080fd5b506200074588828901620005a8565b9150509295509295909350565b600181811c908216806200076757607f821691505b6020821081036200078857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620007dc57600081815260208120601f850160051c81016020861015620007b75750805b601f850160051c820191505b81811015620007d857828155600101620007c3565b5050505b505050565b81516001600160401b03811115620007fd57620007fd620004a9565b62000815816200080e845462000752565b846200078e565b602080601f8311600181146200084d5760008415620008345750858301515b600019600386901b1c1916600185901b178555620007d8565b600085815260208120601f198616915b828110156200087e578886015182559484019460019091019084016200085d565b50858210156200089d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201620008ee57620008ee620008c3565b5060010190565b808201808211156200090b576200090b620008c3565b92915050565b6137aa80620009216000396000f3fe60806040526004361061039b5760003560e01c80637dc42975116101dc578063b88d4fde11610102578063ce7c2ac2116100a0578063ea9004751161006f578063ea90047514610b42578063f2fde38b14610b78578063f8dcbddb14610b98578063f95e45ec14610bb857600080fd5b8063ce7c2ac214610a78578063d79779b214610aae578063e33b7de314610ae4578063e985e9c514610af957600080fd5b8063c87b56dd116100dc578063c87b56dd14610a06578063c893575a14610a26578063cbccefb214610a3b578063cc2f10d414610a6257600080fd5b8063b88d4fde146109a6578063c23dc68f146109b9578063c45ac050146109e657600080fd5b80639852595c1161017a578063a0bcfc7f11610149578063a0bcfc7f14610933578063a22cb46514610953578063a3f8eace14610973578063b3ab66b01461099357600080fd5b80639852595c146108a757806399a2557a146108dd5780639b629623146108fd5780639b6860c81461091d57600080fd5b80638a59a7fd116101b65780638a59a7fd146108345780638b83209b146108545780638da5cb5b1461087457806395d89b411461089257600080fd5b80637dc42975146107bb5780637f16053a146107d15780638462151c1461080757600080fd5b806342842e0e116102c15780635bbb21771161025f5780636c0360eb1161022e5780636c0360eb1461075b57806370a0823114610770578063715018a614610790578063734c66bd146107a557600080fd5b80635bbb2177146106e65780635be7fde8146107135780635ed61e8b146107285780636352211e1461073b57600080fd5b806348b750441161029b57806348b75044146106595780634fda72851461067957806356b4cf8c1461069957806359d20e61146106c657600080fd5b806342842e0e146105f95780634716b2c31461060c57806347c33ac21461062c57600080fd5b8063191655871161033957806323b872dd1161030857806323b872dd1461056b578063378e967d1461057e5780633a98ef391461059e578063406072a9146105b357600080fd5b806319165587146104f85780631cbabc3f146105185780631fb2dd1614610538578063217668d21461055857600080fd5b8063081812fc11610375578063081812fc14610478578063095ea7b3146104985780630c3f6acf146104ad57806318160ddd146104d557600080fd5b806301ffc9a7146103e957806303a02f071461041e57806306fdde031461045657600080fd5b366103e4577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156103f557600080fd5b50610409610404366004612e01565b610bd8565b60405190151581526020015b60405180910390f35b34801561042a57600080fd5b50601d5461043e906001600160a01b031681565b6040516001600160a01b039091168152602001610415565b34801561046257600080fd5b5061046b610c2a565b6040516104159190612e6e565b34801561048457600080fd5b5061043e610493366004612e81565b610cbc565b6104ab6104a6366004612eaf565b610d00565b005b3480156104b957600080fd5b506013546017546016546040516104159360ff16929190612f13565b3480156104e157600080fd5b506104ea610d10565b604051908152602001610415565b34801561050457600080fd5b506104ab610513366004612f32565b610d1e565b34801561052457600080fd5b506104ab610533366004612f32565b610e20565b34801561054457600080fd5b506104ab610553366004612e81565b610e4a565b6104ab610566366004612f4f565b610f0b565b6104ab610579366004612fca565b611203565b34801561058a57600080fd5b506104ab610599366004612e81565b611375565b3480156105aa57600080fd5b506009546104ea565b3480156105bf57600080fd5b506104ea6105ce36600461300b565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b6104ab610607366004612fca565b611382565b34801561061857600080fd5b506104ab610627366004613044565b6113a2565b34801561063857600080fd5b506104ea610647366004612f32565b60196020526000908152604090205481565b34801561066557600080fd5b506104ab61067436600461300b565b6113b5565b34801561068557600080fd5b506104ab610694366004612e81565b6114d8565b3480156106a557600080fd5b506104ea6106b4366004612f32565b60186020526000908152604090205481565b3480156106d257600080fd5b506104ab6106e1366004612e81565b6114e5565b3480156106f257600080fd5b50610706610701366004613066565b6114f2565b6040516104159190613116565b34801561071f57600080fd5b506104ab6115bd565b6104ab610736366004612f4f565b6115eb565b34801561074757600080fd5b5061043e610756366004612e81565b61182b565b34801561076757600080fd5b5061046b611836565b34801561077c57600080fd5b506104ea61078b366004612f32565b6118c4565b34801561079c57600080fd5b506104ab611912565b3480156107b157600080fd5b506104ea60165481565b3480156107c757600080fd5b506104ea601b5481565b3480156107dd57600080fd5b506104ea6107ec366004612f32565b6001600160a01b031660009081526019602052604090205490565b34801561081357600080fd5b50610827610822366004612f32565b611926565b6040516104159190613158565b34801561084057600080fd5b506104ea61084f366004612f32565b611a2e565b34801561086057600080fd5b5061043e61086f366004612e81565b611a58565b34801561088057600080fd5b506000546001600160a01b031661043e565b34801561089e57600080fd5b5061046b611a88565b3480156108b357600080fd5b506104ea6108c2366004612f32565b6001600160a01b03166000908152600c602052604090205490565b3480156108e957600080fd5b506108276108f8366004613190565b611a97565b34801561090957600080fd5b506104ab61091836600461300b565b611c1e565b34801561092957600080fd5b506104ea60175481565b34801561093f57600080fd5b506104ab61094e366004613250565b611c54565b34801561095f57600080fd5b506104ab61096e3660046132a6565b611c68565b34801561097f57600080fd5b506104ea61098e366004612f32565b611cd4565b6104ab6109a1366004612e81565b611d15565b6104ab6109b43660046132d4565b611eb5565b3480156109c557600080fd5b506109d96109d4366004612e81565b611ef9565b6040516104159190613353565b3480156109f257600080fd5b506104ea610a0136600461300b565b611f81565b348015610a1257600080fd5b5061046b610a21366004612e81565b61204c565b348015610a3257600080fd5b506104ab6120d5565b348015610a4757600080fd5b50601354610a559060ff1681565b6040516104159190613361565b348015610a6e57600080fd5b506104ea601a5481565b348015610a8457600080fd5b506104ea610a93366004612f32565b6001600160a01b03166000908152600b602052604090205490565b348015610aba57600080fd5b506104ea610ac9366004612f32565b6001600160a01b03166000908152600e602052604090205490565b348015610af057600080fd5b50600a546104ea565b348015610b0557600080fd5b50610409610b1436600461300b565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610b4e57600080fd5b506104ea610b5d366004612f32565b6001600160a01b031660009081526018602052604090205490565b348015610b8457600080fd5b506104ab610b93366004612f32565b612136565b348015610ba457600080fd5b506104ab610bb3366004612e81565b6121ac565b348015610bc457600080fd5b506104ab610bd3366004612e81565b6121ea565b60006301ffc9a760e01b6001600160e01b031983161480610c0957506380ac58cd60e01b6001600160e01b03198316145b80610c245750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060038054610c399061336f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c659061336f565b8015610cb25780601f10610c8757610100808354040283529160200191610cb2565b820191906000526020600020905b815481529060010190602001808311610c9557829003601f168201915b5050505050905090565b6000610cc7826121f7565b610ce4576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b610d0c8282600161222c565b5050565b600254600154036000190190565b6001600160a01b0381166000908152600b6020526040902054610d5c5760405162461bcd60e51b8152600401610d53906133a9565b60405180910390fd5b6000610d6782611cd4565b905080600003610d895760405162461bcd60e51b8152600401610d53906133ef565b6001600160a01b0382166000908152600c602052604081208054839290610db1908490613450565b9250508190555080600a6000828254610dca9190613450565b90915550610dda905082826122d3565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b610e286123ec565b601d80546001600160a01b0319166001600160a01b0392909216919091179055565b33610e548261182b565b6001600160a01b031614610e9d5760405162461bcd60e51b815260206004820152601060248201526f29b2b73232b9103737ba1037bbb732b960811b6044820152606401610d53565b601d54604051635797b11160e01b815260048101839052336024820152600060448201526001600160a01b0390911690635797b11190606401600060405180830381600087803b158015610ef057600080fd5b505af1158015610f04573d6000803e3d6000fd5b5050505050565b60165480610f2b5760405162461bcd60e51b8152600401610d5390613463565b610f358482613487565b341015610f545760405162461bcd60e51b8152600401610d539061349e565b600160135460ff166004811115610f6d57610f6d612edb565b14610fae5760405162461bcd60e51b81526020600482015260116024820152702ba61026b4b73a103737ba103634bb329760791b6044820152606401610d53565b61115c84610fba610d10565b610fc49190613450565b11156110125760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c7920657863656564656420666f7220574c0000000000006044820152606401610d53565b6014548461101e610d10565b6110289190613450565b111561106f5760405162461bcd60e51b815260206004820152601660248201527513585e081cdd5c1c1b1e481ddb08195e18d95959195960521b6044820152606401610d53565b61110583838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152605c0191506110e19050565b6040516020818303038152906040528051906020012061244690919063ffffffff16565b6010546001600160a01b039081169116146111625760405162461bcd60e51b815260206004820152601b60248201527f596f7520617265206e6f7420696e20574c2077686974656c69737400000000006044820152606401610d53565b601a5433600090815260186020526040902054611180908690613450565b11156111ce5760405162461bcd60e51b815260206004820152601f60248201527f4d617820657863656564656420666f722057686974656c6973742053616c65006044820152606401610d53565b33600090815260186020526040812080548692906111ed908490613450565b909155506111fd9050338561246a565b50505050565b600061120e82612568565b9050836001600160a01b0316816001600160a01b0316146112415760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b0388169091141761128e576112718633610b14565b61128e57604051632ce44b5f60e11b815260040160405180910390fd5b801561129957600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b8416900361132b576001840160008181526005602052604081205490036113295760015481146113295760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61137d6123ec565b601555565b61139d83838360405180602001604052806000815250611eb5565b505050565b6113aa6123ec565b601a91909155601b55565b6001600160a01b0381166000908152600b60205260409020546113ea5760405162461bcd60e51b8152600401610d53906133a9565b60006113f68383611f81565b9050806000036114185760405162461bcd60e51b8152600401610d53906133ef565b6001600160a01b038084166000908152600f602090815260408083209386168352929052908120805483929061144f908490613450565b90915550506001600160a01b0383166000908152600e60205260408120805483929061147c908490613450565b9091555061148d90508383836125f4565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b6114e06123ec565b601755565b6114ed6123ec565b601655565b6060816000816001600160401b0381111561150f5761150f6131c5565b60405190808252806020026020018201604052801561156157816020015b60408051608081018252600080825260208083018290529282018190526060820152825260001990920191018161152d5790505b50905060005b8281146115b45761158f868683818110611583576115836134c8565b90506020020135611ef9565b8282815181106115a1576115a16134c8565b6020908102919091010152600101611567565b50949350505050565b60005b601c548110156115e8576115d661051382611a58565b806115e0816134de565b9150506115c0565b50565b6017548061160b5760405162461bcd60e51b8152600401610d5390613463565b6116158482613487565b3410156116345760405162461bcd60e51b8152600401610d539061349e565b600260135460ff16600481111561164d5761164d612edb565b1461168e5760405162461bcd60e51b81526020600482015260116024820152702ba61026b4b73a103737ba103634bb329760791b6044820152606401610d53565b61115c8461169a610d10565b6116a49190613450565b11156116f25760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c7920657863656564656420666f7220574c0000000000006044820152606401610d53565b6015546014546117029190613450565b8461170b610d10565b6117159190613450565b111561175c5760405162461bcd60e51b815260206004820152601660248201527513585e081cdd5c1c1b1e481ddb08195e18d95959195960521b6044820152606401610d53565b6117ce83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152605c0191506110e19050565b6011546001600160a01b039081169116146111625760405162461bcd60e51b815260206004820152601b60248201527f596f7520617265206e6f7420696e20574c2077686974656c69737400000000006044820152606401610d53565b6000610c2482612568565b601280546118439061336f565b80601f016020809104026020016040519081016040528092919081815260200182805461186f9061336f565b80156118bc5780601f10611891576101008083540402835291602001916118bc565b820191906000526020600020905b81548152906001019060200180831161189f57829003601f168201915b505050505081565b60006001600160a01b0382166118ed576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b61191a6123ec565b6119246000612646565b565b60606000806000611936856118c4565b90506000816001600160401b03811115611952576119526131c5565b60405190808252806020026020018201604052801561197b578160200160208202803683370190505b5090506119a860408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614611a22576119bb81612696565b91508160400151611a1a5781516001600160a01b0316156119db57815194505b876001600160a01b0316856001600160a01b031603611a1a5780838780600101985081518110611a0d57611a0d6134c8565b6020026020010181815250505b6001016119ab565b50909695505050505050565b6001600160a01b038116600090815260066020526040808220546001600160401b03911c16610c24565b6000600d8281548110611a6d57611a6d6134c8565b6000918252602090912001546001600160a01b031692915050565b606060048054610c399061336f565b6060818310611ab957604051631960ccad60e11b815260040160405180910390fd5b600080611ac560015490565b90506001851015611ad557600194505b80841115611ae1578093505b6000611aec876118c4565b905084861015611b0b5785850381811015611b05578091505b50611b0f565b5060005b6000816001600160401b03811115611b2957611b296131c5565b604051908082528060200260200182016040528015611b52578160200160208202803683370190505b50905081600003611b68579350611c1792505050565b6000611b7388611ef9565b905060008160400151611b84575080515b885b888114158015611b965750848714155b15611c0b57611ba481612696565b92508260400151611c035782516001600160a01b031615611bc457825191505b8a6001600160a01b0316826001600160a01b031603611c035780848880600101995081518110611bf657611bf66134c8565b6020026020010181815250505b600101611b86565b50505092835250909150505b9392505050565b611c266123ec565b601080546001600160a01b039384166001600160a01b03199182161790915560118054929093169116179055565b611c5c6123ec565b6012610d0c828261353d565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600080611ce0600a5490565b611cea9047613450565b9050611c178382611d10866001600160a01b03166000908152600c602052604090205490565b6126d2565b60175480611d355760405162461bcd60e51b8152600401610d5390613463565b81601754611d439190613487565b341015611d625760405162461bcd60e51b8152600401610d539061349e565b600360135460ff166004811115611d7b57611d7b612edb565b14611dc05760405162461bcd60e51b8152602060048201526015602482015274283ab13634b19026b4b73a103737ba103634bb329760591b6044820152606401610d53565b61115c82611dcc610d10565b611dd69190613450565b1115611e1a5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610d53565b601b5433600090815260196020526040902054611e38908490613450565b1115611e865760405162461bcd60e51b815260206004820152601c60248201527f4d617820657863656564656420666f72205075626c69632053616c65000000006044820152606401610d53565b3360009081526019602052604081208054849290611ea5908490613450565b90915550610d0c9050338361246a565b611ec0848484611203565b6001600160a01b0383163b156111fd57611edc84848484612710565b6111fd576040516368d2bf6b60e11b815260040160405180910390fd5b6040805160808101825260008082526020820181905291810182905260608101919091526040805160808101825260008082526020820181905291810182905260608101919091526001831080611f5257506001548310155b15611f5d5792915050565b611f6683612696565b9050806040015115611f785792915050565b611c17836127fb565b6001600160a01b0382166000908152600e602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa158015611fe0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200491906135fc565b61200e9190613450565b6001600160a01b038086166000908152600f602090815260408083209388168352929052205490915061204490849083906126d2565b949350505050565b6060612057826121f7565b6120a35760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610d53565b60126120ae83612830565b6040516020016120bf929190613615565b6040516020818303038152906040529050919050565b6120dd6123ec565b6120e5610d10565b1561212b5760405162461bcd60e51b815260206004820152601660248201527518d85b9d081b5a5b9d0818599d195c881bdc195b995960521b6044820152606401610d53565b61192433602161246a565b61213e6123ec565b6001600160a01b0381166121a35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d53565b6115e881612646565b6121b46123ec565b8060048111156121c6576121c6612edb565b6013805460ff191660018360048111156121e2576121e2612edb565b021790555050565b6121f26123ec565b601455565b60008160011115801561220b575060015482105b8015610c24575050600090815260056020526040902054600160e01b161590565b60006122378361182b565b9050811561227657336001600160a01b03821614612276576122598133610b14565b612276576040516367d9dca160e11b815260040160405180910390fd5b60008381526007602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b804710156123235760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d53565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612370576040519150601f19603f3d011682016040523d82523d6000602084013e612375565b606091505b505090508061139d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d53565b6000546001600160a01b031633146119245760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d53565b60008060006124558585612874565b91509150612462816128e2565b509392505050565b600154600082900361248f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461253e57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612506565b508160000361255f57604051622e076360e81b815260040160405180910390fd5b60015550505050565b6000816001116125db575060008181526005602052604081205490600160e01b821690036125db57806000036125d65760015482106125ba57604051636f96cda160e11b815260040160405180910390fd5b5b506000190160008181526005602052604090205480156125bb575b919050565b604051636f96cda160e11b815260040160405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261139d908490612a98565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260056020526040902054610c2490612b6a565b6009546001600160a01b0384166000908152600b6020526040812054909183916126fc9086613487565b61270691906136ac565b61204491906136ce565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906127459033908990889088906004016136e1565b6020604051808303816000875af1925050508015612780575060408051601f3d908101601f1916820190925261277d9181019061371e565b60015b6127de573d8080156127ae576040519150601f19603f3d011682016040523d82523d6000602084013e6127b3565b606091505b5080516000036127d6576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610c2461282b83612568565b612b6a565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061284a5750819003601f19909101908152919050565b60008082516041036128aa5760208301516040840151606085015160001a61289e87828585612bb1565b945094505050506128db565b82516040036128d357602083015160408401516128c8868383612c9e565b9350935050506128db565b506000905060025b9250929050565b60008160048111156128f6576128f6612edb565b036128fe5750565b600181600481111561291257612912612edb565b0361295f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d53565b600281600481111561297357612973612edb565b036129c05760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d53565b60038160048111156129d4576129d4612edb565b03612a2c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d53565b6004816004811115612a4057612a40612edb565b036115e85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d53565b6000612aed826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612cd79092919063ffffffff16565b80519091501561139d5780806020019051810190612b0b919061373b565b61139d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610d53565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612be85750600090506003612c95565b8460ff16601b14158015612c0057508460ff16601c14155b15612c115750600090506004612c95565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c65573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8e57600060019250925050612c95565b9150600090505b94509492505050565b6000806001600160ff1b03831681612cbb60ff86901c601b613450565b9050612cc987828885612bb1565b935093505050935093915050565b60606120448484600085856001600160a01b0385163b612d395760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d53565b600080866001600160a01b03168587604051612d559190613758565b60006040518083038185875af1925050503d8060008114612d92576040519150601f19603f3d011682016040523d82523d6000602084013e612d97565b606091505b5091509150612da7828286612db2565b979650505050505050565b60608315612dc1575081611c17565b825115612dd15782518084602001fd5b8160405162461bcd60e51b8152600401610d539190612e6e565b6001600160e01b0319811681146115e857600080fd5b600060208284031215612e1357600080fd5b8135611c1781612deb565b60005b83811015612e39578181015183820152602001612e21565b50506000910152565b60008151808452612e5a816020860160208601612e1e565b601f01601f19169290920160200192915050565b602081526000611c176020830184612e42565b600060208284031215612e9357600080fd5b5035919050565b6001600160a01b03811681146115e857600080fd5b60008060408385031215612ec257600080fd5b8235612ecd81612e9a565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b60058110612f0f57634e487b7160e01b600052602160045260246000fd5b9052565b60608101612f218286612ef1565b602082019390935260400152919050565b600060208284031215612f4457600080fd5b8135611c1781612e9a565b600080600060408486031215612f6457600080fd5b8335925060208401356001600160401b0380821115612f8257600080fd5b818601915086601f830112612f9657600080fd5b813581811115612fa557600080fd5b876020828501011115612fb757600080fd5b6020830194508093505050509250925092565b600080600060608486031215612fdf57600080fd5b8335612fea81612e9a565b92506020840135612ffa81612e9a565b929592945050506040919091013590565b6000806040838503121561301e57600080fd5b823561302981612e9a565b9150602083013561303981612e9a565b809150509250929050565b6000806040838503121561305757600080fd5b50508035926020909101359150565b6000806020838503121561307957600080fd5b82356001600160401b038082111561309057600080fd5b818501915085601f8301126130a457600080fd5b8135818111156130b357600080fd5b8660208260051b85010111156130c857600080fd5b60209290920196919550909350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015611a22576131458385516130da565b9284019260809290920191600101613132565b6020808252825182820181905260009190848201906040850190845b81811015611a2257835183529284019291840191600101613174565b6000806000606084860312156131a557600080fd5b83356131b081612e9a565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156131f5576131f56131c5565b604051601f8501601f19908116603f0116810190828211818310171561321d5761321d6131c5565b8160405280935085815286868601111561323657600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561326257600080fd5b81356001600160401b0381111561327857600080fd5b8201601f8101841361328957600080fd5b612044848235602084016131db565b80151581146115e857600080fd5b600080604083850312156132b957600080fd5b82356132c481612e9a565b9150602083013561303981613298565b600080600080608085870312156132ea57600080fd5b84356132f581612e9a565b9350602085013561330581612e9a565b92506040850135915060608501356001600160401b0381111561332757600080fd5b8501601f8101871361333857600080fd5b613347878235602084016131db565b91505092959194509250565b60808101610c2482846130da565b60208101610c248284612ef1565b600181811c9082168061338357607f821691505b6020821081036133a357634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c2457610c2461343a565b6020808252600a90820152690507269636520697320360b41b604082015260600190565b8082028115828204841417610c2457610c2461343a565b60208082526010908201526f4e6f7420656e6f7567682066756e647360801b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600182016134f0576134f061343a565b5060010190565b601f82111561139d57600081815260208120601f850160051c8101602086101561351e5750805b601f850160051c820191505b8181101561136d5782815560010161352a565b81516001600160401b03811115613556576135566131c5565b61356a81613564845461336f565b846134f7565b602080601f83116001811461359f57600084156135875750858301515b600019600386901b1c1916600185901b17855561136d565b600085815260208120601f198616915b828110156135ce578886015182559484019460019091019084016135af565b50858210156135ec5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561360e57600080fd5b5051919050565b60008084546136238161336f565b6001828116801561363b57600181146136505761367f565b60ff198416875282151583028701945061367f565b8860005260208060002060005b858110156136765781548a82015290840190820161365d565b50505082870194505b505050508351613693818360208801612e1e565b64173539b7b760d91b9101908152600501949350505050565b6000826136c957634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610c2457610c2461343a565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061371490830184612e42565b9695505050505050565b60006020828403121561373057600080fd5b8151611c1781612deb565b60006020828403121561374d57600080fd5b8151611c1781613298565b6000825161376a818460208701612e1e565b919091019291505056fea26469706673582212205d6e2fdcb97338efb0ecb104e2b99b62972758bb430d2c7099b1e1cbd383527864736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000a5c0c8e29645dac017ace5b7e3e6322086e77cdc000000000000000000000000e993888aff4efbf823988f3f65d36b015b7f9f1400000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000400000000000000000000000097d01224f02338bb83f959abda894719ffb2277a000000000000000000000000ae7ba81a7afc5e1e1143f04add7488773ab909da0000000000000000000000008c9655fb90dc0963b5c05b6f7e26e2901bef1e1a0000000000000000000000002cc5eb5d10d8b44c8ccfb37179a8b46a99160bde0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000013b0000000000000000000000000000000000000000000000000000000000000037000000000000000000000000000000000000000000000000000000000000013b000000000000000000000000000000000000000000000000000000000000013b0000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696636373277696b79666e6c7737336e7137767a7532686b66697a727762626f6b66677965626e7a7973766a6c736f363476356a652f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061039b5760003560e01c80637dc42975116101dc578063b88d4fde11610102578063ce7c2ac2116100a0578063ea9004751161006f578063ea90047514610b42578063f2fde38b14610b78578063f8dcbddb14610b98578063f95e45ec14610bb857600080fd5b8063ce7c2ac214610a78578063d79779b214610aae578063e33b7de314610ae4578063e985e9c514610af957600080fd5b8063c87b56dd116100dc578063c87b56dd14610a06578063c893575a14610a26578063cbccefb214610a3b578063cc2f10d414610a6257600080fd5b8063b88d4fde146109a6578063c23dc68f146109b9578063c45ac050146109e657600080fd5b80639852595c1161017a578063a0bcfc7f11610149578063a0bcfc7f14610933578063a22cb46514610953578063a3f8eace14610973578063b3ab66b01461099357600080fd5b80639852595c146108a757806399a2557a146108dd5780639b629623146108fd5780639b6860c81461091d57600080fd5b80638a59a7fd116101b65780638a59a7fd146108345780638b83209b146108545780638da5cb5b1461087457806395d89b411461089257600080fd5b80637dc42975146107bb5780637f16053a146107d15780638462151c1461080757600080fd5b806342842e0e116102c15780635bbb21771161025f5780636c0360eb1161022e5780636c0360eb1461075b57806370a0823114610770578063715018a614610790578063734c66bd146107a557600080fd5b80635bbb2177146106e65780635be7fde8146107135780635ed61e8b146107285780636352211e1461073b57600080fd5b806348b750441161029b57806348b75044146106595780634fda72851461067957806356b4cf8c1461069957806359d20e61146106c657600080fd5b806342842e0e146105f95780634716b2c31461060c57806347c33ac21461062c57600080fd5b8063191655871161033957806323b872dd1161030857806323b872dd1461056b578063378e967d1461057e5780633a98ef391461059e578063406072a9146105b357600080fd5b806319165587146104f85780631cbabc3f146105185780631fb2dd1614610538578063217668d21461055857600080fd5b8063081812fc11610375578063081812fc14610478578063095ea7b3146104985780630c3f6acf146104ad57806318160ddd146104d557600080fd5b806301ffc9a7146103e957806303a02f071461041e57806306fdde031461045657600080fd5b366103e4577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156103f557600080fd5b50610409610404366004612e01565b610bd8565b60405190151581526020015b60405180910390f35b34801561042a57600080fd5b50601d5461043e906001600160a01b031681565b6040516001600160a01b039091168152602001610415565b34801561046257600080fd5b5061046b610c2a565b6040516104159190612e6e565b34801561048457600080fd5b5061043e610493366004612e81565b610cbc565b6104ab6104a6366004612eaf565b610d00565b005b3480156104b957600080fd5b506013546017546016546040516104159360ff16929190612f13565b3480156104e157600080fd5b506104ea610d10565b604051908152602001610415565b34801561050457600080fd5b506104ab610513366004612f32565b610d1e565b34801561052457600080fd5b506104ab610533366004612f32565b610e20565b34801561054457600080fd5b506104ab610553366004612e81565b610e4a565b6104ab610566366004612f4f565b610f0b565b6104ab610579366004612fca565b611203565b34801561058a57600080fd5b506104ab610599366004612e81565b611375565b3480156105aa57600080fd5b506009546104ea565b3480156105bf57600080fd5b506104ea6105ce36600461300b565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b6104ab610607366004612fca565b611382565b34801561061857600080fd5b506104ab610627366004613044565b6113a2565b34801561063857600080fd5b506104ea610647366004612f32565b60196020526000908152604090205481565b34801561066557600080fd5b506104ab61067436600461300b565b6113b5565b34801561068557600080fd5b506104ab610694366004612e81565b6114d8565b3480156106a557600080fd5b506104ea6106b4366004612f32565b60186020526000908152604090205481565b3480156106d257600080fd5b506104ab6106e1366004612e81565b6114e5565b3480156106f257600080fd5b50610706610701366004613066565b6114f2565b6040516104159190613116565b34801561071f57600080fd5b506104ab6115bd565b6104ab610736366004612f4f565b6115eb565b34801561074757600080fd5b5061043e610756366004612e81565b61182b565b34801561076757600080fd5b5061046b611836565b34801561077c57600080fd5b506104ea61078b366004612f32565b6118c4565b34801561079c57600080fd5b506104ab611912565b3480156107b157600080fd5b506104ea60165481565b3480156107c757600080fd5b506104ea601b5481565b3480156107dd57600080fd5b506104ea6107ec366004612f32565b6001600160a01b031660009081526019602052604090205490565b34801561081357600080fd5b50610827610822366004612f32565b611926565b6040516104159190613158565b34801561084057600080fd5b506104ea61084f366004612f32565b611a2e565b34801561086057600080fd5b5061043e61086f366004612e81565b611a58565b34801561088057600080fd5b506000546001600160a01b031661043e565b34801561089e57600080fd5b5061046b611a88565b3480156108b357600080fd5b506104ea6108c2366004612f32565b6001600160a01b03166000908152600c602052604090205490565b3480156108e957600080fd5b506108276108f8366004613190565b611a97565b34801561090957600080fd5b506104ab61091836600461300b565b611c1e565b34801561092957600080fd5b506104ea60175481565b34801561093f57600080fd5b506104ab61094e366004613250565b611c54565b34801561095f57600080fd5b506104ab61096e3660046132a6565b611c68565b34801561097f57600080fd5b506104ea61098e366004612f32565b611cd4565b6104ab6109a1366004612e81565b611d15565b6104ab6109b43660046132d4565b611eb5565b3480156109c557600080fd5b506109d96109d4366004612e81565b611ef9565b6040516104159190613353565b3480156109f257600080fd5b506104ea610a0136600461300b565b611f81565b348015610a1257600080fd5b5061046b610a21366004612e81565b61204c565b348015610a3257600080fd5b506104ab6120d5565b348015610a4757600080fd5b50601354610a559060ff1681565b6040516104159190613361565b348015610a6e57600080fd5b506104ea601a5481565b348015610a8457600080fd5b506104ea610a93366004612f32565b6001600160a01b03166000908152600b602052604090205490565b348015610aba57600080fd5b506104ea610ac9366004612f32565b6001600160a01b03166000908152600e602052604090205490565b348015610af057600080fd5b50600a546104ea565b348015610b0557600080fd5b50610409610b1436600461300b565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610b4e57600080fd5b506104ea610b5d366004612f32565b6001600160a01b031660009081526018602052604090205490565b348015610b8457600080fd5b506104ab610b93366004612f32565b612136565b348015610ba457600080fd5b506104ab610bb3366004612e81565b6121ac565b348015610bc457600080fd5b506104ab610bd3366004612e81565b6121ea565b60006301ffc9a760e01b6001600160e01b031983161480610c0957506380ac58cd60e01b6001600160e01b03198316145b80610c245750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060038054610c399061336f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c659061336f565b8015610cb25780601f10610c8757610100808354040283529160200191610cb2565b820191906000526020600020905b815481529060010190602001808311610c9557829003601f168201915b5050505050905090565b6000610cc7826121f7565b610ce4576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b610d0c8282600161222c565b5050565b600254600154036000190190565b6001600160a01b0381166000908152600b6020526040902054610d5c5760405162461bcd60e51b8152600401610d53906133a9565b60405180910390fd5b6000610d6782611cd4565b905080600003610d895760405162461bcd60e51b8152600401610d53906133ef565b6001600160a01b0382166000908152600c602052604081208054839290610db1908490613450565b9250508190555080600a6000828254610dca9190613450565b90915550610dda905082826122d3565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b610e286123ec565b601d80546001600160a01b0319166001600160a01b0392909216919091179055565b33610e548261182b565b6001600160a01b031614610e9d5760405162461bcd60e51b815260206004820152601060248201526f29b2b73232b9103737ba1037bbb732b960811b6044820152606401610d53565b601d54604051635797b11160e01b815260048101839052336024820152600060448201526001600160a01b0390911690635797b11190606401600060405180830381600087803b158015610ef057600080fd5b505af1158015610f04573d6000803e3d6000fd5b5050505050565b60165480610f2b5760405162461bcd60e51b8152600401610d5390613463565b610f358482613487565b341015610f545760405162461bcd60e51b8152600401610d539061349e565b600160135460ff166004811115610f6d57610f6d612edb565b14610fae5760405162461bcd60e51b81526020600482015260116024820152702ba61026b4b73a103737ba103634bb329760791b6044820152606401610d53565b61115c84610fba610d10565b610fc49190613450565b11156110125760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c7920657863656564656420666f7220574c0000000000006044820152606401610d53565b6014548461101e610d10565b6110289190613450565b111561106f5760405162461bcd60e51b815260206004820152601660248201527513585e081cdd5c1c1b1e481ddb08195e18d95959195960521b6044820152606401610d53565b61110583838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152605c0191506110e19050565b6040516020818303038152906040528051906020012061244690919063ffffffff16565b6010546001600160a01b039081169116146111625760405162461bcd60e51b815260206004820152601b60248201527f596f7520617265206e6f7420696e20574c2077686974656c69737400000000006044820152606401610d53565b601a5433600090815260186020526040902054611180908690613450565b11156111ce5760405162461bcd60e51b815260206004820152601f60248201527f4d617820657863656564656420666f722057686974656c6973742053616c65006044820152606401610d53565b33600090815260186020526040812080548692906111ed908490613450565b909155506111fd9050338561246a565b50505050565b600061120e82612568565b9050836001600160a01b0316816001600160a01b0316146112415760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b0388169091141761128e576112718633610b14565b61128e57604051632ce44b5f60e11b815260040160405180910390fd5b801561129957600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b8416900361132b576001840160008181526005602052604081205490036113295760015481146113295760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61137d6123ec565b601555565b61139d83838360405180602001604052806000815250611eb5565b505050565b6113aa6123ec565b601a91909155601b55565b6001600160a01b0381166000908152600b60205260409020546113ea5760405162461bcd60e51b8152600401610d53906133a9565b60006113f68383611f81565b9050806000036114185760405162461bcd60e51b8152600401610d53906133ef565b6001600160a01b038084166000908152600f602090815260408083209386168352929052908120805483929061144f908490613450565b90915550506001600160a01b0383166000908152600e60205260408120805483929061147c908490613450565b9091555061148d90508383836125f4565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b6114e06123ec565b601755565b6114ed6123ec565b601655565b6060816000816001600160401b0381111561150f5761150f6131c5565b60405190808252806020026020018201604052801561156157816020015b60408051608081018252600080825260208083018290529282018190526060820152825260001990920191018161152d5790505b50905060005b8281146115b45761158f868683818110611583576115836134c8565b90506020020135611ef9565b8282815181106115a1576115a16134c8565b6020908102919091010152600101611567565b50949350505050565b60005b601c548110156115e8576115d661051382611a58565b806115e0816134de565b9150506115c0565b50565b6017548061160b5760405162461bcd60e51b8152600401610d5390613463565b6116158482613487565b3410156116345760405162461bcd60e51b8152600401610d539061349e565b600260135460ff16600481111561164d5761164d612edb565b1461168e5760405162461bcd60e51b81526020600482015260116024820152702ba61026b4b73a103737ba103634bb329760791b6044820152606401610d53565b61115c8461169a610d10565b6116a49190613450565b11156116f25760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c7920657863656564656420666f7220574c0000000000006044820152606401610d53565b6015546014546117029190613450565b8461170b610d10565b6117159190613450565b111561175c5760405162461bcd60e51b815260206004820152601660248201527513585e081cdd5c1c1b1e481ddb08195e18d95959195960521b6044820152606401610d53565b6117ce83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152605c0191506110e19050565b6011546001600160a01b039081169116146111625760405162461bcd60e51b815260206004820152601b60248201527f596f7520617265206e6f7420696e20574c2077686974656c69737400000000006044820152606401610d53565b6000610c2482612568565b601280546118439061336f565b80601f016020809104026020016040519081016040528092919081815260200182805461186f9061336f565b80156118bc5780601f10611891576101008083540402835291602001916118bc565b820191906000526020600020905b81548152906001019060200180831161189f57829003601f168201915b505050505081565b60006001600160a01b0382166118ed576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b61191a6123ec565b6119246000612646565b565b60606000806000611936856118c4565b90506000816001600160401b03811115611952576119526131c5565b60405190808252806020026020018201604052801561197b578160200160208202803683370190505b5090506119a860408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614611a22576119bb81612696565b91508160400151611a1a5781516001600160a01b0316156119db57815194505b876001600160a01b0316856001600160a01b031603611a1a5780838780600101985081518110611a0d57611a0d6134c8565b6020026020010181815250505b6001016119ab565b50909695505050505050565b6001600160a01b038116600090815260066020526040808220546001600160401b03911c16610c24565b6000600d8281548110611a6d57611a6d6134c8565b6000918252602090912001546001600160a01b031692915050565b606060048054610c399061336f565b6060818310611ab957604051631960ccad60e11b815260040160405180910390fd5b600080611ac560015490565b90506001851015611ad557600194505b80841115611ae1578093505b6000611aec876118c4565b905084861015611b0b5785850381811015611b05578091505b50611b0f565b5060005b6000816001600160401b03811115611b2957611b296131c5565b604051908082528060200260200182016040528015611b52578160200160208202803683370190505b50905081600003611b68579350611c1792505050565b6000611b7388611ef9565b905060008160400151611b84575080515b885b888114158015611b965750848714155b15611c0b57611ba481612696565b92508260400151611c035782516001600160a01b031615611bc457825191505b8a6001600160a01b0316826001600160a01b031603611c035780848880600101995081518110611bf657611bf66134c8565b6020026020010181815250505b600101611b86565b50505092835250909150505b9392505050565b611c266123ec565b601080546001600160a01b039384166001600160a01b03199182161790915560118054929093169116179055565b611c5c6123ec565b6012610d0c828261353d565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600080611ce0600a5490565b611cea9047613450565b9050611c178382611d10866001600160a01b03166000908152600c602052604090205490565b6126d2565b60175480611d355760405162461bcd60e51b8152600401610d5390613463565b81601754611d439190613487565b341015611d625760405162461bcd60e51b8152600401610d539061349e565b600360135460ff166004811115611d7b57611d7b612edb565b14611dc05760405162461bcd60e51b8152602060048201526015602482015274283ab13634b19026b4b73a103737ba103634bb329760591b6044820152606401610d53565b61115c82611dcc610d10565b611dd69190613450565b1115611e1a5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610d53565b601b5433600090815260196020526040902054611e38908490613450565b1115611e865760405162461bcd60e51b815260206004820152601c60248201527f4d617820657863656564656420666f72205075626c69632053616c65000000006044820152606401610d53565b3360009081526019602052604081208054849290611ea5908490613450565b90915550610d0c9050338361246a565b611ec0848484611203565b6001600160a01b0383163b156111fd57611edc84848484612710565b6111fd576040516368d2bf6b60e11b815260040160405180910390fd5b6040805160808101825260008082526020820181905291810182905260608101919091526040805160808101825260008082526020820181905291810182905260608101919091526001831080611f5257506001548310155b15611f5d5792915050565b611f6683612696565b9050806040015115611f785792915050565b611c17836127fb565b6001600160a01b0382166000908152600e602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa158015611fe0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200491906135fc565b61200e9190613450565b6001600160a01b038086166000908152600f602090815260408083209388168352929052205490915061204490849083906126d2565b949350505050565b6060612057826121f7565b6120a35760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610d53565b60126120ae83612830565b6040516020016120bf929190613615565b6040516020818303038152906040529050919050565b6120dd6123ec565b6120e5610d10565b1561212b5760405162461bcd60e51b815260206004820152601660248201527518d85b9d081b5a5b9d0818599d195c881bdc195b995960521b6044820152606401610d53565b61192433602161246a565b61213e6123ec565b6001600160a01b0381166121a35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d53565b6115e881612646565b6121b46123ec565b8060048111156121c6576121c6612edb565b6013805460ff191660018360048111156121e2576121e2612edb565b021790555050565b6121f26123ec565b601455565b60008160011115801561220b575060015482105b8015610c24575050600090815260056020526040902054600160e01b161590565b60006122378361182b565b9050811561227657336001600160a01b03821614612276576122598133610b14565b612276576040516367d9dca160e11b815260040160405180910390fd5b60008381526007602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b804710156123235760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d53565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612370576040519150601f19603f3d011682016040523d82523d6000602084013e612375565b606091505b505090508061139d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d53565b6000546001600160a01b031633146119245760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d53565b60008060006124558585612874565b91509150612462816128e2565b509392505050565b600154600082900361248f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461253e57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612506565b508160000361255f57604051622e076360e81b815260040160405180910390fd5b60015550505050565b6000816001116125db575060008181526005602052604081205490600160e01b821690036125db57806000036125d65760015482106125ba57604051636f96cda160e11b815260040160405180910390fd5b5b506000190160008181526005602052604090205480156125bb575b919050565b604051636f96cda160e11b815260040160405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261139d908490612a98565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260056020526040902054610c2490612b6a565b6009546001600160a01b0384166000908152600b6020526040812054909183916126fc9086613487565b61270691906136ac565b61204491906136ce565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906127459033908990889088906004016136e1565b6020604051808303816000875af1925050508015612780575060408051601f3d908101601f1916820190925261277d9181019061371e565b60015b6127de573d8080156127ae576040519150601f19603f3d011682016040523d82523d6000602084013e6127b3565b606091505b5080516000036127d6576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610c2461282b83612568565b612b6a565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061284a5750819003601f19909101908152919050565b60008082516041036128aa5760208301516040840151606085015160001a61289e87828585612bb1565b945094505050506128db565b82516040036128d357602083015160408401516128c8868383612c9e565b9350935050506128db565b506000905060025b9250929050565b60008160048111156128f6576128f6612edb565b036128fe5750565b600181600481111561291257612912612edb565b0361295f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d53565b600281600481111561297357612973612edb565b036129c05760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d53565b60038160048111156129d4576129d4612edb565b03612a2c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d53565b6004816004811115612a4057612a40612edb565b036115e85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d53565b6000612aed826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612cd79092919063ffffffff16565b80519091501561139d5780806020019051810190612b0b919061373b565b61139d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610d53565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612be85750600090506003612c95565b8460ff16601b14158015612c0057508460ff16601c14155b15612c115750600090506004612c95565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c65573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8e57600060019250925050612c95565b9150600090505b94509492505050565b6000806001600160ff1b03831681612cbb60ff86901c601b613450565b9050612cc987828885612bb1565b935093505050935093915050565b60606120448484600085856001600160a01b0385163b612d395760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d53565b600080866001600160a01b03168587604051612d559190613758565b60006040518083038185875af1925050503d8060008114612d92576040519150601f19603f3d011682016040523d82523d6000602084013e612d97565b606091505b5091509150612da7828286612db2565b979650505050505050565b60608315612dc1575081611c17565b825115612dd15782518084602001fd5b8160405162461bcd60e51b8152600401610d539190612e6e565b6001600160e01b0319811681146115e857600080fd5b600060208284031215612e1357600080fd5b8135611c1781612deb565b60005b83811015612e39578181015183820152602001612e21565b50506000910152565b60008151808452612e5a816020860160208601612e1e565b601f01601f19169290920160200192915050565b602081526000611c176020830184612e42565b600060208284031215612e9357600080fd5b5035919050565b6001600160a01b03811681146115e857600080fd5b60008060408385031215612ec257600080fd5b8235612ecd81612e9a565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b60058110612f0f57634e487b7160e01b600052602160045260246000fd5b9052565b60608101612f218286612ef1565b602082019390935260400152919050565b600060208284031215612f4457600080fd5b8135611c1781612e9a565b600080600060408486031215612f6457600080fd5b8335925060208401356001600160401b0380821115612f8257600080fd5b818601915086601f830112612f9657600080fd5b813581811115612fa557600080fd5b876020828501011115612fb757600080fd5b6020830194508093505050509250925092565b600080600060608486031215612fdf57600080fd5b8335612fea81612e9a565b92506020840135612ffa81612e9a565b929592945050506040919091013590565b6000806040838503121561301e57600080fd5b823561302981612e9a565b9150602083013561303981612e9a565b809150509250929050565b6000806040838503121561305757600080fd5b50508035926020909101359150565b6000806020838503121561307957600080fd5b82356001600160401b038082111561309057600080fd5b818501915085601f8301126130a457600080fd5b8135818111156130b357600080fd5b8660208260051b85010111156130c857600080fd5b60209290920196919550909350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015611a22576131458385516130da565b9284019260809290920191600101613132565b6020808252825182820181905260009190848201906040850190845b81811015611a2257835183529284019291840191600101613174565b6000806000606084860312156131a557600080fd5b83356131b081612e9a565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156131f5576131f56131c5565b604051601f8501601f19908116603f0116810190828211818310171561321d5761321d6131c5565b8160405280935085815286868601111561323657600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561326257600080fd5b81356001600160401b0381111561327857600080fd5b8201601f8101841361328957600080fd5b612044848235602084016131db565b80151581146115e857600080fd5b600080604083850312156132b957600080fd5b82356132c481612e9a565b9150602083013561303981613298565b600080600080608085870312156132ea57600080fd5b84356132f581612e9a565b9350602085013561330581612e9a565b92506040850135915060608501356001600160401b0381111561332757600080fd5b8501601f8101871361333857600080fd5b613347878235602084016131db565b91505092959194509250565b60808101610c2482846130da565b60208101610c248284612ef1565b600181811c9082168061338357607f821691505b6020821081036133a357634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c2457610c2461343a565b6020808252600a90820152690507269636520697320360b41b604082015260600190565b8082028115828204841417610c2457610c2461343a565b60208082526010908201526f4e6f7420656e6f7567682066756e647360801b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600182016134f0576134f061343a565b5060010190565b601f82111561139d57600081815260208120601f850160051c8101602086101561351e5750805b601f850160051c820191505b8181101561136d5782815560010161352a565b81516001600160401b03811115613556576135566131c5565b61356a81613564845461336f565b846134f7565b602080601f83116001811461359f57600084156135875750858301515b600019600386901b1c1916600185901b17855561136d565b600085815260208120601f198616915b828110156135ce578886015182559484019460019091019084016135af565b50858210156135ec5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561360e57600080fd5b5051919050565b60008084546136238161336f565b6001828116801561363b57600181146136505761367f565b60ff198416875282151583028701945061367f565b8860005260208060002060005b858110156136765781548a82015290840190820161365d565b50505082870194505b505050508351613693818360208801612e1e565b64173539b7b760d91b9101908152600501949350505050565b6000826136c957634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610c2457610c2461343a565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061371490830184612e42565b9695505050505050565b60006020828403121561373057600080fd5b8151611c1781612deb565b60006020828403121561374d57600080fd5b8151611c1781613298565b6000825161376a818460208701612e1e565b919091019291505056fea26469706673582212205d6e2fdcb97338efb0ecb104e2b99b62972758bb430d2c7099b1e1cbd383527864736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000a5c0c8e29645dac017ace5b7e3e6322086e77cdc000000000000000000000000e993888aff4efbf823988f3f65d36b015b7f9f1400000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000400000000000000000000000097d01224f02338bb83f959abda894719ffb2277a000000000000000000000000ae7ba81a7afc5e1e1143f04add7488773ab909da0000000000000000000000008c9655fb90dc0963b5c05b6f7e26e2901bef1e1a0000000000000000000000002cc5eb5d10d8b44c8ccfb37179a8b46a99160bde0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000013b0000000000000000000000000000000000000000000000000000000000000037000000000000000000000000000000000000000000000000000000000000013b000000000000000000000000000000000000000000000000000000000000013b0000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696636373277696b79666e6c7737336e7137767a7532686b66697a727762626f6b66677965626e7a7973766a6c736f363476356a652f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _team (address[]): 0x97D01224f02338BB83F959ABdA894719ffb2277a,0xAe7bA81a7afc5E1e1143F04adD7488773AB909Da,0x8C9655FB90dC0963b5C05B6f7E26E2901BEF1e1A,0x2CC5Eb5D10D8B44C8cCFB37179A8b46A99160BdE
Arg [1] : _teamShares (uint256[]): 315,55,315,315
Arg [2] : _signerAddressWL1 (address): 0xA5c0c8E29645Dac017aCE5b7E3E6322086E77cdc
Arg [3] : _signerAddressWL2 (address): 0xE993888AFF4EFBf823988F3f65d36b015B7F9F14
Arg [4] : _baseURI (string): ipfs://bafybeif672wikyfnlw73nq7vzu2hkfizrwbbokfgyebnzysvjlso64v5je/
-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 000000000000000000000000a5c0c8e29645dac017ace5b7e3e6322086e77cdc
Arg [3] : 000000000000000000000000e993888aff4efbf823988f3f65d36b015b7f9f14
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 00000000000000000000000097d01224f02338bb83f959abda894719ffb2277a
Arg [7] : 000000000000000000000000ae7ba81a7afc5e1e1143f04add7488773ab909da
Arg [8] : 0000000000000000000000008c9655fb90dc0963b5c05b6f7e26e2901bef1e1a
Arg [9] : 0000000000000000000000002cc5eb5d10d8b44c8ccfb37179a8b46a99160bde
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [11] : 000000000000000000000000000000000000000000000000000000000000013b
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000037
Arg [13] : 000000000000000000000000000000000000000000000000000000000000013b
Arg [14] : 000000000000000000000000000000000000000000000000000000000000013b
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [16] : 697066733a2f2f626166796265696636373277696b79666e6c7737336e713776
Arg [17] : 7a7532686b66697a727762626f6b66677965626e7a7973766a6c736f36347635
Arg [18] : 6a652f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
20351:6225:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28872:40:1;14692:10;28872:40;;;-1:-1:-1;;;;;206:32:2;;;188:51;;28902:9:1;270:2:2;255:18;;248:34;161:18;28872:40:1;;;;;;;20351:6225:0;;;;;50621:630:1;;;;;;;;;;-1:-1:-1;50621:630:1;;;;;:::i;:::-;;:::i;:::-;;;844:14:2;;837:22;819:41;;807:2;792:18;50621:630:1;;;;;;;;21354:30:0;;;;;;;;;;-1:-1:-1;21354:30:0;;;;-1:-1:-1;;;;;21354:30:0;;;;;;-1:-1:-1;;;;;1055:32:2;;;1037:51;;1025:2;1010:18;21354:30:0;871:223:2;51505:98:1;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;57744:214::-;;;;;;;;;;-1:-1:-1;57744:214:1;;;;;:::i;:::-;;:::i;57472:122::-;;;;;;:::i;:::-;;:::i;:::-;;24977:132:0;;;;;;;;;;-1:-1:-1;25060:11:0;;25073:15;;25090:11;;24977:132;;;;25060:11;;;25073:15;25090:11;24977:132;:::i;47360:317:1:-;;;;;;;;;;;;;:::i;:::-;;;3564:25:2;;;3552:2;3537:18;47360:317:1;3418:177:2;31318:441:1;;;;;;;;;;-1:-1:-1;31318:441:1;;;;;:::i;:::-;;:::i;22120:108:0:-;;;;;;;;;;-1:-1:-1;22120:108:0;;;;;:::i;:::-;;:::i;21923:191::-;;;;;;;;;;-1:-1:-1;21923:191:0;;;;;:::i;:::-;;:::i;23033:958::-;;;;;;:::i;:::-;;:::i;61287:2766:1:-;;;;;;:::i;:::-;;:::i;25218:97:0:-;;;;;;;;;;-1:-1:-1;25218:97:0;;;;;:::i;:::-;;:::i;28997:89:1:-;;;;;;;;;;-1:-1:-1;29067:12:1;;28997:89;;30089:133;;;;;;;;;;-1:-1:-1;30089:133:1;;;;;:::i;:::-;-1:-1:-1;;;;;30185:21:1;;;30159:7;30185:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;;;;30089:133;64144:187;;;;;;:::i;:::-;;:::i;21189:129:0:-;;;;;;;;;;-1:-1:-1;21189:129:0;;;;;:::i;:::-;;:::i;21060:63::-;;;;;;;;;;-1:-1:-1;21060:63:0;;;;;:::i;:::-;;;;;;;;;;;;;;32020:502:1;;;;;;;;;;-1:-1:-1;32020:502:1;;;;;:::i;:::-;;:::i;25431:112:0:-;;;;;;;;;;-1:-1:-1;25431:112:0;;;;;:::i;:::-;;:::i;20994:60::-;;;;;;;;;;-1:-1:-1;20994:60:0;;;;;:::i;:::-;;;;;;;;;;;;;;25321:104;;;;;;;;;;-1:-1:-1;25321:104:0;;;;;:::i;:::-;;:::i;87622:513:1:-;;;;;;;;;;-1:-1:-1;87622:513:1;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;26437:137:0:-;;;;;;;;;;;;;:::i;23997:974::-;;;;;;:::i;:::-;;:::i;52857:150:1:-;;;;;;;;;;-1:-1:-1;52857:150:1;;;;;:::i;:::-;;:::i;20683:21:0:-;;;;;;;;;;;;;:::i;48511:230:1:-;;;;;;;;;;-1:-1:-1;48511:230:1;;;;;:::i;:::-;;:::i;18232:101::-;;;;;;;;;;;;;:::i;20900:38:0:-;;;;;;;;;;;;;;;;21157:25;;;;;;;;;;;;;;;;26018:144;;;;;;;;;;-1:-1:-1;26018:144:0;;;;;:::i;:::-;-1:-1:-1;;;;;26115:40:0;26089:7;26115:40;;;:31;:40;;;;;;;26018:144;91398:879:1;;;;;;;;;;-1:-1:-1;91398:879:1;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;25749:120:0:-;;;;;;;;;;-1:-1:-1;25749:120:0;;;;;:::i;:::-;;:::i;30308:98:1:-;;;;;;;;;;-1:-1:-1;30308:98:1;;;;;:::i;:::-;;:::i;17602:85::-;;;;;;;;;;-1:-1:-1;17648:7:1;17674:6;-1:-1:-1;;;;;17674:6:1;17602:85;;51674:102;;;;;;;;;;;;;:::i;29819:107::-;;;;;;;;;;-1:-1:-1;29819:107:1;;;;;:::i;:::-;-1:-1:-1;;;;;29901:18:1;29875:7;29901:18;;;:9;:18;;;;;;;29819:107;88509:2454;;;;;;;;;;-1:-1:-1;88509:2454:1;;;;;:::i;:::-;;:::i;22234:178:0:-;;;;;;;;;;-1:-1:-1;22234:178:0;;;;;:::i;:::-;;:::i;20944:43::-;;;;;;;;;;;;;;;;25549:98;;;;;;;;;;-1:-1:-1;25549:98:0;;;;;:::i;:::-;;:::i;58285:231:1:-;;;;;;;;;;-1:-1:-1;58285:231:1;;;;;:::i;:::-;;:::i;30491:222::-;;;;;;;;;;-1:-1:-1;30491:222:1;;;;;:::i;:::-;;:::i;22418:609:0:-;;;;;;:::i;:::-;;:::i;64912:396:1:-;;;;;;:::i;:::-;;:::i;87051:418::-;;;;;;;;;;-1:-1:-1;87051:418:1;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;30867:257::-;;;;;;;;;;-1:-1:-1;30867:257:1;;;;;:::i;:::-;;:::i;26168:263:0:-;;;;;;;;;;-1:-1:-1;26168:263:0;;;;;:::i;:::-;;:::i;21774:143::-;;;;;;;;;;;;;:::i;20711:23::-;;;;;;;;;;-1:-1:-1;20711:23:0;;;;;;;;;;;;;;;:::i;21130:21::-;;;;;;;;;;;;;;;;29622:103:1;;;;;;;;;;-1:-1:-1;29622:103:1;;;;;:::i;:::-;-1:-1:-1;;;;;29702:16:1;29676:7;29702:16;;;:7;:16;;;;;;;29622:103;29419:117;;;;;;;;;;-1:-1:-1;29419:117:1;;;;;:::i;:::-;-1:-1:-1;;;;;29503:26:1;29477:7;29503:26;;;:19;:26;;;;;;;29419:117;29175:93;;;;;;;;;;-1:-1:-1;29247:14:1;;29175:93;;58666:162;;;;;;;;;;-1:-1:-1;58666:162:1;;;;;:::i;:::-;-1:-1:-1;;;;;58786:25:1;;;58763:4;58786:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;58666:162;25875:137:0;;;;;;;;;;-1:-1:-1;25875:137:0;;;;;:::i;:::-;-1:-1:-1;;;;;25968:37:0;25942:7;25968:37;;;:28;:37;;;;;;;25875:137;18482:198:1;;;;;;;;;;-1:-1:-1;18482:198:1;;;;;:::i;:::-;;:::i;25653:90:0:-;;;;;;;;;;-1:-1:-1;25653:90:0;;;;;:::i;:::-;;:::i;25115:97::-;;;;;;;;;;-1:-1:-1;25115:97:0;;;;;:::i;:::-;;:::i;50621:630:1:-;50706:4;-1:-1:-1;;;;;;;;;51024:25:1;;;;:101;;-1:-1:-1;;;;;;;;;;51100:25:1;;;51024:101;:177;;;-1:-1:-1;;;;;;;;;;51176:25:1;;;51024:177;51005:196;50621:630;-1:-1:-1;;50621:630:1:o;51505:98::-;51559:13;51591:5;51584:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51505:98;:::o;57744:214::-;57820:7;57844:16;57852:7;57844;:16::i;:::-;57839:64;;57869:34;;-1:-1:-1;;;57869:34:1;;;;;;;;;;;57839:64;-1:-1:-1;57921:24:1;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;57921:30:1;;57744:214::o;57472:122::-;57560:27;57569:2;57573:7;57582:4;57560:8;:27::i;:::-;57472:122;;:::o;47360:317::-;47630:12;;46974:1;47614:13;:28;-1:-1:-1;;47614:46:1;;47360:317::o;31318:441::-;-1:-1:-1;;;;;31393:16:1;;31412:1;31393:16;;;:7;:16;;;;;;31385:71;;;;-1:-1:-1;;;31385:71:1;;;;;;;:::i;:::-;;;;;;;;;31467:15;31485:19;31496:7;31485:10;:19::i;:::-;31467:37;;31523:7;31534:1;31523:12;31515:68;;;;-1:-1:-1;;;31515:68:1;;;;;;;:::i;:::-;-1:-1:-1;;;;;31594:18:1;;;;;;:9;:18;;;;;:29;;31616:7;;31594:18;:29;;31616:7;;31594:29;:::i;:::-;;;;;;;;31651:7;31633:14;;:25;;;;;;;:::i;:::-;;;;-1:-1:-1;31669:35:1;;-1:-1:-1;31687:7:1;31696;31669:17;:35::i;:::-;31719:33;;;-1:-1:-1;;;;;206:32:2;;188:51;;270:2;255:18;;248:34;;;31719:33:1;;161:18:2;31719:33:1;;;;;;;31375:384;31318:441;:::o;22120:108:0:-;17495:13:1;:11;:13::i;:::-;22180:11:0::1;:41:::0;;-1:-1:-1;;;;;;22180:41:0::1;-1:-1:-1::0;;;;;22180:41:0;;;::::1;::::0;;;::::1;::::0;;22120:108::o;21923:191::-;22013:10;21986:15;21994:6;21986:7;:15::i;:::-;-1:-1:-1;;;;;21986:38:0;;21978:67;;;;-1:-1:-1;;;21978:67:0;;14252:2:2;21978:67:0;;;14234:21:2;14291:2;14271:18;;;14264:30;-1:-1:-1;;;14310:18:2;;;14303:46;14366:18;;21978:67:0;14050:340:2;21978:67:0;22055:11;;:52;;-1:-1:-1;;;22055:52:0;;;;;14591:25:2;;;22089:10:0;14632:18:2;;;14625:60;22055:11:0;14701:18:2;;;14694:50;-1:-1:-1;;;;;22055:11:0;;;;:25;;14564:18:2;;22055:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21923:191;:::o;23033:958::-;23132:11;;23156:10;23153:35;;23168:20;;-1:-1:-1;;;23168:20:0;;;;;;;:::i;23153:35::-;23213:17;23221:9;23213:5;:17;:::i;:::-;23201:9;:29;23198:60;;;23232:26;;-1:-1:-1;;;23232:26:0;;;;;;;:::i;23198:60::-;23287:19;23272:11;;;;:34;;;;;;;;:::i;:::-;;23269:66;;23308:27;;-1:-1:-1;;;23308:27:0;;15814:2:2;23308:27:0;;;15796:21:2;15853:2;15833:18;;;15826:30;-1:-1:-1;;;15872:18:2;;;15865:47;15929:18;;23308:27:0;15612:341:2;23269:66:0;20823:4;23364:9;23348:13;:11;:13::i;:::-;:25;;;;:::i;:::-;:38;23345:79;;;23388:36;;-1:-1:-1;;;23388:36:0;;16160:2:2;23388:36:0;;;16142:21:2;16199:2;16179:18;;;16172:30;16238:28;16218:18;;;16211:56;16284:18;;23388:36:0;15958:350:2;23345:79:0;23465:7;;23453:9;23437:13;:11;:13::i;:::-;:25;;;;:::i;:::-;:35;23434:72;;;23474:32;;-1:-1:-1;;;23474:32:0;;16515:2:2;23474:32:0;;;16497:21:2;16554:2;16534:18;;;16527:30;-1:-1:-1;;;16573:18:2;;;16566:52;16635:18;;23474:32:0;16313:346:2;23434:72:0;23539:189;23718:9;;23539:189;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;23562:137:0;;16906:66:2;23562:137:0;;;16894:79:2;23672:10:0;16989:12:2;;;16982:28;17026:12;;;-1:-1:-1;23562:137:0;;-1:-1:-1;16664:380:2;23562:137:0;;;;;;;;;;;;;23539:170;;;;;;:178;;:189;;;;:::i;:::-;23519:16;;-1:-1:-1;;;;;23519:16:0;;;:209;;;23516:251;;23730:37;;-1:-1:-1;;;23730:37:0;;17251:2:2;23730:37:0;;;17233:21:2;17290:2;17270:18;;;17263:30;17329:29;17309:18;;;17302:57;17376:18;;23730:37:0;17049:351:2;23516:251:0;23835:5;;23809:10;23780:40;;;;:28;:40;;;;;;:52;;23823:9;;23780:52;:::i;:::-;:60;23777:106;;;23842:41;;-1:-1:-1;;;23842:41:0;;17607:2:2;23842:41:0;;;17589:21:2;17646:2;17626:18;;;17619:30;17685:33;17665:18;;;17658:61;17736:18;;23842:41:0;17405:355:2;23777:106:0;23922:10;23893:40;;;;:28;:40;;;;;:53;;23937:9;;23893:40;:53;;23937:9;;23893:53;:::i;:::-;;;;-1:-1:-1;23956:28:0;;-1:-1:-1;23962:10:0;23974:9;23956:5;:28::i;:::-;23109:882;23033:958;;;:::o;61287:2766:1:-;61424:27;61454;61473:7;61454:18;:27::i;:::-;61424:57;;61537:4;-1:-1:-1;;;;;61496:45:1;61512:19;-1:-1:-1;;;;;61496:45:1;;61492:86;;61550:28;;-1:-1:-1;;;61550:28:1;;;;;;;;;;;61492:86;61590:27;60420:24;;;:15;:24;;;;;60644:26;;14692:10;60057:30;;;-1:-1:-1;;;;;59754:28:1;;60035:20;;;60032:56;61773:179;;61865:43;61882:4;14692:10;58666:162;:::i;61865:43::-;61860:92;;61917:35;;-1:-1:-1;;;61917:35:1;;;;;;;;;;;61860:92;62160:15;62157:157;;;62298:1;62277:19;62270:30;62157:157;-1:-1:-1;;;;;62686:24:1;;;;;;;:18;:24;;;;;;62684:26;;-1:-1:-1;;62684:26:1;;;62754:22;;;;;;;;;62752:24;;-1:-1:-1;62752:24:1;;;56600:11;56575:23;56571:41;56558:63;-1:-1:-1;;;56558:63:1;63040:26;;;;:17;:26;;;;;:172;;;;-1:-1:-1;;;63329:47:1;;:52;;63325:617;;63433:1;63423:11;;63401:19;63554:30;;;:17;:30;;;;;;:35;;63550:378;;63690:13;;63675:11;:28;63671:239;;63835:30;;;;:17;:30;;;;;:52;;;63671:239;63383:559;63325:617;63986:7;63982:2;-1:-1:-1;;;;;63967:27:1;63976:4;-1:-1:-1;;;;;63967:27:1;;;;;;;;;;;64004:42;61414:2639;;;61287:2766;;;:::o;25218:97:0:-;17495:13:1;:11;:13::i;:::-;25288:7:0::1;:20:::0;25218:97::o;64144:187:1:-;64285:39;64302:4;64308:2;64312:7;64285:39;;;;;;;;;;;;:16;:39::i;:::-;64144:187;;;:::o;21189:129:0:-;17495:13:1;:11;:13::i;:::-;21265:5:0::1;:14:::0;;;;21289:9:::1;:22:::0;21189:129::o;32020:502:1:-;-1:-1:-1;;;;;32101:16:1;;32120:1;32101:16;;;:7;:16;;;;;;32093:71;;;;-1:-1:-1;;;32093:71:1;;;;;;;:::i;:::-;32175:15;32193:26;32204:5;32211:7;32193:10;:26::i;:::-;32175:44;;32238:7;32249:1;32238:12;32230:68;;;;-1:-1:-1;;;32230:68:1;;;;;;;:::i;:::-;-1:-1:-1;;;;;32309:21:1;;;;;;;:14;:21;;;;;;;;:30;;;;;;;;;;;:41;;32343:7;;32309:21;:41;;32343:7;;32309:41;:::i;:::-;;;;-1:-1:-1;;;;;;;32360:26:1;;;;;;:19;:26;;;;;:37;;32390:7;;32360:26;:37;;32390:7;;32360:37;:::i;:::-;;;;-1:-1:-1;32408:47:1;;-1:-1:-1;32431:5:1;32438:7;32447;32408:22;:47::i;:::-;32470:45;;;-1:-1:-1;;;;;206:32:2;;;188:51;;270:2;255:18;;248:34;;;32470:45:1;;;;;161:18:2;32470:45:1;;;;;;;32083:439;32020:502;;:::o;25431:112:0:-;17495:13:1;:11;:13::i;:::-;25509:15:0::1;:27:::0;25431:112::o;25321:104::-;17495:13:1;:11;:13::i;:::-;25395:11:0::1;:23:::0;25321:104::o;87622:513:1:-;87761:23;87849:8;87824:22;87849:8;-1:-1:-1;;;;;87915:36:1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87915:36:1;;-1:-1:-1;;87915:36:1;;;;;;;;;;;;87878:73;;87970:9;87965:123;87986:14;87981:1;:19;87965:123;;88041:32;88061:8;;88070:1;88061:11;;;;;;;:::i;:::-;;;;;;;88041:19;:32::i;:::-;88025:10;88036:1;88025:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;88002:3;;87965:123;;;-1:-1:-1;88108:10:1;87622:513;-1:-1:-1;;;;87622:513:1:o;26437:137:0:-;26482:6;26478:90;26499:10;;26495:1;:14;26478:90;;;26531:26;26547:8;26553:1;26547:5;:8::i;26531:26::-;26512:3;;;;:::i;:::-;;;;26478:90;;;;26437:137::o;23997:974::-;24096:15;;24124:10;24121:35;;24136:20;;-1:-1:-1;;;24136:20:0;;;;;;;:::i;24121:35::-;24181:17;24189:9;24181:5;:17;:::i;:::-;24169:9;:29;24166:60;;;24200:26;;-1:-1:-1;;;24200:26:0;;;;;;;:::i;24166:60::-;24255:19;24240:11;;;;:34;;;;;;;;:::i;:::-;;24237:66;;24276:27;;-1:-1:-1;;;24276:27:0;;15814:2:2;24276:27:0;;;15796:21:2;15853:2;15833:18;;;15826:30;-1:-1:-1;;;15872:18:2;;;15865:47;15929:18;;24276:27:0;15612:341:2;24237:66:0;20823:4;24332:9;24316:13;:11;:13::i;:::-;:25;;;;:::i;:::-;:38;24313:79;;;24356:36;;-1:-1:-1;;;24356:36:0;;16160:2:2;24356:36:0;;;16142:21:2;16199:2;16179:18;;;16172:30;16238:28;16218:18;;;16211:56;16284:18;;24356:36:0;15958:350:2;24313:79:0;24444:7;;24434;;:17;;;;:::i;:::-;24421:9;24405:13;:11;:13::i;:::-;:25;;;;:::i;:::-;:47;24402:84;;;24454:32;;-1:-1:-1;;;24454:32:0;;16515:2:2;24454:32:0;;;16497:21:2;16554:2;16534:18;;;16527:30;-1:-1:-1;;;16573:18:2;;;16566:52;16635:18;;24454:32:0;16313:346:2;24402:84:0;24519:189;24698:9;;24519:189;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;24542:137:0;;16906:66:2;24542:137:0;;;16894:79:2;24652:10:0;16989:12:2;;;16982:28;17026:12;;;-1:-1:-1;24542:137:0;;-1:-1:-1;16664:380:2;24519:189:0;24499:16;;-1:-1:-1;;;;;24499:16:0;;;:209;;;24496:251;;24710:37;;-1:-1:-1;;;24710:37:0;;17251:2:2;24710:37:0;;;17233:21:2;17290:2;17270:18;;;17263:30;17329:29;17309:18;;;17302:57;17376:18;;24710:37:0;17049:351:2;52857:150:1;52929:7;52971:27;52990:7;52971:18;:27::i;20683:21:0:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;48511:230:1:-;48583:7;-1:-1:-1;;;;;48606:19:1;;48602:60;;48634:28;;-1:-1:-1;;;48634:28:1;;;;;;;;;;;48602:60;-1:-1:-1;;;;;;48679:25:1;;;;;:18;:25;;;;;;-1:-1:-1;;;;;48679:55:1;;48511:230::o;18232:101::-;17495:13;:11;:13::i;:::-;18296:30:::1;18323:1;18296:18;:30::i;:::-;18232:101::o:0;91398:879::-;91476:16;91528:19;91561:25;91600:22;91625:16;91635:5;91625:9;:16::i;:::-;91600:41;;91655:25;91697:14;-1:-1:-1;;;;;91683:29:1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;91683:29:1;;91655:57;;91726:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91726:31:1;46974:1;91771:461;91820:14;91805:11;:29;91771:461;;91871:15;91884:1;91871:12;:15::i;:::-;91859:27;;91908:9;:16;;;91948:8;91904:71;91996:14;;-1:-1:-1;;;;;91996:28:1;;91992:109;;92068:14;;;-1:-1:-1;91992:109:1;92143:5;-1:-1:-1;;;;;92122:26:1;:17;-1:-1:-1;;;;;92122:26:1;;92118:100;;92198:1;92172:8;92181:13;;;;;;92172:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;92118:100;91836:3;;91771:461;;;-1:-1:-1;92252:8:1;;91398:879;-1:-1:-1;;;;;;91398:879:1:o;25749:120:0:-;-1:-1:-1;;;;;48906:25:1;;25814:7:0;48906:25:1;;;:18;:25;;42961:2;48906:25;;;;-1:-1:-1;;;;;48906:50:1;;48905:82;25840:22:0;48818:176:1;30308:98;30359:7;30385;30393:5;30385:14;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;30385:14:1;;30308:98;-1:-1:-1;;30308:98:1:o;51674:102::-;51730:13;51762:7;51755:14;;;;;:::i;88509:2454::-;88648:16;88713:4;88704:5;:13;88700:45;;88726:19;;-1:-1:-1;;;88726:19:1;;;;;;;;;;;88700:45;88759:19;88792:17;88812:14;47137:13;;;47056:101;88812:14;88792:34;-1:-1:-1;46974:1:1;88902:5;:23;88898:85;;;46974:1;88945:23;;88898:85;89057:9;89050:4;:16;89046:71;;;89093:9;89086:16;;89046:71;89130:25;89158:16;89168:5;89158:9;:16::i;:::-;89130:44;;89349:4;89341:5;:12;89337:271;;;89395:12;;;89429:31;;;89425:109;;;89504:11;89484:31;;89425:109;89355:193;89337:271;;;-1:-1:-1;89592:1:1;89337:271;89621:25;89663:17;-1:-1:-1;;;;;89649:32:1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;89649:32:1;;89621:60;;89699:17;89720:1;89699:22;89695:76;;89748:8;-1:-1:-1;89741:15:1;;-1:-1:-1;;;89741:15:1;89695:76;89912:31;89946:26;89966:5;89946:19;:26::i;:::-;89912:60;;89986:25;90228:9;:16;;;90223:90;;-1:-1:-1;90284:14:1;;90223:90;90343:5;90326:467;90355:4;90350:1;:9;;:45;;;;;90378:17;90363:11;:32;;90350:45;90326:467;;;90432:15;90445:1;90432:12;:15::i;:::-;90420:27;;90469:9;:16;;;90509:8;90465:71;90557:14;;-1:-1:-1;;;;;90557:28:1;;90553:109;;90629:14;;;-1:-1:-1;90553:109:1;90704:5;-1:-1:-1;;;;;90683:26:1;:17;-1:-1:-1;;;;;90683:26:1;;90679:100;;90759:1;90733:8;90742:13;;;;;;90733:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;90679:100;90397:3;;90326:467;;;-1:-1:-1;;;90875:29:1;;;-1:-1:-1;90882:8:1;;-1:-1:-1;;88509:2454:1;;;;;;:::o;22234:178:0:-;17495:13:1;:11;:13::i;:::-;22331:16:0::1;:32:::0;;-1:-1:-1;;;;;22331:32:0;;::::1;-1:-1:-1::0;;;;;;22331:32:0;;::::1;;::::0;;;22373:16:::1;:32:::0;;;;;::::1;::::0;::::1;;::::0;;22234:178::o;25549:98::-;17495:13:1;:11;:13::i;:::-;25622:7:0::1;:18;25632:8:::0;25622:7;:18:::1;:::i;58285:231:1:-:0;14692:10;58379:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;58379:49:1;;;;;;;;;;;;:60;;-1:-1:-1;;58379:60:1;;;;;;;;;;58454:55;;819:41:2;;;58379:49:1;;14692:10;58454:55;;792:18:2;58454:55:1;;;;;;;58285:231;;:::o;30491:222::-;30549:7;30568:21;30616:15;29247:14;;;29175:93;30616:15;30592:39;;:21;:39;:::i;:::-;30568:63;;30648:58;30664:7;30673:13;30688:17;30697:7;-1:-1:-1;;;;;29901:18:1;29875:7;29901:18;;;:9;:18;;;;;;;29819:107;30688:17;30648:15;:58::i;22418:609:0:-;22498:15;;22526:10;22523:35;;22538:20;;-1:-1:-1;;;22538:20:0;;;;;;;:::i;22523:35::-;22601:9;22583:15;;:27;;;;:::i;:::-;22571:9;:39;22568:70;;;22612:26;;-1:-1:-1;;;22612:26:0;;;;;;;:::i;22568:70::-;22666:15;22651:11;;;;:30;;;;;;;;:::i;:::-;;22648:66;;22683:31;;-1:-1:-1;;;22683:31:0;;20443:2:2;22683:31:0;;;20425:21:2;20482:2;20462:18;;;20455:30;-1:-1:-1;;;20501:18:2;;;20494:51;20562:18;;22683:31:0;20241:345:2;22648:66:0;20823:4;22743:9;22727:13;:11;:13::i;:::-;:25;;;;:::i;:::-;:38;22724:72;;;22767:29;;-1:-1:-1;;;22767:29:0;;20793:2:2;22767:29:0;;;20775:21:2;20832:2;20812:18;;;20805:30;-1:-1:-1;;;20851:18:2;;;20844:49;20910:18;;22767:29:0;20591:343:2;22724:72:0;22867:9;;22841:10;22809:43;;;;:31;:43;;;;;;:55;;22855:9;;22809:55;:::i;:::-;:67;22806:110;;;22878:38;;-1:-1:-1;;;22878:38:0;;21141:2:2;22878:38:0;;;21123:21:2;21180:2;21160:18;;;21153:30;21219;21199:18;;;21192:58;21267:18;;22878:38:0;20939:352:2;22806:110:0;22958:10;22926:43;;;;:31;:43;;;;;:56;;22973:9;;22926:43;:56;;22973:9;;22926:56;:::i;:::-;;;;-1:-1:-1;22992:28:0;;-1:-1:-1;22998:10:0;23010:9;22992:5;:28::i;64912:396:1:-;65081:31;65094:4;65100:2;65104:7;65081:12;:31::i;:::-;-1:-1:-1;;;;;65126:14:1;;;:19;65122:180;;65164:56;65195:4;65201:2;65205:7;65214:5;65164:30;:56::i;:::-;65159:143;;65247:40;;-1:-1:-1;;;65247:40:1;;;;;;;;;;;87051:418;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46974:1:1;87213:7;:25;:54;;;-1:-1:-1;47137:13:1;;87242:7;:25;;87213:54;87209:101;;;87290:9;87051:418;-1:-1:-1;;87051:418:1:o;87209:101::-;87331:21;87344:7;87331:12;:21::i;:::-;87319:33;;87366:9;:16;;;87362:63;;;87405:9;87051:418;-1:-1:-1;;87051:418:1:o;87362:63::-;87441:21;87454:7;87441:12;:21::i;30867:257::-;-1:-1:-1;;;;;29503:26:1;;30939:7;29503:26;;;:19;:26;;;;;;30939:7;;30982:30;;-1:-1:-1;;;30982:30:1;;31006:4;30982:30;;;1037:51:2;-1:-1:-1;;;;;30982:15:1;;;;;1010:18:2;;30982:30:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:53;;;;:::i;:::-;-1:-1:-1;;;;;30185:21:1;;;30159:7;30185:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;30958:77;;-1:-1:-1;31052:65:1;;31068:7;;30958:77;;30648:15;:58::i;31052:65::-;31045:72;30867:257;-1:-1:-1;;;;30867:257:1:o;26168:263:0:-;26258:13;26291:17;26299:8;26291:7;:17::i;:::-;26283:61;;;;-1:-1:-1;;;26283:61:0;;21687:2:2;26283:61:0;;;21669:21:2;21726:2;21706:18;;;21699:30;21765:33;21745:18;;;21738:61;21816:18;;26283:61:0;21485:355:2;26283:61:0;26385:7;26394:19;26404:8;26394:9;:19::i;:::-;26368:55;;;;;;;;;:::i;:::-;;;;;;;;;;;;;26354:70;;26168:263;;;:::o;21774:143::-;17495:13:1;:11;:13::i;:::-;21834::0::1;:11;:13::i;:::-;:18:::0;21826:53:::1;;;::::0;-1:-1:-1;;;21826:53:0;;23239:2:2;21826:53:0::1;::::0;::::1;23221:21:2::0;23278:2;23258:18;;;23251:30;-1:-1:-1;;;23297:18:2;;;23290:52;23359:18;;21826:53:0::1;23037:346:2::0;21826:53:0::1;21889:21;21895:10;21907:2;21889:5;:21::i;18482:198:1:-:0;17495:13;:11;:13::i;:::-;-1:-1:-1;;;;;18570:22:1;::::1;18562:73;;;::::0;-1:-1:-1;;;18562:73:1;;23590:2:2;18562:73:1::1;::::0;::::1;23572:21:2::0;23629:2;23609:18;;;23602:30;23668:34;23648:18;;;23641:62;-1:-1:-1;;;23719:18:2;;;23712:36;23765:19;;18562:73:1::1;23388:402:2::0;18562:73:1::1;18645:28;18664:8;18645:18;:28::i;25653:90:0:-:0;17495:13:1;:11;:13::i;:::-;25730:5:0::1;25725:11;;;;;;;;:::i;:::-;25711;:25:::0;;-1:-1:-1;;25711:25:0::1;::::0;;::::1;::::0;::::1;;;;;;:::i;:::-;;;;;;25653:90:::0;:::o;25115:97::-;17495:13:1;:11;:13::i;:::-;25185:7:0::1;:20:::0;25115:97::o;59077:277:1:-;59142:4;59196:7;46974:1;59177:26;;:65;;;;;59229:13;;59219:7;:23;59177:65;:151;;;;-1:-1:-1;;59279:26:1;;;;:17;:26;;;;;;-1:-1:-1;;;59279:44:1;:49;;59077:277::o;75699:477::-;75823:13;75839:16;75847:7;75839;:16::i;:::-;75823:32;;75870:13;75866:215;;;14692:10;-1:-1:-1;;;;;75901:28:1;;;75897:184;;75952:44;75969:5;14692:10;58666:162;:::i;75952:44::-;75947:134;;76027:35;;-1:-1:-1;;;76027:35:1;;;;;;;;;;;75947:134;76091:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;76091:35:1;-1:-1:-1;;;;;76091:35:1;;;;;;;;;76141:28;;76091:24;;76141:28;;;;;;;75813:363;75699:477;;;:::o;2276:312::-;2390:6;2365:21;:31;;2357:73;;;;-1:-1:-1;;;2357:73:1;;23997:2:2;2357:73:1;;;23979:21:2;24036:2;24016:18;;;24009:30;24075:31;24055:18;;;24048:59;24124:18;;2357:73:1;23795:353:2;2357:73:1;2442:12;2460:9;-1:-1:-1;;;;;2460:14:1;2482:6;2460:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2441:52;;;2511:7;2503:78;;;;-1:-1:-1;;;2503:78:1;;24565:2:2;2503:78:1;;;24547:21:2;24604:2;24584:18;;;24577:30;24643:34;24623:18;;;24616:62;24714:28;24694:18;;;24687:56;24760:19;;2503:78:1;24363:422:2;17760:130:1;17648:7;17674:6;-1:-1:-1;;;;;17674:6:1;14692:10;17823:23;17815:68;;;;-1:-1:-1;;;17815:68:1;;24992:2:2;17815:68:1;;;24974:21:2;;;25011:18;;;25004:30;25070:34;25050:18;;;25043:62;25122:18;;17815:68:1;24790:356:2;4118:227:0;4196:7;4216:17;4235:18;4257:27;4268:4;4274:9;4257:10;:27::i;:::-;4215:69;;;;4294:18;4306:5;4294:11;:18::i;:::-;-1:-1:-1;4329:9:0;4118:227;-1:-1:-1;;;4118:227:0:o;68477:2902:1:-;68572:13;;68549:20;68599:13;;;68595:44;;68621:18;;-1:-1:-1;;;68621:18:1;;;;;;;;;;;68595:44;-1:-1:-1;;;;;69114:22:1;;;;;;:18;:22;;;;42961:2;69114:22;;;:71;;69152:32;69140:45;;69114:71;;;69421:31;;;:17;:31;;;;;-1:-1:-1;57020:15:1;;56994:24;56990:46;56600:11;56575:23;56571:41;56568:52;56558:63;;69421:170;;69650:23;;;;69421:31;;69114:22;;70402:25;69114:22;;70258:328;70906:1;70892:12;70888:20;70847:339;70946:3;70937:7;70934:16;70847:339;;71160:7;71150:8;71147:1;71120:25;71117:1;71114;71109:59;70998:1;70985:15;70847:339;;;70851:75;71217:8;71229:1;71217:13;71213:45;;71239:19;;-1:-1:-1;;;71239:19:1;;;;;;;;;;;71213:45;71273:13;:19;-1:-1:-1;64144:187:1;;;:::o;53981:1680::-;54048:14;54097:7;46974:1;54078:26;54074:1533;;-1:-1:-1;54129:26:1;;;;:17;:26;;;;;;;-1:-1:-1;;;54203:24:1;;:29;;54199:1398;;54340:6;54350:1;54340:11;54336:963;;54390:13;;54379:7;:24;54375:68;;54412:31;;-1:-1:-1;;;54412:31:1;;;;;;;;;;;54375:68;55030:251;-1:-1:-1;;;55132:9:1;55114:28;;;;:17;:28;;;;;;55194:25;;55030:251;55194:25;;53981:1680;;;:::o;54199:1398::-;55623:31;;-1:-1:-1;;;55623:31:1;;;;;;;;;;;23280:205;23419:58;;;-1:-1:-1;;;;;206:32:2;;23419:58:1;;;188:51:2;255:18;;;;248:34;;;23419:58:1;;;;;;;;;;161:18:2;;;;23419:58:1;;;;;;;;-1:-1:-1;;;;;23419:58:1;-1:-1:-1;;;23419:58:1;;;23392:86;;23412:5;;23392:19;:86::i;18834:187::-;18907:16;18926:6;;-1:-1:-1;;;;;18942:17:1;;;-1:-1:-1;;;;;;18942:17:1;;;;;;18974:40;;18926:6;;;;;;;18974:40;;18907:16;18974:40;18897:124;18834:187;:::o;53445:159::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53572:24:1;;;;:17;:24;;;;;;53553:44;;:18;:44::i;32694:242::-;32899:12;;-1:-1:-1;;;;;32879:16:1;;32836:7;32879:16;;;:7;:16;;;;;;32836:7;;32914:15;;32863:32;;:13;:32;:::i;:::-;32862:49;;;;:::i;:::-;:67;;;;:::i;67334:697::-;67512:88;;-1:-1:-1;;;67512:88:1;;67492:4;;-1:-1:-1;;;;;67512:45:1;;;;;:88;;14692:10;;67579:4;;67585:7;;67594:5;;67512:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;67512:88:1;;;;;;;;-1:-1:-1;;67512:88:1;;;;;;;;;;;;:::i;:::-;;;67508:517;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67790:6;:13;67807:1;67790:18;67786:229;;67835:40;;-1:-1:-1;;;67835:40:1;;;;;;;;;;;67786:229;67975:6;67969:13;67960:6;67956:2;67952:15;67945:38;67508:517;-1:-1:-1;;;;;;67668:64:1;-1:-1:-1;;;67668:64:1;;-1:-1:-1;67334:697:1;;;;;;:::o;53190:164::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53300:47:1;53319:27;53338:7;53319:18;:27::i;:::-;53300:18;:47::i;82280:1708::-;82345:17;82773:4;82766;82760:11;82756:22;82863:1;82857:4;82850:15;82936:4;82933:1;82929:12;82922:19;;;83016:1;83011:3;83004:14;83117:3;83351:5;83333:419;83398:1;83393:3;83389:11;83382:18;;83566:2;83560:4;83556:13;83552:2;83548:22;83543:3;83535:36;83658:2;83648:13;;83713:25;83333:419;83713:25;-1:-1:-1;83780:13:1;;;-1:-1:-1;;83893:14:1;;;83953:19;;;83893:14;82280:1708;-1:-1:-1;82280:1708:1:o;1959:1373:0:-;2040:7;2049:12;2270:9;:16;2290:2;2270:22;2266:1060;;2606:4;2591:20;;2585:27;2655:4;2640:20;;2634:27;2712:4;2697:20;;2691:27;2308:9;2683:36;2753:25;2764:4;2683:36;2585:27;2634;2753:10;:25::i;:::-;2746:32;;;;;;;;;2266:1060;2799:9;:16;2819:2;2799:22;2795:531;;3115:4;3100:20;;3094:27;3165:4;3150:20;;3144:27;3205:23;3216:4;3094:27;3144;3205:10;:23::i;:::-;3198:30;;;;;;;;2795:531;-1:-1:-1;3275:1:0;;-1:-1:-1;3279:35:0;2795:531;1959:1373;;;;;:::o;264:631::-;341:20;332:5;:29;;;;;;;;:::i;:::-;;328:561;;264:631;:::o;328:561::-;437:29;428:5;:38;;;;;;;;:::i;:::-;;424:465;;482:34;;-1:-1:-1;;;482:34:0;;26456:2:2;482:34:0;;;26438:21:2;26495:2;26475:18;;;26468:30;26534:26;26514:18;;;26507:54;26578:18;;482:34:0;26254:348:2;424:465:0;546:35;537:5;:44;;;;;;;;:::i;:::-;;533:356;;597:41;;-1:-1:-1;;;597:41:0;;26809:2:2;597:41:0;;;26791:21:2;26848:2;26828:18;;;26821:30;26887:33;26867:18;;;26860:61;26938:18;;597:41:0;26607:355:2;533:356:0;668:30;659:5;:39;;;;;;;;:::i;:::-;;655:234;;714:44;;-1:-1:-1;;;714:44:0;;27169:2:2;714:44:0;;;27151:21:2;27208:2;27188:18;;;27181:30;27247:34;27227:18;;;27220:62;-1:-1:-1;;;27298:18:2;;;27291:32;27340:19;;714:44:0;26967:398:2;655:234:0;788:30;779:5;:39;;;;;;;;:::i;:::-;;775:114;;834:44;;-1:-1:-1;;;834:44:0;;27572:2:2;834:44:0;;;27554:21:2;27611:2;27591:18;;;27584:30;27650:34;27630:18;;;27623:62;-1:-1:-1;;;27701:18:2;;;27694:32;27743:19;;834:44:0;27370:398:2;26264:706:1;26683:23;26709:69;26737:4;26709:69;;;;;;;;;;;;;;;;;26717:5;-1:-1:-1;;;;;26709:27:1;;;:69;;;;;:::i;:::-;26792:17;;26683:95;;-1:-1:-1;26792:21:1;26788:176;;26887:10;26876:30;;;;;;;;;;;;:::i;:::-;26868:85;;;;-1:-1:-1;;;26868:85:1;;28225:2:2;26868:85:1;;;28207:21:2;28264:2;28244:18;;;28237:30;28303:34;28283:18;;;28276:62;-1:-1:-1;;;28354:18:2;;;28347:40;28404:19;;26868:85:1;28023:406:2;55755:361:1;-1:-1:-1;;;;;;;;;;;;;55864:41:1;;;;43470:3;55949:33;;;-1:-1:-1;;;;;55915:68:1;-1:-1:-1;;;55915:68:1;-1:-1:-1;;;56012:24:1;;:29;;-1:-1:-1;;;55993:48:1;;;;43979:3;56080:28;;;;-1:-1:-1;;;56051:58:1;-1:-1:-1;55755:361:1:o;5526:1603:0:-;5652:7;;6576:66;6563:79;;6559:161;;;-1:-1:-1;6674:1:0;;-1:-1:-1;6678:30:0;6658:51;;6559:161;6733:1;:7;;6738:2;6733:7;;:18;;;;;6744:1;:7;;6749:2;6744:7;;6733:18;6729:100;;;-1:-1:-1;6783:1:0;;-1:-1:-1;6787:30:0;6767:51;;6729:100;6940:24;;;6923:14;6940:24;;;;;;;;;28661:25:2;;;28734:4;28722:17;;28702:18;;;28695:45;;;;28756:18;;;28749:34;;;28799:18;;;28792:34;;;6940:24:0;;28633:19:2;;6940:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6940:24:0;;-1:-1:-1;;6940:24:0;;;-1:-1:-1;;;;;;;6978:20:0;;6974:101;;7030:1;7034:29;7014:50;;;;;;;6974:101;7093:6;-1:-1:-1;7101:20:0;;-1:-1:-1;5526:1603:0;;;;;;;;:::o;4599:336::-;4709:7;;-1:-1:-1;;;;;4754:80:0;;4709:7;4860:25;4876:3;4861:18;;;4883:2;4860:25;:::i;:::-;4844:42;;4903:25;4914:4;4920:1;4923;4926;4903:10;:25::i;:::-;4896:32;;;;;;4599:336;;;;;;:::o;3725:223:1:-;3858:12;3889:52;3911:6;3919:4;3925:1;3928:12;3858;-1:-1:-1;;;;;1329:19:1;;;5092:60;;;;-1:-1:-1;;;5092:60:1;;29446:2:2;5092:60:1;;;29428:21:2;29485:2;29465:18;;;29458:30;29524:31;29504:18;;;29497:59;29573:18;;5092:60:1;29244:353:2;5092:60:1;5164:12;5178:23;5205:6;-1:-1:-1;;;;;5205:11:1;5224:5;5231:4;5205:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5163:73;;;;5253:51;5270:7;5279:10;5291:12;5253:16;:51::i;:::-;5246:58;4812:499;-1:-1:-1;;;;;;;4812:499:1:o;7425:742::-;7571:12;7599:7;7595:566;;;-1:-1:-1;7629:10:1;7622:17;;7595:566;7740:17;;:21;7736:415;;7984:10;7978:17;8044:15;8031:10;8027:2;8023:19;8016:44;7736:415;8123:12;8116:20;;-1:-1:-1;;;8116:20:1;;;;;;;;:::i;293:131:2:-;-1:-1:-1;;;;;;367:32:2;;357:43;;347:71;;414:1;411;404:12;429:245;487:6;540:2;528:9;519:7;515:23;511:32;508:52;;;556:1;553;546:12;508:52;595:9;582:23;614:30;638:5;614:30;:::i;1099:250::-;1184:1;1194:113;1208:6;1205:1;1202:13;1194:113;;;1284:11;;;1278:18;1265:11;;;1258:39;1230:2;1223:10;1194:113;;;-1:-1:-1;;1341:1:2;1323:16;;1316:27;1099:250::o;1354:271::-;1396:3;1434:5;1428:12;1461:6;1456:3;1449:19;1477:76;1546:6;1539:4;1534:3;1530:14;1523:4;1516:5;1512:16;1477:76;:::i;:::-;1607:2;1586:15;-1:-1:-1;;1582:29:2;1573:39;;;;1614:4;1569:50;;1354:271;-1:-1:-1;;1354:271:2:o;1630:220::-;1779:2;1768:9;1761:21;1742:4;1799:45;1840:2;1829:9;1825:18;1817:6;1799:45;:::i;1855:180::-;1914:6;1967:2;1955:9;1946:7;1942:23;1938:32;1935:52;;;1983:1;1980;1973:12;1935:52;-1:-1:-1;2006:23:2;;1855:180;-1:-1:-1;1855:180:2:o;2248:131::-;-1:-1:-1;;;;;2323:31:2;;2313:42;;2303:70;;2369:1;2366;2359:12;2384:315;2452:6;2460;2513:2;2501:9;2492:7;2488:23;2484:32;2481:52;;;2529:1;2526;2519:12;2481:52;2568:9;2555:23;2587:31;2612:5;2587:31;:::i;:::-;2637:5;2689:2;2674:18;;;;2661:32;;-1:-1:-1;;;2384:315:2:o;2704:127::-;2765:10;2760:3;2756:20;2753:1;2746:31;2796:4;2793:1;2786:15;2820:4;2817:1;2810:15;2836:232;2912:1;2905:5;2902:12;2892:143;;2957:10;2952:3;2948:20;2945:1;2938:31;2992:4;2989:1;2982:15;3020:4;3017:1;3010:15;2892:143;3044:18;;2836:232::o;3073:340::-;3270:2;3255:18;;3282:39;3259:9;3303:6;3282:39;:::i;:::-;3352:2;3337:18;;3330:34;;;;3395:2;3380:18;3373:34;3073:340;;-1:-1:-1;3073:340:2:o;3600:255::-;3667:6;3720:2;3708:9;3699:7;3695:23;3691:32;3688:52;;;3736:1;3733;3726:12;3688:52;3775:9;3762:23;3794:31;3819:5;3794:31;:::i;4112:659::-;4191:6;4199;4207;4260:2;4248:9;4239:7;4235:23;4231:32;4228:52;;;4276:1;4273;4266:12;4228:52;4312:9;4299:23;4289:33;;4373:2;4362:9;4358:18;4345:32;-1:-1:-1;;;;;4437:2:2;4429:6;4426:14;4423:34;;;4453:1;4450;4443:12;4423:34;4491:6;4480:9;4476:22;4466:32;;4536:7;4529:4;4525:2;4521:13;4517:27;4507:55;;4558:1;4555;4548:12;4507:55;4598:2;4585:16;4624:2;4616:6;4613:14;4610:34;;;4640:1;4637;4630:12;4610:34;4685:7;4680:2;4671:6;4667:2;4663:15;4659:24;4656:37;4653:57;;;4706:1;4703;4696:12;4653:57;4737:2;4733;4729:11;4719:21;;4759:6;4749:16;;;;;4112:659;;;;;:::o;4776:456::-;4853:6;4861;4869;4922:2;4910:9;4901:7;4897:23;4893:32;4890:52;;;4938:1;4935;4928:12;4890:52;4977:9;4964:23;4996:31;5021:5;4996:31;:::i;:::-;5046:5;-1:-1:-1;5103:2:2;5088:18;;5075:32;5116:33;5075:32;5116:33;:::i;:::-;4776:456;;5168:7;;-1:-1:-1;;;5222:2:2;5207:18;;;;5194:32;;4776:456::o;5237:403::-;5320:6;5328;5381:2;5369:9;5360:7;5356:23;5352:32;5349:52;;;5397:1;5394;5387:12;5349:52;5436:9;5423:23;5455:31;5480:5;5455:31;:::i;:::-;5505:5;-1:-1:-1;5562:2:2;5547:18;;5534:32;5575:33;5534:32;5575:33;:::i;:::-;5627:7;5617:17;;;5237:403;;;;;:::o;5645:248::-;5713:6;5721;5774:2;5762:9;5753:7;5749:23;5745:32;5742:52;;;5790:1;5787;5780:12;5742:52;-1:-1:-1;;5813:23:2;;;5883:2;5868:18;;;5855:32;;-1:-1:-1;5645:248:2:o;5898:615::-;5984:6;5992;6045:2;6033:9;6024:7;6020:23;6016:32;6013:52;;;6061:1;6058;6051:12;6013:52;6101:9;6088:23;-1:-1:-1;;;;;6171:2:2;6163:6;6160:14;6157:34;;;6187:1;6184;6177:12;6157:34;6225:6;6214:9;6210:22;6200:32;;6270:7;6263:4;6259:2;6255:13;6251:27;6241:55;;6292:1;6289;6282:12;6241:55;6332:2;6319:16;6358:2;6350:6;6347:14;6344:34;;;6374:1;6371;6364:12;6344:34;6427:7;6422:2;6412:6;6409:1;6405:14;6401:2;6397:23;6393:32;6390:45;6387:65;;;6448:1;6445;6438:12;6387:65;6479:2;6471:11;;;;;6501:6;;-1:-1:-1;5898:615:2;;-1:-1:-1;;;;5898:615:2:o;6518:349::-;6602:12;;-1:-1:-1;;;;;6598:38:2;6586:51;;6690:4;6679:16;;;6673:23;-1:-1:-1;;;;;6669:48:2;6653:14;;;6646:72;6781:4;6770:16;;;6764:23;6757:31;6750:39;6734:14;;;6727:63;6843:4;6832:16;;;6826:23;6851:8;6822:38;6806:14;;6799:62;6518:349::o;6872:724::-;7107:2;7159:21;;;7229:13;;7132:18;;;7251:22;;;7078:4;;7107:2;7330:15;;;;7304:2;7289:18;;;7078:4;7373:197;7387:6;7384:1;7381:13;7373:197;;;7436:52;7484:3;7475:6;7469:13;7436:52;:::i;:::-;7545:15;;;;7517:4;7508:14;;;;;7409:1;7402:9;7373:197;;7601:632;7772:2;7824:21;;;7894:13;;7797:18;;;7916:22;;;7743:4;;7772:2;7995:15;;;;7969:2;7954:18;;;7743:4;8038:169;8052:6;8049:1;8046:13;8038:169;;;8113:13;;8101:26;;8182:15;;;;8147:12;;;;8074:1;8067:9;8038:169;;8238:383;8315:6;8323;8331;8384:2;8372:9;8363:7;8359:23;8355:32;8352:52;;;8400:1;8397;8390:12;8352:52;8439:9;8426:23;8458:31;8483:5;8458:31;:::i;:::-;8508:5;8560:2;8545:18;;8532:32;;-1:-1:-1;8611:2:2;8596:18;;;8583:32;;8238:383;-1:-1:-1;;;8238:383:2:o;9019:127::-;9080:10;9075:3;9071:20;9068:1;9061:31;9111:4;9108:1;9101:15;9135:4;9132:1;9125:15;9151:632;9216:5;-1:-1:-1;;;;;9287:2:2;9279:6;9276:14;9273:40;;;9293:18;;:::i;:::-;9368:2;9362:9;9336:2;9422:15;;-1:-1:-1;;9418:24:2;;;9444:2;9414:33;9410:42;9398:55;;;9468:18;;;9488:22;;;9465:46;9462:72;;;9514:18;;:::i;:::-;9554:10;9550:2;9543:22;9583:6;9574:15;;9613:6;9605;9598:22;9653:3;9644:6;9639:3;9635:16;9632:25;9629:45;;;9670:1;9667;9660:12;9629:45;9720:6;9715:3;9708:4;9700:6;9696:17;9683:44;9775:1;9768:4;9759:6;9751;9747:19;9743:30;9736:41;;;;9151:632;;;;;:::o;9788:451::-;9857:6;9910:2;9898:9;9889:7;9885:23;9881:32;9878:52;;;9926:1;9923;9916:12;9878:52;9966:9;9953:23;-1:-1:-1;;;;;9991:6:2;9988:30;9985:50;;;10031:1;10028;10021:12;9985:50;10054:22;;10107:4;10099:13;;10095:27;-1:-1:-1;10085:55:2;;10136:1;10133;10126:12;10085:55;10159:74;10225:7;10220:2;10207:16;10202:2;10198;10194:11;10159:74;:::i;10244:118::-;10330:5;10323:13;10316:21;10309:5;10306:32;10296:60;;10352:1;10349;10342:12;10367:382;10432:6;10440;10493:2;10481:9;10472:7;10468:23;10464:32;10461:52;;;10509:1;10506;10499:12;10461:52;10548:9;10535:23;10567:31;10592:5;10567:31;:::i;:::-;10617:5;-1:-1:-1;10674:2:2;10659:18;;10646:32;10687:30;10646:32;10687:30;:::i;10754:795::-;10849:6;10857;10865;10873;10926:3;10914:9;10905:7;10901:23;10897:33;10894:53;;;10943:1;10940;10933:12;10894:53;10982:9;10969:23;11001:31;11026:5;11001:31;:::i;:::-;11051:5;-1:-1:-1;11108:2:2;11093:18;;11080:32;11121:33;11080:32;11121:33;:::i;:::-;11173:7;-1:-1:-1;11227:2:2;11212:18;;11199:32;;-1:-1:-1;11282:2:2;11267:18;;11254:32;-1:-1:-1;;;;;11298:30:2;;11295:50;;;11341:1;11338;11331:12;11295:50;11364:22;;11417:4;11409:13;;11405:27;-1:-1:-1;11395:55:2;;11446:1;11443;11436:12;11395:55;11469:74;11535:7;11530:2;11517:16;11512:2;11508;11504:11;11469:74;:::i;:::-;11459:84;;;10754:795;;;;;;;:::o;11554:268::-;11752:3;11737:19;;11765:51;11741:9;11798:6;11765:51;:::i;11827:198::-;11968:2;11953:18;;11980:39;11957:9;12001:6;11980:39;:::i;12297:380::-;12376:1;12372:12;;;;12419;;;12440:61;;12494:4;12486:6;12482:17;12472:27;;12440:61;12547:2;12539:6;12536:14;12516:18;12513:38;12510:161;;12593:10;12588:3;12584:20;12581:1;12574:31;12628:4;12625:1;12618:15;12656:4;12653:1;12646:15;12510:161;;12297:380;;;:::o;12682:402::-;12884:2;12866:21;;;12923:2;12903:18;;;12896:30;12962:34;12957:2;12942:18;;12935:62;-1:-1:-1;;;13028:2:2;13013:18;;13006:36;13074:3;13059:19;;12682:402::o;13089:407::-;13291:2;13273:21;;;13330:2;13310:18;;;13303:30;13369:34;13364:2;13349:18;;13342:62;-1:-1:-1;;;13435:2:2;13420:18;;13413:41;13486:3;13471:19;;13089:407::o;13501:127::-;13562:10;13557:3;13553:20;13550:1;13543:31;13593:4;13590:1;13583:15;13617:4;13614:1;13607:15;13633:125;13698:9;;;13719:10;;;13716:36;;;13732:18;;:::i;14755:334::-;14957:2;14939:21;;;14996:2;14976:18;;;14969:30;-1:-1:-1;;;15030:2:2;15015:18;;15008:40;15080:2;15065:18;;14755:334::o;15094:168::-;15167:9;;;15198;;15215:15;;;15209:22;;15195:37;15185:71;;15236:18;;:::i;15267:340::-;15469:2;15451:21;;;15508:2;15488:18;;;15481:30;-1:-1:-1;;;15542:2:2;15527:18;;15520:46;15598:2;15583:18;;15267:340::o;17765:127::-;17826:10;17821:3;17817:20;17814:1;17807:31;17857:4;17854:1;17847:15;17881:4;17878:1;17871:15;17897:135;17936:3;17957:17;;;17954:43;;17977:18;;:::i;:::-;-1:-1:-1;18024:1:2;18013:13;;17897:135::o;18163:545::-;18265:2;18260:3;18257:11;18254:448;;;18301:1;18326:5;18322:2;18315:17;18371:4;18367:2;18357:19;18441:2;18429:10;18425:19;18422:1;18418:27;18412:4;18408:38;18477:4;18465:10;18462:20;18459:47;;;-1:-1:-1;18500:4:2;18459:47;18555:2;18550:3;18546:12;18543:1;18539:20;18533:4;18529:31;18519:41;;18610:82;18628:2;18621:5;18618:13;18610:82;;;18673:17;;;18654:1;18643:13;18610:82;;18884:1352;19010:3;19004:10;-1:-1:-1;;;;;19029:6:2;19026:30;19023:56;;;19059:18;;:::i;:::-;19088:97;19178:6;19138:38;19170:4;19164:11;19138:38;:::i;:::-;19132:4;19088:97;:::i;:::-;19240:4;;19304:2;19293:14;;19321:1;19316:663;;;;20023:1;20040:6;20037:89;;;-1:-1:-1;20092:19:2;;;20086:26;20037:89;-1:-1:-1;;18841:1:2;18837:11;;;18833:24;18829:29;18819:40;18865:1;18861:11;;;18816:57;20139:81;;19286:944;;19316:663;18110:1;18103:14;;;18147:4;18134:18;;-1:-1:-1;;19352:20:2;;;19470:236;19484:7;19481:1;19478:14;19470:236;;;19573:19;;;19567:26;19552:42;;19665:27;;;;19633:1;19621:14;;;;19500:19;;19470:236;;;19474:3;19734:6;19725:7;19722:19;19719:201;;;19795:19;;;19789:26;-1:-1:-1;;19878:1:2;19874:14;;;19890:3;19870:24;19866:37;19862:42;19847:58;19832:74;;19719:201;-1:-1:-1;;;;;19966:1:2;19950:14;;;19946:22;19933:36;;-1:-1:-1;18884:1352:2:o;21296:184::-;21366:6;21419:2;21407:9;21398:7;21394:23;21390:32;21387:52;;;21435:1;21432;21425:12;21387:52;-1:-1:-1;21458:16:2;;21296:184;-1:-1:-1;21296:184:2:o;21845:1187::-;22122:3;22151:1;22184:6;22178:13;22214:36;22240:9;22214:36;:::i;:::-;22269:1;22286:18;;;22313:133;;;;22460:1;22455:356;;;;22279:532;;22313:133;-1:-1:-1;;22346:24:2;;22334:37;;22419:14;;22412:22;22400:35;;22391:45;;;-1:-1:-1;22313:133:2;;22455:356;22486:6;22483:1;22476:17;22516:4;22561:2;22558:1;22548:16;22586:1;22600:165;22614:6;22611:1;22608:13;22600:165;;;22692:14;;22679:11;;;22672:35;22735:16;;;;22629:10;;22600:165;;;22604:3;;;22794:6;22789:3;22785:16;22778:23;;22279:532;;;;;22842:6;22836:13;22858:68;22917:8;22912:3;22905:4;22897:6;22893:17;22858:68;:::i;:::-;-1:-1:-1;;;22948:18:2;;22975:22;;;23024:1;23013:13;;21845:1187;-1:-1:-1;;;;21845:1187:2:o;25151:217::-;25191:1;25217;25207:132;;25261:10;25256:3;25252:20;25249:1;25242:31;25296:4;25293:1;25286:15;25324:4;25321:1;25314:15;25207:132;-1:-1:-1;25353:9:2;;25151:217::o;25373:128::-;25440:9;;;25461:11;;;25458:37;;;25475:18;;:::i;25506:489::-;-1:-1:-1;;;;;25775:15:2;;;25757:34;;25827:15;;25822:2;25807:18;;25800:43;25874:2;25859:18;;25852:34;;;25922:3;25917:2;25902:18;;25895:31;;;25700:4;;25943:46;;25969:19;;25961:6;25943:46;:::i;:::-;25935:54;25506:489;-1:-1:-1;;;;;;25506:489:2:o;26000:249::-;26069:6;26122:2;26110:9;26101:7;26097:23;26093:32;26090:52;;;26138:1;26135;26128:12;26090:52;26170:9;26164:16;26189:30;26213:5;26189:30;:::i;27773:245::-;27840:6;27893:2;27881:9;27872:7;27868:23;27864:32;27861:52;;;27909:1;27906;27899:12;27861:52;27941:9;27935:16;27960:28;27982:5;27960:28;:::i;29602:287::-;29731:3;29769:6;29763:13;29785:66;29844:6;29839:3;29832:4;29824:6;29820:17;29785:66;:::i;:::-;29867:16;;;;;29602:287;-1:-1:-1;;29602:287:2:o
Swarm Source
ipfs://5d6e2fdcb97338efb0ecb104e2b99b62972758bb430d2c7099b1e1cbd3835278
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.