Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
KikoMints
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // ██╗░░██╗██╗██╗░░██╗░█████╗░███╗░░░███╗██╗███╗░░██╗████████╗░██████╗ // ██║░██╔╝██║██║░██╔╝██╔══██╗████╗░████║██║████╗░██║╚══██╔══╝██╔════╝ // █████═╝░██║█████═╝░██║░░██║██╔████╔██║██║██╔██╗██║░░░██║░░░╚█████╗░ // ██╔═██╗░██║██╔═██╗░██║░░██║██║╚██╔╝██║██║██║╚████║░░░██║░░░░╚═══██╗ // ██║░╚██╗██║██║░╚██╗╚█████╔╝██║░╚═╝░██║██║██║░╚███║░░░██║░░░██████╔╝ // ╚═╝░░╚═╝╚═╝╚═╝░░╚═╝░╚════╝░╚═╝░░░░░╚═╝╚═╝╚═╝░░╚══╝░░░╚═╝░░░╚═════╝░ pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import './operator-filter-registry/DefaultOperatorFiltererUpgradeable.sol'; interface IKikoLoots is IERC1155Upgradeable { function useMaterialAndTools(address user, uint256[] memory mtTypes, uint256[] memory mtCounts, uint256 countMultiplier) external; } interface IVaultProxyWarmXYZ { function ownerOf(address contractAddress, uint256 tokenId) external view returns (address); } interface IVaultProxyDelegateCash { function checkDelegateForToken(address delegate, address vault, address contract_, uint256 tokenId) external view returns (bool); } contract KikoMints is ERC721Upgradeable, DefaultOperatorFiltererUpgradeable, OwnableUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable for uint256; /** * ======= Structs and enums definitions ======= * */ struct EditUint256 { uint256 index; uint256 value; } struct EditString { uint256 index; string value; } struct EditAddress { uint256 index; address value; } struct EditBool { uint256 index; bool value; } struct EditUint256Array { uint256 index; uint256[] value; } struct Collection { string itemLabel; string baseURI; address baseToken; uint256 baseCollection; uint256 price; uint256 discountPrice; uint256 totalTokenIds; uint256[] mtRequirementIds; uint256[] mtRequirementCounts; uint256 collectionType; uint256 paymentErc20Price; address paymentErc20Address; bool available; } struct CollectionUpdate { EditString[] updatedItemLabel; EditString[] updatedBaseURI; EditAddress[] updatedBaseToken; EditUint256[] updatedBaseCollection; EditUint256[] updatedPrice; EditUint256[] updatedDiscountPrice; EditUint256[] updatedTotalTokenIds; EditUint256Array[] updatedMtRequirementIds; EditUint256Array[] updatedMtRequirementCounts; EditUint256[] updatedPaymentErc20Price; EditAddress[] updatedPaymentErc20Address; EditUint256[] updatedCollectionType; EditBool[] updatedAvailable; } /** * ======= Variables ======= * * We are using the upgradeable pattern - please do not change names, types, or order of variables * New variables must be added at the end of the list * */ uint256 public constant DECIMALS_FOR_TOKENID = 10**10; Collection[] public collections; IKikoLoots public materialsAndToolsContract; IERC721Upgradeable public vipPassContract; mapping (uint256 => bool) public isCollectionFreezed; mapping (address => bool) isAdmin; IVaultProxyWarmXYZ vaultProxyWarmXYZ; IVaultProxyDelegateCash vaultProxyDelegateCash; uint256 public couponHashPrecision; mapping (bytes32 => uint256) public couponHashToDiscountPercentageTimesPrecision; mapping (bytes32 => uint256) public couponHashToUses; mapping (uint256 => mapping (uint256 => uint256)) public collectionIdAndTokenIdInCollectionToCustomDiscount; mapping (bytes32 => uint256) public voucherHashToValue; mapping (bytes32 => uint256) public voucherHashToUses; /** * ======= Events ======= * */ event ToggleCollection(uint256 indexed index, bool indexed available); event SetAdmin(address indexed addr, bool indexed enabled); event Minted(uint256 indexed collectionId, uint256 indexed tokenIdInCollection); event SetCoupon(bytes32 indexed couponHash, uint256 discountValue, uint256 uses); event SetVoucher(bytes32 indexed voucherHash, uint256 discountValue, uint256 uses); event SetCustomDiscount(uint256 indexed collectionId, uint256 indexed tokenIdInCollection, uint256 customDiscount); /** * ======= Constructor ======= * */ /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ function initialize(address warmXYZ, address delegateCash) public initializer { __ERC721_init("KikoMints", "KIKO"); __Ownable_init(); __DefaultOperatorFilterer_init(); vaultProxyWarmXYZ = IVaultProxyWarmXYZ(warmXYZ); vaultProxyDelegateCash = IVaultProxyDelegateCash(delegateCash); couponHashPrecision = 100; } /** * ======= Token handling functions ======= * */ /** * @dev Converts contract tokenId to collectionId and tokenId from collection */ function tokenIdToCollectionIdAndBaseTokenId(uint256 tokenId) public pure returns (uint256, uint256) { uint256 collectionId = tokenId / DECIMALS_FOR_TOKENID; uint256 baseTokenId = tokenId % DECIMALS_FOR_TOKENID; return (collectionId, baseTokenId); } /** * @dev Converts collectionId and tokenId from collection to contract tokenId */ function collectionIdAndBaseTokenIdToTokenId(uint256 collectionId, uint256 baseTokenId) public pure returns (uint256) { return collectionId * DECIMALS_FOR_TOKENID + baseTokenId; } /** * ======= Internal functions ======= * */ function internalMintFromCollection(uint256 collectionId, uint256 tokenIdInCollection, address mintTo, bool fromAdmin, uint256 proxyType) internal { // revert if collection id is outside bounds require(collectionId < collections.length, "Bad collection ID"); if (!fromAdmin) { // revert if minting is not available require(collections[collectionId].available, "Not available"); // revert if total token ids is set and selected token id is higher than that if (collections[collectionId].totalTokenIds > 0) { require(tokenIdInCollection < collections[collectionId].totalTokenIds, "Token id too high"); } // revert if user does not hold required materials and tools if (collections[collectionId].mtRequirementIds.length > 0) { materialsAndToolsContract.useMaterialAndTools(mintTo, collections[collectionId].mtRequirementIds, collections[collectionId].mtRequirementCounts, 1); } // collect ERC20 payment if (collections[collectionId].paymentErc20Price > 0) { IERC20Upgradeable(collections[collectionId].paymentErc20Address).transferFrom(mintTo, owner(), collections[collectionId].paymentErc20Price); } // revert if sender is not owner of corresponding token if (collections[collectionId].collectionType == 0) { // based on ERC721 external token if (proxyType == 0) { // no proxy require(mintTo == IERC721Upgradeable(collections[collectionId].baseToken).ownerOf(tokenIdInCollection), "You do not own the token"); } else if (proxyType == 1) { // warm.xyz require(mintTo == vaultProxyWarmXYZ.ownerOf(collections[collectionId].baseToken, tokenIdInCollection), "You do not own the token"); } else if (proxyType == 2) { // delegate.cash require(vaultProxyDelegateCash.checkDelegateForToken(mintTo, IERC721Upgradeable(collections[collectionId].baseToken).ownerOf(tokenIdInCollection), collections[collectionId].baseToken, tokenIdInCollection), "You do not own the token"); } } else if (collections[collectionId].collectionType == 1) { // based on other internal collection uint256 tok = collectionIdAndBaseTokenIdToTokenId(collections[collectionId].baseCollection, tokenIdInCollection); require(mintTo == ownerOf(tok), "You do not own the token"); } else if (collections[collectionId].collectionType == 3) { // based on ERC1155 external token require(IERC1155Upgradeable(collections[collectionId].baseToken).balanceOf(mintTo, tokenIdInCollection) > 0, "You do not own the token"); } } uint256 tokenId = collectionIdAndBaseTokenIdToTokenId(collectionId, tokenIdInCollection); _mint(mintTo, tokenId); emit Minted(collectionId, tokenIdInCollection); } /** * ======= Collection management functions ======= * * All functions in this section are marked `onlyOwner` * */ /** * @dev Add and edit collections in a single tx */ function addAndEditCollections(CollectionUpdate calldata collectionsToUpdate, Collection[] calldata collectionsToAdd) external onlyOwner { uint256 i; for (i = 0; i < collectionsToUpdate.updatedItemLabel.length;) { require(!isCollectionFreezed[collectionsToUpdate.updatedItemLabel[i].index], "Freezed"); collections[collectionsToUpdate.updatedItemLabel[i].index].itemLabel = collectionsToUpdate.updatedItemLabel[i].value; unchecked{i++;} } for (i = 0; i < collectionsToUpdate.updatedBaseURI.length;) { require(!isCollectionFreezed[collectionsToUpdate.updatedBaseURI[i].index], "Freezed"); collections[collectionsToUpdate.updatedBaseURI[i].index].baseURI = collectionsToUpdate.updatedBaseURI[i].value; unchecked{i++;} } for (i = 0; i < collectionsToUpdate.updatedBaseToken.length;) { require(!isCollectionFreezed[collectionsToUpdate.updatedBaseToken[i].index], "Freezed"); collections[collectionsToUpdate.updatedBaseToken[i].index].baseToken = collectionsToUpdate.updatedBaseToken[i].value; unchecked{i++;} } for (i = 0; i < collectionsToUpdate.updatedBaseCollection.length;) { require(!isCollectionFreezed[collectionsToUpdate.updatedBaseCollection[i].index], "Freezed"); collections[collectionsToUpdate.updatedBaseCollection[i].index].baseCollection = collectionsToUpdate.updatedBaseCollection[i].value; unchecked{i++;} } for (i = 0; i < collectionsToUpdate.updatedPrice.length;) { require(!isCollectionFreezed[collectionsToUpdate.updatedPrice[i].index], "Freezed"); collections[collectionsToUpdate.updatedPrice[i].index].price = collectionsToUpdate.updatedPrice[i].value; unchecked{i++;} } for (i = 0; i < collectionsToUpdate.updatedDiscountPrice.length;) { require(!isCollectionFreezed[collectionsToUpdate.updatedDiscountPrice[i].index], "Freezed"); collections[collectionsToUpdate.updatedDiscountPrice[i].index].discountPrice = collectionsToUpdate.updatedDiscountPrice[i].value; unchecked{i++;} } for (i = 0; i < collectionsToUpdate.updatedTotalTokenIds.length;) { require(!isCollectionFreezed[collectionsToUpdate.updatedTotalTokenIds[i].index], "Freezed"); collections[collectionsToUpdate.updatedTotalTokenIds[i].index].totalTokenIds = collectionsToUpdate.updatedTotalTokenIds[i].value; unchecked{i++;} } for (i = 0; i < collectionsToUpdate.updatedMtRequirementIds.length;) { require(!isCollectionFreezed[collectionsToUpdate.updatedMtRequirementIds[i].index], "Freezed"); collections[collectionsToUpdate.updatedMtRequirementIds[i].index].mtRequirementIds = collectionsToUpdate.updatedMtRequirementIds[i].value; unchecked{i++;} } for (i = 0; i < collectionsToUpdate.updatedMtRequirementCounts.length;) { require(!isCollectionFreezed[collectionsToUpdate.updatedMtRequirementCounts[i].index], "Freezed"); collections[collectionsToUpdate.updatedMtRequirementCounts[i].index].mtRequirementCounts = collectionsToUpdate.updatedMtRequirementCounts[i].value; require(collections[collectionsToUpdate.updatedMtRequirementCounts[i].index].mtRequirementCounts.length == collections[collectionsToUpdate.updatedMtRequirementCounts[i].index].mtRequirementIds.length, "Bad lengths"); unchecked{i++;} } for (i = 0; i < collectionsToUpdate.updatedCollectionType.length;) { require(!isCollectionFreezed[collectionsToUpdate.updatedCollectionType[i].index], "Freezed"); collections[collectionsToUpdate.updatedCollectionType[i].index].collectionType = collectionsToUpdate.updatedCollectionType[i].value; unchecked{i++;} } for (i = 0; i < collectionsToUpdate.updatedPaymentErc20Price.length;) { require(!isCollectionFreezed[collectionsToUpdate.updatedPaymentErc20Price[i].index], "Freezed"); collections[collectionsToUpdate.updatedPaymentErc20Price[i].index].paymentErc20Price = collectionsToUpdate.updatedPaymentErc20Price[i].value; unchecked{i++;} } for (i = 0; i < collectionsToUpdate.updatedPaymentErc20Address.length;) { require(!isCollectionFreezed[collectionsToUpdate.updatedPaymentErc20Address[i].index], "Freezed"); collections[collectionsToUpdate.updatedPaymentErc20Address[i].index].paymentErc20Address = collectionsToUpdate.updatedPaymentErc20Address[i].value; unchecked{i++;} } for (i = 0; i < collectionsToUpdate.updatedAvailable.length;) { require(!collectionsToUpdate.updatedAvailable[i].value || !isCollectionFreezed[collectionsToUpdate.updatedAvailable[i].index], "Freezed"); collections[collectionsToUpdate.updatedAvailable[i].index].available = collectionsToUpdate.updatedAvailable[i].value; emit ToggleCollection(collectionsToUpdate.updatedAvailable[i].index, collectionsToUpdate.updatedAvailable[i].value); unchecked{i++;} } for (i = 0; i < collectionsToAdd.length;) { require(collectionsToAdd[i].mtRequirementIds.length == collectionsToAdd[i].mtRequirementCounts.length, "Bad lengths"); emit ToggleCollection(collections.length, collectionsToAdd[i].available); collections.push(collectionsToAdd[i]); unchecked{i++;} } } /** * @dev Freeze collections forever */ function freezeCollectionsForever(uint256[] calldata collectionIds) external onlyOwner { for (uint256 i = 0; i < collectionIds.length;) { require(collectionIds[i] < collections.length, "Invalid collection"); isCollectionFreezed[collectionIds[i]] = true; unchecked{i++;} } } /** * ======= User facing minting ======= * */ /** * @dev Mint a token from a specific collection */ function mintFromCollection(uint256 collectionId, uint256 tokenIdInCollection, string calldata coupon, string calldata voucher) external payable { uint256 expectedPrice; if (vipPassContract.balanceOf(msg.sender) > 0) { expectedPrice = collections[collectionId].discountPrice; } else { expectedPrice = collections[collectionId].price; } uint256 customDiscount = collectionIdAndTokenIdInCollectionToCustomDiscount[collectionId][tokenIdInCollection]; if (customDiscount > expectedPrice) { expectedPrice = 0; } else { expectedPrice -= customDiscount; } if (bytes(coupon).length != 0) { bytes32 couponHash = keccak256(abi.encodePacked(coupon)); couponHashToUses[couponHash]--; expectedPrice -= expectedPrice*couponHashToDiscountPercentageTimesPrecision[couponHash]/(couponHashPrecision*100); } if (bytes(voucher).length != 0) { bytes32 voucherHash = keccak256(abi.encodePacked(voucher)); voucherHashToUses[voucherHash]--; uint256 voucherDiscount = voucherHashToValue[voucherHash]; if (voucherDiscount >= expectedPrice) { expectedPrice = 0; } else { expectedPrice -= voucherDiscount; } } require(msg.value == expectedPrice, "Wrong amount of ETH"); internalMintFromCollection(collectionId, tokenIdInCollection, msg.sender, false, 0); } /** * @dev Mint multiple tokens from collections */ function mintFromCollectionMultiple(uint256[] calldata collectionIds, uint256[] calldata tokenIdsInCollection, uint256[] calldata proxyTypes, string calldata coupon, string calldata voucher) external payable { require(collectionIds.length == tokenIdsInCollection.length, "Bad lengths"); uint256 sum = 0; if (vipPassContract.balanceOf(msg.sender) > 0) { for (uint256 i=0; i < collectionIds.length;) { uint256 customDiscount = collectionIdAndTokenIdInCollectionToCustomDiscount[collectionIds[i]][tokenIdsInCollection[i]]; if (customDiscount < collections[collectionIds[i]].discountPrice) { sum += collections[collectionIds[i]].discountPrice - customDiscount; } unchecked{i++;} } } else { for (uint256 i=0; i < collectionIds.length;) { uint256 customDiscount = collectionIdAndTokenIdInCollectionToCustomDiscount[collectionIds[i]][tokenIdsInCollection[i]]; if (customDiscount < collections[collectionIds[i]].price) { sum += collections[collectionIds[i]].price - customDiscount; } unchecked{i++;} } } if (bytes(coupon).length != 0) { bytes32 couponHash = keccak256(abi.encodePacked(coupon)); couponHashToUses[couponHash]--; sum -= sum*couponHashToDiscountPercentageTimesPrecision[couponHash]/(couponHashPrecision*100); } if (bytes(voucher).length != 0) { bytes32 voucherHash = keccak256(abi.encodePacked(voucher)); voucherHashToUses[voucherHash]--; uint256 voucherDiscount = voucherHashToValue[voucherHash]; if (voucherDiscount >= sum) { sum = 0; } else { sum -= voucherDiscount; } } require(sum == msg.value, "Wrong ETH sum"); for (uint256 i=0; i < collectionIds.length;) { internalMintFromCollection(collectionIds[i], tokenIdsInCollection[i], msg.sender, false, proxyTypes[i]); unchecked{i++;} } } /** * ======= Owner facing functions ======= * */ /** * @dev Edit coupon's uses and discount value */ function setCoupons(bytes32[] calldata couponHashes, uint256[] calldata uses, uint256[] calldata discounts) external onlyOwner { for (uint256 i=0; i<couponHashes.length; i++) { couponHashToDiscountPercentageTimesPrecision[couponHashes[i]] = discounts[i]; couponHashToUses[couponHashes[i]] = uses[i]; emit SetCoupon(couponHashes[i], discounts[i], uses[i]); } } /** * @dev Edit voucher's uses and discount value */ function setVouchers(bytes32[] calldata voucherHashes, uint256[] calldata uses, uint256[] calldata values) external onlyOwner { for (uint256 i=0; i<voucherHashes.length; i++) { voucherHashToValue[voucherHashes[i]] = values[i]; voucherHashToUses[voucherHashes[i]] = uses[i]; emit SetVoucher(voucherHashes[i], values[i], uses[i]); } } /** * @dev Set custom discount for specific collection id and token id */ function setCustomDiscount(uint256[] calldata collectionIds, uint256[] calldata tokenIdsInCollection, uint256[] calldata customDiscounts) external onlyOwner { for (uint256 i=0; i<collectionIds.length; i++) { collectionIdAndTokenIdInCollectionToCustomDiscount[collectionIds[i]][tokenIdsInCollection[i]] = customDiscounts[i]; emit SetCustomDiscount(collectionIds[i], tokenIdsInCollection[i], customDiscounts[i]); } } /** * @dev Set address of Materials&Tools contract */ function setMaterialsAndToolsContract(address _contract) external onlyOwner { materialsAndToolsContract = IKikoLoots(_contract); } /** * @dev Set address of Materials&Tools contract */ function setVipPassContract(address _contract) external onlyOwner { vipPassContract = IERC721Upgradeable(_contract); } /** * @dev Mint tokens in type 2 collections by specifying collection id, token indexes, and owner address (callable by owner) */ function runAirdrop(uint256[] calldata collectionIds, uint256[] calldata tokenIds, address[] calldata owners) external { require(isAdmin[msg.sender], "Not authorized"); require(collectionIds.length == tokenIds.length && tokenIds.length == owners.length, "Bad lengths"); for (uint256 i = 0; i < tokenIds.length;) { internalMintFromCollection(collectionIds[i], tokenIds[i], owners[i], true, 0); unchecked{i++;} } } /** * @dev Mark address as admin/non-admin */ function setAdmin(address addr, bool enabled) external onlyOwner { isAdmin[addr] = enabled; emit SetAdmin(addr, enabled); } /** * @dev Withdraw ether from this contract (Callable by owner) */ function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } /** * ======= View functions ======= * */ /** * @dev Returns true if tokenId from collectionId has been minted already */ function getTokenInCollectionHasBeenMinted(uint256 collectionId, uint256 tokenIdInCollection) public view returns (bool) { return _exists(collectionIdAndBaseTokenIdToTokenId(collectionId, tokenIdInCollection)); } /** * @dev Returns owner of token from collection */ function getOwnerOfTokenInCollection(uint256 collectionId, uint256 tokenIdInCollection) public view returns (address) { return ownerOf(collectionIdAndBaseTokenIdToTokenId(collectionId, tokenIdInCollection)); } /** * @dev Get number of collections */ function getCollectionCount() public view returns (uint256) { return collections.length; } /** * @dev Get Materials&Tools requirements of collection by collection id */ function getCollectionMts(uint256 collectionId) public view returns (uint256[] memory, uint256[] memory) { uint256[] memory ids = collections[collectionId].mtRequirementIds; uint256[] memory counts = collections[collectionId].mtRequirementCounts; return (ids, counts); } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); (uint256 collectionId, uint256 tokenIdInCollection) = tokenIdToCollectionIdAndBaseTokenId(tokenId); string memory base = collections[collectionId].baseURI; return string(abi.encodePacked(base, tokenIdInCollection.toString())); } /** * ------------ OPENSEA OPERATOR FILTER OVERRIDES ------------ */ function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721Upgradeable.sol"; import "./IERC721ReceiverUpgradeable.sol"; import "./extensions/IERC721MetadataUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/StringsUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721Upgradeable.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721Upgradeable.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721Upgradeable.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[44] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFiltererUpgradeable} from "./OperatorFiltererUpgradeable.sol"; abstract contract DefaultOperatorFiltererUpgradeable is OperatorFiltererUpgradeable { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); function __DefaultOperatorFilterer_init() internal onlyInitializing { OperatorFiltererUpgradeable.__OperatorFilterer_init(DEFAULT_SUBSCRIPTION, true); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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 Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = _setInitializedVersion(1); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { bool isTopLevelCall = _setInitializedVersion(version); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(version); } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { _setInitializedVersion(type(uint8).max); } function _setInitializedVersion(uint8 version) private returns (bool) { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level // of initializers, because in other contexts the contract may have been reentered. if (_initializing) { require( version == 1 && !AddressUpgradeable.isContract(address(this)), "Initializable: contract is already initialized" ); return false; } else { require(_initialized < version, "Initializable: contract is already initialized"); _initialized = version; return true; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; abstract contract OperatorFiltererUpgradeable is Initializable { error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant operatorFilterRegistry = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); function __OperatorFilterer_init(address subscriptionOrRegistrantToCopy, bool subscribe) internal onlyInitializing { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(operatorFilterRegistry).code.length > 0) { if (!operatorFilterRegistry.isRegistered(address(this))) { if (subscribe) { operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { operatorFilterRegistry.register(address(this)); } } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(operatorFilterRegistry).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if (!operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender)) { revert OperatorNotAllowed(msg.sender); } } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(operatorFilterRegistry).code.length > 0) { if (!operatorFilterRegistry.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"collectionId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"tokenIdInCollection","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":true,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SetAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"couponHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"discountValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"uses","type":"uint256"}],"name":"SetCoupon","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"collectionId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"tokenIdInCollection","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"customDiscount","type":"uint256"}],"name":"SetCustomDiscount","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"voucherHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"discountValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"uses","type":"uint256"}],"name":"SetVoucher","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"bool","name":"available","type":"bool"}],"name":"ToggleCollection","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DECIMALS_FOR_TOKENID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"string","name":"value","type":"string"}],"internalType":"struct KikoMints.EditString[]","name":"updatedItemLabel","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"string","name":"value","type":"string"}],"internalType":"struct KikoMints.EditString[]","name":"updatedBaseURI","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"value","type":"address"}],"internalType":"struct KikoMints.EditAddress[]","name":"updatedBaseToken","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct KikoMints.EditUint256[]","name":"updatedBaseCollection","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct KikoMints.EditUint256[]","name":"updatedPrice","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct KikoMints.EditUint256[]","name":"updatedDiscountPrice","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct KikoMints.EditUint256[]","name":"updatedTotalTokenIds","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256[]","name":"value","type":"uint256[]"}],"internalType":"struct KikoMints.EditUint256Array[]","name":"updatedMtRequirementIds","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256[]","name":"value","type":"uint256[]"}],"internalType":"struct KikoMints.EditUint256Array[]","name":"updatedMtRequirementCounts","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct KikoMints.EditUint256[]","name":"updatedPaymentErc20Price","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"value","type":"address"}],"internalType":"struct KikoMints.EditAddress[]","name":"updatedPaymentErc20Address","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct KikoMints.EditUint256[]","name":"updatedCollectionType","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bool","name":"value","type":"bool"}],"internalType":"struct KikoMints.EditBool[]","name":"updatedAvailable","type":"tuple[]"}],"internalType":"struct KikoMints.CollectionUpdate","name":"collectionsToUpdate","type":"tuple"},{"components":[{"internalType":"string","name":"itemLabel","type":"string"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address","name":"baseToken","type":"address"},{"internalType":"uint256","name":"baseCollection","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"discountPrice","type":"uint256"},{"internalType":"uint256","name":"totalTokenIds","type":"uint256"},{"internalType":"uint256[]","name":"mtRequirementIds","type":"uint256[]"},{"internalType":"uint256[]","name":"mtRequirementCounts","type":"uint256[]"},{"internalType":"uint256","name":"collectionType","type":"uint256"},{"internalType":"uint256","name":"paymentErc20Price","type":"uint256"},{"internalType":"address","name":"paymentErc20Address","type":"address"},{"internalType":"bool","name":"available","type":"bool"}],"internalType":"struct KikoMints.Collection[]","name":"collectionsToAdd","type":"tuple[]"}],"name":"addAndEditCollections","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"baseTokenId","type":"uint256"}],"name":"collectionIdAndBaseTokenIdToTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"collectionIdAndTokenIdInCollectionToCustomDiscount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"collections","outputs":[{"internalType":"string","name":"itemLabel","type":"string"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address","name":"baseToken","type":"address"},{"internalType":"uint256","name":"baseCollection","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"discountPrice","type":"uint256"},{"internalType":"uint256","name":"totalTokenIds","type":"uint256"},{"internalType":"uint256","name":"collectionType","type":"uint256"},{"internalType":"uint256","name":"paymentErc20Price","type":"uint256"},{"internalType":"address","name":"paymentErc20Address","type":"address"},{"internalType":"bool","name":"available","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"couponHashPrecision","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"couponHashToDiscountPercentageTimesPrecision","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"couponHashToUses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"collectionIds","type":"uint256[]"}],"name":"freezeCollectionsForever","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCollectionCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"}],"name":"getCollectionMts","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"tokenIdInCollection","type":"uint256"}],"name":"getOwnerOfTokenInCollection","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"tokenIdInCollection","type":"uint256"}],"name":"getTokenInCollectionHasBeenMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"warmXYZ","type":"address"},{"internalType":"address","name":"delegateCash","type":"address"}],"name":"initialize","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isCollectionFreezed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"materialsAndToolsContract","outputs":[{"internalType":"contract IKikoLoots","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"tokenIdInCollection","type":"uint256"},{"internalType":"string","name":"coupon","type":"string"},{"internalType":"string","name":"voucher","type":"string"}],"name":"mintFromCollection","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"collectionIds","type":"uint256[]"},{"internalType":"uint256[]","name":"tokenIdsInCollection","type":"uint256[]"},{"internalType":"uint256[]","name":"proxyTypes","type":"uint256[]"},{"internalType":"string","name":"coupon","type":"string"},{"internalType":"string","name":"voucher","type":"string"}],"name":"mintFromCollectionMultiple","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"collectionIds","type":"uint256[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"address[]","name":"owners","type":"address[]"}],"name":"runAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"couponHashes","type":"bytes32[]"},{"internalType":"uint256[]","name":"uses","type":"uint256[]"},{"internalType":"uint256[]","name":"discounts","type":"uint256[]"}],"name":"setCoupons","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"collectionIds","type":"uint256[]"},{"internalType":"uint256[]","name":"tokenIdsInCollection","type":"uint256[]"},{"internalType":"uint256[]","name":"customDiscounts","type":"uint256[]"}],"name":"setCustomDiscount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setMaterialsAndToolsContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setVipPassContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"voucherHashes","type":"bytes32[]"},{"internalType":"uint256[]","name":"uses","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"setVouchers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenIdToCollectionIdAndBaseTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vipPassContract","outputs":[{"internalType":"contract IERC721Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"voucherHashToUses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"voucherHashToValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50615a0680620000216000396000f3fe60806040526004361061027d5760003560e01c8063715018a61161014f578063c87b56dd116100c1578063ead0b25f1161007a578063ead0b25f14610800578063ee893c7414610820578063f2fde38b14610840578063f572dd2814610860578063fdbda0ec14610880578063fddd5cfd146108b757600080fd5b8063c87b56dd14610724578063cf89e0e214610744578063d1f7f1be14610764578063e44547af14610784578063e6dff93e146107a4578063e985e9c5146107b757600080fd5b8063a22cb46511610113578063a22cb46514610657578063a30ead2814610677578063a60ef5101461068a578063a9ff83e0146106b7578063b7ced535146106d7578063b88d4fde1461070457600080fd5b8063715018a6146105cc5780638da5cb5b146105e157806395c026e6146105ff57806395d89b41146106155780639c7d4b911461062a57600080fd5b80631fa96d59116101f35780634b0bddd2116101ac5780634b0bddd2146104fe5780635c319c1a1461051e5780635f6966591461053e5780636352211e1461055e5780636a6dcb1d1461057e57806370a08231146105ac57600080fd5b80631fa96d591461043457806323b872dd1461045457806330315e05146104745780633ccfd60b146104a957806342842e0e146104be578063485cc955146104de57600080fd5b80630f0de750116102455780630f0de75014610353578063155931d61461037a57806315ce049f146103a757806316516310146103c75780631c10106f146103e75780631d3ce2c9146103fc57600080fd5b806301ffc9a71461028257806305e3ba39146102b757806306fdde03146102ef578063081812fc14610311578063095ea7b314610331575b600080fd5b34801561028e57600080fd5b506102a261029d3660046149c2565b6108e7565b60405190151581526020015b60405180910390f35b3480156102c357600080fd5b5060cb546102d7906001600160a01b031681565b6040516001600160a01b0390911681526020016102ae565b3480156102fb57600080fd5b50610304610939565b6040516102ae9190614a2f565b34801561031d57600080fd5b506102d761032c366004614a42565b6109cb565b34801561033d57600080fd5b5061035161034c366004614a70565b610a65565b005b34801561035f57600080fd5b5061036c6402540be40081565b6040519081526020016102ae565b34801561038657600080fd5b5061036c610395366004614a42565b60d46020526000908152604090205481565b3480156103b357600080fd5b5060ca546102d7906001600160a01b031681565b3480156103d357600080fd5b506103516103e2366004614ae7565b610b2e565b3480156103f357600080fd5b5060c95461036c565b34801561040857600080fd5b5061036c610417366004614b28565b60d360209081526000928352604080842090915290825290205481565b34801561044057600080fd5b5061035161044f366004614b4a565b610c09565b34801561046057600080fd5b5061035161046f366004614b67565b610c55565b34801561048057600080fd5b5061049461048f366004614a42565b610d2e565b604080519283526020830191909152016102ae565b3480156104b557600080fd5b50610351610d60565b3480156104ca57600080fd5b506103516104d9366004614b67565b610dbd565b3480156104ea57600080fd5b506103516104f9366004614ba8565b610e8b565b34801561050a57600080fd5b50610351610519366004614bef565b610f85565b34801561052a57600080fd5b506102d7610539366004614b28565b611003565b34801561054a57600080fd5b50610351610559366004614b4a565b611019565b34801561056a57600080fd5b506102d7610579366004614a42565b611065565b34801561058a57600080fd5b5061059e610599366004614a42565b6110dc565b6040516102ae929190614c58565b3480156105b857600080fd5b5061036c6105c7366004614b4a565b6111d7565b3480156105d857600080fd5b5061035161125e565b3480156105ed57600080fd5b506097546001600160a01b03166102d7565b34801561060b57600080fd5b5061036c60d05481565b34801561062157600080fd5b50610304611294565b34801561063657600080fd5b5061036c610645366004614a42565b60d16020526000908152604090205481565b34801561066357600080fd5b50610351610672366004614bef565b6112a3565b610351610685366004614cc7565b611367565b34801561069657600080fd5b5061036c6106a5366004614a42565b60d56020526000908152604090205481565b3480156106c357600080fd5b506102a26106d2366004614b28565b6117df565b3480156106e357600080fd5b5061036c6106f2366004614a42565b60d26020526000908152604090205481565b34801561071057600080fd5b5061035161071f366004614dcd565b61180b565b34801561073057600080fd5b5061030461073f366004614a42565b6118e7565b34801561075057600080fd5b5061035161075f366004614eac565b611a5d565b34801561077057600080fd5b5061035161077f366004614eac565b611bc8565b34801561079057600080fd5b5061035161079f366004614eac565b611d2a565b6103516107b2366004614f45565b611e1c565b3480156107c357600080fd5b506102a26107d2366004614ba8565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561080c57600080fd5b5061035161081b366004614eac565b612094565b34801561082c57600080fd5b5061035161083b366004614fb5565b6121cf565b34801561084c57600080fd5b5061035161085b366004614b4a565b61328c565b34801561086c57600080fd5b5061036c61087b366004614b28565b613327565b34801561088c57600080fd5b506108a061089b366004614a42565b613343565b6040516102ae9b9a99989796959493929190615026565b3480156108c357600080fd5b506102a26108d2366004614a42565b60cc6020526000908152604090205460ff1681565b60006001600160e01b031982166380ac58cd60e01b148061091857506001600160e01b03198216635b5e139f60e01b145b8061093357506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060658054610948906150aa565b80601f0160208091040260200160405190810160405280929190818152602001828054610974906150aa565b80156109c15780601f10610996576101008083540402835291602001916109c1565b820191906000526020600020905b8154815290600101906020018083116109a457829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b0316610a495760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b15610b1f57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ad3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af791906150e4565b610b1f57604051633b79c77360e21b81526001600160a01b0382166004820152602401610a40565b610b2983836134d6565b505050565b6097546001600160a01b03163314610b585760405162461bcd60e51b8152600401610a4090615101565b60005b81811015610b295760c954838383818110610b7857610b78615136565b9050602002013510610bc15760405162461bcd60e51b815260206004820152601260248201527124b73b30b634b21031b7b63632b1ba34b7b760711b6044820152606401610a40565b600160cc6000858585818110610bd957610bd9615136565b60209081029290920135835250810191909152604001600020805460ff1916911515919091179055600101610b5b565b6097546001600160a01b03163314610c335760405162461bcd60e51b8152600401610a4090615101565b60ca80546001600160a01b0319166001600160a01b0392909216919091179055565b826daaeb6d7670e522a718067333cd4e3b15610d1d57336001600160a01b03821603610c8b57610c868484846135e6565b610d28565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610cda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfe91906150e4565b610d1d57604051633b79c77360e21b8152336004820152602401610a40565b610d288484846135e6565b50505050565b60008080610d416402540be40085615178565b90506000610d546402540be4008661518c565b91959194509092505050565b6097546001600160a01b03163314610d8a5760405162461bcd60e51b8152600401610a4090615101565b6040514790339082156108fc029083906000818181858888f19350505050158015610db9573d6000803e3d6000fd5b5050565b826daaeb6d7670e522a718067333cd4e3b15610e8057336001600160a01b03821603610dee57610c86848484613617565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610e3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6191906150e4565b610e8057604051633b79c77360e21b8152336004820152602401610a40565b610d28848484613617565b6000610e976001613632565b90508015610eaf576000805461ff0019166101001790555b610ef6604051806040016040528060098152602001684b696b6f4d696e747360b81b815250604051806040016040528060048152602001634b494b4f60e01b8152506136ba565b610efe6136eb565b610f0661371a565b60ce80546001600160a01b038086166001600160a01b03199283161790925560cf805492851692909116919091179055606460d0558015610b29576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a1505050565b6097546001600160a01b03163314610faf5760405162461bcd60e51b8152600401610a4090615101565b6001600160a01b038216600081815260cd6020526040808220805460ff191685151590811790915590519092917f55a5194bc0174fcaf12b2978bef43911466bf63b34db8d1dd1a0d5dcd5c41bea91a35050565b60006110126105798484613327565b9392505050565b6097546001600160a01b031633146110435760405162461bcd60e51b8152600401610a4090615101565b60cb80546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152606760205260408120546001600160a01b0316806109335760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a40565b606080600060c984815481106110f4576110f4615136565b90600052602060002090600c020160070180548060200260200160405190810160405280929190818152602001828054801561114f57602002820191906000526020600020905b81548152602001906001019080831161113b575b50505050509050600060c9858154811061116b5761116b615136565b90600052602060002090600c02016008018054806020026020016040519081016040528092919081815260200182805480156111c657602002820191906000526020600020905b8154815260200190600101908083116111b2575b509599939850929650505050505050565b60006001600160a01b0382166112425760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a40565b506001600160a01b031660009081526068602052604090205490565b6097546001600160a01b031633146112885760405162461bcd60e51b8152600401610a4090615101565b6112926000613760565b565b606060668054610948906150aa565b816daaeb6d7670e522a718067333cd4e3b1561135d57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611311573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133591906150e4565b61135d57604051633b79c77360e21b81526001600160a01b0382166004820152602401610a40565b610b2983836137b2565b8887146113865760405162461bcd60e51b8152600401610a40906151a0565b60cb546040516370a0823160e01b815233600482015260009182916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156113d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f791906151c5565b11156115095760005b8a81101561150357600060d360008e8e8581811061142057611420615136565b90506020020135815260200190815260200160002060008c8c8581811061144957611449615136565b90506020020135815260200190815260200160002054905060c98d8d8481811061147557611475615136565b905060200201358154811061148c5761148c615136565b90600052602060002090600c0201600501548110156114fa578060c98e8e858181106114ba576114ba615136565b90506020020135815481106114d1576114d1615136565b90600052602060002090600c0201600501546114ed91906151de565b6114f790846151f1565b92505b50600101611400565b50611611565b60005b8a81101561160f57600060d360008e8e8581811061152c5761152c615136565b90506020020135815260200190815260200160002060008c8c8581811061155557611555615136565b90506020020135815260200190815260200160002054905060c98d8d8481811061158157611581615136565b905060200201358154811061159857611598615136565b90600052602060002090600c020160040154811015611606578060c98e8e858181106115c6576115c6615136565b90506020020135815481106115dd576115dd615136565b90600052602060002090600c0201600401546115f991906151de565b61160390846151f1565b92505b5060010161150c565b505b83156116a5576000858560405160200161162c929190615204565b60408051601f198184030181529181528151602092830120600081815260d29093529082208054919350909161166183615214565b909155505060d05461167490606461522b565b600082815260d1602052604090205461168d908461522b565b6116979190615178565b6116a190836151de565b9150505b811561172957600083836040516020016116c0929190615204565b60408051601f198184030181529181528151602092830120600081815260d5909352908220805491935090916116f583615214565b9091555050600081815260d460205260409020548281106117195760009250611726565b61172381846151de565b92505b50505b3481146117685760405162461bcd60e51b815260206004820152600d60248201526c57726f6e67204554482073756d60981b6044820152606401610a40565b60005b8a8110156117d1576117c98c8c8381811061178857611788615136565b905060200201358b8b848181106117a1576117a1615136565b905060200201353360008c8c878181106117bd576117bd615136565b905060200201356137bd565b60010161176b565b505050505050505050505050565b60006110126117ee8484613327565b6000908152606760205260409020546001600160a01b0316151590565b836daaeb6d7670e522a718067333cd4e3b156118d457336001600160a01b038216036118425761183d85858585613fb7565b6118e0565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611891573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b591906150e4565b6118d457604051633b79c77360e21b8152336004820152602401610a40565b6118e085858585613fb7565b5050505050565b6000818152606760205260409020546060906001600160a01b03166119685760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610a40565b60008061197484610d2e565b91509150600060c9838154811061198d5761198d615136565b90600052602060002090600c020160010180546119a9906150aa565b80601f01602080910402602001604051908101604052809291908181526020018280546119d5906150aa565b8015611a225780601f106119f757610100808354040283529160200191611a22565b820191906000526020600020905b815481529060010190602001808311611a0557829003601f168201915b5050505050905080611a3383613fe9565b604051602001611a44929190615242565b6040516020818303038152906040529350505050919050565b6097546001600160a01b03163314611a875760405162461bcd60e51b8152600401610a4090615101565b60005b85811015611bbf57828282818110611aa457611aa4615136565b9050602002013560d16000898985818110611ac157611ac1615136565b90506020020135815260200190815260200160002081905550848482818110611aec57611aec615136565b9050602002013560d26000898985818110611b0957611b09615136565b90506020020135815260200190815260200160002081905550868682818110611b3457611b34615136565b905060200201357f4083e36ebbb9a7801b3fdc46a3acd6b05665009a85ec99456b6aa2f0f27a9e2a848484818110611b6e57611b6e615136565b90506020020135878785818110611b8757611b87615136565b90506020020135604051611ba5929190918252602082015260400190565b60405180910390a280611bb781615271565b915050611a8a565b50505050505050565b6097546001600160a01b03163314611bf25760405162461bcd60e51b8152600401610a4090615101565b60005b85811015611bbf57828282818110611c0f57611c0f615136565b9050602002013560d46000898985818110611c2c57611c2c615136565b90506020020135815260200190815260200160002081905550848482818110611c5757611c57615136565b9050602002013560d56000898985818110611c7457611c74615136565b90506020020135815260200190815260200160002081905550868682818110611c9f57611c9f615136565b905060200201357f8c91bf9d0b564abc15d569181bb3538ca806629833e5e349915a4e3e81e81480848484818110611cd957611cd9615136565b90506020020135878785818110611cf257611cf2615136565b90506020020135604051611d10929190918252602082015260400190565b60405180910390a280611d2281615271565b915050611bf5565b33600090815260cd602052604090205460ff16611d7a5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610a40565b8483148015611d8857508281145b611da45760405162461bcd60e51b8152600401610a40906151a0565b60005b83811015611bbf57611e14878783818110611dc457611dc4615136565b90506020020135868684818110611ddd57611ddd615136565b90506020020135858585818110611df657611df6615136565b9050602002016020810190611e0b9190614b4a565b600160006137bd565b600101611da7565b60cb546040516370a0823160e01b815233600482015260009182916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611e69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e8d91906151c5565b1115611ebf5760c98781548110611ea657611ea6615136565b90600052602060002090600c0201600501549050611ee7565b60c98781548110611ed257611ed2615136565b90600052602060002090600c02016004015490505b600087815260d36020908152604080832089845290915290205481811115611f125760009150611f1f565b611f1c81836151de565b91505b8415611fb35760008686604051602001611f3a929190615204565b60408051601f198184030181529181528151602092830120600081815260d290935290822080549193509091611f6f83615214565b909155505060d054611f8290606461522b565b600082815260d16020526040902054611f9b908561522b565b611fa59190615178565b611faf90846151de565b9250505b82156120375760008484604051602001611fce929190615204565b60408051601f198184030181529181528151602092830120600081815260d59093529082208054919350909161200383615214565b9091555050600081815260d460205260409020548381106120275760009350612034565b61203181856151de565b93505b50505b81341461207c5760405162461bcd60e51b81526020600482015260136024820152720aee4dedcce40c2dadeeadce840decc408aa89606b1b6044820152606401610a40565b61208a8888336000806137bd565b5050505050505050565b6097546001600160a01b031633146120be5760405162461bcd60e51b8152600401610a4090615101565b60005b85811015611bbf578282828181106120db576120db615136565b9050602002013560d360008989858181106120f8576120f8615136565b905060200201358152602001908152602001600020600087878581811061212157612121615136565b9050602002013581526020019081526020016000208190555084848281811061214c5761214c615136565b9050602002013587878381811061216557612165615136565b905060200201357fca626da83d16d77b074979136f88b112b1d6500728ba7c691a528df13d1e134085858581811061219f5761219f615136565b905060200201356040516121b591815260200190565b60405180910390a3806121c781615271565b9150506120c1565b6097546001600160a01b031633146121f95760405162461bcd60e51b8152600401610a4090615101565b60005b612206848061528a565b90508110156123145760cc600061221d868061528a565b8481811061222d5761222d615136565b905060200281019061223f91906152d3565b35815260208101919091526040016000205460ff16156122715760405162461bcd60e51b8152600401610a40906152f3565b61227b848061528a565b8281811061228b5761228b615136565b905060200281019061229d91906152d3565b6122ab906020810190615314565b60c96122b7878061528a565b858181106122c7576122c7615136565b90506020028101906122d991906152d3565b60000135815481106122ed576122ed615136565b90600052602060002090600c0201600001918261230b9291906153a8565b506001016121fc565b5060005b612325602085018561528a565b905081101561243c5760cc600061233f602087018761528a565b8481811061234f5761234f615136565b905060200281019061236191906152d3565b35815260208101919091526040016000205460ff16156123935760405162461bcd60e51b8152600401610a40906152f3565b6123a0602085018561528a565b828181106123b0576123b0615136565b90506020028101906123c291906152d3565b6123d0906020810190615314565b60c96123df602088018861528a565b858181106123ef576123ef615136565b905060200281019061240191906152d3565b600001358154811061241557612415615136565b90600052602060002090600c020160010191826124339291906153a8565b50600101612318565b5060005b61244d6040850185615467565b90508110156125585760cc60006124676040870187615467565b8481811061247757612477615136565b604090810292909201358352506020820192909252016000205460ff16156124b15760405162461bcd60e51b8152600401610a40906152f3565b6124be6040850185615467565b828181106124ce576124ce615136565b90506040020160200160208101906124e69190614b4a565b60c96124f56040870187615467565b8481811061250557612505615136565b905060400201600001358154811061251f5761251f615136565b60009182526020909120600c9091020160020180546001600160a01b0319166001600160a01b0392909216919091179055600101612440565b5060005b6125696060850185615467565b905081101561264c5760cc60006125836060870187615467565b8481811061259357612593615136565b604090810292909201358352506020820192909252016000205460ff16156125cd5760405162461bcd60e51b8152600401610a40906152f3565b6125da6060850185615467565b828181106125ea576125ea615136565b9050604002016020013560c98580606001906126069190615467565b8481811061261657612616615136565b905060400201600001358154811061263057612630615136565b600091825260209091206003600c90920201015560010161255c565b5060005b61265d6080850185615467565b90508110156127405760cc60006126776080870187615467565b8481811061268757612687615136565b604090810292909201358352506020820192909252016000205460ff16156126c15760405162461bcd60e51b8152600401610a40906152f3565b6126ce6080850185615467565b828181106126de576126de615136565b9050604002016020013560c98580608001906126fa9190615467565b8481811061270a5761270a615136565b905060400201600001358154811061272457612724615136565b600091825260209091206004600c909202010155600101612650565b5060005b61275160a0850185615467565b90508110156128345760cc600061276b60a0870187615467565b8481811061277b5761277b615136565b604090810292909201358352506020820192909252016000205460ff16156127b55760405162461bcd60e51b8152600401610a40906152f3565b6127c260a0850185615467565b828181106127d2576127d2615136565b9050604002016020013560c9858060a001906127ee9190615467565b848181106127fe576127fe615136565b905060400201600001358154811061281857612818615136565b600091825260209091206005600c909202010155600101612744565b5060005b61284560c0850185615467565b90508110156129285760cc600061285f60c0870187615467565b8481811061286f5761286f615136565b604090810292909201358352506020820192909252016000205460ff16156128a95760405162461bcd60e51b8152600401610a40906152f3565b6128b660c0850185615467565b828181106128c6576128c6615136565b9050604002016020013560c9858060c001906128e29190615467565b848181106128f2576128f2615136565b905060400201600001358154811061290c5761290c615136565b600091825260209091206006600c909202010155600101612838565b5060005b61293960e085018561528a565b9050811015612a505760cc600061295360e087018761528a565b8481811061296357612963615136565b905060200281019061297591906152d3565b35815260208101919091526040016000205460ff16156129a75760405162461bcd60e51b8152600401610a40906152f3565b6129b460e085018561528a565b828181106129c4576129c4615136565b90506020028101906129d691906152d3565b6129e490602081019061528a565b60c96129f360e088018861528a565b85818110612a0357612a03615136565b9050602002810190612a1591906152d3565b6000013581548110612a2957612a29615136565b90600052602060002090600c02016007019190612a4792919061494c565b5060010161292c565b5060005b612a6261010085018561528a565b9050811015612c4e5760cc6000612a7d61010087018761528a565b84818110612a8d57612a8d615136565b9050602002810190612a9f91906152d3565b35815260208101919091526040016000205460ff1615612ad15760405162461bcd60e51b8152600401610a40906152f3565b612adf61010085018561528a565b82818110612aef57612aef615136565b9050602002810190612b0191906152d3565b612b0f90602081019061528a565b60c9612b1f61010088018861528a565b85818110612b2f57612b2f615136565b9050602002810190612b4191906152d3565b6000013581548110612b5557612b55615136565b90600052602060002090600c02016008019190612b7392919061494c565b5060c9612b8461010086018661528a565b83818110612b9457612b94615136565b9050602002810190612ba691906152d3565b6000013581548110612bba57612bba615136565b600091825260209091206007600c90920201015460c9612bde61010087018761528a565b84818110612bee57612bee615136565b9050602002810190612c0091906152d3565b6000013581548110612c1457612c14615136565b90600052602060002090600c02016008018054905014612c465760405162461bcd60e51b8152600401610a40906151a0565b600101612a54565b5060005b612c60610160850185615467565b9050811015612d465760cc6000612c7b610160870187615467565b84818110612c8b57612c8b615136565b604090810292909201358352506020820192909252016000205460ff1615612cc55760405162461bcd60e51b8152600401610a40906152f3565b612cd3610160850185615467565b82818110612ce357612ce3615136565b9050604002016020013560c985806101600190612d009190615467565b84818110612d1057612d10615136565b9050604002016000013581548110612d2a57612d2a615136565b600091825260209091206009600c909202010155600101612c52565b5060005b612d58610120850185615467565b9050811015612e3e5760cc6000612d73610120870187615467565b84818110612d8357612d83615136565b604090810292909201358352506020820192909252016000205460ff1615612dbd5760405162461bcd60e51b8152600401610a40906152f3565b612dcb610120850185615467565b82818110612ddb57612ddb615136565b9050604002016020013560c985806101200190612df89190615467565b84818110612e0857612e08615136565b9050604002016000013581548110612e2257612e22615136565b60009182526020909120600a600c909202010155600101612d4a565b5060005b612e50610140850185615467565b9050811015612f5e5760cc6000612e6b610140870187615467565b84818110612e7b57612e7b615136565b604090810292909201358352506020820192909252016000205460ff1615612eb55760405162461bcd60e51b8152600401610a40906152f3565b612ec3610140850185615467565b82818110612ed357612ed3615136565b9050604002016020016020810190612eeb9190614b4a565b60c9612efb610140870187615467565b84818110612f0b57612f0b615136565b9050604002016000013581548110612f2557612f25615136565b60009182526020909120600c90910201600b0180546001600160a01b0319166001600160a01b0392909216919091179055600101612e42565b5060005b612f70610180850185615467565b905081101561314157612f87610180850185615467565b82818110612f9757612f97615136565b9050604002016020016020810190612faf91906154b0565b1580612ff7575060cc6000612fc8610180870187615467565b84818110612fd857612fd8615136565b604090810292909201358352506020820192909252016000205460ff16155b6130135760405162461bcd60e51b8152600401610a40906152f3565b613021610180850185615467565b8281811061303157613031615136565b905060400201602001602081019061304991906154b0565b60c9613059610180870187615467565b8481811061306957613069615136565b905060400201600001358154811061308357613083615136565b60009182526020909120600b600c90920201018054911515600160a01b0260ff60a01b199092169190911790556130be610180850185615467565b828181106130ce576130ce615136565b90506040020160200160208101906130e691906154b0565b15156130f6610180860186615467565b8381811061310657613106615136565b6040805191029290920135917f155e17d37104c3888ff7704a469567abd956b3984bcc806f7310abcd2f22f7ae9150600090a3600101612f62565b5060005b81811015610d285782828281811061315f5761315f615136565b905060200281019061317191906154cd565b6131809061010081019061528a565b905083838381811061319457613194615136565b90506020028101906131a691906154cd565b6131b49060e081019061528a565b9050146131d35760405162461bcd60e51b8152600401610a40906151a0565b8282828181106131e5576131e5615136565b90506020028101906131f791906154cd565b61320a906101a0810190610180016154b0565b60c954604051911515917f155e17d37104c3888ff7704a469567abd956b3984bcc806f7310abcd2f22f7ae90600090a360c983838381811061324e5761324e615136565b905060200281019061326091906154cd565b8154600181018355600092835260209092209091600c0201613282828261559d565b5050600101613145565b6097546001600160a01b031633146132b65760405162461bcd60e51b8152600401610a4090615101565b6001600160a01b03811661331b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a40565b61332481613760565b50565b6000816133396402540be4008561522b565b61101291906151f1565b60c9818154811061335357600080fd5b90600052602060002090600c0201600091509050806000018054613376906150aa565b80601f01602080910402602001604051908101604052809291908181526020018280546133a2906150aa565b80156133ef5780601f106133c4576101008083540402835291602001916133ef565b820191906000526020600020905b8154815290600101906020018083116133d257829003601f168201915b505050505090806001018054613404906150aa565b80601f0160208091040260200160405190810160405280929190818152602001828054613430906150aa565b801561347d5780601f106134525761010080835404028352916020019161347d565b820191906000526020600020905b81548152906001019060200180831161346057829003601f168201915b505050600284015460038501546004860154600587015460068801546009890154600a8a0154600b909a015498996001600160a01b0396871699959850939650919490939192919081169060ff600160a01b909104168b565b60006134e182611065565b9050806001600160a01b0316836001600160a01b03160361354e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a40565b336001600160a01b038216148061356a575061356a81336107d2565b6135dc5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a40565b610b2983836140f1565b6135f0338261415f565b61360c5760405162461bcd60e51b8152600401610a40906156aa565b610b29838383614255565b610b298383836040518060200160405280600081525061180b565b60008054610100900460ff1615613679578160ff1660011480156136555750303b155b6136715760405162461bcd60e51b8152600401610a40906156fb565b506000919050565b60005460ff8084169116106136a05760405162461bcd60e51b8152600401610a40906156fb565b506000805460ff191660ff92909216919091179055600190565b600054610100900460ff166136e15760405162461bcd60e51b8152600401610a4090615749565b610db982826143f1565b600054610100900460ff166137125760405162461bcd60e51b8152600401610a4090615749565b611292614431565b600054610100900460ff166137415760405162461bcd60e51b8152600401610a4090615749565b611292733cc6cdda760b79bafa08df41ecfa224f810dceb66001614461565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610db9338383614608565b60c95485106138025760405162461bcd60e51b81526020600482015260116024820152701098590818dbdb1b1958dd1a5bdb881251607a1b6044820152606401610a40565b81613f6a5760c9858154811061381a5761381a615136565b90600052602060002090600c0201600b0160149054906101000a900460ff166138755760405162461bcd60e51b815260206004820152600d60248201526c4e6f7420617661696c61626c6560981b6044820152606401610a40565b600060c9868154811061388a5761388a615136565b90600052602060002090600c02016006015411156139095760c985815481106138b5576138b5615136565b90600052602060002090600c02016006015484106139095760405162461bcd60e51b81526020600482015260116024820152700a8ded6cadc40d2c840e8dede40d0d2ced607b1b6044820152606401610a40565b600060c9868154811061391e5761391e615136565b90600052602060002090600c02016007018054905011156139ed5760ca5460c980546001600160a01b039092169163e029711d9186918990811061396457613964615136565b90600052602060002090600c020160070160c9898154811061398857613988615136565b90600052602060002090600c020160080160016040518563ffffffff1660e01b81526004016139ba94939291906157c9565b600060405180830381600087803b1580156139d457600080fd5b505af11580156139e8573d6000803e3d6000fd5b505050505b600060c98681548110613a0257613a02615136565b90600052602060002090600c0201600a01541115613b035760c98581548110613a2d57613a2d615136565b60009182526020909120600b600c9092020101546001600160a01b03166323b872dd84613a626097546001600160a01b031690565b60c98981548110613a7557613a75615136565b60009182526020909120600a600c9092020101546040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015613add573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b0191906150e4565b505b60c98581548110613b1657613b16615136565b90600052602060002090600c020160090154600003613deb5780600003613bfe5760c98581548110613b4a57613b4a615136565b60009182526020909120600c90910201600201546040516331a9108f60e11b8152600481018690526001600160a01b0390911690636352211e906024015b602060405180830381865afa158015613ba5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bc99190615811565b6001600160a01b0316836001600160a01b031614613bf95760405162461bcd60e51b8152600401610a409061582e565b613f6a565b80600103613c775760ce5460c980546001600160a01b0390921691631f29d2dc919088908110613c3057613c30615136565b60009182526020909120600c909102016002015460405160e083901b6001600160e01b03191681526001600160a01b03909116600482015260248101879052604401613b88565b80600203613bf95760cf5460c980546001600160a01b039092169163aba69cf891869189908110613caa57613caa615136565b60009182526020909120600c90910201600201546040516331a9108f60e11b8152600481018990526001600160a01b0390911690636352211e90602401602060405180830381865afa158015613d04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d289190615811565b60c98981548110613d3b57613d3b615136565b60009182526020909120600c909102016002015460405160e085901b6001600160e01b03191681526001600160a01b039384166004820152918316602483015291909116604482015260648101879052608401602060405180830381865afa158015613dab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dcf91906150e4565b613bf95760405162461bcd60e51b8152600401610a409061582e565b60c98581548110613dfe57613dfe615136565b90600052602060002090600c020160090154600103613e88576000613e4760c98781548110613e2f57613e2f615136565b90600052602060002090600c02016003015486613327565b9050613e5281611065565b6001600160a01b0316846001600160a01b031614613e825760405162461bcd60e51b8152600401610a409061582e565b50613f6a565b60c98581548110613e9b57613e9b615136565b90600052602060002090600c020160090154600303613f6a57600060c98681548110613ec957613ec9615136565b60009182526020909120600c9091020160020154604051627eeac760e11b81526001600160a01b038681166004830152602482018890529091169062fdd58e90604401602060405180830381865afa158015613f29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f4d91906151c5565b11613f6a5760405162461bcd60e51b8152600401610a409061582e565b6000613f768686613327565b9050613f8284826146d6565b604051859087907f8a9dcf4e150b1153011b29fec302d5be0c13e84fa8f56ab78587f778a32a90dd90600090a3505050505050565b613fc1338361415f565b613fdd5760405162461bcd60e51b8152600401610a40906156aa565b610d2884848484614818565b6060816000036140105750506040805180820190915260018152600360fc1b602082015290565b8160005b811561403a578061402481615271565b91506140339050600a83615178565b9150614014565b6000816001600160401b0381111561405457614054614db7565b6040519080825280601f01601f19166020018201604052801561407e576020820181803683370190505b5090505b84156140e9576140936001836151de565b91506140a0600a8661518c565b6140ab9060306151f1565b60f81b8183815181106140c0576140c0615136565b60200101906001600160f81b031916908160001a9053506140e2600a86615178565b9450614082565b949350505050565b600081815260696020526040902080546001600160a01b0319166001600160a01b038416908117909155819061412682611065565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b03166141d85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a40565b60006141e383611065565b9050806001600160a01b0316846001600160a01b0316148061422a57506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b806140e95750836001600160a01b0316614243846109cb565b6001600160a01b031614949350505050565b826001600160a01b031661426882611065565b6001600160a01b0316146142cc5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610a40565b6001600160a01b03821661432e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a40565b6143396000826140f1565b6001600160a01b03831660009081526068602052604081208054600192906143629084906151de565b90915550506001600160a01b03821660009081526068602052604081208054600192906143909084906151f1565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600054610100900460ff166144185760405162461bcd60e51b8152600401610a4090615749565b60656144248382615865565b506066610b298282615865565b600054610100900460ff166144585760405162461bcd60e51b8152600401610a4090615749565b61129233613760565b600054610100900460ff166144885760405162461bcd60e51b8152600401610a4090615749565b6daaeb6d7670e522a718067333cd4e3b15610db95760405163c3c5a54760e01b81523060048201526daaeb6d7670e522a718067333cd4e9063c3c5a547906024016020604051808303816000875af11580156144e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061450c91906150e4565b610db957801561458857604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b15801561456c57600080fd5b505af1158015614580573d6000803e3d6000fd5b505050505050565b6001600160a01b038216156145d75760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401614552565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401614552565b816001600160a01b0316836001600160a01b0316036146695760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a40565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b03821661472c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a40565b6000818152606760205260409020546001600160a01b0316156147915760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a40565b6001600160a01b03821660009081526068602052604081208054600192906147ba9084906151f1565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b614823848484614255565b61482f8484848461484b565b610d285760405162461bcd60e51b8152600401610a4090615924565b60006001600160a01b0384163b1561494157604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061488f903390899088908890600401615976565b6020604051808303816000875af19250505080156148ca575060408051601f3d908101601f191682019092526148c7918101906159b3565b60015b614927573d8080156148f8576040519150601f19603f3d011682016040523d82523d6000602084013e6148fd565b606091505b50805160000361491f5760405162461bcd60e51b8152600401610a4090615924565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506140e9565b506001949350505050565b828054828255906000526020600020908101928215614987579160200282015b8281111561498757823582559160200191906001019061496c565b50614993929150614997565b5090565b5b808211156149935760008155600101614998565b6001600160e01b03198116811461332457600080fd5b6000602082840312156149d457600080fd5b8135611012816149ac565b60005b838110156149fa5781810151838201526020016149e2565b50506000910152565b60008151808452614a1b8160208601602086016149df565b601f01601f19169290920160200192915050565b6020815260006110126020830184614a03565b600060208284031215614a5457600080fd5b5035919050565b6001600160a01b038116811461332457600080fd5b60008060408385031215614a8357600080fd5b8235614a8e81614a5b565b946020939093013593505050565b60008083601f840112614aae57600080fd5b5081356001600160401b03811115614ac557600080fd5b6020830191508360208260051b8501011115614ae057600080fd5b9250929050565b60008060208385031215614afa57600080fd5b82356001600160401b03811115614b1057600080fd5b614b1c85828601614a9c565b90969095509350505050565b60008060408385031215614b3b57600080fd5b50508035926020909101359150565b600060208284031215614b5c57600080fd5b813561101281614a5b565b600080600060608486031215614b7c57600080fd5b8335614b8781614a5b565b92506020840135614b9781614a5b565b929592945050506040919091013590565b60008060408385031215614bbb57600080fd5b8235614bc681614a5b565b91506020830135614bd681614a5b565b809150509250929050565b801515811461332457600080fd5b60008060408385031215614c0257600080fd5b8235614c0d81614a5b565b91506020830135614bd681614be1565b600081518084526020808501945080840160005b83811015614c4d57815187529582019590820190600101614c31565b509495945050505050565b604081526000614c6b6040830185614c1d565b8281036020840152614c7d8185614c1d565b95945050505050565b60008083601f840112614c9857600080fd5b5081356001600160401b03811115614caf57600080fd5b602083019150836020828501011115614ae057600080fd5b60008060008060008060008060008060a08b8d031215614ce657600080fd5b8a356001600160401b0380821115614cfd57600080fd5b614d098e838f01614a9c565b909c509a5060208d0135915080821115614d2257600080fd5b614d2e8e838f01614a9c565b909a50985060408d0135915080821115614d4757600080fd5b614d538e838f01614a9c565b909850965060608d0135915080821115614d6c57600080fd5b614d788e838f01614c86565b909650945060808d0135915080821115614d9157600080fd5b50614d9e8d828e01614c86565b915080935050809150509295989b9194979a5092959850565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215614de357600080fd5b8435614dee81614a5b565b93506020850135614dfe81614a5b565b92506040850135915060608501356001600160401b0380821115614e2157600080fd5b818701915087601f830112614e3557600080fd5b813581811115614e4757614e47614db7565b604051601f8201601f19908116603f01168101908382118183101715614e6f57614e6f614db7565b816040528281528a6020848701011115614e8857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060008060608789031215614ec557600080fd5b86356001600160401b0380821115614edc57600080fd5b614ee88a838b01614a9c565b90985096506020890135915080821115614f0157600080fd5b614f0d8a838b01614a9c565b90965094506040890135915080821115614f2657600080fd5b50614f3389828a01614a9c565b979a9699509497509295939492505050565b60008060008060008060808789031215614f5e57600080fd5b863595506020870135945060408701356001600160401b0380821115614f8357600080fd5b614f8f8a838b01614c86565b90965094506060890135915080821115614fa857600080fd5b50614f3389828a01614c86565b600080600060408486031215614fca57600080fd5b83356001600160401b0380821115614fe157600080fd5b908501906101a08288031215614ff657600080fd5b9093506020850135908082111561500c57600080fd5b5061501986828701614a9c565b9497909650939450505050565b600061016080835261503a8184018f614a03565b9050828103602084015261504e818e614a03565b6001600160a01b039c8d166040850152606084019b909b525050608081019790975260a087019590955260c086019390935260e08501919091526101008401529093166101208201529115156101409092019190915292915050565b600181811c908216806150be57607f821691505b6020821081036150de57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156150f657600080fd5b815161101281614be1565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000826151875761518761514c565b500490565b60008261519b5761519b61514c565b500690565b6020808252600b908201526a426164206c656e6774687360a81b604082015260600190565b6000602082840312156151d757600080fd5b5051919050565b8181038181111561093357610933615162565b8082018082111561093357610933615162565b8183823760009101908152919050565b60008161522357615223615162565b506000190190565b808202811582820484141761093357610933615162565b600083516152548184602088016149df565b8351908301906152688183602088016149df565b01949350505050565b60006001820161528357615283615162565b5060010190565b6000808335601e198436030181126152a157600080fd5b8301803591506001600160401b038211156152bb57600080fd5b6020019150600581901b3603821315614ae057600080fd5b60008235603e198336030181126152e957600080fd5b9190910192915050565b602080825260079082015266119c99595e995960ca1b604082015260600190565b6000808335601e1984360301811261532b57600080fd5b8301803591506001600160401b0382111561534557600080fd5b602001915036819003821315614ae057600080fd5b5b81811015610db9576000815560010161535b565b601f821115610b2957806000526020600020601f840160051c810160208510156153965750805b6118e0601f850160051c83018261535a565b6001600160401b038311156153bf576153bf614db7565b6153d3836153cd83546150aa565b8361536f565b6000601f84116001811461540757600085156153ef5750838201355b600019600387901b1c1916600186901b1783556118e0565b600083815260209020601f19861690835b828110156154385786850135825560209485019460019092019101615418565b50868210156154555760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000808335601e1984360301811261547e57600080fd5b8301803591506001600160401b0382111561549857600080fd5b6020019150600681901b3603821315614ae057600080fd5b6000602082840312156154c257600080fd5b813561101281614be1565b6000823561019e198336030181126152e957600080fd5b6000813561093381614a5b565b80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160401b0383111561552857615528614db7565b6801000000000000000083111561554157615541614db7565b8054838255808410156155675781600052602060002061556582820186830161535a565b505b50818160005260208060002060005b86811015611bbf5783358282015592820192600101615576565b6000813561093381614be1565b6155a78283615314565b6155b28183856153a8565b50506155c16020830183615314565b6155cf8183600186016153a8565b50506155e96155e0604084016154e4565b600283016154f1565b606082013560038201556080820135600482015560a0820135600582015560c0820135600682015561561e60e083018361528a565b61562c818360078601615511565b505061563c61010083018361528a565b61564a818360088601615511565b50506101208201356009820155610140820135600a820155600b810161567c61567661016085016154e4565b826154f1565b610b2961568c6101808501615590565b82805460ff60a01b191691151560a01b60ff60a01b16919091179055565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000815480845260208085019450836000528060002060005b83811015614c4d578154875295820195600191820191016157ad565b6001600160a01b03851681526080602082018190526000906157ed90830186615794565b82810360408401526157ff8186615794565b91505082606083015295945050505050565b60006020828403121561582357600080fd5b815161101281614a5b565b60208082526018908201527f596f7520646f206e6f74206f776e2074686520746f6b656e0000000000000000604082015260600190565b81516001600160401b0381111561587e5761587e614db7565b6158928161588c84546150aa565b8461536f565b602080601f8311600181146158c757600084156158af5750858301515b600019600386901b1c1916600185901b178555614580565b600085815260208120601f198616915b828110156158f6578886015182559484019460019091019084016158d7565b50858210156159145787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906159a990830184614a03565b9695505050505050565b6000602082840312156159c557600080fd5b8151611012816149ac56fea2646970667358221220b780261e7a4d52834845dac9266e24b972467cdd8ff1143d9700431cc9bf9cc764736f6c63430008110033
Deployed Bytecode
0x60806040526004361061027d5760003560e01c8063715018a61161014f578063c87b56dd116100c1578063ead0b25f1161007a578063ead0b25f14610800578063ee893c7414610820578063f2fde38b14610840578063f572dd2814610860578063fdbda0ec14610880578063fddd5cfd146108b757600080fd5b8063c87b56dd14610724578063cf89e0e214610744578063d1f7f1be14610764578063e44547af14610784578063e6dff93e146107a4578063e985e9c5146107b757600080fd5b8063a22cb46511610113578063a22cb46514610657578063a30ead2814610677578063a60ef5101461068a578063a9ff83e0146106b7578063b7ced535146106d7578063b88d4fde1461070457600080fd5b8063715018a6146105cc5780638da5cb5b146105e157806395c026e6146105ff57806395d89b41146106155780639c7d4b911461062a57600080fd5b80631fa96d59116101f35780634b0bddd2116101ac5780634b0bddd2146104fe5780635c319c1a1461051e5780635f6966591461053e5780636352211e1461055e5780636a6dcb1d1461057e57806370a08231146105ac57600080fd5b80631fa96d591461043457806323b872dd1461045457806330315e05146104745780633ccfd60b146104a957806342842e0e146104be578063485cc955146104de57600080fd5b80630f0de750116102455780630f0de75014610353578063155931d61461037a57806315ce049f146103a757806316516310146103c75780631c10106f146103e75780631d3ce2c9146103fc57600080fd5b806301ffc9a71461028257806305e3ba39146102b757806306fdde03146102ef578063081812fc14610311578063095ea7b314610331575b600080fd5b34801561028e57600080fd5b506102a261029d3660046149c2565b6108e7565b60405190151581526020015b60405180910390f35b3480156102c357600080fd5b5060cb546102d7906001600160a01b031681565b6040516001600160a01b0390911681526020016102ae565b3480156102fb57600080fd5b50610304610939565b6040516102ae9190614a2f565b34801561031d57600080fd5b506102d761032c366004614a42565b6109cb565b34801561033d57600080fd5b5061035161034c366004614a70565b610a65565b005b34801561035f57600080fd5b5061036c6402540be40081565b6040519081526020016102ae565b34801561038657600080fd5b5061036c610395366004614a42565b60d46020526000908152604090205481565b3480156103b357600080fd5b5060ca546102d7906001600160a01b031681565b3480156103d357600080fd5b506103516103e2366004614ae7565b610b2e565b3480156103f357600080fd5b5060c95461036c565b34801561040857600080fd5b5061036c610417366004614b28565b60d360209081526000928352604080842090915290825290205481565b34801561044057600080fd5b5061035161044f366004614b4a565b610c09565b34801561046057600080fd5b5061035161046f366004614b67565b610c55565b34801561048057600080fd5b5061049461048f366004614a42565b610d2e565b604080519283526020830191909152016102ae565b3480156104b557600080fd5b50610351610d60565b3480156104ca57600080fd5b506103516104d9366004614b67565b610dbd565b3480156104ea57600080fd5b506103516104f9366004614ba8565b610e8b565b34801561050a57600080fd5b50610351610519366004614bef565b610f85565b34801561052a57600080fd5b506102d7610539366004614b28565b611003565b34801561054a57600080fd5b50610351610559366004614b4a565b611019565b34801561056a57600080fd5b506102d7610579366004614a42565b611065565b34801561058a57600080fd5b5061059e610599366004614a42565b6110dc565b6040516102ae929190614c58565b3480156105b857600080fd5b5061036c6105c7366004614b4a565b6111d7565b3480156105d857600080fd5b5061035161125e565b3480156105ed57600080fd5b506097546001600160a01b03166102d7565b34801561060b57600080fd5b5061036c60d05481565b34801561062157600080fd5b50610304611294565b34801561063657600080fd5b5061036c610645366004614a42565b60d16020526000908152604090205481565b34801561066357600080fd5b50610351610672366004614bef565b6112a3565b610351610685366004614cc7565b611367565b34801561069657600080fd5b5061036c6106a5366004614a42565b60d56020526000908152604090205481565b3480156106c357600080fd5b506102a26106d2366004614b28565b6117df565b3480156106e357600080fd5b5061036c6106f2366004614a42565b60d26020526000908152604090205481565b34801561071057600080fd5b5061035161071f366004614dcd565b61180b565b34801561073057600080fd5b5061030461073f366004614a42565b6118e7565b34801561075057600080fd5b5061035161075f366004614eac565b611a5d565b34801561077057600080fd5b5061035161077f366004614eac565b611bc8565b34801561079057600080fd5b5061035161079f366004614eac565b611d2a565b6103516107b2366004614f45565b611e1c565b3480156107c357600080fd5b506102a26107d2366004614ba8565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561080c57600080fd5b5061035161081b366004614eac565b612094565b34801561082c57600080fd5b5061035161083b366004614fb5565b6121cf565b34801561084c57600080fd5b5061035161085b366004614b4a565b61328c565b34801561086c57600080fd5b5061036c61087b366004614b28565b613327565b34801561088c57600080fd5b506108a061089b366004614a42565b613343565b6040516102ae9b9a99989796959493929190615026565b3480156108c357600080fd5b506102a26108d2366004614a42565b60cc6020526000908152604090205460ff1681565b60006001600160e01b031982166380ac58cd60e01b148061091857506001600160e01b03198216635b5e139f60e01b145b8061093357506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060658054610948906150aa565b80601f0160208091040260200160405190810160405280929190818152602001828054610974906150aa565b80156109c15780601f10610996576101008083540402835291602001916109c1565b820191906000526020600020905b8154815290600101906020018083116109a457829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b0316610a495760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b15610b1f57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ad3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af791906150e4565b610b1f57604051633b79c77360e21b81526001600160a01b0382166004820152602401610a40565b610b2983836134d6565b505050565b6097546001600160a01b03163314610b585760405162461bcd60e51b8152600401610a4090615101565b60005b81811015610b295760c954838383818110610b7857610b78615136565b9050602002013510610bc15760405162461bcd60e51b815260206004820152601260248201527124b73b30b634b21031b7b63632b1ba34b7b760711b6044820152606401610a40565b600160cc6000858585818110610bd957610bd9615136565b60209081029290920135835250810191909152604001600020805460ff1916911515919091179055600101610b5b565b6097546001600160a01b03163314610c335760405162461bcd60e51b8152600401610a4090615101565b60ca80546001600160a01b0319166001600160a01b0392909216919091179055565b826daaeb6d7670e522a718067333cd4e3b15610d1d57336001600160a01b03821603610c8b57610c868484846135e6565b610d28565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610cda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfe91906150e4565b610d1d57604051633b79c77360e21b8152336004820152602401610a40565b610d288484846135e6565b50505050565b60008080610d416402540be40085615178565b90506000610d546402540be4008661518c565b91959194509092505050565b6097546001600160a01b03163314610d8a5760405162461bcd60e51b8152600401610a4090615101565b6040514790339082156108fc029083906000818181858888f19350505050158015610db9573d6000803e3d6000fd5b5050565b826daaeb6d7670e522a718067333cd4e3b15610e8057336001600160a01b03821603610dee57610c86848484613617565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610e3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6191906150e4565b610e8057604051633b79c77360e21b8152336004820152602401610a40565b610d28848484613617565b6000610e976001613632565b90508015610eaf576000805461ff0019166101001790555b610ef6604051806040016040528060098152602001684b696b6f4d696e747360b81b815250604051806040016040528060048152602001634b494b4f60e01b8152506136ba565b610efe6136eb565b610f0661371a565b60ce80546001600160a01b038086166001600160a01b03199283161790925560cf805492851692909116919091179055606460d0558015610b29576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a1505050565b6097546001600160a01b03163314610faf5760405162461bcd60e51b8152600401610a4090615101565b6001600160a01b038216600081815260cd6020526040808220805460ff191685151590811790915590519092917f55a5194bc0174fcaf12b2978bef43911466bf63b34db8d1dd1a0d5dcd5c41bea91a35050565b60006110126105798484613327565b9392505050565b6097546001600160a01b031633146110435760405162461bcd60e51b8152600401610a4090615101565b60cb80546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152606760205260408120546001600160a01b0316806109335760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a40565b606080600060c984815481106110f4576110f4615136565b90600052602060002090600c020160070180548060200260200160405190810160405280929190818152602001828054801561114f57602002820191906000526020600020905b81548152602001906001019080831161113b575b50505050509050600060c9858154811061116b5761116b615136565b90600052602060002090600c02016008018054806020026020016040519081016040528092919081815260200182805480156111c657602002820191906000526020600020905b8154815260200190600101908083116111b2575b509599939850929650505050505050565b60006001600160a01b0382166112425760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a40565b506001600160a01b031660009081526068602052604090205490565b6097546001600160a01b031633146112885760405162461bcd60e51b8152600401610a4090615101565b6112926000613760565b565b606060668054610948906150aa565b816daaeb6d7670e522a718067333cd4e3b1561135d57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611311573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133591906150e4565b61135d57604051633b79c77360e21b81526001600160a01b0382166004820152602401610a40565b610b2983836137b2565b8887146113865760405162461bcd60e51b8152600401610a40906151a0565b60cb546040516370a0823160e01b815233600482015260009182916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156113d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f791906151c5565b11156115095760005b8a81101561150357600060d360008e8e8581811061142057611420615136565b90506020020135815260200190815260200160002060008c8c8581811061144957611449615136565b90506020020135815260200190815260200160002054905060c98d8d8481811061147557611475615136565b905060200201358154811061148c5761148c615136565b90600052602060002090600c0201600501548110156114fa578060c98e8e858181106114ba576114ba615136565b90506020020135815481106114d1576114d1615136565b90600052602060002090600c0201600501546114ed91906151de565b6114f790846151f1565b92505b50600101611400565b50611611565b60005b8a81101561160f57600060d360008e8e8581811061152c5761152c615136565b90506020020135815260200190815260200160002060008c8c8581811061155557611555615136565b90506020020135815260200190815260200160002054905060c98d8d8481811061158157611581615136565b905060200201358154811061159857611598615136565b90600052602060002090600c020160040154811015611606578060c98e8e858181106115c6576115c6615136565b90506020020135815481106115dd576115dd615136565b90600052602060002090600c0201600401546115f991906151de565b61160390846151f1565b92505b5060010161150c565b505b83156116a5576000858560405160200161162c929190615204565b60408051601f198184030181529181528151602092830120600081815260d29093529082208054919350909161166183615214565b909155505060d05461167490606461522b565b600082815260d1602052604090205461168d908461522b565b6116979190615178565b6116a190836151de565b9150505b811561172957600083836040516020016116c0929190615204565b60408051601f198184030181529181528151602092830120600081815260d5909352908220805491935090916116f583615214565b9091555050600081815260d460205260409020548281106117195760009250611726565b61172381846151de565b92505b50505b3481146117685760405162461bcd60e51b815260206004820152600d60248201526c57726f6e67204554482073756d60981b6044820152606401610a40565b60005b8a8110156117d1576117c98c8c8381811061178857611788615136565b905060200201358b8b848181106117a1576117a1615136565b905060200201353360008c8c878181106117bd576117bd615136565b905060200201356137bd565b60010161176b565b505050505050505050505050565b60006110126117ee8484613327565b6000908152606760205260409020546001600160a01b0316151590565b836daaeb6d7670e522a718067333cd4e3b156118d457336001600160a01b038216036118425761183d85858585613fb7565b6118e0565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611891573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b591906150e4565b6118d457604051633b79c77360e21b8152336004820152602401610a40565b6118e085858585613fb7565b5050505050565b6000818152606760205260409020546060906001600160a01b03166119685760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610a40565b60008061197484610d2e565b91509150600060c9838154811061198d5761198d615136565b90600052602060002090600c020160010180546119a9906150aa565b80601f01602080910402602001604051908101604052809291908181526020018280546119d5906150aa565b8015611a225780601f106119f757610100808354040283529160200191611a22565b820191906000526020600020905b815481529060010190602001808311611a0557829003601f168201915b5050505050905080611a3383613fe9565b604051602001611a44929190615242565b6040516020818303038152906040529350505050919050565b6097546001600160a01b03163314611a875760405162461bcd60e51b8152600401610a4090615101565b60005b85811015611bbf57828282818110611aa457611aa4615136565b9050602002013560d16000898985818110611ac157611ac1615136565b90506020020135815260200190815260200160002081905550848482818110611aec57611aec615136565b9050602002013560d26000898985818110611b0957611b09615136565b90506020020135815260200190815260200160002081905550868682818110611b3457611b34615136565b905060200201357f4083e36ebbb9a7801b3fdc46a3acd6b05665009a85ec99456b6aa2f0f27a9e2a848484818110611b6e57611b6e615136565b90506020020135878785818110611b8757611b87615136565b90506020020135604051611ba5929190918252602082015260400190565b60405180910390a280611bb781615271565b915050611a8a565b50505050505050565b6097546001600160a01b03163314611bf25760405162461bcd60e51b8152600401610a4090615101565b60005b85811015611bbf57828282818110611c0f57611c0f615136565b9050602002013560d46000898985818110611c2c57611c2c615136565b90506020020135815260200190815260200160002081905550848482818110611c5757611c57615136565b9050602002013560d56000898985818110611c7457611c74615136565b90506020020135815260200190815260200160002081905550868682818110611c9f57611c9f615136565b905060200201357f8c91bf9d0b564abc15d569181bb3538ca806629833e5e349915a4e3e81e81480848484818110611cd957611cd9615136565b90506020020135878785818110611cf257611cf2615136565b90506020020135604051611d10929190918252602082015260400190565b60405180910390a280611d2281615271565b915050611bf5565b33600090815260cd602052604090205460ff16611d7a5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610a40565b8483148015611d8857508281145b611da45760405162461bcd60e51b8152600401610a40906151a0565b60005b83811015611bbf57611e14878783818110611dc457611dc4615136565b90506020020135868684818110611ddd57611ddd615136565b90506020020135858585818110611df657611df6615136565b9050602002016020810190611e0b9190614b4a565b600160006137bd565b600101611da7565b60cb546040516370a0823160e01b815233600482015260009182916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611e69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e8d91906151c5565b1115611ebf5760c98781548110611ea657611ea6615136565b90600052602060002090600c0201600501549050611ee7565b60c98781548110611ed257611ed2615136565b90600052602060002090600c02016004015490505b600087815260d36020908152604080832089845290915290205481811115611f125760009150611f1f565b611f1c81836151de565b91505b8415611fb35760008686604051602001611f3a929190615204565b60408051601f198184030181529181528151602092830120600081815260d290935290822080549193509091611f6f83615214565b909155505060d054611f8290606461522b565b600082815260d16020526040902054611f9b908561522b565b611fa59190615178565b611faf90846151de565b9250505b82156120375760008484604051602001611fce929190615204565b60408051601f198184030181529181528151602092830120600081815260d59093529082208054919350909161200383615214565b9091555050600081815260d460205260409020548381106120275760009350612034565b61203181856151de565b93505b50505b81341461207c5760405162461bcd60e51b81526020600482015260136024820152720aee4dedcce40c2dadeeadce840decc408aa89606b1b6044820152606401610a40565b61208a8888336000806137bd565b5050505050505050565b6097546001600160a01b031633146120be5760405162461bcd60e51b8152600401610a4090615101565b60005b85811015611bbf578282828181106120db576120db615136565b9050602002013560d360008989858181106120f8576120f8615136565b905060200201358152602001908152602001600020600087878581811061212157612121615136565b9050602002013581526020019081526020016000208190555084848281811061214c5761214c615136565b9050602002013587878381811061216557612165615136565b905060200201357fca626da83d16d77b074979136f88b112b1d6500728ba7c691a528df13d1e134085858581811061219f5761219f615136565b905060200201356040516121b591815260200190565b60405180910390a3806121c781615271565b9150506120c1565b6097546001600160a01b031633146121f95760405162461bcd60e51b8152600401610a4090615101565b60005b612206848061528a565b90508110156123145760cc600061221d868061528a565b8481811061222d5761222d615136565b905060200281019061223f91906152d3565b35815260208101919091526040016000205460ff16156122715760405162461bcd60e51b8152600401610a40906152f3565b61227b848061528a565b8281811061228b5761228b615136565b905060200281019061229d91906152d3565b6122ab906020810190615314565b60c96122b7878061528a565b858181106122c7576122c7615136565b90506020028101906122d991906152d3565b60000135815481106122ed576122ed615136565b90600052602060002090600c0201600001918261230b9291906153a8565b506001016121fc565b5060005b612325602085018561528a565b905081101561243c5760cc600061233f602087018761528a565b8481811061234f5761234f615136565b905060200281019061236191906152d3565b35815260208101919091526040016000205460ff16156123935760405162461bcd60e51b8152600401610a40906152f3565b6123a0602085018561528a565b828181106123b0576123b0615136565b90506020028101906123c291906152d3565b6123d0906020810190615314565b60c96123df602088018861528a565b858181106123ef576123ef615136565b905060200281019061240191906152d3565b600001358154811061241557612415615136565b90600052602060002090600c020160010191826124339291906153a8565b50600101612318565b5060005b61244d6040850185615467565b90508110156125585760cc60006124676040870187615467565b8481811061247757612477615136565b604090810292909201358352506020820192909252016000205460ff16156124b15760405162461bcd60e51b8152600401610a40906152f3565b6124be6040850185615467565b828181106124ce576124ce615136565b90506040020160200160208101906124e69190614b4a565b60c96124f56040870187615467565b8481811061250557612505615136565b905060400201600001358154811061251f5761251f615136565b60009182526020909120600c9091020160020180546001600160a01b0319166001600160a01b0392909216919091179055600101612440565b5060005b6125696060850185615467565b905081101561264c5760cc60006125836060870187615467565b8481811061259357612593615136565b604090810292909201358352506020820192909252016000205460ff16156125cd5760405162461bcd60e51b8152600401610a40906152f3565b6125da6060850185615467565b828181106125ea576125ea615136565b9050604002016020013560c98580606001906126069190615467565b8481811061261657612616615136565b905060400201600001358154811061263057612630615136565b600091825260209091206003600c90920201015560010161255c565b5060005b61265d6080850185615467565b90508110156127405760cc60006126776080870187615467565b8481811061268757612687615136565b604090810292909201358352506020820192909252016000205460ff16156126c15760405162461bcd60e51b8152600401610a40906152f3565b6126ce6080850185615467565b828181106126de576126de615136565b9050604002016020013560c98580608001906126fa9190615467565b8481811061270a5761270a615136565b905060400201600001358154811061272457612724615136565b600091825260209091206004600c909202010155600101612650565b5060005b61275160a0850185615467565b90508110156128345760cc600061276b60a0870187615467565b8481811061277b5761277b615136565b604090810292909201358352506020820192909252016000205460ff16156127b55760405162461bcd60e51b8152600401610a40906152f3565b6127c260a0850185615467565b828181106127d2576127d2615136565b9050604002016020013560c9858060a001906127ee9190615467565b848181106127fe576127fe615136565b905060400201600001358154811061281857612818615136565b600091825260209091206005600c909202010155600101612744565b5060005b61284560c0850185615467565b90508110156129285760cc600061285f60c0870187615467565b8481811061286f5761286f615136565b604090810292909201358352506020820192909252016000205460ff16156128a95760405162461bcd60e51b8152600401610a40906152f3565b6128b660c0850185615467565b828181106128c6576128c6615136565b9050604002016020013560c9858060c001906128e29190615467565b848181106128f2576128f2615136565b905060400201600001358154811061290c5761290c615136565b600091825260209091206006600c909202010155600101612838565b5060005b61293960e085018561528a565b9050811015612a505760cc600061295360e087018761528a565b8481811061296357612963615136565b905060200281019061297591906152d3565b35815260208101919091526040016000205460ff16156129a75760405162461bcd60e51b8152600401610a40906152f3565b6129b460e085018561528a565b828181106129c4576129c4615136565b90506020028101906129d691906152d3565b6129e490602081019061528a565b60c96129f360e088018861528a565b85818110612a0357612a03615136565b9050602002810190612a1591906152d3565b6000013581548110612a2957612a29615136565b90600052602060002090600c02016007019190612a4792919061494c565b5060010161292c565b5060005b612a6261010085018561528a565b9050811015612c4e5760cc6000612a7d61010087018761528a565b84818110612a8d57612a8d615136565b9050602002810190612a9f91906152d3565b35815260208101919091526040016000205460ff1615612ad15760405162461bcd60e51b8152600401610a40906152f3565b612adf61010085018561528a565b82818110612aef57612aef615136565b9050602002810190612b0191906152d3565b612b0f90602081019061528a565b60c9612b1f61010088018861528a565b85818110612b2f57612b2f615136565b9050602002810190612b4191906152d3565b6000013581548110612b5557612b55615136565b90600052602060002090600c02016008019190612b7392919061494c565b5060c9612b8461010086018661528a565b83818110612b9457612b94615136565b9050602002810190612ba691906152d3565b6000013581548110612bba57612bba615136565b600091825260209091206007600c90920201015460c9612bde61010087018761528a565b84818110612bee57612bee615136565b9050602002810190612c0091906152d3565b6000013581548110612c1457612c14615136565b90600052602060002090600c02016008018054905014612c465760405162461bcd60e51b8152600401610a40906151a0565b600101612a54565b5060005b612c60610160850185615467565b9050811015612d465760cc6000612c7b610160870187615467565b84818110612c8b57612c8b615136565b604090810292909201358352506020820192909252016000205460ff1615612cc55760405162461bcd60e51b8152600401610a40906152f3565b612cd3610160850185615467565b82818110612ce357612ce3615136565b9050604002016020013560c985806101600190612d009190615467565b84818110612d1057612d10615136565b9050604002016000013581548110612d2a57612d2a615136565b600091825260209091206009600c909202010155600101612c52565b5060005b612d58610120850185615467565b9050811015612e3e5760cc6000612d73610120870187615467565b84818110612d8357612d83615136565b604090810292909201358352506020820192909252016000205460ff1615612dbd5760405162461bcd60e51b8152600401610a40906152f3565b612dcb610120850185615467565b82818110612ddb57612ddb615136565b9050604002016020013560c985806101200190612df89190615467565b84818110612e0857612e08615136565b9050604002016000013581548110612e2257612e22615136565b60009182526020909120600a600c909202010155600101612d4a565b5060005b612e50610140850185615467565b9050811015612f5e5760cc6000612e6b610140870187615467565b84818110612e7b57612e7b615136565b604090810292909201358352506020820192909252016000205460ff1615612eb55760405162461bcd60e51b8152600401610a40906152f3565b612ec3610140850185615467565b82818110612ed357612ed3615136565b9050604002016020016020810190612eeb9190614b4a565b60c9612efb610140870187615467565b84818110612f0b57612f0b615136565b9050604002016000013581548110612f2557612f25615136565b60009182526020909120600c90910201600b0180546001600160a01b0319166001600160a01b0392909216919091179055600101612e42565b5060005b612f70610180850185615467565b905081101561314157612f87610180850185615467565b82818110612f9757612f97615136565b9050604002016020016020810190612faf91906154b0565b1580612ff7575060cc6000612fc8610180870187615467565b84818110612fd857612fd8615136565b604090810292909201358352506020820192909252016000205460ff16155b6130135760405162461bcd60e51b8152600401610a40906152f3565b613021610180850185615467565b8281811061303157613031615136565b905060400201602001602081019061304991906154b0565b60c9613059610180870187615467565b8481811061306957613069615136565b905060400201600001358154811061308357613083615136565b60009182526020909120600b600c90920201018054911515600160a01b0260ff60a01b199092169190911790556130be610180850185615467565b828181106130ce576130ce615136565b90506040020160200160208101906130e691906154b0565b15156130f6610180860186615467565b8381811061310657613106615136565b6040805191029290920135917f155e17d37104c3888ff7704a469567abd956b3984bcc806f7310abcd2f22f7ae9150600090a3600101612f62565b5060005b81811015610d285782828281811061315f5761315f615136565b905060200281019061317191906154cd565b6131809061010081019061528a565b905083838381811061319457613194615136565b90506020028101906131a691906154cd565b6131b49060e081019061528a565b9050146131d35760405162461bcd60e51b8152600401610a40906151a0565b8282828181106131e5576131e5615136565b90506020028101906131f791906154cd565b61320a906101a0810190610180016154b0565b60c954604051911515917f155e17d37104c3888ff7704a469567abd956b3984bcc806f7310abcd2f22f7ae90600090a360c983838381811061324e5761324e615136565b905060200281019061326091906154cd565b8154600181018355600092835260209092209091600c0201613282828261559d565b5050600101613145565b6097546001600160a01b031633146132b65760405162461bcd60e51b8152600401610a4090615101565b6001600160a01b03811661331b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a40565b61332481613760565b50565b6000816133396402540be4008561522b565b61101291906151f1565b60c9818154811061335357600080fd5b90600052602060002090600c0201600091509050806000018054613376906150aa565b80601f01602080910402602001604051908101604052809291908181526020018280546133a2906150aa565b80156133ef5780601f106133c4576101008083540402835291602001916133ef565b820191906000526020600020905b8154815290600101906020018083116133d257829003601f168201915b505050505090806001018054613404906150aa565b80601f0160208091040260200160405190810160405280929190818152602001828054613430906150aa565b801561347d5780601f106134525761010080835404028352916020019161347d565b820191906000526020600020905b81548152906001019060200180831161346057829003601f168201915b505050600284015460038501546004860154600587015460068801546009890154600a8a0154600b909a015498996001600160a01b0396871699959850939650919490939192919081169060ff600160a01b909104168b565b60006134e182611065565b9050806001600160a01b0316836001600160a01b03160361354e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a40565b336001600160a01b038216148061356a575061356a81336107d2565b6135dc5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a40565b610b2983836140f1565b6135f0338261415f565b61360c5760405162461bcd60e51b8152600401610a40906156aa565b610b29838383614255565b610b298383836040518060200160405280600081525061180b565b60008054610100900460ff1615613679578160ff1660011480156136555750303b155b6136715760405162461bcd60e51b8152600401610a40906156fb565b506000919050565b60005460ff8084169116106136a05760405162461bcd60e51b8152600401610a40906156fb565b506000805460ff191660ff92909216919091179055600190565b600054610100900460ff166136e15760405162461bcd60e51b8152600401610a4090615749565b610db982826143f1565b600054610100900460ff166137125760405162461bcd60e51b8152600401610a4090615749565b611292614431565b600054610100900460ff166137415760405162461bcd60e51b8152600401610a4090615749565b611292733cc6cdda760b79bafa08df41ecfa224f810dceb66001614461565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610db9338383614608565b60c95485106138025760405162461bcd60e51b81526020600482015260116024820152701098590818dbdb1b1958dd1a5bdb881251607a1b6044820152606401610a40565b81613f6a5760c9858154811061381a5761381a615136565b90600052602060002090600c0201600b0160149054906101000a900460ff166138755760405162461bcd60e51b815260206004820152600d60248201526c4e6f7420617661696c61626c6560981b6044820152606401610a40565b600060c9868154811061388a5761388a615136565b90600052602060002090600c02016006015411156139095760c985815481106138b5576138b5615136565b90600052602060002090600c02016006015484106139095760405162461bcd60e51b81526020600482015260116024820152700a8ded6cadc40d2c840e8dede40d0d2ced607b1b6044820152606401610a40565b600060c9868154811061391e5761391e615136565b90600052602060002090600c02016007018054905011156139ed5760ca5460c980546001600160a01b039092169163e029711d9186918990811061396457613964615136565b90600052602060002090600c020160070160c9898154811061398857613988615136565b90600052602060002090600c020160080160016040518563ffffffff1660e01b81526004016139ba94939291906157c9565b600060405180830381600087803b1580156139d457600080fd5b505af11580156139e8573d6000803e3d6000fd5b505050505b600060c98681548110613a0257613a02615136565b90600052602060002090600c0201600a01541115613b035760c98581548110613a2d57613a2d615136565b60009182526020909120600b600c9092020101546001600160a01b03166323b872dd84613a626097546001600160a01b031690565b60c98981548110613a7557613a75615136565b60009182526020909120600a600c9092020101546040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015613add573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b0191906150e4565b505b60c98581548110613b1657613b16615136565b90600052602060002090600c020160090154600003613deb5780600003613bfe5760c98581548110613b4a57613b4a615136565b60009182526020909120600c90910201600201546040516331a9108f60e11b8152600481018690526001600160a01b0390911690636352211e906024015b602060405180830381865afa158015613ba5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bc99190615811565b6001600160a01b0316836001600160a01b031614613bf95760405162461bcd60e51b8152600401610a409061582e565b613f6a565b80600103613c775760ce5460c980546001600160a01b0390921691631f29d2dc919088908110613c3057613c30615136565b60009182526020909120600c909102016002015460405160e083901b6001600160e01b03191681526001600160a01b03909116600482015260248101879052604401613b88565b80600203613bf95760cf5460c980546001600160a01b039092169163aba69cf891869189908110613caa57613caa615136565b60009182526020909120600c90910201600201546040516331a9108f60e11b8152600481018990526001600160a01b0390911690636352211e90602401602060405180830381865afa158015613d04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d289190615811565b60c98981548110613d3b57613d3b615136565b60009182526020909120600c909102016002015460405160e085901b6001600160e01b03191681526001600160a01b039384166004820152918316602483015291909116604482015260648101879052608401602060405180830381865afa158015613dab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dcf91906150e4565b613bf95760405162461bcd60e51b8152600401610a409061582e565b60c98581548110613dfe57613dfe615136565b90600052602060002090600c020160090154600103613e88576000613e4760c98781548110613e2f57613e2f615136565b90600052602060002090600c02016003015486613327565b9050613e5281611065565b6001600160a01b0316846001600160a01b031614613e825760405162461bcd60e51b8152600401610a409061582e565b50613f6a565b60c98581548110613e9b57613e9b615136565b90600052602060002090600c020160090154600303613f6a57600060c98681548110613ec957613ec9615136565b60009182526020909120600c9091020160020154604051627eeac760e11b81526001600160a01b038681166004830152602482018890529091169062fdd58e90604401602060405180830381865afa158015613f29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f4d91906151c5565b11613f6a5760405162461bcd60e51b8152600401610a409061582e565b6000613f768686613327565b9050613f8284826146d6565b604051859087907f8a9dcf4e150b1153011b29fec302d5be0c13e84fa8f56ab78587f778a32a90dd90600090a3505050505050565b613fc1338361415f565b613fdd5760405162461bcd60e51b8152600401610a40906156aa565b610d2884848484614818565b6060816000036140105750506040805180820190915260018152600360fc1b602082015290565b8160005b811561403a578061402481615271565b91506140339050600a83615178565b9150614014565b6000816001600160401b0381111561405457614054614db7565b6040519080825280601f01601f19166020018201604052801561407e576020820181803683370190505b5090505b84156140e9576140936001836151de565b91506140a0600a8661518c565b6140ab9060306151f1565b60f81b8183815181106140c0576140c0615136565b60200101906001600160f81b031916908160001a9053506140e2600a86615178565b9450614082565b949350505050565b600081815260696020526040902080546001600160a01b0319166001600160a01b038416908117909155819061412682611065565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b03166141d85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a40565b60006141e383611065565b9050806001600160a01b0316846001600160a01b0316148061422a57506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b806140e95750836001600160a01b0316614243846109cb565b6001600160a01b031614949350505050565b826001600160a01b031661426882611065565b6001600160a01b0316146142cc5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610a40565b6001600160a01b03821661432e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a40565b6143396000826140f1565b6001600160a01b03831660009081526068602052604081208054600192906143629084906151de565b90915550506001600160a01b03821660009081526068602052604081208054600192906143909084906151f1565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600054610100900460ff166144185760405162461bcd60e51b8152600401610a4090615749565b60656144248382615865565b506066610b298282615865565b600054610100900460ff166144585760405162461bcd60e51b8152600401610a4090615749565b61129233613760565b600054610100900460ff166144885760405162461bcd60e51b8152600401610a4090615749565b6daaeb6d7670e522a718067333cd4e3b15610db95760405163c3c5a54760e01b81523060048201526daaeb6d7670e522a718067333cd4e9063c3c5a547906024016020604051808303816000875af11580156144e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061450c91906150e4565b610db957801561458857604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b15801561456c57600080fd5b505af1158015614580573d6000803e3d6000fd5b505050505050565b6001600160a01b038216156145d75760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401614552565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401614552565b816001600160a01b0316836001600160a01b0316036146695760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a40565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b03821661472c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a40565b6000818152606760205260409020546001600160a01b0316156147915760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a40565b6001600160a01b03821660009081526068602052604081208054600192906147ba9084906151f1565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b614823848484614255565b61482f8484848461484b565b610d285760405162461bcd60e51b8152600401610a4090615924565b60006001600160a01b0384163b1561494157604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061488f903390899088908890600401615976565b6020604051808303816000875af19250505080156148ca575060408051601f3d908101601f191682019092526148c7918101906159b3565b60015b614927573d8080156148f8576040519150601f19603f3d011682016040523d82523d6000602084013e6148fd565b606091505b50805160000361491f5760405162461bcd60e51b8152600401610a4090615924565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506140e9565b506001949350505050565b828054828255906000526020600020908101928215614987579160200282015b8281111561498757823582559160200191906001019061496c565b50614993929150614997565b5090565b5b808211156149935760008155600101614998565b6001600160e01b03198116811461332457600080fd5b6000602082840312156149d457600080fd5b8135611012816149ac565b60005b838110156149fa5781810151838201526020016149e2565b50506000910152565b60008151808452614a1b8160208601602086016149df565b601f01601f19169290920160200192915050565b6020815260006110126020830184614a03565b600060208284031215614a5457600080fd5b5035919050565b6001600160a01b038116811461332457600080fd5b60008060408385031215614a8357600080fd5b8235614a8e81614a5b565b946020939093013593505050565b60008083601f840112614aae57600080fd5b5081356001600160401b03811115614ac557600080fd5b6020830191508360208260051b8501011115614ae057600080fd5b9250929050565b60008060208385031215614afa57600080fd5b82356001600160401b03811115614b1057600080fd5b614b1c85828601614a9c565b90969095509350505050565b60008060408385031215614b3b57600080fd5b50508035926020909101359150565b600060208284031215614b5c57600080fd5b813561101281614a5b565b600080600060608486031215614b7c57600080fd5b8335614b8781614a5b565b92506020840135614b9781614a5b565b929592945050506040919091013590565b60008060408385031215614bbb57600080fd5b8235614bc681614a5b565b91506020830135614bd681614a5b565b809150509250929050565b801515811461332457600080fd5b60008060408385031215614c0257600080fd5b8235614c0d81614a5b565b91506020830135614bd681614be1565b600081518084526020808501945080840160005b83811015614c4d57815187529582019590820190600101614c31565b509495945050505050565b604081526000614c6b6040830185614c1d565b8281036020840152614c7d8185614c1d565b95945050505050565b60008083601f840112614c9857600080fd5b5081356001600160401b03811115614caf57600080fd5b602083019150836020828501011115614ae057600080fd5b60008060008060008060008060008060a08b8d031215614ce657600080fd5b8a356001600160401b0380821115614cfd57600080fd5b614d098e838f01614a9c565b909c509a5060208d0135915080821115614d2257600080fd5b614d2e8e838f01614a9c565b909a50985060408d0135915080821115614d4757600080fd5b614d538e838f01614a9c565b909850965060608d0135915080821115614d6c57600080fd5b614d788e838f01614c86565b909650945060808d0135915080821115614d9157600080fd5b50614d9e8d828e01614c86565b915080935050809150509295989b9194979a5092959850565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215614de357600080fd5b8435614dee81614a5b565b93506020850135614dfe81614a5b565b92506040850135915060608501356001600160401b0380821115614e2157600080fd5b818701915087601f830112614e3557600080fd5b813581811115614e4757614e47614db7565b604051601f8201601f19908116603f01168101908382118183101715614e6f57614e6f614db7565b816040528281528a6020848701011115614e8857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060008060608789031215614ec557600080fd5b86356001600160401b0380821115614edc57600080fd5b614ee88a838b01614a9c565b90985096506020890135915080821115614f0157600080fd5b614f0d8a838b01614a9c565b90965094506040890135915080821115614f2657600080fd5b50614f3389828a01614a9c565b979a9699509497509295939492505050565b60008060008060008060808789031215614f5e57600080fd5b863595506020870135945060408701356001600160401b0380821115614f8357600080fd5b614f8f8a838b01614c86565b90965094506060890135915080821115614fa857600080fd5b50614f3389828a01614c86565b600080600060408486031215614fca57600080fd5b83356001600160401b0380821115614fe157600080fd5b908501906101a08288031215614ff657600080fd5b9093506020850135908082111561500c57600080fd5b5061501986828701614a9c565b9497909650939450505050565b600061016080835261503a8184018f614a03565b9050828103602084015261504e818e614a03565b6001600160a01b039c8d166040850152606084019b909b525050608081019790975260a087019590955260c086019390935260e08501919091526101008401529093166101208201529115156101409092019190915292915050565b600181811c908216806150be57607f821691505b6020821081036150de57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156150f657600080fd5b815161101281614be1565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000826151875761518761514c565b500490565b60008261519b5761519b61514c565b500690565b6020808252600b908201526a426164206c656e6774687360a81b604082015260600190565b6000602082840312156151d757600080fd5b5051919050565b8181038181111561093357610933615162565b8082018082111561093357610933615162565b8183823760009101908152919050565b60008161522357615223615162565b506000190190565b808202811582820484141761093357610933615162565b600083516152548184602088016149df565b8351908301906152688183602088016149df565b01949350505050565b60006001820161528357615283615162565b5060010190565b6000808335601e198436030181126152a157600080fd5b8301803591506001600160401b038211156152bb57600080fd5b6020019150600581901b3603821315614ae057600080fd5b60008235603e198336030181126152e957600080fd5b9190910192915050565b602080825260079082015266119c99595e995960ca1b604082015260600190565b6000808335601e1984360301811261532b57600080fd5b8301803591506001600160401b0382111561534557600080fd5b602001915036819003821315614ae057600080fd5b5b81811015610db9576000815560010161535b565b601f821115610b2957806000526020600020601f840160051c810160208510156153965750805b6118e0601f850160051c83018261535a565b6001600160401b038311156153bf576153bf614db7565b6153d3836153cd83546150aa565b8361536f565b6000601f84116001811461540757600085156153ef5750838201355b600019600387901b1c1916600186901b1783556118e0565b600083815260209020601f19861690835b828110156154385786850135825560209485019460019092019101615418565b50868210156154555760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000808335601e1984360301811261547e57600080fd5b8301803591506001600160401b0382111561549857600080fd5b6020019150600681901b3603821315614ae057600080fd5b6000602082840312156154c257600080fd5b813561101281614be1565b6000823561019e198336030181126152e957600080fd5b6000813561093381614a5b565b80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160401b0383111561552857615528614db7565b6801000000000000000083111561554157615541614db7565b8054838255808410156155675781600052602060002061556582820186830161535a565b505b50818160005260208060002060005b86811015611bbf5783358282015592820192600101615576565b6000813561093381614be1565b6155a78283615314565b6155b28183856153a8565b50506155c16020830183615314565b6155cf8183600186016153a8565b50506155e96155e0604084016154e4565b600283016154f1565b606082013560038201556080820135600482015560a0820135600582015560c0820135600682015561561e60e083018361528a565b61562c818360078601615511565b505061563c61010083018361528a565b61564a818360088601615511565b50506101208201356009820155610140820135600a820155600b810161567c61567661016085016154e4565b826154f1565b610b2961568c6101808501615590565b82805460ff60a01b191691151560a01b60ff60a01b16919091179055565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000815480845260208085019450836000528060002060005b83811015614c4d578154875295820195600191820191016157ad565b6001600160a01b03851681526080602082018190526000906157ed90830186615794565b82810360408401526157ff8186615794565b91505082606083015295945050505050565b60006020828403121561582357600080fd5b815161101281614a5b565b60208082526018908201527f596f7520646f206e6f74206f776e2074686520746f6b656e0000000000000000604082015260600190565b81516001600160401b0381111561587e5761587e614db7565b6158928161588c84546150aa565b8461536f565b602080601f8311600181146158c757600084156158af5750858301515b600019600386901b1c1916600185901b178555614580565b600085815260208120601f198616915b828110156158f6578886015182559484019460019091019084016158d7565b50858210156159145787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906159a990830184614a03565b9695505050505050565b6000602082840312156159c557600080fd5b8151611012816149ac56fea2646970667358221220b780261e7a4d52834845dac9266e24b972467cdd8ff1143d9700431cc9bf9cc764736f6c63430008110033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.