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
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
PropsERC721AUpgradeableAccess
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 1 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Apache 2.0 pragma solidity ^0.8.4; // ========== External imports ========== import 'erc721a-upgradeable/contracts/ERC721AUpgradeable.sol'; import "@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/MulticallUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/interfaces/IERC2981Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/interfaces/IERC2981Upgradeable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@thirdweb-dev/contracts/openzeppelin-presets/metatx/ERC2771ContextUpgradeable.sol"; import "@thirdweb-dev/contracts/feature/interface/IOwnable.sol"; import "@thirdweb-dev/contracts/lib/MerkleProof.sol"; // ========== Internal imports ========== import "../interfaces/IAllowlist.sol"; import "../interfaces/IConfig.sol"; import "../interfaces/IPropsContract.sol"; import "../interfaces/IPropsAccessRegistry.sol"; contract PropsERC721AUpgradeableAccess is Initializable, IOwnable, IAllowlist, IConfig, IPropsContract, ReentrancyGuardUpgradeable, PausableUpgradeable, ERC2771ContextUpgradeable, MulticallUpgradeable, AccessControlEnumerableUpgradeable, ERC721AUpgradeable, ERC2981 { using StringsUpgradeable for uint256; using EnumerableSetUpgradeable for EnumerableSetUpgradeable.Bytes32Set; ////////////////////////////////////////////// // State Vars ///////////////////////////////////////////// bytes32 private constant MODULE_TYPE = bytes32("PropsERC721AU"); uint256 private constant VERSION = 6; uint256 private nextTokenId; mapping(address => uint256) public minted; mapping(address => mapping(uint256 => uint256)) public mintedByAllowlist; bytes32 private constant CONTRACT_ADMIN_ROLE = keccak256("CONTRACT_ADMIN_ROLE"); bytes32 private constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 private constant PRODUCER_ROLE = keccak256("PRODUCER_ROLE"); // @dev reserving space for 10 more roles bytes32[32] private __gap; string private baseURI_; string public contractURI; address private _owner; address private accessRegistry; address public project; address public receivingWallet; address public rWallet; address[] private trustedForwarders; Allowlists public allowlists; Config public config; mapping(address => bool) public disallowedOperators; mapping(address => string) public disallowedOperatorsMessages; ////////////////////////////////////////////// // Errors ///////////////////////////////////////////// error AllowlistInactive(); error MintQuantityInvalid(); error MerkleProofInvalid(); error MintClosed(); error InsufficientFunds(); ////////////////////////////////////////////// // Events ///////////////////////////////////////////// event Minted(address indexed account, string tokens); ////////////////////////////////////////////// // Init ///////////////////////////////////////////// function initialize( address _defaultAdmin, string memory _name, string memory _symbol, string memory _baseURI, address[] memory _trustedForwarders, address _receivingWallet, address _accessRegistry ) initializer public { __ReentrancyGuard_init(); __ERC2771Context_init(_trustedForwarders); __ERC721A_init(_name, _symbol); receivingWallet = _receivingWallet; rWallet = _receivingWallet; _owner = _defaultAdmin; accessRegistry = _accessRegistry; baseURI_ = _baseURI; _setupRole(DEFAULT_ADMIN_ROLE, _defaultAdmin); _setRoleAdmin(CONTRACT_ADMIN_ROLE, DEFAULT_ADMIN_ROLE); _setRoleAdmin(PRODUCER_ROLE, CONTRACT_ADMIN_ROLE); _setRoleAdmin(MINTER_ROLE, PRODUCER_ROLE); nextTokenId = 1; // call registry add here // add default admin entry to registry IPropsAccessRegistry(accessRegistry).add(_defaultAdmin, address(this)); } /*/////////////////////////////////////////////////////////////// Generic contract logic //////////////////////////////////////////////////////////////*/ /// @dev Returns the type of the contract. function contractType() external pure returns (bytes32) { return MODULE_TYPE; } /// @dev Returns the version of the contract. function contractVersion() external pure returns (uint8) { return uint8(VERSION); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return hasRole(DEFAULT_ADMIN_ROLE, _owner) ? _owner : address(0); } /*/////////////////////////////////////////////////////////////// ERC 165 / 721A logic //////////////////////////////////////////////////////////////*/ /** * @dev see {ERC721AUpgradeable} */ function _startTokenId() internal view virtual override returns (uint256){ return 1; } /** * @dev see {IERC721Metadata} */ function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); return string(abi.encodePacked(baseURI_, _tokenId.toString(), ".json")); } /** * @dev see {IERC165-supportsInterface} */ function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerableUpgradeable, ERC721AUpgradeable, ERC2981) returns (bool) { return ERC721AUpgradeable.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } function mint( uint256[] calldata _quantities, bytes32[][] calldata _proofs, uint256[] calldata _allotments, uint256[] calldata _allowlistIds ) external payable nonReentrant { require(isTrustedForwarder(msg.sender) || _msgSender() == tx.origin, "BOT"); require(isUniqueArray(_allowlistIds), "boo"); uint256 _cost = 0; uint256 _quantity = 0; for(uint256 i = 0; i < _quantities.length; i++) { _quantity += _quantities[i]; // @dev Require could save .029kb revertOnInactiveList(_allowlistIds[i]); revertOnAllocationCheckFailure( msg.sender, _allowlistIds[i], mintedByAllowlist[msg.sender][_allowlistIds[i]], _quantities[i], _allotments[i], _proofs[i] ); _cost += allowlists.lists[_allowlistIds[i]].price * _quantities[i]; } require(nextTokenId + _quantity - 1 <= config.mintConfig.maxSupply, "Exceeded max supply."); if(_cost > msg.value) revert InsufficientFunds(); (bool sent, bytes memory data) = receivingWallet.call{value: msg.value}(""); // mint _quantity tokens string memory tokensMinted = ""; unchecked { for (uint i = nextTokenId; i < nextTokenId + _quantity; i++) { tokensMinted = string(abi.encodePacked(tokensMinted, i.toString(), ",")); } for (uint i = 0; i < _quantities.length; i++) { mintedByAllowlist[address(msg.sender)][_allowlistIds[i]] += _quantities[i]; } minted[address(msg.sender)] += _quantity; nextTokenId += _quantity; _safeMint(msg.sender, _quantity); } emit Minted(msg.sender, tokensMinted); } function airdrop(address[] calldata __to, uint256[] calldata __quantities) external minRole(MINTER_ROLE){ for (uint i = 0; i < __to.length; i++) { nextTokenId += __quantities[i]; _safeMint(__to[i], __quantities[i]); } } function revertOnInactiveList(uint256 _allowlistId) internal view{ if(paused() || block.timestamp < allowlists.lists[_allowlistId].startTime || block.timestamp > allowlists.lists[_allowlistId].endTime || !allowlists.lists[_allowlistId].isActive) revert AllowlistInactive(); } // @dev +~0.695kb function revertOnAllocationCheckFailure( address _address, uint256 _allowlistId, uint256 _minted, uint256 _quantity, uint256 _alloted, bytes32[] calldata _proof ) internal view{ Allowlist storage allowlist = allowlists.lists[_allowlistId]; if(_quantity + _minted > allowlist.maxMintPerWallet) revert MintQuantityInvalid(); if(allowlist.typedata != bytes32(0)){ if (_quantity > _alloted || ((_quantity + _minted) > _alloted)) revert MintQuantityInvalid(); (bool validMerkleProof, ) = MerkleProof.verify( _proof, allowlist.typedata, keccak256(abi.encodePacked(_address, _alloted)) ); if (!validMerkleProof) revert MerkleProofInvalid(); } } /*/////////////////////////////////////////////////////////////// Allowlist Logic //////////////////////////////////////////////////////////////*/ function setAllowlists(Allowlist[] calldata _allowlists) external minRole(PRODUCER_ROLE) { allowlists.count = _allowlists.length; for (uint256 i = 0; i < _allowlists.length; i++) { allowlists.lists[i] = _allowlists[i]; } } function updateAllowlistByIndex(Allowlist calldata _allowlist, uint256 i) external minRole(PRODUCER_ROLE) { allowlists.lists[i] = _allowlist; } function addAllowlist(Allowlist calldata _allowlist) external minRole(PRODUCER_ROLE) { allowlists.lists[allowlists.count] = _allowlist; allowlists.count++; } /*/////////////////////////////////////////////////////////////// Getters //////////////////////////////////////////////////////////////*/ /// @dev Returns the allowlist at the given uid. function getAllowlistById(uint256 _allowlistId) external view returns (Allowlist memory allowlist) { allowlist = allowlists.lists[_allowlistId]; } /// @dev Returns the number of minted tokens for sender by allowlist. function getMintedByAllowlist(uint256 _allowlistId) external view returns (uint256 mintedBy) { mintedBy = mintedByAllowlist[msg.sender][_allowlistId]; } /*/////////////////////////////////////////////////////////////// Setters //////////////////////////////////////////////////////////////*/ function setRoyalty(uint96 _royalty) external minRole(PRODUCER_ROLE) { _setDefaultRoyalty(rWallet, _royalty); } function setRoyaltyWallet(address _address) external minRole(CONTRACT_ADMIN_ROLE) { rWallet = _address; } function setReceivingWallet(address _address) external minRole(CONTRACT_ADMIN_ROLE) { receivingWallet = _address; } function setConfig(Config calldata _config) external minRole(PRODUCER_ROLE) { config = _config; } /// @dev Lets a contract admin set a new owner for the contract. The new owner must be a contract admin. function setOwner(address _newOwner) external onlyRole(DEFAULT_ADMIN_ROLE) { require(hasRole(DEFAULT_ADMIN_ROLE, _newOwner), "!ADMIN"); address _prevOwner = _owner; _owner = _newOwner; emit OwnerUpdated(_prevOwner, _newOwner); } /// @dev Lets a contract admin set the URI for contract-level metadata. function setContractURI(string calldata _uri) external minRole(CONTRACT_ADMIN_ROLE) { contractURI = _uri; } /// @dev Lets a contract admin set the URI for the baseURI. function setBaseURI(string calldata _baseURI) external minRole(CONTRACT_ADMIN_ROLE) { baseURI_ = _baseURI; } /// @dev Lets a contract admin set the address for the access registry. function setAccessRegistry(address _accessRegistry) external minRole(CONTRACT_ADMIN_ROLE) { accessRegistry = _accessRegistry; } /// @dev Lets a contract admin set the address for the parent project. function setProject(address _project) external minRole(PRODUCER_ROLE) { project = _project; } /*/////////////////////////////////////////////////////////////// Miscellaneous / Overrides //////////////////////////////////////////////////////////////*/ function pause() external minRole(MINTER_ROLE){ _pause(); } function unpause() external minRole(MINTER_ROLE){ _unpause(); } function grantRole(bytes32 role, address account) public virtual override(AccessControlUpgradeable, IAccessControlUpgradeable) minRole(CONTRACT_ADMIN_ROLE) { if(!hasRole(role, account)){ super._grantRole(role,account); IPropsAccessRegistry(accessRegistry).add(account, address(this)); } } function revokeRole(bytes32 role, address account) public virtual override(AccessControlUpgradeable, IAccessControlUpgradeable) minRole(CONTRACT_ADMIN_ROLE) { if(hasRole(role, account)){ // @dev ya'll can't take your own admin role, fool. if(role == DEFAULT_ADMIN_ROLE && account == owner()) revert(); // #TODO check if it still adds roles (enumerable)! super._revokeRole(role,account); IPropsAccessRegistry(accessRegistry).remove(account, address(this)); } } /** * @dev Check if minimum role for function is required. */ modifier minRole(bytes32 _role) { require(_hasMinRole(_role), "Not authorized"); _; } function hasMinRole(bytes32 _role) public view virtual returns (bool){ return _hasMinRole(_role); } function _hasMinRole(bytes32 _role) internal view returns (bool) { // @dev does account have role? if(hasRole(_role, _msgSender())) return true; // @dev are we checking against default admin? if(_role == DEFAULT_ADMIN_ROLE) return false; // @dev walk up tree to check if user has role admin role return _hasMinRole(getRoleAdmin(_role)); } /// @dev Burns `tokenId`. See {ERC721-_burn}. function burn(uint256 tokenId) public virtual { _burn(tokenId, true); } function toggleOperatorAccess(address _operatorAddress, bool _isBlocked, string memory _message) external { require(hasMinRole(CONTRACT_ADMIN_ROLE)); disallowedOperators[_operatorAddress] = _isBlocked; disallowedOperatorsMessages[_operatorAddress] = _message; } function setApprovalForAll (address operator, bool approved) public virtual override(ERC721AUpgradeable) { require(!disallowedOperators[operator], disallowedOperatorsMessages[operator]); super.setApprovalForAll(operator, approved); } function isApprovedForAll (address account, address operator) public view virtual override(ERC721AUpgradeable) returns (bool) { if(disallowedOperators[operator]) return false; return super.isApprovedForAll(account, operator); } function isUniqueArray(uint256[] calldata _array) internal pure returns (bool) { for (uint256 i = 0; i < _array.length; i++) { for (uint256 j = 0; j < _array.length; j++) { if (_array[i] == _array[j] && i != j) return false; } } return true; } function _msgSender() internal view virtual override(ContextUpgradeable, ERC2771ContextUpgradeable) returns (address sender) { return ERC2771ContextUpgradeable._msgSender(); } function _msgData() internal view virtual override(ContextUpgradeable, ERC2771ContextUpgradeable) returns (bytes calldata) { return ERC2771ContextUpgradeable._msgData(); } uint256[49] private ___gap; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import "./IERC721AUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721AUpgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721AUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; function __ERC721A_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC721A_init_unchained(name_, symbol_); } function __ERC721A_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721AUpgradeable.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev 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[42] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControlEnumerableUpgradeable.sol"; import "./AccessControlUpgradeable.sol"; import "../utils/structs/EnumerableSetUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerableUpgradeable is Initializable, IAccessControlEnumerableUpgradeable, AccessControlUpgradeable { function __AccessControlEnumerable_init() internal onlyInitializing { } function __AccessControlEnumerable_init_unchained() internal onlyInitializing { } using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet; mapping(bytes32 => EnumerableSetUpgradeable.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerableUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override { super._grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _roleMembers[role].remove(account); } /** * @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 // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @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 // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @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 // OpenZeppelin Contracts (last updated v4.5.0) (utils/Multicall.sol) pragma solidity ^0.8.0; import "./AddressUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Provides a function to batch together multiple calls in a single external call. * * _Available since v4.1._ */ abstract contract MulticallUpgradeable is Initializable { function __Multicall_init() internal onlyInitializing { } function __Multicall_init_unchained() internal onlyInitializing { } /** * @dev Receives and executes a batch of function calls on this contract. */ function multicall(bytes[] calldata data) external virtual returns (bytes[] memory results) { results = new bytes[](data.length); for (uint256 i = 0; i < data.length; i++) { results[i] = _functionDelegateCall(address(this), data[i]); } return results; } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function _functionDelegateCall(address target, bytes memory data) private returns (bytes memory) { require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed"); } /** * @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 (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981Upgradeable is IERC165Upgradeable { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSetUpgradeable { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (metatx/ERC2771Context.sol) pragma solidity ^0.8.11; import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; /** * @dev Context variant with ERC2771 support. */ abstract contract ERC2771ContextUpgradeable is Initializable, ContextUpgradeable { mapping(address => bool) private _trustedForwarder; function __ERC2771Context_init(address[] memory trustedForwarder) internal onlyInitializing { __Context_init_unchained(); __ERC2771Context_init_unchained(trustedForwarder); } function __ERC2771Context_init_unchained(address[] memory trustedForwarder) internal onlyInitializing { for (uint256 i = 0; i < trustedForwarder.length; i++) { _trustedForwarder[trustedForwarder[i]] = true; } } function isTrustedForwarder(address forwarder) public view virtual returns (bool) { return _trustedForwarder[forwarder]; } function _msgSender() internal view virtual override returns (address sender) { if (isTrustedForwarder(msg.sender)) { // The assembly code is more direct than the Solidity version using `abi.decode`. assembly { sender := shr(96, calldataload(sub(calldatasize(), 20))) } } else { return super._msgSender(); } } function _msgData() internal view virtual override returns (bytes calldata) { if (isTrustedForwarder(msg.sender)) { return msg.data[:msg.data.length - 20]; } else { return super._msgData(); } } uint256[49] private __gap; }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; interface IOwnable { /// @dev Returns the owner of the contract. function owner() external view returns (address); /// @dev Lets a module admin set a new owner for the contract. The new owner must be a module admin. function setOwner(address _newOwner) external; /// @dev Emitted when a new Owner is set. event OwnerUpdated(address prevOwner, address newOwner); }
// SPDX-License-Identifier: MIT // Modified from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.3.0/contracts/utils/cryptography/MerkleProof.sol // Copied from https://github.com/ensdomains/governance/blob/master/contracts/MerkleProof.sol pragma solidity ^0.8.11; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * Source: https://github.com/ensdomains/governance/blob/master/contracts/MerkleProof.sol */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool, uint256) { bytes32 computedHash = leaf; uint256 index = 0; for (uint256 i = 0; i < proof.length; i++) { index *= 2; bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); index += 1; } } // Check if the computed hash (root) is equal to the provided root return (computedHash == root, index); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; interface IAllowlist { struct Allowlist { bytes32 typedata; bool isActive; string metadataUri; string name; uint256 price; uint256 maxMintPerWallet; uint256 tokenPool; uint256 startTime; uint256 endTime; } struct Allowlists { uint256 currentStartId; uint256 count; mapping(uint256 => Allowlist) lists; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /// @author: @props /** * @dev */ interface IConfig { /** * @dev Retool that - legacy */ // enum Extensions { // Allowlist, // Royalty, // Split // } /** * @dev */ struct Config { Mint mintConfig; Token tokenConfig; } /** * @dev */ struct Mint { bool isActive; uint256 startTime; uint256 endTime; uint256 maxSupply; uint256 maxPerWallet; uint256 maxPerTxn; uint256 price; } /** * @dev */ struct Token { string metadataUri; } /** * @dev */ struct Token1155 { uint256 tokenId; uint256 redeemStart; uint256 redeemEnd; uint256[] tokensToIssueOnRedeem; bool isRedeemable; string baseURI; string name; } }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.11; interface IPropsContract { /// @dev Returns the module type of the contract. function contractType() external pure returns (bytes32); /// @dev Returns the version of the contract. function contractVersion() external pure returns (uint8); /// @dev Returns the metadata URI of the contract. function contractURI() external view returns (string memory); /** * @dev Sets contract URI for the storefront-level metadata of the contract. * Only module admin can call this function. */ function setContractURI(string calldata _uri) external; }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.11; interface IPropsAccessRegistry { /// @dev Adds role access entry in access registry. function add(address _account, address _deployment) external; /// @dev Reduces/Removes role access entry in access registry. function remove(address _account, address _deployment) external; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol"; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721AUpgradeable is IERC721Upgradeable, IERC721MetadataUpgradeable { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
// 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 (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/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 (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/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 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 // OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControlUpgradeable.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerableUpgradeable is IAccessControlUpgradeable { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControlUpgradeable.sol"; import "../utils/ContextUpgradeable.sol"; import "../utils/StringsUpgradeable.sol"; import "../utils/introspection/ERC165Upgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable { function __AccessControl_init() internal onlyInitializing { } function __AccessControl_init_unchained() internal onlyInitializing { } struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", StringsUpgradeable.toHexString(uint160(account), 20), " is missing role ", StringsUpgradeable.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } /** * @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 // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControlUpgradeable { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "metadata": { "bytecodeHash": "none", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 1 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"AllowlistInactive","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InsufficientFunds","type":"error"},{"inputs":[],"name":"MerkleProofInvalid","type":"error"},{"inputs":[],"name":"MintClosed","type":"error"},{"inputs":[],"name":"MintQuantityInvalid","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"string","name":"tokens","type":"string"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"prevOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"typedata","type":"bytes32"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"string","name":"metadataUri","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxMintPerWallet","type":"uint256"},{"internalType":"uint256","name":"tokenPool","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"internalType":"struct IAllowlist.Allowlist","name":"_allowlist","type":"tuple"}],"name":"addAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"__to","type":"address[]"},{"internalType":"uint256[]","name":"__quantities","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowlists","outputs":[{"internalType":"uint256","name":"currentStartId","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"config","outputs":[{"components":[{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxPerTxn","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct IConfig.Mint","name":"mintConfig","type":"tuple"},{"components":[{"internalType":"string","name":"metadataUri","type":"string"}],"internalType":"struct IConfig.Token","name":"tokenConfig","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractType","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractVersion","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"disallowedOperators","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"disallowedOperatorsMessages","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allowlistId","type":"uint256"}],"name":"getAllowlistById","outputs":[{"components":[{"internalType":"bytes32","name":"typedata","type":"bytes32"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"string","name":"metadataUri","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxMintPerWallet","type":"uint256"},{"internalType":"uint256","name":"tokenPool","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"internalType":"struct IAllowlist.Allowlist","name":"allowlist","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allowlistId","type":"uint256"}],"name":"getMintedByAllowlist","outputs":[{"internalType":"uint256","name":"mintedBy","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_role","type":"bytes32"}],"name":"hasMinRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_defaultAdmin","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address[]","name":"_trustedForwarders","type":"address[]"},{"internalType":"address","name":"_receivingWallet","type":"address"},{"internalType":"address","name":"_accessRegistry","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_quantities","type":"uint256[]"},{"internalType":"bytes32[][]","name":"_proofs","type":"bytes32[][]"},{"internalType":"uint256[]","name":"_allotments","type":"uint256[]"},{"internalType":"uint256[]","name":"_allowlistIds","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintedByAllowlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"nonpayable","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"project","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"receivingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"_accessRegistry","type":"address"}],"name":"setAccessRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"typedata","type":"bytes32"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"string","name":"metadataUri","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxMintPerWallet","type":"uint256"},{"internalType":"uint256","name":"tokenPool","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"internalType":"struct IAllowlist.Allowlist[]","name":"_allowlists","type":"tuple[]"}],"name":"setAllowlists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxPerTxn","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct IConfig.Mint","name":"mintConfig","type":"tuple"},{"components":[{"internalType":"string","name":"metadataUri","type":"string"}],"internalType":"struct IConfig.Token","name":"tokenConfig","type":"tuple"}],"internalType":"struct IConfig.Config","name":"_config","type":"tuple"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_project","type":"address"}],"name":"setProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setReceivingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"_royalty","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setRoyaltyWallet","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":"address","name":"_operatorAddress","type":"address"},{"internalType":"bool","name":"_isBlocked","type":"bool"},{"internalType":"string","name":"_message","type":"string"}],"name":"toggleOperatorAccess","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"typedata","type":"bytes32"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"string","name":"metadataUri","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxMintPerWallet","type":"uint256"},{"internalType":"uint256","name":"tokenPool","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"internalType":"struct IAllowlist.Allowlist","name":"_allowlist","type":"tuple"},{"internalType":"uint256","name":"i","type":"uint256"}],"name":"updateAllowlistByIndex","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50614fbe806100206000396000f3fe6080604052600436106102b25760003560e01c806301ffc9a7146102b757806306fdde03146102ec578063081812fc1461030e578063095ea7b31461033b578063102ba7e91461035d57806313af40351461037d57806318160ddd1461039d5780631e7269c5146103c657806323b872dd146103f4578063248a9ca3146104145780632a55205a146104345780632f2ff15d1461047357806336568abe146104935780633b6fda59146104b35780633dc3df7d146104ec5780633f4ba83a1461050d57806342842e0e1461052257806342966c681461054257806355f804b314610562578063572b6c05146105825780635c975abb146105a25780636182ff53146105ba5780636352211e146105e757806363906d0d1461060757806364274fef14610639578063666f8ca414610659578063672434821461067957806370a082311461069957806373229cf0146106b9578063738170a4146106ea57806379502c551461070b578063806feae31461072e57806383de187b1461074e5780638456cb591461076e57806387b63e3a146107835780638b81a7ee146107bc5780638da5cb5b146107dc5780638f76b540146107f15780639010d07c1461081157806391d1485414610831578063938e3d7b14610851578063942593991461087157806395d89b41146108845780639ef44ead14610899578063a0a8e460146108b9578063a217fddf146108d5578063a22cb465146108ea578063ac9650d81461090a578063b3738dfc14610937578063b522ecff14610957578063b88d4fde14610977578063c87b56dd14610997578063ca15c873146109b7578063cac92669146109d7578063cb2ef6f7146109f7578063cdeee63714610a1a578063d547741f14610a3a578063e8a3d48514610a5a578063e985e9c514610a6f578063f60ca60d14610a8f578063fb108ea614610ab0575b600080fd5b3480156102c357600080fd5b506102d76102d2366004613d9f565b610ad0565b60405190151581526020015b60405180910390f35b3480156102f857600080fd5b50610301610af0565b6040516102e39190613e14565b34801561031a57600080fd5b5061032e610329366004613e27565b610b83565b6040516102e39190613e40565b34801561034757600080fd5b5061035b610356366004613e6b565b610bc8565b005b34801561036957600080fd5b5061035b610378366004613f60565b610c61565b34801561038957600080fd5b5061035b610398366004613fbf565b610cc5565b3480156103a957600080fd5b50610192546101915403600019015b6040519081526020016102e3565b3480156103d257600080fd5b506103b86103e1366004613fbf565b6101c66020526000908152604090205481565b34801561040057600080fd5b5061035b61040f366004613fda565b610d76565b34801561042057600080fd5b506103b861042f366004613e27565b610d81565b34801561044057600080fd5b5061045461044f366004614016565b610d97565b604080516001600160a01b0390931683526020830191909152016102e3565b34801561047f57600080fd5b5061035b61048e366004614038565b610e47565b34801561049f57600080fd5b5061035b6104ae366004614038565b610efd565b3480156104bf57600080fd5b506103b86104ce366004613e6b565b6101c760209081526000928352604080842090915290825290205481565b3480156104f857600080fd5b506101ee5461032e906001600160a01b031681565b34801561051957600080fd5b5061035b610f8b565b34801561052e57600080fd5b5061035b61053d366004613fda565b610fca565b34801561054e57600080fd5b5061035b61055d366004613e27565b610fe5565b34801561056e57600080fd5b5061035b61057d366004614064565b610ff0565b34801561058e57600080fd5b506102d761059d366004613fbf565b611031565b3480156105ae57600080fd5b5060655460ff166102d7565b3480156105c657600080fd5b506105da6105d5366004613e27565b61104f565b6040516102e391906140d5565b3480156105f357600080fd5b5061032e610602366004613e27565b611238565b34801561061357600080fd5b506101f0546101f154610624919082565b604080519283526020830191909152016102e3565b34801561064557600080fd5b5061035b61065436600461418b565b61124a565b34801561066557600080fd5b5061035b610674366004613fbf565b6112a0565b34801561068557600080fd5b5061035b610694366004614213565b6112f8565b3480156106a557600080fd5b506103b86106b4366004613fbf565b6113ca565b3480156106c557600080fd5b506102d76106d4366004613fbf565b6101fb6020526000908152604090205460ff1681565b3480156106f657600080fd5b506101ed5461032e906001600160a01b031681565b34801561071757600080fd5b50610720611419565b6040516102e392919061427e565b34801561073a57600080fd5b5061035b6107493660046142eb565b61150d565b34801561075a57600080fd5b5061035b61076936600461432c565b6115a4565b34801561077a57600080fd5b5061035b6115e6565b34801561078f57600080fd5b506103b861079e366004613e27565b3360009081526101c760209081526040808320938352929052205490565b3480156107c857600080fd5b5061035b6107d7366004614367565b611622565b3480156107e857600080fd5b5061032e611691565b3480156107fd57600080fd5b5061030161080c366004613fbf565b6116c9565b34801561081d57600080fd5b5061032e61082c366004614016565b611764565b34801561083d57600080fd5b506102d761084c366004614038565b611784565b34801561085d57600080fd5b5061035b61086c366004614064565b6117b0565b61035b61087f36600461439b565b6117f1565b34801561089057600080fd5b50610301611c88565b3480156108a557600080fd5b5061035b6108b43660046144e4565b611c98565b3480156108c557600080fd5b50604051600681526020016102e3565b3480156108e157600080fd5b506103b8600081565b3480156108f657600080fd5b5061035b6109053660046145c2565b611e63565b34801561091657600080fd5b5061092a6109253660046142eb565b611eb6565b6040516102e391906145f9565b34801561094357600080fd5b506102d7610952366004613e27565b611faa565b34801561096357600080fd5b5061035b610972366004613fbf565b611fb5565b34801561098357600080fd5b5061035b61099236600461465b565b61200d565b3480156109a357600080fd5b506103016109b2366004613e27565b612058565b3480156109c357600080fd5b506103b86109d2366004613e27565b6120fa565b3480156109e357600080fd5b5061035b6109f23660046146d6565b612112565b348015610a0357600080fd5b506c50726f7073455243373231415560981b6103b8565b348015610a2657600080fd5b5061035b610a35366004613fbf565b61215d565b348015610a4657600080fd5b5061035b610a55366004614038565b6121b5565b348015610a6657600080fd5b50610301612265565b348015610a7b57600080fd5b506102d7610a8a3660046146ff565b612273565b348015610a9b57600080fd5b506101ec5461032e906001600160a01b031681565b348015610abc57600080fd5b5061035b610acb366004613fbf565b6122cc565b6000610adb82612324565b80610aea5750610aea82612364565b92915050565b60606101938054610b0090614729565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2c90614729565b8015610b795780601f10610b4e57610100808354040283529160200191610b79565b820191906000526020600020905b815481529060010190602001808311610b5c57829003601f168201915b5050505050905090565b6000610b8e82612389565b610bab576040516333d1c03960e21b815260040160405180910390fd5b50600090815261019760205260409020546001600160a01b031690565b6000610bd382611238565b9050806001600160a01b0316836001600160a01b03161415610c085760405163250fdee360e21b815260040160405180910390fd5b806001600160a01b0316610c1a6123c4565b6001600160a01b031614610c5157610c3481610a8a6123c4565b610c51576040516367d9dca160e11b815260040160405180910390fd5b610c5c8383836123ce565b505050565b610c78600080516020614f92833981519152611faa565b610c8157600080fd5b6001600160a01b03831660009081526101fb60209081526040808320805460ff19168615151790556101fc82529091208251610cbf92840190613c7c565b50505050565b6000610cd08161242b565b610cdb600083611784565b610d155760405162461bcd60e51b815260206004820152600660248201526510a0a226a4a760d11b60448201526064015b60405180910390fd5b6101ea80546001600160a01b038481166001600160a01b03198316179092556040519116907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690610d69908390869061475e565b60405180910390a1505050565b610c5c83838361243c565b600090815261012d602052604090206001015490565b60008281526101c4602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610e0e5750604080518082019091526101c3546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610e2d906001600160601b03168761478e565b610e3791906147c3565b91519350909150505b9250929050565b600080516020614f92833981519152610e5f8161263b565b610e7b5760405162461bcd60e51b8152600401610d0c906147d7565b610e858383611784565b610c5c57610e938383612674565b6101eb546040516352c28fab60e01b81526001600160a01b03909116906352c28fab90610ec6908590309060040161475e565b600060405180830381600087803b158015610ee057600080fd5b505af1158015610ef4573d6000803e3d6000fd5b50505050505050565b610f056123c4565b6001600160a01b0316816001600160a01b031614610f7d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610d0c565b610f878282612697565b5050565b600080516020614f52833981519152610fa38161263b565b610fbf5760405162461bcd60e51b8152600401610d0c906147d7565b610fc76126ba565b50565b610c5c8383836040518060200160405280600081525061200d565b610fc781600161274d565b600080516020614f928339815191526110088161263b565b6110245760405162461bcd60e51b8152600401610d0c906147d7565b610cbf6101e88484613d00565b6001600160a01b031660009081526097602052604090205460ff1690565b6110a360405180610120016040528060008019168152602001600015158152602001606081526020016060815260200160008152602001600081526020016000815260200160008152602001600081525090565b60008281526101f2602090815260409182902082516101208101845281548152600182015460ff1615159281019290925260028101805492939192918401916110eb90614729565b80601f016020809104026020016040519081016040528092919081815260200182805461111790614729565b80156111645780601f1061113957610100808354040283529160200191611164565b820191906000526020600020905b81548152906001019060200180831161114757829003601f168201915b5050505050815260200160038201805461117d90614729565b80601f01602080910402602001604051908101604052809291908181526020018280546111a990614729565b80156111f65780601f106111cb576101008083540402835291602001916111f6565b820191906000526020600020905b8154815290600101906020018083116111d957829003601f168201915b50505050508152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820154815250509050919050565b600061124382612921565b5192915050565b600080516020614f0b8339815191526112628161263b565b61127e5760405162461bcd60e51b8152600401610d0c906147d7565b60008281526101f2602052604090208390611299828261497b565b5050505050565b600080516020614f928339815191526112b88161263b565b6112d45760405162461bcd60e51b8152600401610d0c906147d7565b506101eb80546001600160a01b0319166001600160a01b0392909216919091179055565b600080516020614f528339815191526113108161263b565b61132c5760405162461bcd60e51b8152600401610d0c906147d7565b60005b848110156113c25783838281811061134957611349614a08565b905060200201356101c560008282546113629190614a1e565b909155506113b0905086868381811061137d5761137d614a08565b90506020020160208101906113929190613fbf565b8585848181106113a4576113a4614a08565b90506020020135612a46565b806113ba81614a36565b91505061132f565b505050505050565b60006001600160a01b0382166113f3576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b0316600090815261019660205260409020546001600160401b031690565b6040805160e0810182526101f3805460ff16151582526101f4546020808401919091526101f554838501526101f65460608401526101f75460808401526101f85460a08401526101f95460c084015283519081019093526101fa8054929391928290829061148690614729565b80601f01602080910402602001604051908101604052809291908181526020018280546114b290614729565b80156114ff5780601f106114d4576101008083540402835291602001916114ff565b820191906000526020600020905b8154815290600101906020018083116114e257829003601f168201915b505050505081525050905082565b600080516020614f0b8339815191526115258161263b565b6115415760405162461bcd60e51b8152600401610d0c906147d7565b6101f182905560005b82811015610cbf5783838281811061156457611564614a08565b90506020028101906115769190614a51565b60008281526101f26020526040902061158f828261497b565b5081905061159c81614a36565b91505061154a565b600080516020614f0b8339815191526115bc8161263b565b6115d85760405162461bcd60e51b8152600401610d0c906147d7565b816101f3610cbf8282614b34565b600080516020614f528339815191526115fe8161263b565b61161a5760405162461bcd60e51b8152600401610d0c906147d7565b610fc7612a60565b600080516020614f0b83398151915261163a8161263b565b6116565760405162461bcd60e51b8152600401610d0c906147d7565b6101f15460009081526101f2602052604090208290611675828261497b565b50506101f1805490600061168883614a36565b91905055505050565b6101ea546000906116ac9082906001600160a01b0316611784565b6116b65750600090565b6101ea546001600160a01b03165b905090565b6101fc60205260009081526040902080546116e390614729565b80601f016020809104026020016040519081016040528092919081815260200182805461170f90614729565b801561175c5780601f106117315761010080835404028352916020019161175c565b820191906000526020600020905b81548152906001019060200180831161173f57829003601f168201915b505050505081565b600082815261015f6020526040812061177d9083612adc565b9392505050565b600091825261012d602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600080516020614f928339815191526117c88161263b565b6117e45760405162461bcd60e51b8152600401610d0c906147d7565b610cbf6101e98484613d00565b600260015414156118445760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0c565b600260015561185233611031565b8061186c5750326118616123c4565b6001600160a01b0316145b61189e5760405162461bcd60e51b81526020600482015260036024820152621093d560ea1b6044820152606401610d0c565b6118a88282612ae8565b6118da5760405162461bcd60e51b8152602060048201526003602482015262626f6f60e81b6044820152606401610d0c565b60008060005b89811015611a59578a8a828181106118fa576118fa614a08565b905060200201358261190c9190614a1e565b915061192f85858381811061192357611923614a08565b90506020020135612b7d565b6119e53386868481811061194557611945614a08565b3360009081526101c7602090815260408220920293909301359290915089898781811061197457611974614a08565b905060200201358152602001908152602001600020548e8e8681811061199c5761199c614a08565b905060200201358b8b878181106119b5576119b5614a08565b905060200201358e8e888181106119ce576119ce614a08565b90506020028101906119e09190614bac565b612bf7565b8a8a828181106119f7576119f7614a08565b905060200201356101f06002016000878785818110611a1857611a18614a08565b90506020020135815260200190815260200160002060040154611a3b919061478e565b611a459084614a1e565b925080611a5181614a36565b9150506118e0565b506101f6546101c554600190611a70908490614a1e565b611a7a9190614bf5565b1115611abf5760405162461bcd60e51b815260206004820152601460248201527322bc31b2b2b232b21036b0bc1039bab838363c9760611b6044820152606401610d0c565b34821115611ae05760405163356680b760e01b815260040160405180910390fd5b6101ed5460405160009182916001600160a01b039091169034908381818185875af1925050503d8060008114611b32576040519150601f19603f3d011682016040523d82523d6000602084013e611b37565b606091505b506040805160208101909152600081526101c554929450909250905b846101c55401811015611b955781611b6a82612d1d565b604051602001611b7b929190614c0c565b60408051601f198184030181529190529150600101611b53565b5060005b8c811015611c0a578d8d82818110611bb357611bb3614a08565b3360009081526101c760209081526040822092029390930135929091508a8a85818110611be257611be2614a08565b6020908102929092013583525081019190915260400160002080549091019055600101611b99565b503360008181526101c6602052604090208054860190556101c5805486019055611c349085612a46565b336001600160a01b03167f0c1b180fbb60448c5491c5ddc7c3a923854214b9ff70f90a7821333338971f9282604051611c6d9190613e14565b60405180910390a25050600180555050505050505050505050565b60606101948054610b0090614729565b6000611ca46001612e22565b90508015611cbc576000805461ff0019166101001790555b611cc4612eb6565b611ccd84612ee7565b611cd78787612f1f565b6101ed80546001600160a01b03199081166001600160a01b038681169182179093556101ee8054831690911790556101ea805482168b84161790556101eb80549091169184169190911790558451611d37906101e8906020880190613c7c565b50611d43600089612f50565b611d5c600080516020614f928339815191526000612f5a565b611d82600080516020614f0b833981519152600080516020614f92833981519152612f5a565b611da8600080516020614f52833981519152600080516020614f0b833981519152612f5a565b60016101c5556101eb546040516352c28fab60e01b81526001600160a01b03909116906352c28fab90611de1908b90309060040161475e565b600060405180830381600087803b158015611dfb57600080fd5b505af1158015611e0f573d6000803e3d6000fd5b505050508015611e59576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b6001600160a01b03821660009081526101fb60209081526040808320546101fc9092529091209060ff1615611eab5760405162461bcd60e51b8152600401610d0c9190614c47565b50610f878282612fae565b6060816001600160401b03811115611ed057611ed0613ea3565b604051908082528060200260200182016040528015611f0357816020015b6060815260200190600190039081611eee5790505b50905060005b82811015611fa357611f7330858584818110611f2757611f27614a08565b9050602002810190611f399190614821565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061308292505050565b828281518110611f8557611f85614a08565b60200260200101819052508080611f9b90614a36565b915050611f09565b5092915050565b6000610aea8261263b565b600080516020614f92833981519152611fcd8161263b565b611fe95760405162461bcd60e51b8152600401610d0c906147d7565b506101ed80546001600160a01b0319166001600160a01b0392909216919091179055565b61201884848461243c565b61202a836001600160a01b0316613174565b15610cbf5761203b84848484613183565b610cbf576040516368d2bf6b60e11b815260040160405180910390fd5b606061206382612389565b6120c75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d0c565b6101e86120d383612d1d565b6040516020016120e4929190614ccc565b6040516020818303038152906040529050919050565b600081815261015f60205260408120610aea90613271565b600080516020614f0b83398151915261212a8161263b565b6121465760405162461bcd60e51b8152600401610d0c906147d7565b6101ee54610f87906001600160a01b03168361327b565b600080516020614f928339815191526121758161263b565b6121915760405162461bcd60e51b8152600401610d0c906147d7565b506101ee80546001600160a01b0319166001600160a01b0392909216919091179055565b600080516020614f928339815191526121cd8161263b565b6121e95760405162461bcd60e51b8152600401610d0c906147d7565b6121f38383611784565b15610c5c578215801561221e5750612209611691565b6001600160a01b0316826001600160a01b0316145b1561222857600080fd5b6122328383612697565b6101eb54604051637f7c149160e01b81526001600160a01b0390911690637f7c149190610ec6908590309060040161475e565b6101e980546116e390614729565b6001600160a01b03811660009081526101fb602052604081205460ff161561229d57506000610aea565b6001600160a01b038084166000908152610198602090815260408083209386168352929052205460ff1661177d565b600080516020614f0b8339815191526122e48161263b565b6123005760405162461bcd60e51b8152600401610d0c906147d7565b506101ec80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b148061235557506001600160e01b03198216635b5e139f60e01b145b80610aea5750610aea82613375565b60006001600160e01b0319821663152a902d60e11b1480610aea5750610aea8261339a565b60008160011115801561239e57506101915482105b8015610aea57505060009081526101956020526040902054600160e01b900460ff161590565b60006116c46133b0565b6000828152610197602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610fc7816124376123c4565b6133d2565b600061244782612921565b9050836001600160a01b031681600001516001600160a01b03161461247e5760405162a1148160e81b815260040160405180910390fd5b6000846001600160a01b03166124926123c4565b6001600160a01b031614806124ae57506124ae85610a8a6123c4565b806124d957506124bc6123c4565b6001600160a01b03166124ce84610b83565b6001600160a01b0316145b9050806124f957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661252057604051633a954ecd60e21b815260040160405180910390fd5b61252c600084876123ce565b6001600160a01b0385811660009081526101966020908152604080832080546001600160401b03198082166001600160401b039283166000190183161790925589861680865283862080549384169383166001908101841694909417905589865261019590945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166126025761019154821461260257805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b0316600080516020614f7283398151915260405160405180910390a45050505050565b60006126498261084c6123c4565b1561265657506001919050565b8161266357506000919050565b610aea61266f83610d81565b61263b565b61267e8282613436565b600082815261015f60205260409020610c5c90826134be565b6126a182826134d3565b600082815261015f60205260409020610c5c9082613559565b60655460ff166127035760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610d0c565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6127366123c4565b6040516127439190613e40565b60405180910390a1565b600061275883612921565b805190915082156127e0576000816001600160a01b03166127776123c4565b6001600160a01b03161480612793575061279382610a8a6123c4565b806127be57506127a16123c4565b6001600160a01b03166127b386610b83565b6001600160a01b0316145b9050806127de57604051632ce44b5f60e11b815260040160405180910390fd5b505b6127ec600085836123ce565b6001600160a01b038082166000818152610196602090815260408083208054600160801b6000196001600160401b038084169190910181166001600160401b0319841681178390048216600190810183169093026001600160401b03600160801b03600160c01b0319909416179290921783558b8652610195909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b1785559189018084529220805491949091166128e7576101915482146128e757805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b03841690600080516020614f72833981519152908390a45050610192805460010190555050565b60408051606081018252600080825260208201819052918101919091528180600111612a2d5761019154811015612a2d5760008181526101956020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290612a2b5780516001600160a01b0316156129c1579392505050565b506000190160008181526101956020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612a26579392505050565b6129c1565b505b604051636f96cda160e11b815260040160405180910390fd5b610f8782826040518060200160405280600081525061356e565b60655460ff1615612aa65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d0c565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127366123c4565b600061177d838361370b565b6000805b82811015612b735760005b83811015612b6057848482818110612b1157612b11614a08565b90506020020135858584818110612b2a57612b2a614a08565b90506020020135148015612b3e5750808214155b15612b4e57600092505050610aea565b80612b5881614a36565b915050612af7565b5080612b6b81614a36565b915050612aec565b5060019392505050565b60655460ff1680612b9f575060008181526101f2602052604090206007015442105b80612bbb575060008181526101f2602052604090206008015442115b80612bd9575060008181526101f2602052604090206001015460ff16155b15610fc7576040516347cc82cd60e01b815260040160405180910390fd5b60008681526101f2602052604090206005810154612c158787614a1e565b1115612c3457604051631f43edc360e11b815260040160405180910390fd5b805415611e595783851180612c51575083612c4f8787614a1e565b115b15612c6f57604051631f43edc360e11b815260040160405180910390fd5b6000612cf1848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250508554604051909250612cd691508d908a9060200160609290921b6001600160601b0319168252601482015260340190565b60405160208183030381529060405280519060200120613735565b50905080612d125760405163c8ac23c360e01b815260040160405180910390fd5b505050505050505050565b606081612d415750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d6b5780612d5581614a36565b9150612d649050600a836147c3565b9150612d45565b6000816001600160401b03811115612d8557612d85613ea3565b6040519080825280601f01601f191660200182016040528015612daf576020820181803683370190505b5090505b8415612e1a57612dc4600183614bf5565b9150612dd1600a86614d5f565b612ddc906030614a1e565b60f81b818381518110612df157612df1614a08565b60200101906001600160f81b031916908160001a905350612e13600a866147c3565b9450612db3565b949350505050565b60008054610100900460ff1615612e70578160ff166001148015612e4c5750612e4a30613174565b155b612e685760405162461bcd60e51b8152600401610d0c90614d73565b506000919050565b60005460ff808416911610612e975760405162461bcd60e51b8152600401610d0c90614d73565b506000805460ff191660ff92909216919091179055600190565b919050565b600054610100900460ff16612edd5760405162461bcd60e51b8152600401610d0c90614dc1565b612ee5613803565b565b600054610100900460ff16612f0e5760405162461bcd60e51b8152600401610d0c90614dc1565b612f16613830565b610fc781613857565b600054610100900460ff16612f465760405162461bcd60e51b8152600401610d0c90614dc1565b610f8782826138e6565b610f878282612674565b6000612f6583610d81565b600084815261012d6020526040808220600101859055519192508391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b612fb66123c4565b6001600160a01b0316826001600160a01b03161415612fe85760405163b06307db60e01b815260040160405180910390fd5b806101986000612ff66123c4565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561303a6123c4565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051613076911515815260200190565b60405180910390a35050565b606061308d83613174565b6130e85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610d0c565b600080846001600160a01b0316846040516131039190614e0c565b600060405180830381855af49150503d806000811461313e576040519150601f19603f3d011682016040523d82523d6000602084013e613143565b606091505b509150915061316b8282604051806060016040528060278152602001614f2b60279139613941565b95945050505050565b6001600160a01b03163b151590565b6000836001600160a01b031663150b7a0261319c6123c4565b8786866040518563ffffffff1660e01b81526004016131be9493929190614e1e565b6020604051808303816000875af19250505080156131f9575060408051601f3d908101601f191682019092526131f691810190614e51565b60015b613254573d808015613227576040519150601f19603f3d011682016040523d82523d6000602084013e61322c565b606091505b50805161324c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000610aea825490565b6127106001600160601b03821611156132e95760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610d0c565b6001600160a01b03821661333b5760405162461bcd60e51b815260206004820152601960248201527822a921991c9c189d1034b73b30b634b2103932b1b2b4bb32b960391b6044820152606401610d0c565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b909102176101c355565b60006001600160e01b03198216635a05180f60e01b1480610aea5750610aea8261397a565b6001600160e01b0319166301ffc9a760e01b1490565b60006133bb33611031565b156133cd575060131936013560601c90565b503390565b6133dc8282611784565b610f87576133f4816001600160a01b0316601461399f565b6133ff83602061399f565b604051602001613410929190614e6e565b60408051601f198184030181529082905262461bcd60e51b8252610d0c91600401613e14565b6134408282611784565b610f8757600082815261012d602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561347a6123c4565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600061177d836001600160a01b038416613b3a565b6134dd8282611784565b15610f8757600082815261012d602090815260408083206001600160a01b03851684529091529020805460ff191690556135156123c4565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600061177d836001600160a01b038416613b89565b610191546001600160a01b03841661359857604051622e076360e81b815260040160405180910390fd5b826135b65760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526101966020908152604080832080546001600160801b031981166001600160401b038083168b018116918217600160401b6001600160401b031990941690921783900481168b0181169092021790915585845261019590925290912080546001600160e01b0319168317600160a01b429093169290920291909117905581908185019061365190613174565b156136c8575b60405182906001600160a01b03881690600090600080516020614f72833981519152908290a46136906000878480600101955087613183565b6136ad576040516368d2bf6b60e11b815260040160405180910390fd5b808210613657578261019154146136c357600080fd5b6136fb565b5b6040516001830192906001600160a01b03881690600090600080516020614f72833981519152908290a48082106136c9575b5061019155610cbf600085838684565b600082600001828154811061372257613722614a08565b9060005260206000200154905092915050565b6000808281805b87518110156137f75761375060028361478e565b9150600088828151811061376657613766614a08565b602002602001015190508084116137a85760408051602081018690529081018290526060016040516020818303038152906040528051906020012093506137e4565b60408051602081018390529081018590526060016040516020818303038152906040528051906020012093506001836137e19190614a1e565b92505b50806137ef81614a36565b91505061373c565b50941495939450505050565b600054610100900460ff1661382a5760405162461bcd60e51b8152600401610d0c90614dc1565b60018055565b600054610100900460ff16612ee55760405162461bcd60e51b8152600401610d0c90614dc1565b600054610100900460ff1661387e5760405162461bcd60e51b8152600401610d0c90614dc1565b60005b8151811015610f87576001609760008484815181106138a2576138a2614a08565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806138de81614a36565b915050613881565b600054610100900460ff1661390d5760405162461bcd60e51b8152600401610d0c90614dc1565b815161392190610193906020850190613c7c565b50805161393690610194906020840190613c7c565b506001610191555050565b6060831561395057508161177d565b8251156139605782518084602001fd5b8160405162461bcd60e51b8152600401610d0c9190613e14565b60006001600160e01b03198216637965db0b60e01b1480610aea5750610aea8261339a565b606060006139ae83600261478e565b6139b9906002614a1e565b6001600160401b038111156139d0576139d0613ea3565b6040519080825280601f01601f1916602001820160405280156139fa576020820181803683370190505b509050600360fc1b81600081518110613a1557613a15614a08565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613a4457613a44614a08565b60200101906001600160f81b031916908160001a9053506000613a6884600261478e565b613a73906001614a1e565b90505b6001811115613aeb576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613aa757613aa7614a08565b1a60f81b828281518110613abd57613abd614a08565b60200101906001600160f81b031916908160001a90535060049490941c93613ae481614edd565b9050613a76565b50831561177d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d0c565b6000818152600183016020526040812054613b8157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610aea565b506000610aea565b60008181526001830160205260408120548015613c72576000613bad600183614bf5565b8554909150600090613bc190600190614bf5565b9050818114613c26576000866000018281548110613be157613be1614a08565b9060005260206000200154905080876000018481548110613c0457613c04614a08565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613c3757613c37614ef4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610aea565b6000915050610aea565b828054613c8890614729565b90600052602060002090601f016020900481019282613caa5760008555613cf0565b82601f10613cc357805160ff1916838001178555613cf0565b82800160010185558215613cf0579182015b82811115613cf0578251825591602001919060010190613cd5565b50613cfc929150613d74565b5090565b828054613d0c90614729565b90600052602060002090601f016020900481019282613d2e5760008555613cf0565b82601f10613d475782800160ff19823516178555613cf0565b82800160010185558215613cf0579182015b82811115613cf0578235825591602001919060010190613d59565b5b80821115613cfc5760008155600101613d75565b6001600160e01b031981168114610fc757600080fd5b600060208284031215613db157600080fd5b813561177d81613d89565b60005b83811015613dd7578181015183820152602001613dbf565b83811115610cbf5750506000910152565b60008151808452613e00816020860160208601613dbc565b601f01601f19169290920160200192915050565b60208152600061177d6020830184613de8565b600060208284031215613e3957600080fd5b5035919050565b6001600160a01b0391909116815260200190565b80356001600160a01b0381168114612eb157600080fd5b60008060408385031215613e7e57600080fd5b613e8783613e54565b946020939093013593505050565b8015158114610fc757600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613ee157613ee1613ea3565b604052919050565b60006001600160401b03831115613f0257613f02613ea3565b613f15601f8401601f1916602001613eb9565b9050828152838383011115613f2957600080fd5b828260208301376000602084830101529392505050565b600082601f830112613f5157600080fd5b61177d83833560208501613ee9565b600080600060608486031215613f7557600080fd5b613f7e84613e54565b92506020840135613f8e81613e95565b915060408401356001600160401b03811115613fa957600080fd5b613fb586828701613f40565b9150509250925092565b600060208284031215613fd157600080fd5b61177d82613e54565b600080600060608486031215613fef57600080fd5b613ff884613e54565b925061400660208501613e54565b9150604084013590509250925092565b6000806040838503121561402957600080fd5b50508035926020909101359150565b6000806040838503121561404b57600080fd5b8235915061405b60208401613e54565b90509250929050565b6000806020838503121561407757600080fd5b82356001600160401b038082111561408e57600080fd5b818501915085601f8301126140a257600080fd5b8135818111156140b157600080fd5b8660208285010111156140c357600080fd5b60209290920196919550909350505050565b6020815281516020820152600060208301516140f5604084018215159052565b506040830151610120806060850152614112610140850183613de8565b91506060850151601f1985840301608086015261412f8382613de8565b925050608085015160a085015260a085015160c085015260c085015160e085015260e0850151610100818187015280870151838701525050508091505092915050565b6000610120828403121561418557600080fd5b50919050565b6000806040838503121561419e57600080fd5b82356001600160401b038111156141b457600080fd5b6141c085828601614172565b95602094909401359450505050565b60008083601f8401126141e157600080fd5b5081356001600160401b038111156141f857600080fd5b6020830191508360208260051b8501011115610e4057600080fd5b6000806000806040858703121561422957600080fd5b84356001600160401b038082111561424057600080fd5b61424c888389016141cf565b9096509450602087013591508082111561426557600080fd5b50614272878288016141cf565b95989497509550505050565b60006101008451151583526020850151602084015260408501516040840152606085015160608401526080850151608084015260a085015160a084015260c085015160c08401528060e084015283516020828501526142e1610120850182613de8565b9695505050505050565b600080602083850312156142fe57600080fd5b82356001600160401b0381111561431457600080fd5b614320858286016141cf565b90969095509350505050565b60006020828403121561433e57600080fd5b81356001600160401b0381111561435457600080fd5b8201610100818503121561177d57600080fd5b60006020828403121561437957600080fd5b81356001600160401b0381111561438f57600080fd5b612e1a84828501614172565b6000806000806000806000806080898b0312156143b757600080fd5b88356001600160401b03808211156143ce57600080fd5b6143da8c838d016141cf565b909a50985060208b01359150808211156143f357600080fd5b6143ff8c838d016141cf565b909850965060408b013591508082111561441857600080fd5b6144248c838d016141cf565b909650945060608b013591508082111561443d57600080fd5b5061444a8b828c016141cf565b999c989b5096995094979396929594505050565b600082601f83011261446f57600080fd5b813560206001600160401b0382111561448a5761448a613ea3565b8160051b614499828201613eb9565b92835284810182019282810190878511156144b357600080fd5b83870192505b848310156144d9576144ca83613e54565b825291830191908301906144b9565b979650505050505050565b600080600080600080600060e0888a0312156144ff57600080fd5b61450888613e54565b965060208801356001600160401b038082111561452457600080fd5b6145308b838c01613f40565b975060408a013591508082111561454657600080fd5b6145528b838c01613f40565b965060608a013591508082111561456857600080fd5b6145748b838c01613f40565b955060808a013591508082111561458a57600080fd5b506145978a828b0161445e565b9350506145a660a08901613e54565b91506145b460c08901613e54565b905092959891949750929550565b600080604083850312156145d557600080fd5b6145de83613e54565b915060208301356145ee81613e95565b809150509250929050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561464e57603f1988860301845261463c858351613de8565b94509285019290850190600101614620565b5092979650505050505050565b6000806000806080858703121561467157600080fd5b61467a85613e54565b935061468860208601613e54565b92506040850135915060608501356001600160401b038111156146aa57600080fd5b8501601f810187136146bb57600080fd5b6146ca87823560208401613ee9565b91505092959194509250565b6000602082840312156146e857600080fd5b81356001600160601b038116811461177d57600080fd5b6000806040838503121561471257600080fd5b61471b83613e54565b915061405b60208401613e54565b600181811c9082168061473d57607f821691505b6020821081141561418557634e487b7160e01b600052602260045260246000fd5b6001600160a01b0392831681529116602082015260400190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156147a8576147a8614778565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826147d2576147d26147ad565b500490565b6020808252600e908201526d139bdd08185d5d1a1bdc9a5e995960921b604082015260600190565b60008135610aea81613e95565b60ff1981541660ff8315151681178255505050565b6000808335601e1984360301811261483857600080fd5b8301803591506001600160401b0382111561485257600080fd5b602001915036819003821315610e4057600080fd5b601f821115610c5c57600081815260208120601f850160051c8101602086101561488e5750805b601f850160051c820191505b818110156113c25782815560010161489a565b600019600383901b1c191660019190911b1790565b6001600160401b038311156148d9576148d9613ea3565b6148ed836148e78354614729565b83614867565b6000601f84116001811461491b57600085156149095750838201355b61491386826148ad565b845550611299565b600083815260209020601f19861690835b8281101561494c578685013582556020948501946001909201910161492c565b50868210156149695760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8135815561499761498e602084016147ff565b6001830161480c565b6149a46040830183614821565b6149b28183600286016148c2565b50506149c16060830183614821565b6149cf8183600386016148c2565b50506080820135600482015560a0820135600582015560c0820135600682015560e0820135600782015561010082013560088201555050565b634e487b7160e01b600052603260045260246000fd5b60008219821115614a3157614a31614778565b500190565b6000600019821415614a4a57614a4a614778565b5060010190565b6000823561011e19833603018112614a6857600080fd5b9190910192915050565b614a7c8283614821565b6001600160401b03811115614a9357614a93613ea3565b614aa781614aa18554614729565b85614867565b6000601f821160018114614ad55760008315614ac35750838201355b614acd84826148ad565b8655506113c2565b600085815260209020601f19841690835b82811015614b065786850135825560209485019460019092019101614ae6565b5084821015614b235760001960f88660031b161c19848701351681555b50505050600190811b019091555050565b8135614b3f81613e95565b614b49818361480c565b506020820135600182015560408201356002820155606082013560038201556080820135600482015560a0820135600582015560c0820135600682015560e0820135601e19833603018112614b9d57600080fd5b610c5c81840160078401614a72565b6000808335601e19843603018112614bc357600080fd5b8301803591506001600160401b03821115614bdd57600080fd5b6020019150600581901b3603821315610e4057600080fd5b600082821015614c0757614c07614778565b500390565b60008351614c1e818460208801613dbc565b835190830190614c32818360208801613dbc565b600b60fa1b9101908152600101949350505050565b6000602080835260008454614c5b81614729565b80848701526040600180841660008114614c7c5760018114614c9057614cbe565b60ff19851689840152606089019550614cbe565b896000528660002060005b85811015614cb65781548b8201860152908301908801614c9b565b8a0184019650505b509398975050505050505050565b6000808454614cda81614729565b60018281168015614cf25760018114614d0357614d32565b60ff19841687528287019450614d32565b8860005260208060002060005b85811015614d295781548a820152908401908201614d10565b50505082870194505b505050508351614d46818360208801613dbc565b64173539b7b760d91b9101908152600501949350505050565b600082614d6e57614d6e6147ad565b500690565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60008251614a68818460208701613dbc565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906142e190830184613de8565b600060208284031215614e6357600080fd5b815161177d81613d89565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351614ea0816017850160208801613dbc565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614ed1816028840160208801613dbc565b01602801949350505050565b600081614eec57614eec614778565b506000190190565b634e487b7160e01b600052603160045260246000fdfe8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a8416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65649f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef2ce8d04a9c35987429af538825cd2438cc5c5bb5dc427955f84daaa3ea105016a164736f6c634300080c000a
Deployed Bytecode
0x6080604052600436106102b25760003560e01c806301ffc9a7146102b757806306fdde03146102ec578063081812fc1461030e578063095ea7b31461033b578063102ba7e91461035d57806313af40351461037d57806318160ddd1461039d5780631e7269c5146103c657806323b872dd146103f4578063248a9ca3146104145780632a55205a146104345780632f2ff15d1461047357806336568abe146104935780633b6fda59146104b35780633dc3df7d146104ec5780633f4ba83a1461050d57806342842e0e1461052257806342966c681461054257806355f804b314610562578063572b6c05146105825780635c975abb146105a25780636182ff53146105ba5780636352211e146105e757806363906d0d1461060757806364274fef14610639578063666f8ca414610659578063672434821461067957806370a082311461069957806373229cf0146106b9578063738170a4146106ea57806379502c551461070b578063806feae31461072e57806383de187b1461074e5780638456cb591461076e57806387b63e3a146107835780638b81a7ee146107bc5780638da5cb5b146107dc5780638f76b540146107f15780639010d07c1461081157806391d1485414610831578063938e3d7b14610851578063942593991461087157806395d89b41146108845780639ef44ead14610899578063a0a8e460146108b9578063a217fddf146108d5578063a22cb465146108ea578063ac9650d81461090a578063b3738dfc14610937578063b522ecff14610957578063b88d4fde14610977578063c87b56dd14610997578063ca15c873146109b7578063cac92669146109d7578063cb2ef6f7146109f7578063cdeee63714610a1a578063d547741f14610a3a578063e8a3d48514610a5a578063e985e9c514610a6f578063f60ca60d14610a8f578063fb108ea614610ab0575b600080fd5b3480156102c357600080fd5b506102d76102d2366004613d9f565b610ad0565b60405190151581526020015b60405180910390f35b3480156102f857600080fd5b50610301610af0565b6040516102e39190613e14565b34801561031a57600080fd5b5061032e610329366004613e27565b610b83565b6040516102e39190613e40565b34801561034757600080fd5b5061035b610356366004613e6b565b610bc8565b005b34801561036957600080fd5b5061035b610378366004613f60565b610c61565b34801561038957600080fd5b5061035b610398366004613fbf565b610cc5565b3480156103a957600080fd5b50610192546101915403600019015b6040519081526020016102e3565b3480156103d257600080fd5b506103b86103e1366004613fbf565b6101c66020526000908152604090205481565b34801561040057600080fd5b5061035b61040f366004613fda565b610d76565b34801561042057600080fd5b506103b861042f366004613e27565b610d81565b34801561044057600080fd5b5061045461044f366004614016565b610d97565b604080516001600160a01b0390931683526020830191909152016102e3565b34801561047f57600080fd5b5061035b61048e366004614038565b610e47565b34801561049f57600080fd5b5061035b6104ae366004614038565b610efd565b3480156104bf57600080fd5b506103b86104ce366004613e6b565b6101c760209081526000928352604080842090915290825290205481565b3480156104f857600080fd5b506101ee5461032e906001600160a01b031681565b34801561051957600080fd5b5061035b610f8b565b34801561052e57600080fd5b5061035b61053d366004613fda565b610fca565b34801561054e57600080fd5b5061035b61055d366004613e27565b610fe5565b34801561056e57600080fd5b5061035b61057d366004614064565b610ff0565b34801561058e57600080fd5b506102d761059d366004613fbf565b611031565b3480156105ae57600080fd5b5060655460ff166102d7565b3480156105c657600080fd5b506105da6105d5366004613e27565b61104f565b6040516102e391906140d5565b3480156105f357600080fd5b5061032e610602366004613e27565b611238565b34801561061357600080fd5b506101f0546101f154610624919082565b604080519283526020830191909152016102e3565b34801561064557600080fd5b5061035b61065436600461418b565b61124a565b34801561066557600080fd5b5061035b610674366004613fbf565b6112a0565b34801561068557600080fd5b5061035b610694366004614213565b6112f8565b3480156106a557600080fd5b506103b86106b4366004613fbf565b6113ca565b3480156106c557600080fd5b506102d76106d4366004613fbf565b6101fb6020526000908152604090205460ff1681565b3480156106f657600080fd5b506101ed5461032e906001600160a01b031681565b34801561071757600080fd5b50610720611419565b6040516102e392919061427e565b34801561073a57600080fd5b5061035b6107493660046142eb565b61150d565b34801561075a57600080fd5b5061035b61076936600461432c565b6115a4565b34801561077a57600080fd5b5061035b6115e6565b34801561078f57600080fd5b506103b861079e366004613e27565b3360009081526101c760209081526040808320938352929052205490565b3480156107c857600080fd5b5061035b6107d7366004614367565b611622565b3480156107e857600080fd5b5061032e611691565b3480156107fd57600080fd5b5061030161080c366004613fbf565b6116c9565b34801561081d57600080fd5b5061032e61082c366004614016565b611764565b34801561083d57600080fd5b506102d761084c366004614038565b611784565b34801561085d57600080fd5b5061035b61086c366004614064565b6117b0565b61035b61087f36600461439b565b6117f1565b34801561089057600080fd5b50610301611c88565b3480156108a557600080fd5b5061035b6108b43660046144e4565b611c98565b3480156108c557600080fd5b50604051600681526020016102e3565b3480156108e157600080fd5b506103b8600081565b3480156108f657600080fd5b5061035b6109053660046145c2565b611e63565b34801561091657600080fd5b5061092a6109253660046142eb565b611eb6565b6040516102e391906145f9565b34801561094357600080fd5b506102d7610952366004613e27565b611faa565b34801561096357600080fd5b5061035b610972366004613fbf565b611fb5565b34801561098357600080fd5b5061035b61099236600461465b565b61200d565b3480156109a357600080fd5b506103016109b2366004613e27565b612058565b3480156109c357600080fd5b506103b86109d2366004613e27565b6120fa565b3480156109e357600080fd5b5061035b6109f23660046146d6565b612112565b348015610a0357600080fd5b506c50726f7073455243373231415560981b6103b8565b348015610a2657600080fd5b5061035b610a35366004613fbf565b61215d565b348015610a4657600080fd5b5061035b610a55366004614038565b6121b5565b348015610a6657600080fd5b50610301612265565b348015610a7b57600080fd5b506102d7610a8a3660046146ff565b612273565b348015610a9b57600080fd5b506101ec5461032e906001600160a01b031681565b348015610abc57600080fd5b5061035b610acb366004613fbf565b6122cc565b6000610adb82612324565b80610aea5750610aea82612364565b92915050565b60606101938054610b0090614729565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2c90614729565b8015610b795780601f10610b4e57610100808354040283529160200191610b79565b820191906000526020600020905b815481529060010190602001808311610b5c57829003601f168201915b5050505050905090565b6000610b8e82612389565b610bab576040516333d1c03960e21b815260040160405180910390fd5b50600090815261019760205260409020546001600160a01b031690565b6000610bd382611238565b9050806001600160a01b0316836001600160a01b03161415610c085760405163250fdee360e21b815260040160405180910390fd5b806001600160a01b0316610c1a6123c4565b6001600160a01b031614610c5157610c3481610a8a6123c4565b610c51576040516367d9dca160e11b815260040160405180910390fd5b610c5c8383836123ce565b505050565b610c78600080516020614f92833981519152611faa565b610c8157600080fd5b6001600160a01b03831660009081526101fb60209081526040808320805460ff19168615151790556101fc82529091208251610cbf92840190613c7c565b50505050565b6000610cd08161242b565b610cdb600083611784565b610d155760405162461bcd60e51b815260206004820152600660248201526510a0a226a4a760d11b60448201526064015b60405180910390fd5b6101ea80546001600160a01b038481166001600160a01b03198316179092556040519116907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690610d69908390869061475e565b60405180910390a1505050565b610c5c83838361243c565b600090815261012d602052604090206001015490565b60008281526101c4602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610e0e5750604080518082019091526101c3546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610e2d906001600160601b03168761478e565b610e3791906147c3565b91519350909150505b9250929050565b600080516020614f92833981519152610e5f8161263b565b610e7b5760405162461bcd60e51b8152600401610d0c906147d7565b610e858383611784565b610c5c57610e938383612674565b6101eb546040516352c28fab60e01b81526001600160a01b03909116906352c28fab90610ec6908590309060040161475e565b600060405180830381600087803b158015610ee057600080fd5b505af1158015610ef4573d6000803e3d6000fd5b50505050505050565b610f056123c4565b6001600160a01b0316816001600160a01b031614610f7d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610d0c565b610f878282612697565b5050565b600080516020614f52833981519152610fa38161263b565b610fbf5760405162461bcd60e51b8152600401610d0c906147d7565b610fc76126ba565b50565b610c5c8383836040518060200160405280600081525061200d565b610fc781600161274d565b600080516020614f928339815191526110088161263b565b6110245760405162461bcd60e51b8152600401610d0c906147d7565b610cbf6101e88484613d00565b6001600160a01b031660009081526097602052604090205460ff1690565b6110a360405180610120016040528060008019168152602001600015158152602001606081526020016060815260200160008152602001600081526020016000815260200160008152602001600081525090565b60008281526101f2602090815260409182902082516101208101845281548152600182015460ff1615159281019290925260028101805492939192918401916110eb90614729565b80601f016020809104026020016040519081016040528092919081815260200182805461111790614729565b80156111645780601f1061113957610100808354040283529160200191611164565b820191906000526020600020905b81548152906001019060200180831161114757829003601f168201915b5050505050815260200160038201805461117d90614729565b80601f01602080910402602001604051908101604052809291908181526020018280546111a990614729565b80156111f65780601f106111cb576101008083540402835291602001916111f6565b820191906000526020600020905b8154815290600101906020018083116111d957829003601f168201915b50505050508152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820154815250509050919050565b600061124382612921565b5192915050565b600080516020614f0b8339815191526112628161263b565b61127e5760405162461bcd60e51b8152600401610d0c906147d7565b60008281526101f2602052604090208390611299828261497b565b5050505050565b600080516020614f928339815191526112b88161263b565b6112d45760405162461bcd60e51b8152600401610d0c906147d7565b506101eb80546001600160a01b0319166001600160a01b0392909216919091179055565b600080516020614f528339815191526113108161263b565b61132c5760405162461bcd60e51b8152600401610d0c906147d7565b60005b848110156113c25783838281811061134957611349614a08565b905060200201356101c560008282546113629190614a1e565b909155506113b0905086868381811061137d5761137d614a08565b90506020020160208101906113929190613fbf565b8585848181106113a4576113a4614a08565b90506020020135612a46565b806113ba81614a36565b91505061132f565b505050505050565b60006001600160a01b0382166113f3576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b0316600090815261019660205260409020546001600160401b031690565b6040805160e0810182526101f3805460ff16151582526101f4546020808401919091526101f554838501526101f65460608401526101f75460808401526101f85460a08401526101f95460c084015283519081019093526101fa8054929391928290829061148690614729565b80601f01602080910402602001604051908101604052809291908181526020018280546114b290614729565b80156114ff5780601f106114d4576101008083540402835291602001916114ff565b820191906000526020600020905b8154815290600101906020018083116114e257829003601f168201915b505050505081525050905082565b600080516020614f0b8339815191526115258161263b565b6115415760405162461bcd60e51b8152600401610d0c906147d7565b6101f182905560005b82811015610cbf5783838281811061156457611564614a08565b90506020028101906115769190614a51565b60008281526101f26020526040902061158f828261497b565b5081905061159c81614a36565b91505061154a565b600080516020614f0b8339815191526115bc8161263b565b6115d85760405162461bcd60e51b8152600401610d0c906147d7565b816101f3610cbf8282614b34565b600080516020614f528339815191526115fe8161263b565b61161a5760405162461bcd60e51b8152600401610d0c906147d7565b610fc7612a60565b600080516020614f0b83398151915261163a8161263b565b6116565760405162461bcd60e51b8152600401610d0c906147d7565b6101f15460009081526101f2602052604090208290611675828261497b565b50506101f1805490600061168883614a36565b91905055505050565b6101ea546000906116ac9082906001600160a01b0316611784565b6116b65750600090565b6101ea546001600160a01b03165b905090565b6101fc60205260009081526040902080546116e390614729565b80601f016020809104026020016040519081016040528092919081815260200182805461170f90614729565b801561175c5780601f106117315761010080835404028352916020019161175c565b820191906000526020600020905b81548152906001019060200180831161173f57829003601f168201915b505050505081565b600082815261015f6020526040812061177d9083612adc565b9392505050565b600091825261012d602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600080516020614f928339815191526117c88161263b565b6117e45760405162461bcd60e51b8152600401610d0c906147d7565b610cbf6101e98484613d00565b600260015414156118445760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0c565b600260015561185233611031565b8061186c5750326118616123c4565b6001600160a01b0316145b61189e5760405162461bcd60e51b81526020600482015260036024820152621093d560ea1b6044820152606401610d0c565b6118a88282612ae8565b6118da5760405162461bcd60e51b8152602060048201526003602482015262626f6f60e81b6044820152606401610d0c565b60008060005b89811015611a59578a8a828181106118fa576118fa614a08565b905060200201358261190c9190614a1e565b915061192f85858381811061192357611923614a08565b90506020020135612b7d565b6119e53386868481811061194557611945614a08565b3360009081526101c7602090815260408220920293909301359290915089898781811061197457611974614a08565b905060200201358152602001908152602001600020548e8e8681811061199c5761199c614a08565b905060200201358b8b878181106119b5576119b5614a08565b905060200201358e8e888181106119ce576119ce614a08565b90506020028101906119e09190614bac565b612bf7565b8a8a828181106119f7576119f7614a08565b905060200201356101f06002016000878785818110611a1857611a18614a08565b90506020020135815260200190815260200160002060040154611a3b919061478e565b611a459084614a1e565b925080611a5181614a36565b9150506118e0565b506101f6546101c554600190611a70908490614a1e565b611a7a9190614bf5565b1115611abf5760405162461bcd60e51b815260206004820152601460248201527322bc31b2b2b232b21036b0bc1039bab838363c9760611b6044820152606401610d0c565b34821115611ae05760405163356680b760e01b815260040160405180910390fd5b6101ed5460405160009182916001600160a01b039091169034908381818185875af1925050503d8060008114611b32576040519150601f19603f3d011682016040523d82523d6000602084013e611b37565b606091505b506040805160208101909152600081526101c554929450909250905b846101c55401811015611b955781611b6a82612d1d565b604051602001611b7b929190614c0c565b60408051601f198184030181529190529150600101611b53565b5060005b8c811015611c0a578d8d82818110611bb357611bb3614a08565b3360009081526101c760209081526040822092029390930135929091508a8a85818110611be257611be2614a08565b6020908102929092013583525081019190915260400160002080549091019055600101611b99565b503360008181526101c6602052604090208054860190556101c5805486019055611c349085612a46565b336001600160a01b03167f0c1b180fbb60448c5491c5ddc7c3a923854214b9ff70f90a7821333338971f9282604051611c6d9190613e14565b60405180910390a25050600180555050505050505050505050565b60606101948054610b0090614729565b6000611ca46001612e22565b90508015611cbc576000805461ff0019166101001790555b611cc4612eb6565b611ccd84612ee7565b611cd78787612f1f565b6101ed80546001600160a01b03199081166001600160a01b038681169182179093556101ee8054831690911790556101ea805482168b84161790556101eb80549091169184169190911790558451611d37906101e8906020880190613c7c565b50611d43600089612f50565b611d5c600080516020614f928339815191526000612f5a565b611d82600080516020614f0b833981519152600080516020614f92833981519152612f5a565b611da8600080516020614f52833981519152600080516020614f0b833981519152612f5a565b60016101c5556101eb546040516352c28fab60e01b81526001600160a01b03909116906352c28fab90611de1908b90309060040161475e565b600060405180830381600087803b158015611dfb57600080fd5b505af1158015611e0f573d6000803e3d6000fd5b505050508015611e59576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b6001600160a01b03821660009081526101fb60209081526040808320546101fc9092529091209060ff1615611eab5760405162461bcd60e51b8152600401610d0c9190614c47565b50610f878282612fae565b6060816001600160401b03811115611ed057611ed0613ea3565b604051908082528060200260200182016040528015611f0357816020015b6060815260200190600190039081611eee5790505b50905060005b82811015611fa357611f7330858584818110611f2757611f27614a08565b9050602002810190611f399190614821565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061308292505050565b828281518110611f8557611f85614a08565b60200260200101819052508080611f9b90614a36565b915050611f09565b5092915050565b6000610aea8261263b565b600080516020614f92833981519152611fcd8161263b565b611fe95760405162461bcd60e51b8152600401610d0c906147d7565b506101ed80546001600160a01b0319166001600160a01b0392909216919091179055565b61201884848461243c565b61202a836001600160a01b0316613174565b15610cbf5761203b84848484613183565b610cbf576040516368d2bf6b60e11b815260040160405180910390fd5b606061206382612389565b6120c75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d0c565b6101e86120d383612d1d565b6040516020016120e4929190614ccc565b6040516020818303038152906040529050919050565b600081815261015f60205260408120610aea90613271565b600080516020614f0b83398151915261212a8161263b565b6121465760405162461bcd60e51b8152600401610d0c906147d7565b6101ee54610f87906001600160a01b03168361327b565b600080516020614f928339815191526121758161263b565b6121915760405162461bcd60e51b8152600401610d0c906147d7565b506101ee80546001600160a01b0319166001600160a01b0392909216919091179055565b600080516020614f928339815191526121cd8161263b565b6121e95760405162461bcd60e51b8152600401610d0c906147d7565b6121f38383611784565b15610c5c578215801561221e5750612209611691565b6001600160a01b0316826001600160a01b0316145b1561222857600080fd5b6122328383612697565b6101eb54604051637f7c149160e01b81526001600160a01b0390911690637f7c149190610ec6908590309060040161475e565b6101e980546116e390614729565b6001600160a01b03811660009081526101fb602052604081205460ff161561229d57506000610aea565b6001600160a01b038084166000908152610198602090815260408083209386168352929052205460ff1661177d565b600080516020614f0b8339815191526122e48161263b565b6123005760405162461bcd60e51b8152600401610d0c906147d7565b506101ec80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b148061235557506001600160e01b03198216635b5e139f60e01b145b80610aea5750610aea82613375565b60006001600160e01b0319821663152a902d60e11b1480610aea5750610aea8261339a565b60008160011115801561239e57506101915482105b8015610aea57505060009081526101956020526040902054600160e01b900460ff161590565b60006116c46133b0565b6000828152610197602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610fc7816124376123c4565b6133d2565b600061244782612921565b9050836001600160a01b031681600001516001600160a01b03161461247e5760405162a1148160e81b815260040160405180910390fd5b6000846001600160a01b03166124926123c4565b6001600160a01b031614806124ae57506124ae85610a8a6123c4565b806124d957506124bc6123c4565b6001600160a01b03166124ce84610b83565b6001600160a01b0316145b9050806124f957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661252057604051633a954ecd60e21b815260040160405180910390fd5b61252c600084876123ce565b6001600160a01b0385811660009081526101966020908152604080832080546001600160401b03198082166001600160401b039283166000190183161790925589861680865283862080549384169383166001908101841694909417905589865261019590945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166126025761019154821461260257805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b0316600080516020614f7283398151915260405160405180910390a45050505050565b60006126498261084c6123c4565b1561265657506001919050565b8161266357506000919050565b610aea61266f83610d81565b61263b565b61267e8282613436565b600082815261015f60205260409020610c5c90826134be565b6126a182826134d3565b600082815261015f60205260409020610c5c9082613559565b60655460ff166127035760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610d0c565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6127366123c4565b6040516127439190613e40565b60405180910390a1565b600061275883612921565b805190915082156127e0576000816001600160a01b03166127776123c4565b6001600160a01b03161480612793575061279382610a8a6123c4565b806127be57506127a16123c4565b6001600160a01b03166127b386610b83565b6001600160a01b0316145b9050806127de57604051632ce44b5f60e11b815260040160405180910390fd5b505b6127ec600085836123ce565b6001600160a01b038082166000818152610196602090815260408083208054600160801b6000196001600160401b038084169190910181166001600160401b0319841681178390048216600190810183169093026001600160401b03600160801b03600160c01b0319909416179290921783558b8652610195909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b1785559189018084529220805491949091166128e7576101915482146128e757805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b03841690600080516020614f72833981519152908390a45050610192805460010190555050565b60408051606081018252600080825260208201819052918101919091528180600111612a2d5761019154811015612a2d5760008181526101956020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290612a2b5780516001600160a01b0316156129c1579392505050565b506000190160008181526101956020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612a26579392505050565b6129c1565b505b604051636f96cda160e11b815260040160405180910390fd5b610f8782826040518060200160405280600081525061356e565b60655460ff1615612aa65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d0c565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127366123c4565b600061177d838361370b565b6000805b82811015612b735760005b83811015612b6057848482818110612b1157612b11614a08565b90506020020135858584818110612b2a57612b2a614a08565b90506020020135148015612b3e5750808214155b15612b4e57600092505050610aea565b80612b5881614a36565b915050612af7565b5080612b6b81614a36565b915050612aec565b5060019392505050565b60655460ff1680612b9f575060008181526101f2602052604090206007015442105b80612bbb575060008181526101f2602052604090206008015442115b80612bd9575060008181526101f2602052604090206001015460ff16155b15610fc7576040516347cc82cd60e01b815260040160405180910390fd5b60008681526101f2602052604090206005810154612c158787614a1e565b1115612c3457604051631f43edc360e11b815260040160405180910390fd5b805415611e595783851180612c51575083612c4f8787614a1e565b115b15612c6f57604051631f43edc360e11b815260040160405180910390fd5b6000612cf1848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250508554604051909250612cd691508d908a9060200160609290921b6001600160601b0319168252601482015260340190565b60405160208183030381529060405280519060200120613735565b50905080612d125760405163c8ac23c360e01b815260040160405180910390fd5b505050505050505050565b606081612d415750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d6b5780612d5581614a36565b9150612d649050600a836147c3565b9150612d45565b6000816001600160401b03811115612d8557612d85613ea3565b6040519080825280601f01601f191660200182016040528015612daf576020820181803683370190505b5090505b8415612e1a57612dc4600183614bf5565b9150612dd1600a86614d5f565b612ddc906030614a1e565b60f81b818381518110612df157612df1614a08565b60200101906001600160f81b031916908160001a905350612e13600a866147c3565b9450612db3565b949350505050565b60008054610100900460ff1615612e70578160ff166001148015612e4c5750612e4a30613174565b155b612e685760405162461bcd60e51b8152600401610d0c90614d73565b506000919050565b60005460ff808416911610612e975760405162461bcd60e51b8152600401610d0c90614d73565b506000805460ff191660ff92909216919091179055600190565b919050565b600054610100900460ff16612edd5760405162461bcd60e51b8152600401610d0c90614dc1565b612ee5613803565b565b600054610100900460ff16612f0e5760405162461bcd60e51b8152600401610d0c90614dc1565b612f16613830565b610fc781613857565b600054610100900460ff16612f465760405162461bcd60e51b8152600401610d0c90614dc1565b610f8782826138e6565b610f878282612674565b6000612f6583610d81565b600084815261012d6020526040808220600101859055519192508391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b612fb66123c4565b6001600160a01b0316826001600160a01b03161415612fe85760405163b06307db60e01b815260040160405180910390fd5b806101986000612ff66123c4565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561303a6123c4565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051613076911515815260200190565b60405180910390a35050565b606061308d83613174565b6130e85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610d0c565b600080846001600160a01b0316846040516131039190614e0c565b600060405180830381855af49150503d806000811461313e576040519150601f19603f3d011682016040523d82523d6000602084013e613143565b606091505b509150915061316b8282604051806060016040528060278152602001614f2b60279139613941565b95945050505050565b6001600160a01b03163b151590565b6000836001600160a01b031663150b7a0261319c6123c4565b8786866040518563ffffffff1660e01b81526004016131be9493929190614e1e565b6020604051808303816000875af19250505080156131f9575060408051601f3d908101601f191682019092526131f691810190614e51565b60015b613254573d808015613227576040519150601f19603f3d011682016040523d82523d6000602084013e61322c565b606091505b50805161324c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000610aea825490565b6127106001600160601b03821611156132e95760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610d0c565b6001600160a01b03821661333b5760405162461bcd60e51b815260206004820152601960248201527822a921991c9c189d1034b73b30b634b2103932b1b2b4bb32b960391b6044820152606401610d0c565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b909102176101c355565b60006001600160e01b03198216635a05180f60e01b1480610aea5750610aea8261397a565b6001600160e01b0319166301ffc9a760e01b1490565b60006133bb33611031565b156133cd575060131936013560601c90565b503390565b6133dc8282611784565b610f87576133f4816001600160a01b0316601461399f565b6133ff83602061399f565b604051602001613410929190614e6e565b60408051601f198184030181529082905262461bcd60e51b8252610d0c91600401613e14565b6134408282611784565b610f8757600082815261012d602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561347a6123c4565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600061177d836001600160a01b038416613b3a565b6134dd8282611784565b15610f8757600082815261012d602090815260408083206001600160a01b03851684529091529020805460ff191690556135156123c4565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600061177d836001600160a01b038416613b89565b610191546001600160a01b03841661359857604051622e076360e81b815260040160405180910390fd5b826135b65760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526101966020908152604080832080546001600160801b031981166001600160401b038083168b018116918217600160401b6001600160401b031990941690921783900481168b0181169092021790915585845261019590925290912080546001600160e01b0319168317600160a01b429093169290920291909117905581908185019061365190613174565b156136c8575b60405182906001600160a01b03881690600090600080516020614f72833981519152908290a46136906000878480600101955087613183565b6136ad576040516368d2bf6b60e11b815260040160405180910390fd5b808210613657578261019154146136c357600080fd5b6136fb565b5b6040516001830192906001600160a01b03881690600090600080516020614f72833981519152908290a48082106136c9575b5061019155610cbf600085838684565b600082600001828154811061372257613722614a08565b9060005260206000200154905092915050565b6000808281805b87518110156137f75761375060028361478e565b9150600088828151811061376657613766614a08565b602002602001015190508084116137a85760408051602081018690529081018290526060016040516020818303038152906040528051906020012093506137e4565b60408051602081018390529081018590526060016040516020818303038152906040528051906020012093506001836137e19190614a1e565b92505b50806137ef81614a36565b91505061373c565b50941495939450505050565b600054610100900460ff1661382a5760405162461bcd60e51b8152600401610d0c90614dc1565b60018055565b600054610100900460ff16612ee55760405162461bcd60e51b8152600401610d0c90614dc1565b600054610100900460ff1661387e5760405162461bcd60e51b8152600401610d0c90614dc1565b60005b8151811015610f87576001609760008484815181106138a2576138a2614a08565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806138de81614a36565b915050613881565b600054610100900460ff1661390d5760405162461bcd60e51b8152600401610d0c90614dc1565b815161392190610193906020850190613c7c565b50805161393690610194906020840190613c7c565b506001610191555050565b6060831561395057508161177d565b8251156139605782518084602001fd5b8160405162461bcd60e51b8152600401610d0c9190613e14565b60006001600160e01b03198216637965db0b60e01b1480610aea5750610aea8261339a565b606060006139ae83600261478e565b6139b9906002614a1e565b6001600160401b038111156139d0576139d0613ea3565b6040519080825280601f01601f1916602001820160405280156139fa576020820181803683370190505b509050600360fc1b81600081518110613a1557613a15614a08565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613a4457613a44614a08565b60200101906001600160f81b031916908160001a9053506000613a6884600261478e565b613a73906001614a1e565b90505b6001811115613aeb576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613aa757613aa7614a08565b1a60f81b828281518110613abd57613abd614a08565b60200101906001600160f81b031916908160001a90535060049490941c93613ae481614edd565b9050613a76565b50831561177d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d0c565b6000818152600183016020526040812054613b8157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610aea565b506000610aea565b60008181526001830160205260408120548015613c72576000613bad600183614bf5565b8554909150600090613bc190600190614bf5565b9050818114613c26576000866000018281548110613be157613be1614a08565b9060005260206000200154905080876000018481548110613c0457613c04614a08565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613c3757613c37614ef4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610aea565b6000915050610aea565b828054613c8890614729565b90600052602060002090601f016020900481019282613caa5760008555613cf0565b82601f10613cc357805160ff1916838001178555613cf0565b82800160010185558215613cf0579182015b82811115613cf0578251825591602001919060010190613cd5565b50613cfc929150613d74565b5090565b828054613d0c90614729565b90600052602060002090601f016020900481019282613d2e5760008555613cf0565b82601f10613d475782800160ff19823516178555613cf0565b82800160010185558215613cf0579182015b82811115613cf0578235825591602001919060010190613d59565b5b80821115613cfc5760008155600101613d75565b6001600160e01b031981168114610fc757600080fd5b600060208284031215613db157600080fd5b813561177d81613d89565b60005b83811015613dd7578181015183820152602001613dbf565b83811115610cbf5750506000910152565b60008151808452613e00816020860160208601613dbc565b601f01601f19169290920160200192915050565b60208152600061177d6020830184613de8565b600060208284031215613e3957600080fd5b5035919050565b6001600160a01b0391909116815260200190565b80356001600160a01b0381168114612eb157600080fd5b60008060408385031215613e7e57600080fd5b613e8783613e54565b946020939093013593505050565b8015158114610fc757600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613ee157613ee1613ea3565b604052919050565b60006001600160401b03831115613f0257613f02613ea3565b613f15601f8401601f1916602001613eb9565b9050828152838383011115613f2957600080fd5b828260208301376000602084830101529392505050565b600082601f830112613f5157600080fd5b61177d83833560208501613ee9565b600080600060608486031215613f7557600080fd5b613f7e84613e54565b92506020840135613f8e81613e95565b915060408401356001600160401b03811115613fa957600080fd5b613fb586828701613f40565b9150509250925092565b600060208284031215613fd157600080fd5b61177d82613e54565b600080600060608486031215613fef57600080fd5b613ff884613e54565b925061400660208501613e54565b9150604084013590509250925092565b6000806040838503121561402957600080fd5b50508035926020909101359150565b6000806040838503121561404b57600080fd5b8235915061405b60208401613e54565b90509250929050565b6000806020838503121561407757600080fd5b82356001600160401b038082111561408e57600080fd5b818501915085601f8301126140a257600080fd5b8135818111156140b157600080fd5b8660208285010111156140c357600080fd5b60209290920196919550909350505050565b6020815281516020820152600060208301516140f5604084018215159052565b506040830151610120806060850152614112610140850183613de8565b91506060850151601f1985840301608086015261412f8382613de8565b925050608085015160a085015260a085015160c085015260c085015160e085015260e0850151610100818187015280870151838701525050508091505092915050565b6000610120828403121561418557600080fd5b50919050565b6000806040838503121561419e57600080fd5b82356001600160401b038111156141b457600080fd5b6141c085828601614172565b95602094909401359450505050565b60008083601f8401126141e157600080fd5b5081356001600160401b038111156141f857600080fd5b6020830191508360208260051b8501011115610e4057600080fd5b6000806000806040858703121561422957600080fd5b84356001600160401b038082111561424057600080fd5b61424c888389016141cf565b9096509450602087013591508082111561426557600080fd5b50614272878288016141cf565b95989497509550505050565b60006101008451151583526020850151602084015260408501516040840152606085015160608401526080850151608084015260a085015160a084015260c085015160c08401528060e084015283516020828501526142e1610120850182613de8565b9695505050505050565b600080602083850312156142fe57600080fd5b82356001600160401b0381111561431457600080fd5b614320858286016141cf565b90969095509350505050565b60006020828403121561433e57600080fd5b81356001600160401b0381111561435457600080fd5b8201610100818503121561177d57600080fd5b60006020828403121561437957600080fd5b81356001600160401b0381111561438f57600080fd5b612e1a84828501614172565b6000806000806000806000806080898b0312156143b757600080fd5b88356001600160401b03808211156143ce57600080fd5b6143da8c838d016141cf565b909a50985060208b01359150808211156143f357600080fd5b6143ff8c838d016141cf565b909850965060408b013591508082111561441857600080fd5b6144248c838d016141cf565b909650945060608b013591508082111561443d57600080fd5b5061444a8b828c016141cf565b999c989b5096995094979396929594505050565b600082601f83011261446f57600080fd5b813560206001600160401b0382111561448a5761448a613ea3565b8160051b614499828201613eb9565b92835284810182019282810190878511156144b357600080fd5b83870192505b848310156144d9576144ca83613e54565b825291830191908301906144b9565b979650505050505050565b600080600080600080600060e0888a0312156144ff57600080fd5b61450888613e54565b965060208801356001600160401b038082111561452457600080fd5b6145308b838c01613f40565b975060408a013591508082111561454657600080fd5b6145528b838c01613f40565b965060608a013591508082111561456857600080fd5b6145748b838c01613f40565b955060808a013591508082111561458a57600080fd5b506145978a828b0161445e565b9350506145a660a08901613e54565b91506145b460c08901613e54565b905092959891949750929550565b600080604083850312156145d557600080fd5b6145de83613e54565b915060208301356145ee81613e95565b809150509250929050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561464e57603f1988860301845261463c858351613de8565b94509285019290850190600101614620565b5092979650505050505050565b6000806000806080858703121561467157600080fd5b61467a85613e54565b935061468860208601613e54565b92506040850135915060608501356001600160401b038111156146aa57600080fd5b8501601f810187136146bb57600080fd5b6146ca87823560208401613ee9565b91505092959194509250565b6000602082840312156146e857600080fd5b81356001600160601b038116811461177d57600080fd5b6000806040838503121561471257600080fd5b61471b83613e54565b915061405b60208401613e54565b600181811c9082168061473d57607f821691505b6020821081141561418557634e487b7160e01b600052602260045260246000fd5b6001600160a01b0392831681529116602082015260400190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156147a8576147a8614778565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826147d2576147d26147ad565b500490565b6020808252600e908201526d139bdd08185d5d1a1bdc9a5e995960921b604082015260600190565b60008135610aea81613e95565b60ff1981541660ff8315151681178255505050565b6000808335601e1984360301811261483857600080fd5b8301803591506001600160401b0382111561485257600080fd5b602001915036819003821315610e4057600080fd5b601f821115610c5c57600081815260208120601f850160051c8101602086101561488e5750805b601f850160051c820191505b818110156113c25782815560010161489a565b600019600383901b1c191660019190911b1790565b6001600160401b038311156148d9576148d9613ea3565b6148ed836148e78354614729565b83614867565b6000601f84116001811461491b57600085156149095750838201355b61491386826148ad565b845550611299565b600083815260209020601f19861690835b8281101561494c578685013582556020948501946001909201910161492c565b50868210156149695760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8135815561499761498e602084016147ff565b6001830161480c565b6149a46040830183614821565b6149b28183600286016148c2565b50506149c16060830183614821565b6149cf8183600386016148c2565b50506080820135600482015560a0820135600582015560c0820135600682015560e0820135600782015561010082013560088201555050565b634e487b7160e01b600052603260045260246000fd5b60008219821115614a3157614a31614778565b500190565b6000600019821415614a4a57614a4a614778565b5060010190565b6000823561011e19833603018112614a6857600080fd5b9190910192915050565b614a7c8283614821565b6001600160401b03811115614a9357614a93613ea3565b614aa781614aa18554614729565b85614867565b6000601f821160018114614ad55760008315614ac35750838201355b614acd84826148ad565b8655506113c2565b600085815260209020601f19841690835b82811015614b065786850135825560209485019460019092019101614ae6565b5084821015614b235760001960f88660031b161c19848701351681555b50505050600190811b019091555050565b8135614b3f81613e95565b614b49818361480c565b506020820135600182015560408201356002820155606082013560038201556080820135600482015560a0820135600582015560c0820135600682015560e0820135601e19833603018112614b9d57600080fd5b610c5c81840160078401614a72565b6000808335601e19843603018112614bc357600080fd5b8301803591506001600160401b03821115614bdd57600080fd5b6020019150600581901b3603821315610e4057600080fd5b600082821015614c0757614c07614778565b500390565b60008351614c1e818460208801613dbc565b835190830190614c32818360208801613dbc565b600b60fa1b9101908152600101949350505050565b6000602080835260008454614c5b81614729565b80848701526040600180841660008114614c7c5760018114614c9057614cbe565b60ff19851689840152606089019550614cbe565b896000528660002060005b85811015614cb65781548b8201860152908301908801614c9b565b8a0184019650505b509398975050505050505050565b6000808454614cda81614729565b60018281168015614cf25760018114614d0357614d32565b60ff19841687528287019450614d32565b8860005260208060002060005b85811015614d295781548a820152908401908201614d10565b50505082870194505b505050508351614d46818360208801613dbc565b64173539b7b760d91b9101908152600501949350505050565b600082614d6e57614d6e6147ad565b500690565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60008251614a68818460208701613dbc565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906142e190830184613de8565b600060208284031215614e6357600080fd5b815161177d81613d89565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351614ea0816017850160208801613dbc565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614ed1816028840160208801613dbc565b01602801949350505050565b600081614eec57614eec614778565b506000190190565b634e487b7160e01b600052603160045260246000fdfe8eb467f061ca67f42a2d2ca4a346fc9fb645efc0ba75056ee9f71c3a0ccc10a8416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65649f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef2ce8d04a9c35987429af538825cd2438cc5c5bb5dc427955f84daaa3ea105016a164736f6c634300080c000a
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.