Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 15128559 | 780 days ago | IN | 0 ETH | 0.14053783 |
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 Name:
NiftyERC721Token
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 1500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; // ,|||||< ~|||||' `_+7ykKD%RDqmI*~` // 8@@@@@@8' `Q@@@@@` `^oB@@@@@@@@@@@@@@@@@R|` // !@@@@@@@@Q; L@@@@@J '}Q@@@@@@QqonzJfk8@@@@@@@Q, // Q@@@@@@@@@@j `Q@@@@Q` `m@@@@@@h^` `?Q@@@@@* // =@@@@@@@@@@@@D. 7@@@@@i ~Q@@@@@w' ^@@@@@* // Q@@@@@m@@@@@@@Q! `@@@@@Q ;@@@@@@; .txxxx: // |@@@@@u *@@@@@@@@z u@@@@@* `Q@@@@@^ // `Q@@@@Q` 'W@@@@@@@R.'@@@@@B 7@@@@@% :DDDDDDDDDDDDDD5 // c@@@@@7 `Z@@@@@@@QK@@@@@+ 6@@@@@K aQQQQQQQ@@@@@@@* // `@@@@@Q` ^Q@@@@@@@@@@@W j@@@@@@; ,6@@@@@@# // t@@@@@L ,8@@@@@@@@@@! 'Q@@@@@@u, .=A@@@@@@@@^ // .@@@@@Q }@@@@@@@@D 'd@@@@@@@@gUwwU%Q@@@@@@@@@@g // j@@@@@< +@@@@@@@; ;wQ@@@@@@@@@@@@@@@Wf;8@@@; // ~;;;;; .;;;;;~ '!Lx5mEEmyt|!' ;;;~ // // Powered By: @niftygateway // Author: @niftynathang // Collaborators: @conviction_1 // @stormihoebe // @smatthewenglish // @dccockfoster // @blainemalone import "./ERC721Omnibus.sol"; import "../interfaces/IERC2309.sol"; import "../interfaces/IERC721MetadataGenerator.sol"; import "../interfaces/IERC721DefaultOwnerCloneable.sol"; import "../structs/NiftyType.sol"; import "../utils/Signable.sol"; import "../utils/Withdrawable.sol"; import "../utils/Royalties.sol"; contract NiftyERC721Token is ERC721Omnibus, Royalties, Signable, Withdrawable, IERC2309 { using Address for address; event NiftyTypeCreated(address indexed contractAddress, uint256 niftyType, uint256 idFirst, uint256 idLast); uint256 constant internal MAX_INT = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff; // A pointer to a contract that can generate token URI/metadata IERC721MetadataGenerator internal metadataGenerator; // Used to determine next nifty type/token ids to create on a mint call NiftyType internal lastNiftyType; // Sorted array of NiftyType definitions - ordered to allow binary searching NiftyType[] internal niftyTypes; // Mapping from Nifty type to IPFS hash of canonical artifact file. mapping(uint256 => string) private niftyTypeIPFSHashes; constructor() { } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Omnibus, Royalties, NiftyPermissions) returns (bool) { return interfaceId == type(IERC2309).interfaceId || super.supportsInterface(interfaceId); } function setMetadataGenerator(address metadataGenerator_) external { _requireOnlyValidSender(); if(metadataGenerator_ == address(0)) { metadataGenerator = IERC721MetadataGenerator(metadataGenerator_); } else { require(IERC165(metadataGenerator_).supportsInterface(type(IERC721MetadataGenerator).interfaceId), "Invalid Metadata Generator"); metadataGenerator = IERC721MetadataGenerator(metadataGenerator_); } } function finalizeContract() external { _requireOnlyValidSender(); require(!collectionStatus.isContractFinalized, ERROR_CONTRACT_IS_FINALIZED); collectionStatus.isContractFinalized = true; } function tokenURI(uint256 tokenId) public virtual view override returns (string memory) { if(address(metadataGenerator) == address(0)) { return super.tokenURI(tokenId); } else { require(_exists(tokenId), ERROR_QUERY_FOR_NONEXISTENT_TOKEN); return metadataGenerator.tokenMetadata(tokenId, _getNiftyType(tokenId), bytes("")); } } function contractURI() public virtual view override returns (string memory) { if(address(metadataGenerator) == address(0)) { return super.contractURI(); } else { return metadataGenerator.contractMetadata(); } } function tokenIPFSHash(uint256 tokenId) external view returns (string memory) { require(_exists(tokenId), ERROR_QUERY_FOR_NONEXISTENT_TOKEN); return niftyTypeIPFSHashes[_getNiftyType(tokenId)]; } function setIPFSHash(uint256 niftyType, string memory ipfsHash) external { _requireOnlyValidSender(); require(bytes(niftyTypeIPFSHashes[niftyType]).length == 0, "ERC721Metadata: IPFS hash already set"); niftyTypeIPFSHashes[niftyType] = ipfsHash; } function mint(uint256[] calldata amounts, string[] calldata ipfsHashes) external { _requireOnlyValidSender(); require(amounts.length > 0 && ipfsHashes.length > 0, ERROR_INPUT_ARRAY_EMPTY); require(amounts.length == ipfsHashes.length, ERROR_INPUT_ARRAY_SIZE_MISMATCH); address to = collectionStatus.defaultOwner; require(to != address(0), ERROR_TRANSFER_TO_ZERO_ADDRESS); require(!collectionStatus.isContractFinalized, ERROR_CONTRACT_IS_FINALIZED); uint88 initialIdLast = lastNiftyType.idLast; uint72 nextNiftyType = lastNiftyType.niftyType; uint88 nextIdCounter = initialIdLast + 1; uint88 firstNewTokenId = nextIdCounter; uint88 lastIdCounter = 0; for(uint256 i = 0; i < amounts.length; i++) { require(amounts[i] > 0, ERROR_NO_TOKENS_MINTED); uint88 amount = uint88(amounts[i]); lastIdCounter = nextIdCounter + amount - 1; nextNiftyType++; if(bytes(ipfsHashes[i]).length > 0) { niftyTypeIPFSHashes[nextNiftyType] = ipfsHashes[i]; } niftyTypes.push(NiftyType({ isMinted: true, niftyType: nextNiftyType, idFirst: nextIdCounter, idLast: lastIdCounter })); emit NiftyTypeCreated(address(this), nextNiftyType, nextIdCounter, lastIdCounter); nextIdCounter += amount; } uint256 newlyMinted = lastIdCounter - initialIdLast; balances[to] += newlyMinted; lastNiftyType.niftyType = nextNiftyType; lastNiftyType.idLast = lastIdCounter; collectionStatus.amountCreated += uint88(newlyMinted); emit ConsecutiveTransfer(firstNewTokenId, lastIdCounter, address(0), to); } function setBaseURI(string calldata uri) external { _requireOnlyValidSender(); _setBaseURI(uri); } function exists(uint256 tokenId) public view returns (bool) { return _exists(tokenId); } function burn(uint256 tokenId) public { _burn(tokenId); } function burnBatch(uint256[] calldata tokenIds) public { require(tokenIds.length > 0, ERROR_INPUT_ARRAY_EMPTY); for(uint256 i = 0; i < tokenIds.length; i++) { _burn(tokenIds[i]); } } function getNiftyTypes() public view returns (NiftyType[] memory) { return niftyTypes; } function getNiftyTypeDetails(uint256 niftyType) public view returns (NiftyType memory) { uint256 niftyTypeIndex = MAX_INT; unchecked { niftyTypeIndex = niftyType - 1; } if(niftyTypeIndex >= niftyTypes.length) { revert('Nifty Type Does Not Exist'); } return niftyTypes[niftyTypeIndex]; } function _isValidTokenId(uint256 tokenId) internal virtual view override returns (bool) { return tokenId > 0 && tokenId <= collectionStatus.amountCreated; } // Performs a binary search of the nifty types array to find which nifty type a token id is associated with // This is more efficient than iterating the entire nifty type array until the proper entry is found. // This is O(log n) instead of O(n) function _getNiftyType(uint256 tokenId) internal virtual override view returns (uint256) { uint256 min = 0; uint256 max = niftyTypes.length - 1; uint256 guess = (max - min) / 2; while(guess < niftyTypes.length) { NiftyType storage guessResult = niftyTypes[guess]; if(tokenId >= guessResult.idFirst && tokenId <= guessResult.idLast) { return guessResult.niftyType; } else if(tokenId > guessResult.idLast) { min = guess + 1; guess = min + (max - min) / 2; } else if(tokenId < guessResult.idFirst) { max = guess - 1; guess = min + (max - min) / 2; } } return 0; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./ERC721.sol"; import "../interfaces/IERC721DefaultOwnerCloneable.sol"; abstract contract ERC721Omnibus is ERC721, IERC721DefaultOwnerCloneable { struct TokenOwner { bool transferred; address ownerAddress; } struct CollectionStatus { bool isContractFinalized; // 1 byte uint88 amountCreated; // 11 bytes address defaultOwner; // 20 bytes } // Only allow Nifty Entity to be initialized once bool internal initializedDefaultOwner; CollectionStatus internal collectionStatus; // Mapping from token ID to owner address mapping(uint256 => TokenOwner) internal ownersOptimized; function initializeDefaultOwner(address defaultOwner_) public { require(!initializedDefaultOwner, ERROR_REINITIALIZATION_NOT_PERMITTED); collectionStatus.defaultOwner = defaultOwner_; initializedDefaultOwner = true; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, IERC165) returns (bool) { return interfaceId == type(IERC721DefaultOwnerCloneable).interfaceId || super.supportsInterface(interfaceId); } function getCollectionStatus() public view virtual returns (CollectionStatus memory) { return collectionStatus; } function ownerOf(uint256 tokenId) public view virtual override returns (address owner) { require(_isValidTokenId(tokenId), ERROR_QUERY_FOR_NONEXISTENT_TOKEN); owner = ownersOptimized[tokenId].transferred ? ownersOptimized[tokenId].ownerAddress : collectionStatus.defaultOwner; require(owner != address(0), ERROR_QUERY_FOR_NONEXISTENT_TOKEN); } function _exists(uint256 tokenId) internal view virtual override returns (bool) { if(_isValidTokenId(tokenId)) { return ownersOptimized[tokenId].ownerAddress != address(0) || !ownersOptimized[tokenId].transferred; } return false; } function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual override returns (address owner, bool isApprovedOrOwner) { owner = ownerOf(tokenId); isApprovedOrOwner = (spender == owner || tokenApprovals[tokenId] == spender || isApprovedForAll(owner, spender)); } function _clearOwnership(uint256 tokenId) internal virtual override { ownersOptimized[tokenId].transferred = true; ownersOptimized[tokenId].ownerAddress = address(0); } function _setOwnership(address to, uint256 tokenId) internal virtual override { ownersOptimized[tokenId].transferred = true; ownersOptimized[tokenId].ownerAddress = to; } function _isValidTokenId(uint256 /*tokenId*/) internal virtual view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; /** * @dev Interface of the ERC2309 standard as defined in the EIP. */ interface IERC2309 { /** * @dev Emitted when consecutive token ids in range ('fromTokenId') to ('toTokenId') are transferred from one account (`fromAddress`) to * another (`toAddress`). * * Note that `value` may be zero. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed fromAddress, address indexed toAddress); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./IERC165.sol"; interface IERC721MetadataGenerator is IERC165 { function contractMetadata() external view returns (string memory); function tokenMetadata(uint256 tokenId, uint256 niftyType, bytes calldata data) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./IERC165.sol"; interface IERC721DefaultOwnerCloneable is IERC165 { function initializeDefaultOwner(address defaultOwner_) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; struct NiftyType { bool isMinted; // 1 bytes uint72 niftyType; // 9 bytes uint88 idFirst; // 11 bytes uint88 idLast; // 11 bytes }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./NiftyPermissions.sol"; import "../libraries/ECDSA.sol"; import "../structs/SignatureStatus.sol"; abstract contract Signable is NiftyPermissions { event ContractSigned(address signer, bytes32 data, bytes signature); SignatureStatus public signatureStatus; bytes public signature; string internal constant ERROR_CONTRACT_ALREADY_SIGNED = "Contract already signed"; string internal constant ERROR_CONTRACT_NOT_SALTED = "Contract not salted"; string internal constant ERROR_INCORRECT_SECRET_SALT = "Incorrect secret salt"; string internal constant ERROR_SALTED_HASH_SET_TO_ZERO = "Salted hash set to zero"; string internal constant ERROR_SIGNER_SET_TO_ZERO = "Signer set to zero address"; function setSigner(address signer_, bytes32 saltedHash_) external { _requireOnlyValidSender(); require(signer_ != address(0), ERROR_SIGNER_SET_TO_ZERO); require(saltedHash_ != bytes32(0), ERROR_SALTED_HASH_SET_TO_ZERO); require(!signatureStatus.isVerified, ERROR_CONTRACT_ALREADY_SIGNED); signatureStatus.signer = signer_; signatureStatus.saltedHash = saltedHash_; signatureStatus.isSalted = true; } function sign(uint256 salt, bytes calldata signature_) external { require(!signatureStatus.isVerified, ERROR_CONTRACT_ALREADY_SIGNED); require(signatureStatus.isSalted, ERROR_CONTRACT_NOT_SALTED); address expectedSigner = signatureStatus.signer; bytes32 expectedSaltedHash = signatureStatus.saltedHash; require(_msgSender() == expectedSigner, ERROR_INVALID_MSG_SENDER); require(keccak256(abi.encodePacked(salt)) == expectedSaltedHash, ERROR_INCORRECT_SECRET_SALT); require(ECDSA.recover(ECDSA.toEthSignedMessageHash(expectedSaltedHash), signature_) == expectedSigner, ERROR_UNEXPECTED_DATA_SIGNER); signature = signature_; signatureStatus.isVerified = true; emit ContractSigned(expectedSigner, expectedSaltedHash, signature_); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./RejectEther.sol"; import "./NiftyPermissions.sol"; import "../interfaces/IERC20.sol"; import "../interfaces/IERC721.sol"; abstract contract Withdrawable is RejectEther, NiftyPermissions { /** * @dev Slither identifies an issue with sending ETH to an arbitrary destianation. * https://github.com/crytic/slither/wiki/Detector-Documentation#functions-that-send-ether-to-arbitrary-destinations * Recommended mitigation is to "Ensure that an arbitrary user cannot withdraw unauthorized funds." * This mitigation has been performed, as only the contract admin can call 'withdrawETH' and they should * verify the recipient should receive the ETH first. */ function withdrawETH(address payable recipient, uint256 amount) external { _requireOnlyValidSender(); require(amount > 0, ERROR_ZERO_ETH_TRANSFER); require(recipient != address(0), "Transfer to zero address"); uint256 currentBalance = address(this).balance; require(amount <= currentBalance, ERROR_INSUFFICIENT_BALANCE); //slither-disable-next-line arbitrary-send (bool success,) = recipient.call{value: amount}(""); require(success, ERROR_WITHDRAW_UNSUCCESSFUL); } function withdrawERC20(address tokenContract, address recipient, uint256 amount) external { _requireOnlyValidSender(); bool success = IERC20(tokenContract).transfer(recipient, amount); require(success, ERROR_WITHDRAW_UNSUCCESSFUL); } function withdrawERC721(address tokenContract, address recipient, uint256 tokenId) external { _requireOnlyValidSender(); IERC721(tokenContract).safeTransferFrom(address(this), recipient, tokenId, ""); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./NiftyPermissions.sol"; import "../libraries/Clones.sol"; import "../interfaces/IERC20.sol"; import "../interfaces/IERC721.sol"; import "../interfaces/IERC2981.sol"; import "../interfaces/ICloneablePaymentSplitter.sol"; import "../structs/RoyaltyRecipient.sol"; abstract contract Royalties is NiftyPermissions, IERC2981 { event RoyaltyReceiverUpdated(uint256 indexed niftyType, address previousReceiver, address newReceiver); uint256 constant public BIPS_PERCENTAGE_TOTAL = 10000; // Royalty information mapped by nifty type mapping (uint256 => RoyaltyRecipient) internal royaltyRecipients; function supportsInterface(bytes4 interfaceId) public view virtual override(NiftyPermissions, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } function getRoyaltySettings(uint256 niftyType) public view returns (RoyaltyRecipient memory) { return royaltyRecipients[niftyType]; } function setRoyaltyBips(uint256 niftyType, uint256 bips) external { _requireOnlyValidSender(); require(bips <= BIPS_PERCENTAGE_TOTAL, ERROR_BIPS_OVER_100_PERCENT); royaltyRecipients[niftyType].bips = uint16(bips); } function royaltyInfo(uint256 tokenId, uint256 salePrice) public virtual override view returns (address, uint256) { uint256 niftyType = _getNiftyType(tokenId); return royaltyRecipients[niftyType].recipient == address(0) ? (address(0), 0) : (royaltyRecipients[niftyType].recipient, (salePrice * royaltyRecipients[niftyType].bips) / BIPS_PERCENTAGE_TOTAL); } function initializeRoyalties(uint256 niftyType, address splitterImplementation, address[] calldata payees, uint256[] calldata shares) external returns (address) { _requireOnlyValidSender(); address previousReceiver = royaltyRecipients[niftyType].recipient; royaltyRecipients[niftyType].isPaymentSplitter = payees.length > 1; royaltyRecipients[niftyType].recipient = payees.length == 1 ? payees[0] : _clonePaymentSplitter(splitterImplementation, payees, shares); emit RoyaltyReceiverUpdated(niftyType, previousReceiver, royaltyRecipients[niftyType].recipient); return royaltyRecipients[niftyType].recipient; } function getNiftyType(uint256 tokenId) public view returns (uint256) { return _getNiftyType(tokenId); } function getPaymentSplitterByNiftyType(uint256 niftyType) public virtual view returns (address) { return _getPaymentSplitter(niftyType); } function getPaymentSplitterByTokenId(uint256 tokenId) public virtual view returns (address) { return _getPaymentSplitter(_getNiftyType(tokenId)); } function _getNiftyType(uint256 tokenId) internal virtual view returns (uint256) { return 0; } function _clonePaymentSplitter(address splitterImplementation, address[] calldata payees, uint256[] calldata shares_) internal returns (address) { require(IERC165(splitterImplementation).supportsInterface(type(ICloneablePaymentSplitter).interfaceId), ERROR_UNCLONEABLE_REFERENCE_CONTRACT); address clone = payable (Clones.clone(splitterImplementation)); ICloneablePaymentSplitter(clone).initialize(payees, shares_); return clone; } function _getPaymentSplitter(uint256 niftyType) internal virtual view returns (address) { return royaltyRecipients[niftyType].isPaymentSplitter ? royaltyRecipients[niftyType].recipient : address(0); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./ERC721Errors.sol"; import "../interfaces/IERC721.sol"; import "../interfaces/IERC721Receiver.sol"; import "../interfaces/IERC721Metadata.sol"; import "../interfaces/IERC721Cloneable.sol"; import "../libraries/Address.sol"; import "../libraries/Context.sol"; import "../libraries/Strings.sol"; import "../utils/ERC165.sol"; import "../utils/GenericErrors.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ abstract contract ERC721 is Context, ERC165, ERC721Errors, GenericErrors, IERC721Metadata, IERC721Cloneable { using Address for address; using Strings for uint256; // Only allow ERC721 to be initialized once bool internal initializedERC721; // Token name string internal tokenName; // Token symbol string internal tokenSymbol; // Base URI For Offchain Metadata string internal baseMetadataURI; // Mapping from token ID to owner address mapping(uint256 => address) internal owners; // Mapping owner address to token count mapping(address => uint256) internal balances; // Mapping from token ID to approved address mapping(uint256 => address) internal tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) internal operatorApprovals; function initializeERC721(string memory name_, string memory symbol_, string memory baseURI_) public override { require(!initializedERC721, ERROR_REINITIALIZATION_NOT_PERMITTED); tokenName = name_; tokenSymbol = symbol_; _setBaseURI(baseURI_); initializedERC721 = true; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Cloneable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), ERROR_QUERY_FOR_ZERO_ADDRESS); return balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = owners[tokenId]; require(owner != address(0), ERROR_QUERY_FOR_NONEXISTENT_TOKEN); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return tokenName; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return tokenSymbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), ERROR_QUERY_FOR_NONEXISTENT_TOKEN); string memory uriBase = baseURI(); return bytes(uriBase).length > 0 ? string(abi.encodePacked(uriBase, tokenId.toString())) : ""; } function baseURI() public view virtual returns (string memory) { return baseMetadataURI; } /** * @dev Storefront-level metadata for contract */ function contractURI() public view virtual returns (string memory) { string memory uriBase = baseURI(); return bytes(uriBase).length > 0 ? string(abi.encodePacked(uriBase, "contract-metadata")) : ""; } /** * @dev Internal function to set the base URI */ function _setBaseURI(string memory uri) internal { baseMetadataURI = uri; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); require(to != owner, ERROR_APPROVAL_TO_CURRENT_OWNER); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), ERROR_NOT_OWNER_NOR_APPROVED); _approve(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), ERROR_QUERY_FOR_NONEXISTENT_TOKEN); return tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), ERROR_APPROVE_TO_CALLER); operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { (address owner, bool isApprovedOrOwner) = _isApprovedOrOwner(_msgSender(), tokenId); require(isApprovedOrOwner, ERROR_NOT_OWNER_NOR_APPROVED); _transfer(owner, 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 { transferFrom(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), ERROR_NOT_AN_ERC721_RECEIVER); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (address owner, bool isApprovedOrOwner) { owner = owners[tokenId]; require(owner != address(0), ERROR_QUERY_FOR_NONEXISTENT_TOKEN); isApprovedOrOwner = (spender == owner || tokenApprovals[tokenId] == spender || isApprovedForAll(owner, spender)); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ownerOf(tokenId); bool isApprovedOrOwner = (_msgSender() == owner || tokenApprovals[tokenId] == _msgSender() || isApprovedForAll(owner, _msgSender())); require(isApprovedOrOwner, ERROR_NOT_OWNER_NOR_APPROVED); // Clear approvals _clearApproval(owner, tokenId); balances[owner] -= 1; _clearOwnership(tokenId); emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address owner, address from, address to, uint256 tokenId) internal virtual { require(owner == from, ERROR_TRANSFER_FROM_INCORRECT_OWNER); require(to != address(0), ERROR_TRANSFER_TO_ZERO_ADDRESS); // Clear approvals from the previous owner _clearApproval(owner, tokenId); balances[from] -= 1; balances[to] += 1; _setOwnership(to, tokenId); emit Transfer(from, to, tokenId); } /** * @dev Equivalent to approving address(0), but more gas efficient * * Emits a {Approval} event. */ function _clearApproval(address owner, uint256 tokenId) internal virtual { delete tokenApprovals[tokenId]; emit Approval(owner, address(0), tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address owner, address to, uint256 tokenId) internal virtual { tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } function _clearOwnership(uint256 tokenId) internal virtual { delete owners[tokenId]; } function _setOwnership(address to, uint256 tokenId) internal virtual { owners[tokenId] = to; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value * * @dev Slither identifies an issue with unused return value. * Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#unused-return * This should be a non-issue. It is the standard OpenZeppelin implementation which has been heavily used and audited. */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) internal returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert(ERROR_NOT_AN_ERC721_RECEIVER); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; abstract contract ERC721Errors { string internal constant ERROR_QUERY_FOR_ZERO_ADDRESS = "Query for zero address"; string internal constant ERROR_QUERY_FOR_NONEXISTENT_TOKEN = "Token does not exist"; string internal constant ERROR_APPROVAL_TO_CURRENT_OWNER = "Current owner approval"; string internal constant ERROR_APPROVE_TO_CALLER = "Approve to caller"; string internal constant ERROR_NOT_OWNER_NOR_APPROVED = "Not owner nor approved"; string internal constant ERROR_NOT_AN_ERC721_RECEIVER = "Not an ERC721Receiver"; string internal constant ERROR_TRANSFER_FROM_INCORRECT_OWNER = "Transfer from incorrect owner"; string internal constant ERROR_TRANSFER_TO_ZERO_ADDRESS = "Transfer to zero address"; string internal constant ERROR_ALREADY_MINTED = "Token already minted"; string internal constant ERROR_NO_TOKENS_MINTED = "No tokens minted"; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./IERC721.sol"; interface IERC721Cloneable is IERC721 { function initializeERC721(string calldata name_, string calldata symbol_, string calldata baseURI_) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "../interfaces/IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; abstract contract GenericErrors { string internal constant ERROR_INPUT_ARRAY_EMPTY = "Input array empty"; string internal constant ERROR_INPUT_ARRAY_SIZE_MISMATCH = "Input array size mismatch"; string internal constant ERROR_INVALID_MSG_SENDER = "Invalid msg.sender"; string internal constant ERROR_UNEXPECTED_DATA_SIGNER = "Unexpected data signer"; string internal constant ERROR_INSUFFICIENT_BALANCE = "Insufficient balance"; string internal constant ERROR_WITHDRAW_UNSUCCESSFUL = "Withdraw unsuccessful"; string internal constant ERROR_CONTRACT_IS_FINALIZED = "Contract is finalized"; string internal constant ERROR_CANNOT_CHANGE_DEFAULT_OWNER = "Cannot change default owner"; string internal constant ERROR_UNCLONEABLE_REFERENCE_CONTRACT = "Uncloneable reference contract"; string internal constant ERROR_BIPS_OVER_100_PERCENT = "Bips over 100%"; string internal constant ERROR_NO_ROYALTY_RECEIVER = "No royalty receiver"; string internal constant ERROR_REINITIALIZATION_NOT_PERMITTED = "Re-initialization not permitted"; string internal constant ERROR_ZERO_ETH_TRANSFER = "Zero ETH Transfer"; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./ERC165.sol"; import "./GenericErrors.sol"; import "../interfaces/INiftyEntityCloneable.sol"; import "../interfaces/INiftyRegistry.sol"; import "../libraries/Context.sol"; abstract contract NiftyPermissions is Context, ERC165, GenericErrors, INiftyEntityCloneable { event AdminTransferred(address indexed previousAdmin, address indexed newAdmin); // Only allow Nifty Entity to be initialized once bool internal initializedNiftyEntity; // If address(0), use enable Nifty Gateway permissions - otherwise, specifies the address with permissions address public admin; // To prevent a mistake, transferring admin rights will be a two step process // First, the current admin nominates a new admin // Second, the nominee accepts admin address public nominatedAdmin; // Nifty Registry Contract INiftyRegistry internal permissionsRegistry; function initializeNiftyEntity(address niftyRegistryContract_) public { require(!initializedNiftyEntity, ERROR_REINITIALIZATION_NOT_PERMITTED); permissionsRegistry = INiftyRegistry(niftyRegistryContract_); initializedNiftyEntity = true; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(INiftyEntityCloneable).interfaceId || super.supportsInterface(interfaceId); } function renounceAdmin() external { _requireOnlyValidSender(); _transferAdmin(address(0)); } function nominateAdmin(address nominee) external { _requireOnlyValidSender(); nominatedAdmin = nominee; } function acceptAdmin() external { address nominee = nominatedAdmin; require(_msgSender() == nominee, ERROR_INVALID_MSG_SENDER); _transferAdmin(nominee); } function _requireOnlyValidSender() internal view { address currentAdmin = admin; if(currentAdmin == address(0)) { require(permissionsRegistry.isValidNiftySender(_msgSender()), ERROR_INVALID_MSG_SENDER); } else { require(_msgSender() == currentAdmin, ERROR_INVALID_MSG_SENDER); } } function _transferAdmin(address newAdmin) internal { address oldAdmin = admin; admin = newAdmin; delete nominatedAdmin; emit AdminTransferred(oldAdmin, newAdmin); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity 0.8.9; import "./Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; struct SignatureStatus { bool isSalted; bool isVerified; address signer; bytes32 saltedHash; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./IERC165.sol"; interface INiftyEntityCloneable is IERC165 { function initializeNiftyEntity(address niftyRegistryContract_) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface INiftyRegistry { function isValidNiftySender(address sendingKey) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; /** * @title A base contract that may be inherited in order to protect a contract from having its fallback function * invoked and to block the receipt of ETH by a contract. * @author Nathan Gang * @notice This contract bestows on inheritors the ability to block ETH transfers into the contract * @dev ETH may still be forced into the contract - it is impossible to block certain attacks, but this protects from accidental ETH deposits */ // For more info, see: "https://medium.com/@alexsherbuck/two-ways-to-force-ether-into-a-contract-1543c1311c56" abstract contract RejectEther { /** * @dev For most contracts, it is safest to explicitly restrict the use of the fallback function * This would generally be invoked if sending ETH to this contract with a 'data' value provided */ fallback() external payable { revert("Fallback function not permitted"); } /** * @dev This is the standard path where ETH would land if sending ETH to this contract without a 'data' value * In our case, we don't want our contract to receive ETH, so we restrict it here */ receive() external payable { revert("Receiving ETH not permitted"); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; /** * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for * deploying minimal proxy contracts, also known as "clones". * * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies * > a minimal bytecode implementation that delegates all calls to a known, fixed address. * * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2` * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the * deterministic method. * */ library Clones { /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create opcode, which should never revert. */ function clone(address implementation) internal returns (address instance) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create(0, ptr, 0x37) } require(instance != address(0), "ERC1167: create failed"); } /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create2 opcode and a `salt` to deterministically deploy * the clone. Using the same `implementation` and `salt` multiple time will revert, since * the clones cannot be deployed twice at the same address. */ function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create2(0, ptr, 0x37, salt) } require(instance != address(0), "ERC1167: create2 failed"); } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress( address implementation, bytes32 salt, address deployer ) internal pure returns (address predicted) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000) mstore(add(ptr, 0x38), shl(0x60, deployer)) mstore(add(ptr, 0x4c), salt) mstore(add(ptr, 0x6c), keccak256(ptr, 0x37)) predicted := keccak256(add(ptr, 0x37), 0x55) } } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress(address implementation, bytes32 salt) internal view returns (address predicted) { return predictDeterministicAddress(implementation, salt, address(this)); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./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. * */ 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 payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./IERC165.sol"; import "../libraries/SafeERC20.sol"; interface ICloneablePaymentSplitter is IERC165 { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); function initialize(address[] calldata payees, uint256[] calldata shares_) external; function totalShares() external view returns (uint256); function totalReleased() external view returns (uint256); function totalReleased(IERC20 token) external view returns (uint256); function shares(address account) external view returns (uint256); function released(address account) external view returns (uint256); function released(IERC20 token, address account) external view returns (uint256); function payee(uint256 index) external view returns (address); function release(address payable account) external; function release(IERC20 token, address account) external; function pendingPayment(address account) external view returns (uint256); function pendingPayment(IERC20 token, address account) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; struct RoyaltyRecipient { bool isPaymentSplitter; // 1 byte uint16 bips; // 2 bytes address recipient; // 20 bytes }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "../interfaces/IERC20.sol"; import "./Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
{ "optimizer": { "enabled": true, "runs": 1500 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"signer","type":"address"},{"indexed":false,"internalType":"bytes32","name":"data","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"signature","type":"bytes"}],"name":"ContractSigned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"niftyType","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"idFirst","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"idLast","type":"uint256"}],"name":"NiftyTypeCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"niftyType","type":"uint256"},{"indexed":false,"internalType":"address","name":"previousReceiver","type":"address"},{"indexed":false,"internalType":"address","name":"newReceiver","type":"address"}],"name":"RoyaltyReceiverUpdated","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"BIPS_PERCENTAGE_TOTAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalizeContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCollectionStatus","outputs":[{"components":[{"internalType":"bool","name":"isContractFinalized","type":"bool"},{"internalType":"uint88","name":"amountCreated","type":"uint88"},{"internalType":"address","name":"defaultOwner","type":"address"}],"internalType":"struct ERC721Omnibus.CollectionStatus","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getNiftyType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"niftyType","type":"uint256"}],"name":"getNiftyTypeDetails","outputs":[{"components":[{"internalType":"bool","name":"isMinted","type":"bool"},{"internalType":"uint72","name":"niftyType","type":"uint72"},{"internalType":"uint88","name":"idFirst","type":"uint88"},{"internalType":"uint88","name":"idLast","type":"uint88"}],"internalType":"struct NiftyType","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNiftyTypes","outputs":[{"components":[{"internalType":"bool","name":"isMinted","type":"bool"},{"internalType":"uint72","name":"niftyType","type":"uint72"},{"internalType":"uint88","name":"idFirst","type":"uint88"},{"internalType":"uint88","name":"idLast","type":"uint88"}],"internalType":"struct NiftyType[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"niftyType","type":"uint256"}],"name":"getPaymentSplitterByNiftyType","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPaymentSplitterByTokenId","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"niftyType","type":"uint256"}],"name":"getRoyaltySettings","outputs":[{"components":[{"internalType":"bool","name":"isPaymentSplitter","type":"bool"},{"internalType":"uint16","name":"bips","type":"uint16"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct RoyaltyRecipient","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"defaultOwner_","type":"address"}],"name":"initializeDefaultOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"baseURI_","type":"string"}],"name":"initializeERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"niftyRegistryContract_","type":"address"}],"name":"initializeNiftyEntity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"niftyType","type":"uint256"},{"internalType":"address","name":"splitterImplementation","type":"address"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"}],"name":"initializeRoyalties","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"string[]","name":"ipfsHashes","type":"string[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nominee","type":"address"}],"name":"nominateAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceAdmin","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":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"niftyType","type":"uint256"},{"internalType":"string","name":"ipfsHash","type":"string"}],"name":"setIPFSHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"metadataGenerator_","type":"address"}],"name":"setMetadataGenerator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"niftyType","type":"uint256"},{"internalType":"uint256","name":"bips","type":"uint256"}],"name":"setRoyaltyBips","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer_","type":"address"},{"internalType":"bytes32","name":"saltedHash_","type":"bytes32"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"signature_","type":"bytes"}],"name":"sign","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signature","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"signatureStatus","outputs":[{"internalType":"bool","name":"isSalted","type":"bool"},{"internalType":"bool","name":"isVerified","type":"bool"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"bytes32","name":"saltedHash","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenIPFSHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContract","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContract","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b50614c0f806100206000396000f3fe60806040526004361061032d5760003560e01c806370a08231116101a5578063b0abd457116100ec578063e4623c1b11610095578063e985e9c51161006f578063e985e9c5146109e7578063f51c457514610a30578063f592644214610adc578063f851a44014610b935761037f565b8063e4623c1b14610992578063e8a3d485146109b2578063e8ac6533146109c75761037f565b8063c87b56dd116100c6578063c87b56dd14610932578063cd5ad4c514610952578063d3716630146109725761037f565b8063b0abd457146108dc578063b88d4fde146108f2578063b963daef146109125761037f565b8063937773691161014e5780639dc20f78116101285780639dc20f781461086f578063a22cb4651461088f578063a8f6635c146108af5761037f565b8063937773691461081a57806395d89b411461083a5780639b3d270a1461084f5761037f565b8063792ccce01161017f578063792ccce0146107c55780638bad0c0a146107e557806392e80eb4146107fa5761037f565b806370a082311461075757806377830dca146107855780637889cc16146107a55761037f565b806342966c681161027457806351ff48471161021d5780635615d8fd116101f75780635615d8fd146106985780636050f48e146107025780636352211e146107225780636c0360eb146107425761037f565b806351ff484714610641578063559cb3a71461065657806355f804b3146106785761037f565b8063447fd8c41161024e578063447fd8c4146105e15780634782f779146106015780634f558e79146106215761037f565b806342966c681461058157806343264347146105a157806344004cc1146105c15761037f565b806328c5cf0a116102d6578063319cd2d7116102b0578063319cd2d7146105215780634025feb21461054157806342842e0e146105615761037f565b806328c5cf0a146104ad5780632a55205a146104c25780632c5c0f54146105015761037f565b8063095ea7b311610307578063095ea7b3146104565780630e18b6811461047857806323b872dd1461048d5761037f565b806301ffc9a7146103c757806306fdde03146103fc578063081812fc1461041e5761037f565b3661037f5760405162461bcd60e51b815260206004820152601b60248201527f526563656976696e6720455448206e6f74207065726d6974746564000000000060448201526064015b60405180910390fd5b60405162461bcd60e51b815260206004820152601f60248201527f46616c6c6261636b2066756e6374696f6e206e6f74207065726d6974746564006044820152606401610376565b3480156103d357600080fd5b506103e76103e2366004614082565b610bb8565b60405190151581526020015b60405180910390f35b34801561040857600080fd5b50610411610bdb565b6040516103f391906140fb565b34801561042a57600080fd5b5061043e61043936600461410e565b610c6d565b6040516001600160a01b0390911681526020016103f3565b34801561046257600080fd5b5061047661047136600461413c565b610ce0565b005b34801561048457600080fd5b50610476610df7565b34801561049957600080fd5b506104766104a8366004614168565b610e70565b3480156104b957600080fd5b50610476610eea565b3480156104ce57600080fd5b506104e26104dd3660046141a9565b610f5b565b604080516001600160a01b0390931683526020830191909152016103f3565b34801561050d57600080fd5b5061043e61051c36600461410e565b610fe7565b34801561052d57600080fd5b5061043e61053c36600461410e565b610ff2565b34801561054d57600080fd5b5061047661055c366004614168565b611005565b34801561056d57600080fd5b5061047661057c366004614168565b6110a1565b34801561058d57600080fd5b5061047661059c36600461410e565b6110bc565b3480156105ad57600080fd5b506104766105bc3660046141cb565b6110c5565b3480156105cd57600080fd5b506104766105dc366004614168565b61114e565b3480156105ed57600080fd5b5061043e6105fc36600461422d565b61124c565b34801561060d57600080fd5b5061047661061c36600461413c565b61137b565b34801561062d57600080fd5b506103e761063c36600461410e565b61152f565b34801561064d57600080fd5b5061041161153a565b34801561066257600080fd5b5061066b6115c8565b6040516103f391906142b9565b34801561068457600080fd5b5061047661069336600461438a565b611670565b3480156106a457600080fd5b50600f546010546106d19160ff808216926101008304909116916201000090046001600160a01b03169084565b6040516103f39493929190931515845291151560208401526001600160a01b03166040830152606082015260800190565b34801561070e57600080fd5b5061047661071d366004614499565b6116bb565b34801561072e57600080fd5b5061043e61073d36600461410e565b611758565b34801561074e57600080fd5b5061041161185f565b34801561076357600080fd5b506107776107723660046141cb565b61186e565b6040519081526020016103f3565b34801561079157600080fd5b506104766107a0366004614521565b6118e9565b3480156107b157600080fd5b506104766107c03660046141a9565b611ede565b3480156107d157600080fd5b506104766107e03660046141cb565b611f69565b3480156107f157600080fd5b50610476612006565b34801561080657600080fd5b5061047661081536600461413c565b61201a565b34801561082657600080fd5b506104766108353660046141cb565b61217d565b34801561084657600080fd5b506104116122b6565b34801561085b57600080fd5b5061047661086a36600461458d565b6122c5565b34801561087b57600080fd5b5061077761088a36600461410e565b6125d5565b34801561089b57600080fd5b506104766108aa3660046145e7565b6125e0565b3480156108bb57600080fd5b506108cf6108ca36600461410e565b6126ab565b6040516103f39190614620565b3480156108e857600080fd5b5061077761271081565b3480156108fe57600080fd5b5061047661090d36600461466f565b6127aa565b34801561091e57600080fd5b5061047661092d3660046146ef565b612815565b34801561093e57600080fd5b5061041161094d36600461410e565b6128ca565b34801561095e57600080fd5b5061047661096d3660046141cb565b6129dd565b34801561097e57600080fd5b5061041161098d36600461410e565b612a07565b34801561099e57600080fd5b506104766109ad366004614736565b612b09565b3480156109be57600080fd5b50610411612b9a565b3480156109d357600080fd5b50600c5461043e906001600160a01b031681565b3480156109f357600080fd5b506103e7610a0236600461476c565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a3c57600080fd5b50610aab610a4b36600461410e565b604080516060808201835260008083526020808401829052928401819052938452600e825292829020825193840183525460ff811615158452610100810461ffff1691840191909152630100000090046001600160a01b03169082015290565b6040805182511515815260208084015161ffff1690820152918101516001600160a01b0316908201526060016103f3565b348015610ae857600080fd5b50610b596040805160608101825260008082526020820181905291810191909152506040805160608101825260095460ff81161515825261010081046affffffffffffffffffffff1660208301526c0100000000000000000000000090046001600160a01b03169181019190915290565b604080518251151581526020808401516affffffffffffffffffffff1690820152918101516001600160a01b0316908201526060016103f3565b348015610b9f57600080fd5b50600b5461043e9061010090046001600160a01b031681565b60006001600160e01b031982161580610bd55750610bd582612c44565b92915050565b606060018054610bea9061479a565b80601f0160208091040260200160405190810160405280929190818152602001828054610c169061479a565b8015610c635780601f10610c3857610100808354040283529160200191610c63565b820191906000526020600020905b815481529060010190602001808311610c4657829003601f168201915b5050505050905090565b6000610c7882612c82565b60405180604001604052806014815260200173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b81525090610cc35760405162461bcd60e51b815260040161037691906140fb565b50506000908152600660205260409020546001600160a01b031690565b6000610ceb82611758565b9050806001600160a01b0316836001600160a01b031614156040518060400160405280601681526020017f43757272656e74206f776e657220617070726f76616c0000000000000000000081525090610d575760405162461bcd60e51b815260040161037691906140fb565b50336001600160a01b0382161480610d9257506001600160a01b038116600090815260076020908152604080832033845290915290205460ff165b6040518060400160405280601681526020017f4e6f74206f776e6572206e6f7220617070726f7665640000000000000000000081525090610de65760405162461bcd60e51b815260040161037691906140fb565b50610df2818484612cd6565b505050565b600c546001600160a01b031680336001600160a01b0316146040518060400160405280601281526020017f496e76616c6964206d73672e73656e646572000000000000000000000000000081525090610e635760405162461bcd60e51b815260040161037691906140fb565b50610e6d81612d32565b50565b600080610e7d3384612db3565b91509150806040518060400160405280601681526020017f4e6f74206f776e6572206e6f7220617070726f7665640000000000000000000081525090610ed65760405162461bcd60e51b815260040161037691906140fb565b50610ee382868686612e33565b5050505050565b610ef2612fee565b60095460408051808201909152601581527f436f6e74726163742069732066696e616c697a6564000000000000000000000060208201529060ff1615610f4b5760405162461bcd60e51b815260040161037691906140fb565b506009805460ff19166001179055565b6000806000610f698561313e565b6000818152600e6020526040902054909150630100000090046001600160a01b031615610fd6576000818152600e6020526040902054630100000081046001600160a01b03169061271090610fc790610100900461ffff16876147e5565b610fd1919061481a565b610fda565b6000805b92509250505b9250929050565b6000610bd5826132b4565b6000610bd56110008361313e565b6132b4565b61100d612fee565b6040517fb88d4fde0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03838116602483015260448201839052608060648301526000608483015284169063b88d4fde9060a401600060405180830381600087803b15801561108457600080fd5b505af1158015611098573d6000803e3d6000fd5b50505050505050565b610df2838383604051806020016040528060008152506127aa565b610e6d816132f4565b600b5460408051808201909152601f81527f52652d696e697469616c697a6174696f6e206e6f74207065726d69747465640060208201529060ff161561111e5760405162461bcd60e51b815260040161037691906140fb565b50600d80546001600160a01b0319166001600160a01b0392909216919091179055600b805460ff19166001179055565b611156612fee565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390526000919085169063a9059cbb90604401602060405180830381600087803b1580156111bd57600080fd5b505af11580156111d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f5919061482e565b9050806040518060400160405280601581526020017f576974686472617720756e7375636365737366756c000000000000000000000081525090610ee35760405162461bcd60e51b815260040161037691906140fb565b6000611256612fee565b6000878152600e602052604090208054600180871160ff19831617909255630100000090046001600160a01b031690851461129d576112988787878787613469565b6112c5565b858560008181106112b0576112b061484b565b90506020020160208101906112c591906141cb565b6000898152600e602090815260409182902080547fffffffffffffffffff0000000000000000000000000000000000000000ffffff1663010000006001600160a01b03958616810291909117918290558351868616815291049093169083015289917f834a47bfbb51ad808d8649527d9bf540f58cc71dc1093ae2249c8b230575ce98910160405180910390a250505060009485525050600e60205250506040902054630100000090046001600160a01b031690565b611383612fee565b60408051808201909152601181527f5a65726f20455448205472616e736665720000000000000000000000000000006020820152816113d55760405162461bcd60e51b815260040161037691906140fb565b506001600160a01b03821661142c5760405162461bcd60e51b815260206004820152601860248201527f5472616e7366657220746f207a65726f206164647265737300000000000000006044820152606401610376565b60408051808201909152601481527f496e73756666696369656e742062616c616e636500000000000000000000000060208201524790818311156114835760405162461bcd60e51b815260040161037691906140fb565b506000836001600160a01b03168360405160006040518083038185875af1925050503d80600081146114d1576040519150601f19603f3d011682016040523d82523d6000602084013e6114d6565b606091505b50509050806040518060400160405280601581526020017f576974686472617720756e7375636365737366756c000000000000000000000081525090610ee35760405162461bcd60e51b815260040161037691906140fb565b6000610bd582612c82565b601180546115479061479a565b80601f01602080910402602001604051908101604052809291908181526020018280546115739061479a565b80156115c05780601f10611595576101008083540402835291602001916115c0565b820191906000526020600020905b8154815290600101906020018083116115a357829003601f168201915b505050505081565b60606014805480602002602001604051908101604052809291908181526020016000905b82821015611667576000848152602090819020604080516080810182529185015460ff81161515835268ffffffffffffffffff610100820416838501526affffffffffffffffffffff6a01000000000000000000008204811692840192909252600160a81b90041660608201528252600190920191016115ec565b50505050905090565b611678612fee565b6116b782828080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506135ee92505050565b5050565b60005460408051808201909152601f81527f52652d696e697469616c697a6174696f6e206e6f74207065726d69747465640060208201529060ff16156117145760405162461bcd60e51b815260040161037691906140fb565b508251611728906001906020860190613f5f565b50815161173c906002906020850190613f5f565b50611746816135ee565b50506000805460ff1916600117905550565b600061176382613601565b60405180604001604052806014815260200173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b815250906117ae5760405162461bcd60e51b815260040161037691906140fb565b506000828152600a602052604090205460ff166117e6576009546c0100000000000000000000000090046001600160a01b0316611804565b6000828152600a602052604090205461010090046001600160a01b03165b604080518082019091526014815273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b60208201529091506001600160a01b0382166118595760405162461bcd60e51b815260040161037691906140fb565b50919050565b606060038054610bea9061479a565b60408051808201909152601681527f517565727920666f72207a65726f20616464726573730000000000000000000060208201526000906001600160a01b0383166118cc5760405162461bcd60e51b815260040161037691906140fb565b50506001600160a01b031660009081526005602052604090205490565b6118f1612fee565b82158015906118ff57508015155b6040518060400160405280601181526020017f496e70757420617272617920656d707479000000000000000000000000000000815250906119535760405162461bcd60e51b815260040161037691906140fb565b5060408051808201909152601981527f496e7075742061727261792073697a65206d69736d617463680000000000000060208201528382146119a85760405162461bcd60e51b815260040161037691906140fb565b5060095460408051808201909152601881527f5472616e7366657220746f207a65726f2061646472657373000000000000000060208201526c010000000000000000000000009091046001600160a01b03169081611a195760405162461bcd60e51b815260040161037691906140fb565b5060095460408051808201909152601581527f436f6e74726163742069732066696e616c697a6564000000000000000000000060208201529060ff1615611a735760405162461bcd60e51b815260040161037691906140fb565b50601354600160a81b81046affffffffffffffffffffff1690610100900468ffffffffffffffffff166000611aa9836001614861565b9050806000805b89811015611d635760008b8b83818110611acc57611acc61484b565b90506020020135116040518060400160405280601081526020017f4e6f20746f6b656e73206d696e7465640000000000000000000000000000000081525090611b285760405162461bcd60e51b815260040161037691906140fb565b5060008b8b83818110611b3d57611b3d61484b565b90506020020135905060018186611b549190614861565b611b5e9190614890565b925085611b6a816148bc565b96505060008a8a84818110611b8157611b8161484b565b9050602002810190611b9391906148e5565b90501115611be657898983818110611bad57611bad61484b565b9050602002810190611bbf91906148e5565b68ffffffffffffffffff88166000908152601560205260409020611be4929091613fe3565b505b60408051608081018252600180825268ffffffffffffffffff89811660208085018281526affffffffffffffffffffff8c81168789018181528c83166060808b01828152601480549b8c0181556000529a517fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec909a018054965193519b518616600160a81b0274ffffffffffffffffffffffffffffffffffffffffff9c9096166a0100000000000000000000029b909b1669ffffffffffffffffffff93909916610100027fffffffffffffffffffffffffffffffffffffffffffff000000000000000000ff9a15159a909a167fffffffffffffffffffffffffffffffffffffffffffff00000000000000000000909616959095179890981716959095171790955585519182528101919091529283015230917feb15cc05309c4c75cd685463644508ef1d1663a4ca01ed00737631dc6dd02073910160405180910390a2611d4d8186614861565b9450508080611d5b9061492c565b915050611ab0565b506000611d708683614890565b6affffffffffffffffffffff1690508060056000896001600160a01b03166001600160a01b031681526020019081526020016000206000828254611db49190614947565b9091555050601380546affffffffffffffffffffff808516600160a81b0274ffffffffffffffffffffffffffffffffffffffffff68ffffffffffffffffff8a166101009081029190911674ffffffffffffffffffffff000000000000000000ff90941693909317179092556009805484939192600192611e38928692900416614861565b92506101000a8154816affffffffffffffffffffff02191690836affffffffffffffffffffff160217905550866001600160a01b031660006001600160a01b0316846affffffffffffffffffffff167fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d85604051611ec991906affffffffffffffffffffff91909116815260200190565b60405180910390a45050505050505050505050565b611ee6612fee565b60408051808201909152600e81527f42697073206f76657220313030250000000000000000000000000000000000006020820152612710821115611f3d5760405162461bcd60e51b815260040161037691906140fb565b506000918252600e6020526040909120805461ffff9092166101000262ffff0019909216919091179055565b60085460408051808201909152601f81527f52652d696e697469616c697a6174696f6e206e6f74207065726d69747465640060208201529060ff1615611fc25760405162461bcd60e51b815260040161037691906140fb565b50600980546001600160a01b039092166c01000000000000000000000000026bffffffffffffffffffffffff9092169190911790556008805460ff19166001179055565b61200e612fee565b6120186000612d32565b565b612022612fee565b60408051808201909152601a81527f5369676e65722073657420746f207a65726f206164647265737300000000000060208201526001600160a01b03831661207d5760405162461bcd60e51b815260040161037691906140fb565b5060408051808201909152601781527f53616c74656420686173682073657420746f207a65726f0000000000000000006020820152816120d05760405162461bcd60e51b815260040161037691906140fb565b50600f5460408051808201909152601781527f436f6e747261637420616c7265616479207369676e6564000000000000000000602082015290610100900460ff161561212f5760405162461bcd60e51b815260040161037691906140fb565b50600f805460109290925560ff196001600160a01b039093166201000002929092167fffffffffffffffffffff0000000000000000000000000000000000000000ff00909116176001179055565b612185612fee565b6001600160a01b0381166121b357601280546001600160a01b0383166001600160a01b031990911617905550565b6040516301ffc9a760e01b81527f5219fb8e0000000000000000000000000000000000000000000000000000000060048201526001600160a01b038216906301ffc9a79060240160206040518083038186803b15801561221257600080fd5b505afa158015612226573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224a919061482e565b6122965760405162461bcd60e51b815260206004820152601a60248201527f496e76616c6964204d657461646174612047656e657261746f720000000000006044820152606401610376565b601280546001600160a01b0383166001600160a01b031990911617905550565b606060028054610bea9061479a565b600f5460408051808201909152601781527f436f6e747261637420616c7265616479207369676e6564000000000000000000602082015290610100900460ff16156123235760405162461bcd60e51b815260040161037691906140fb565b50600f5460408051808201909152601381527f436f6e7472616374206e6f742073616c7465640000000000000000000000000060208201529060ff1661237c5760405162461bcd60e51b815260040161037691906140fb565b50600f54601054620100009091046001600160a01b03169081336001600160a01b0316146040518060400160405280601281526020017f496e76616c6964206d73672e73656e6465720000000000000000000000000000815250906123f45760405162461bcd60e51b815260040161037691906140fb565b50808560405160200161240991815260200190565b60405160208183030381529060405280519060200120146040518060400160405280601581526020017f496e636f7272656374207365637265742073616c740000000000000000000000815250906124745760405162461bcd60e51b815260040161037691906140fb565b50816001600160a01b03166125156124d9836040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b86868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061362892505050565b6001600160a01b0316146040518060400160405280601681526020017f556e65787065637465642064617461207369676e657200000000000000000000815250906125735760405162461bcd60e51b815260040161037691906140fb565b5061258060118585613fe3565b50600f805461ff0019166101001790556040517f955fd8871b091d05a1f766f82ece6ba4d9c55e65e065d4459b26740f2e698e70906125c690849084908890889061495f565b60405180910390a15050505050565b6000610bd58261313e565b60408051808201909152601181527f417070726f766520746f2063616c6c657200000000000000000000000000000060208201526001600160a01b03831633141561263e5760405162461bcd60e51b815260040161037691906140fb565b503360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260145460001983019081106127265760405162461bcd60e51b815260206004820152601960248201527f4e69667479205479706520446f6573204e6f74204578697374000000000000006044820152606401610376565b601481815481106127395761273961484b565b600091825260209182902060408051608081018252919092015460ff81161515825268ffffffffffffffffff610100820416938201939093526affffffffffffffffffffff6a01000000000000000000008404811692820192909252600160a81b9092041660608201529392505050565b6127b5848484610e70565b6127c18484848461364c565b6040518060400160405280601581526020017f4e6f7420616e204552433732315265636569766572000000000000000000000081525090610ee35760405162461bcd60e51b815260040161037691906140fb565b61281d612fee565b600082815260156020526040902080546128369061479a565b1590506128ab5760405162461bcd60e51b815260206004820152602560248201527f4552433732314d657461646174613a2049504653206861736820616c7265616460448201527f79207365740000000000000000000000000000000000000000000000000000006064820152608401610376565b60008281526015602090815260409091208251610df292840190613f5f565b6012546060906001600160a01b03166128e657610bd58261378d565b6128ef82612c82565b60405180604001604052806014815260200173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b8152509061293a5760405162461bcd60e51b815260040161037691906140fb565b506012546001600160a01b031663f572b6d8836129568161313e565b604051806020016040528060008152506040518463ffffffff1660e01b8152600401612984939291906149a5565b60006040518083038186803b15801561299c57600080fd5b505afa1580156129b0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610bd591908101906149cd565b919050565b6129e5612fee565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6060612a1282612c82565b60405180604001604052806014815260200173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b81525090612a5d5760405162461bcd60e51b815260040161037691906140fb565b5060156000612a6b8461313e565b81526020019081526020016000208054612a849061479a565b80601f0160208091040260200160405190810160405280929190818152602001828054612ab09061479a565b8015612afd5780601f10612ad257610100808354040283529160200191612afd565b820191906000526020600020905b815481529060010190602001808311612ae057829003601f168201915b50505050509050919050565b60408051808201909152601181527f496e70757420617272617920656d707479000000000000000000000000000000602082015281612b5b5760405162461bcd60e51b815260040161037691906140fb565b5060005b81811015610df257612b88838383818110612b7c57612b7c61484b565b905060200201356132f4565b80612b928161492c565b915050612b5f565b6012546060906001600160a01b0316612bba57612bb5613840565b905090565b601260009054906101000a90046001600160a01b03166001600160a01b031663a76b4d566040518163ffffffff1660e01b815260040160006040518083038186803b158015612c0857600080fd5b505afa158015612c1c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612bb591908101906149cd565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610bd55750610bd582613893565b6000612c8d82613601565b15612cce576000828152600a602052604090205461010090046001600160a01b0316151580610bd55750506000908152600a602052604090205460ff161590565b506000919050565b60008181526006602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600b80546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617909455600c80546001600160a01b031916905560405193909204169182907ff8ccb027dfcd135e000e9d45e6cc2d662578a8825d4c45b5e32e0adf67e79ec690600090a35050565b600080612dbf83611758565b9150816001600160a01b0316846001600160a01b03161480612dfa57506000838152600660205260409020546001600160a01b038581169116145b80612e2a57506001600160a01b0380831660009081526007602090815260408083209388168352929052205460ff165b90509250929050565b826001600160a01b0316846001600160a01b0316146040518060400160405280601d81526020017f5472616e736665722066726f6d20696e636f7272656374206f776e657200000081525090612e9c5760405162461bcd60e51b815260040161037691906140fb565b5060408051808201909152601881527f5472616e7366657220746f207a65726f2061646472657373000000000000000060208201526001600160a01b038316612ef85760405162461bcd60e51b815260040161037691906140fb565b50612f0384826138d1565b6001600160a01b0383166000908152600560205260408120805460019290612f2c908490614a3b565b90915550506001600160a01b0382166000908152600560205260408120805460019290612f5a908490614947565b90915550506000818152600a60205260409020805460017fffffffffffffffffffffff0000000000000000000000000000000000000000009091166101006001600160a01b038616021717905580826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b600b5461010090046001600160a01b0316806130e157600d546001600160a01b031663e37ce6fa336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561305557600080fd5b505afa158015613069573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061308d919061482e565b6040518060400160405280601281526020017f496e76616c6964206d73672e73656e6465720000000000000000000000000000815250906116b75760405162461bcd60e51b815260040161037691906140fb565b60408051808201909152601281527f496e76616c6964206d73672e73656e64657200000000000000000000000000006020820152336001600160a01b038316146116b75760405162461bcd60e51b815260040161037691906140fb565b6014546000908190819061315490600190614a3b565b9050600060026131648484614a3b565b61316e919061481a565b90505b6014548110156132a9576000601482815481106131905761319061484b565b600091825260209091200180549091506a010000000000000000000090046affffffffffffffffffffff1686108015906131df57508054600160a81b90046affffffffffffffffffffff168611155b156131fe5754610100900468ffffffffffffffffff1695945050505050565b8054600160a81b90046affffffffffffffffffffff1686111561324f57613226826001614947565b935060026132348585614a3b565b61323e919061481a565b6132489085614947565b91506132a3565b80546a010000000000000000000090046affffffffffffffffffffff168610156132a35761327e600183614a3b565b9250600261328c8585614a3b565b613296919061481a565b6132a09085614947565b91505b50613171565b506000949350505050565b6000818152600e602052604081205460ff166132d1576000610bd5565b506000908152600e6020526040902054630100000090046001600160a01b031690565b60006132ff82611758565b90506000336001600160a01b038316148061333057506000838152600660205260409020546001600160a01b031633145b8061335e57506001600160a01b038216600090815260076020908152604080832033845290915290205460ff165b9050806040518060400160405280601681526020017f4e6f74206f776e6572206e6f7220617070726f76656400000000000000000000815250906133b55760405162461bcd60e51b815260040161037691906140fb565b506133c082846138d1565b6001600160a01b03821660009081526005602052604081208054600192906133e9908490614a3b565b9091555061342c9050836000908152600a6020526040902080547fffffffffffffffffffffff000000000000000000000000000000000000000000166001179055565b60405183906000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505050565b6040516301ffc9a760e01b81527f37de79fc0000000000000000000000000000000000000000000000000000000060048201526000906001600160a01b038716906301ffc9a79060240160206040518083038186803b1580156134cb57600080fd5b505afa1580156134df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613503919061482e565b6040518060400160405280601e81526020017f556e636c6f6e6561626c65207265666572656e636520636f6e74726163740000815250906135575760405162461bcd60e51b815260040161037691906140fb565b50600061356387613926565b6040517f7fbbe46f0000000000000000000000000000000000000000000000000000000081529091506001600160a01b03821690637fbbe46f906135b1908990899089908990600401614a52565b600060405180830381600087803b1580156135cb57600080fd5b505af11580156135df573d6000803e3d6000fd5b50929998505050505050505050565b80516116b7906003906020840190613f5f565b60008082118015610bd557505060095461010090046affffffffffffffffffffff16101590565b600080600061363785856139dc565b9150915061364481613a49565b509392505050565b60006001600160a01b0384163b1561378157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613690903390899088908890600401614aef565b602060405180830381600087803b1580156136aa57600080fd5b505af19250505080156136da575060408051601f3d908101601f191682019092526136d791810190614b2b565b60015b613767573d808015613708576040519150601f19603f3d011682016040523d82523d6000602084013e61370d565b606091505b50805161375f57604080518082018252601581527f4e6f7420616e20455243373231526563656976657200000000000000000000006020820152905162461bcd60e51b815261037691906004016140fb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613785565b5060015b949350505050565b606061379882612c82565b60405180604001604052806014815260200173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b815250906137e35760405162461bcd60e51b815260040161037691906140fb565b5060006137ee61185f565b9050600081511161380e5760405180602001604052806000815250613839565b8061381884613c04565b604051602001613829929190614b48565b6040516020818303038152906040525b9392505050565b6060600061384c61185f565b9050600081511161386c576040518060200160405280600081525061388d565b8060405160200161387d9190614b6e565b6040516020818303038152906040525b91505090565b60006001600160e01b031982167f43264347000000000000000000000000000000000000000000000000000000001480610bd55750610bd582613d36565b60008181526006602052604080822080546001600160a01b0319169055518291906001600160a01b038516907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925908390a45050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f09150506001600160a01b0381166129d85760405162461bcd60e51b815260206004820152601660248201527f455243313136373a20637265617465206661696c6564000000000000000000006044820152606401610376565b600080825160411415613a135760208301516040840151606085015160001a613a0787828585613d74565b94509450505050610fe0565b825160401415613a3d5760208301516040840151613a32868383613e61565b935093505050610fe0565b50600090506002610fe0565b6000816004811115613a5d57613a5d614baf565b1415613a665750565b6001816004811115613a7a57613a7a614baf565b1415613ac85760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610376565b6002816004811115613adc57613adc614baf565b1415613b2a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610376565b6003816004811115613b3e57613b3e614baf565b1415613b975760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610376565b6004816004811115613bab57613bab614baf565b1415610e6d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610376565b606081613c4457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613c6e5780613c588161492c565b9150613c679050600a8361481a565b9150613c48565b60008167ffffffffffffffff811115613c8957613c896143cc565b6040519080825280601f01601f191660200182016040528015613cb3576020820181803683370190505b5090505b841561378557613cc8600183614a3b565b9150613cd5600a86614bc5565b613ce0906030614947565b60f81b818381518110613cf557613cf561484b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613d2f600a8661481a565b9450613cb7565b60006001600160e01b031982167f792ccce0000000000000000000000000000000000000000000000000000000001480610bd55750610bd582613ea9565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613dab5750600090506003613e58565b8460ff16601b14158015613dc357508460ff16601c14155b15613dd45750600090506004613e58565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613e28573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613e5157600060019250925050613e58565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01613e9b87828885613d74565b935093505050935093915050565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480613f0c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80613f4057506001600160e01b031982167f6050f48e00000000000000000000000000000000000000000000000000000000145b80610bd557506301ffc9a760e01b6001600160e01b0319831614610bd5565b828054613f6b9061479a565b90600052602060002090601f016020900481019282613f8d5760008555613fd3565b82601f10613fa657805160ff1916838001178555613fd3565b82800160010185558215613fd3579182015b82811115613fd3578251825591602001919060010190613fb8565b50613fdf929150614057565b5090565b828054613fef9061479a565b90600052602060002090601f0160209004810192826140115760008555613fd3565b82601f1061402a5782800160ff19823516178555613fd3565b82800160010185558215613fd3579182015b82811115613fd357823582559160200191906001019061403c565b5b80821115613fdf5760008155600101614058565b6001600160e01b031981168114610e6d57600080fd5b60006020828403121561409457600080fd5b81356138398161406c565b60005b838110156140ba5781810151838201526020016140a2565b838111156140c9576000848401525b50505050565b600081518084526140e781602086016020860161409f565b601f01601f19169290920160200192915050565b60208152600061383960208301846140cf565b60006020828403121561412057600080fd5b5035919050565b6001600160a01b0381168114610e6d57600080fd5b6000806040838503121561414f57600080fd5b823561415a81614127565b946020939093013593505050565b60008060006060848603121561417d57600080fd5b833561418881614127565b9250602084013561419881614127565b929592945050506040919091013590565b600080604083850312156141bc57600080fd5b50508035926020909101359150565b6000602082840312156141dd57600080fd5b813561383981614127565b60008083601f8401126141fa57600080fd5b50813567ffffffffffffffff81111561421257600080fd5b6020830191508360208260051b8501011115610fe057600080fd5b6000806000806000806080878903121561424657600080fd5b86359550602087013561425881614127565b9450604087013567ffffffffffffffff8082111561427557600080fd5b6142818a838b016141e8565b9096509450606089013591508082111561429a57600080fd5b506142a789828a016141e8565b979a9699509497509295939492505050565b6020808252825182820181905260009190848201906040850190845b8181101561433c5761432983855180511515825268ffffffffffffffffff602082015116602083015260408101516affffffffffffffffffffff808216604085015280606084015116606085015250505050565b92840192608092909201916001016142d5565b50909695505050505050565b60008083601f84011261435a57600080fd5b50813567ffffffffffffffff81111561437257600080fd5b602083019150836020828501011115610fe057600080fd5b6000806020838503121561439d57600080fd5b823567ffffffffffffffff8111156143b457600080fd5b6143c085828601614348565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561440b5761440b6143cc565b604052919050565b600067ffffffffffffffff82111561442d5761442d6143cc565b50601f01601f191660200190565b600061444e61444984614413565b6143e2565b905082815283838301111561446257600080fd5b828260208301376000602084830101529392505050565b600082601f83011261448a57600080fd5b6138398383356020850161443b565b6000806000606084860312156144ae57600080fd5b833567ffffffffffffffff808211156144c657600080fd5b6144d287838801614479565b945060208601359150808211156144e857600080fd5b6144f487838801614479565b9350604086013591508082111561450a57600080fd5b5061451786828701614479565b9150509250925092565b6000806000806040858703121561453757600080fd5b843567ffffffffffffffff8082111561454f57600080fd5b61455b888389016141e8565b9096509450602087013591508082111561457457600080fd5b50614581878288016141e8565b95989497509550505050565b6000806000604084860312156145a257600080fd5b83359250602084013567ffffffffffffffff8111156145c057600080fd5b6145cc86828701614348565b9497909650939450505050565b8015158114610e6d57600080fd5b600080604083850312156145fa57600080fd5b823561460581614127565b91506020830135614615816145d9565b809150509250929050565b60808101610bd5828480511515825268ffffffffffffffffff602082015116602083015260408101516affffffffffffffffffffff808216604085015280606084015116606085015250505050565b6000806000806080858703121561468557600080fd5b843561469081614127565b935060208501356146a081614127565b925060408501359150606085013567ffffffffffffffff8111156146c357600080fd5b8501601f810187136146d457600080fd5b6146e38782356020840161443b565b91505092959194509250565b6000806040838503121561470257600080fd5b82359150602083013567ffffffffffffffff81111561472057600080fd5b61472c85828601614479565b9150509250929050565b6000806020838503121561474957600080fd5b823567ffffffffffffffff81111561476057600080fd5b6143c0858286016141e8565b6000806040838503121561477f57600080fd5b823561478a81614127565b9150602083013561461581614127565b600181811c908216806147ae57607f821691505b6020821081141561185957634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156147ff576147ff6147cf565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261482957614829614804565b500490565b60006020828403121561484057600080fd5b8151613839816145d9565b634e487b7160e01b600052603260045260246000fd5b60006affffffffffffffffffffff808316818516808303821115614887576148876147cf565b01949350505050565b60006affffffffffffffffffffff838116908316818110156148b4576148b46147cf565b039392505050565b600068ffffffffffffffffff808316818114156148db576148db6147cf565b6001019392505050565b6000808335601e198436030181126148fc57600080fd5b83018035915067ffffffffffffffff82111561491757600080fd5b602001915036819003821315610fe057600080fd5b6000600019821415614940576149406147cf565b5060010190565b6000821982111561495a5761495a6147cf565b500190565b6001600160a01b038516815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b8381528260208201526060604082015260006149c460608301846140cf565b95945050505050565b6000602082840312156149df57600080fd5b815167ffffffffffffffff8111156149f657600080fd5b8201601f81018413614a0757600080fd5b8051614a1561444982614413565b818152856020838501011115614a2a57600080fd5b6149c482602083016020860161409f565b600082821015614a4d57614a4d6147cf565b500390565b6040808252810184905260008560608301825b87811015614a95578235614a7881614127565b6001600160a01b0316825260209283019290910190600101614a65565b5083810360208501528481527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff851115614ace57600080fd5b8460051b915081866020830137600091016020019081529695505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152614b2160808301846140cf565b9695505050505050565b600060208284031215614b3d57600080fd5b81516138398161406c565b60008351614b5a81846020880161409f565b83519083019061488781836020880161409f565b60008251614b8081846020870161409f565b7f636f6e74726163742d6d65746164617461000000000000000000000000000000920191825250601101919050565b634e487b7160e01b600052602160045260246000fd5b600082614bd457614bd4614804565b50069056fea2646970667358221220878107751eee67cb535853b1cbb50025c07045552f56cd05cca19a0664cbc01c64736f6c63430008090033
Deployed Bytecode
0x60806040526004361061032d5760003560e01c806370a08231116101a5578063b0abd457116100ec578063e4623c1b11610095578063e985e9c51161006f578063e985e9c5146109e7578063f51c457514610a30578063f592644214610adc578063f851a44014610b935761037f565b8063e4623c1b14610992578063e8a3d485146109b2578063e8ac6533146109c75761037f565b8063c87b56dd116100c6578063c87b56dd14610932578063cd5ad4c514610952578063d3716630146109725761037f565b8063b0abd457146108dc578063b88d4fde146108f2578063b963daef146109125761037f565b8063937773691161014e5780639dc20f78116101285780639dc20f781461086f578063a22cb4651461088f578063a8f6635c146108af5761037f565b8063937773691461081a57806395d89b411461083a5780639b3d270a1461084f5761037f565b8063792ccce01161017f578063792ccce0146107c55780638bad0c0a146107e557806392e80eb4146107fa5761037f565b806370a082311461075757806377830dca146107855780637889cc16146107a55761037f565b806342966c681161027457806351ff48471161021d5780635615d8fd116101f75780635615d8fd146106985780636050f48e146107025780636352211e146107225780636c0360eb146107425761037f565b806351ff484714610641578063559cb3a71461065657806355f804b3146106785761037f565b8063447fd8c41161024e578063447fd8c4146105e15780634782f779146106015780634f558e79146106215761037f565b806342966c681461058157806343264347146105a157806344004cc1146105c15761037f565b806328c5cf0a116102d6578063319cd2d7116102b0578063319cd2d7146105215780634025feb21461054157806342842e0e146105615761037f565b806328c5cf0a146104ad5780632a55205a146104c25780632c5c0f54146105015761037f565b8063095ea7b311610307578063095ea7b3146104565780630e18b6811461047857806323b872dd1461048d5761037f565b806301ffc9a7146103c757806306fdde03146103fc578063081812fc1461041e5761037f565b3661037f5760405162461bcd60e51b815260206004820152601b60248201527f526563656976696e6720455448206e6f74207065726d6974746564000000000060448201526064015b60405180910390fd5b60405162461bcd60e51b815260206004820152601f60248201527f46616c6c6261636b2066756e6374696f6e206e6f74207065726d6974746564006044820152606401610376565b3480156103d357600080fd5b506103e76103e2366004614082565b610bb8565b60405190151581526020015b60405180910390f35b34801561040857600080fd5b50610411610bdb565b6040516103f391906140fb565b34801561042a57600080fd5b5061043e61043936600461410e565b610c6d565b6040516001600160a01b0390911681526020016103f3565b34801561046257600080fd5b5061047661047136600461413c565b610ce0565b005b34801561048457600080fd5b50610476610df7565b34801561049957600080fd5b506104766104a8366004614168565b610e70565b3480156104b957600080fd5b50610476610eea565b3480156104ce57600080fd5b506104e26104dd3660046141a9565b610f5b565b604080516001600160a01b0390931683526020830191909152016103f3565b34801561050d57600080fd5b5061043e61051c36600461410e565b610fe7565b34801561052d57600080fd5b5061043e61053c36600461410e565b610ff2565b34801561054d57600080fd5b5061047661055c366004614168565b611005565b34801561056d57600080fd5b5061047661057c366004614168565b6110a1565b34801561058d57600080fd5b5061047661059c36600461410e565b6110bc565b3480156105ad57600080fd5b506104766105bc3660046141cb565b6110c5565b3480156105cd57600080fd5b506104766105dc366004614168565b61114e565b3480156105ed57600080fd5b5061043e6105fc36600461422d565b61124c565b34801561060d57600080fd5b5061047661061c36600461413c565b61137b565b34801561062d57600080fd5b506103e761063c36600461410e565b61152f565b34801561064d57600080fd5b5061041161153a565b34801561066257600080fd5b5061066b6115c8565b6040516103f391906142b9565b34801561068457600080fd5b5061047661069336600461438a565b611670565b3480156106a457600080fd5b50600f546010546106d19160ff808216926101008304909116916201000090046001600160a01b03169084565b6040516103f39493929190931515845291151560208401526001600160a01b03166040830152606082015260800190565b34801561070e57600080fd5b5061047661071d366004614499565b6116bb565b34801561072e57600080fd5b5061043e61073d36600461410e565b611758565b34801561074e57600080fd5b5061041161185f565b34801561076357600080fd5b506107776107723660046141cb565b61186e565b6040519081526020016103f3565b34801561079157600080fd5b506104766107a0366004614521565b6118e9565b3480156107b157600080fd5b506104766107c03660046141a9565b611ede565b3480156107d157600080fd5b506104766107e03660046141cb565b611f69565b3480156107f157600080fd5b50610476612006565b34801561080657600080fd5b5061047661081536600461413c565b61201a565b34801561082657600080fd5b506104766108353660046141cb565b61217d565b34801561084657600080fd5b506104116122b6565b34801561085b57600080fd5b5061047661086a36600461458d565b6122c5565b34801561087b57600080fd5b5061077761088a36600461410e565b6125d5565b34801561089b57600080fd5b506104766108aa3660046145e7565b6125e0565b3480156108bb57600080fd5b506108cf6108ca36600461410e565b6126ab565b6040516103f39190614620565b3480156108e857600080fd5b5061077761271081565b3480156108fe57600080fd5b5061047661090d36600461466f565b6127aa565b34801561091e57600080fd5b5061047661092d3660046146ef565b612815565b34801561093e57600080fd5b5061041161094d36600461410e565b6128ca565b34801561095e57600080fd5b5061047661096d3660046141cb565b6129dd565b34801561097e57600080fd5b5061041161098d36600461410e565b612a07565b34801561099e57600080fd5b506104766109ad366004614736565b612b09565b3480156109be57600080fd5b50610411612b9a565b3480156109d357600080fd5b50600c5461043e906001600160a01b031681565b3480156109f357600080fd5b506103e7610a0236600461476c565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a3c57600080fd5b50610aab610a4b36600461410e565b604080516060808201835260008083526020808401829052928401819052938452600e825292829020825193840183525460ff811615158452610100810461ffff1691840191909152630100000090046001600160a01b03169082015290565b6040805182511515815260208084015161ffff1690820152918101516001600160a01b0316908201526060016103f3565b348015610ae857600080fd5b50610b596040805160608101825260008082526020820181905291810191909152506040805160608101825260095460ff81161515825261010081046affffffffffffffffffffff1660208301526c0100000000000000000000000090046001600160a01b03169181019190915290565b604080518251151581526020808401516affffffffffffffffffffff1690820152918101516001600160a01b0316908201526060016103f3565b348015610b9f57600080fd5b50600b5461043e9061010090046001600160a01b031681565b60006001600160e01b031982161580610bd55750610bd582612c44565b92915050565b606060018054610bea9061479a565b80601f0160208091040260200160405190810160405280929190818152602001828054610c169061479a565b8015610c635780601f10610c3857610100808354040283529160200191610c63565b820191906000526020600020905b815481529060010190602001808311610c4657829003601f168201915b5050505050905090565b6000610c7882612c82565b60405180604001604052806014815260200173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b81525090610cc35760405162461bcd60e51b815260040161037691906140fb565b50506000908152600660205260409020546001600160a01b031690565b6000610ceb82611758565b9050806001600160a01b0316836001600160a01b031614156040518060400160405280601681526020017f43757272656e74206f776e657220617070726f76616c0000000000000000000081525090610d575760405162461bcd60e51b815260040161037691906140fb565b50336001600160a01b0382161480610d9257506001600160a01b038116600090815260076020908152604080832033845290915290205460ff165b6040518060400160405280601681526020017f4e6f74206f776e6572206e6f7220617070726f7665640000000000000000000081525090610de65760405162461bcd60e51b815260040161037691906140fb565b50610df2818484612cd6565b505050565b600c546001600160a01b031680336001600160a01b0316146040518060400160405280601281526020017f496e76616c6964206d73672e73656e646572000000000000000000000000000081525090610e635760405162461bcd60e51b815260040161037691906140fb565b50610e6d81612d32565b50565b600080610e7d3384612db3565b91509150806040518060400160405280601681526020017f4e6f74206f776e6572206e6f7220617070726f7665640000000000000000000081525090610ed65760405162461bcd60e51b815260040161037691906140fb565b50610ee382868686612e33565b5050505050565b610ef2612fee565b60095460408051808201909152601581527f436f6e74726163742069732066696e616c697a6564000000000000000000000060208201529060ff1615610f4b5760405162461bcd60e51b815260040161037691906140fb565b506009805460ff19166001179055565b6000806000610f698561313e565b6000818152600e6020526040902054909150630100000090046001600160a01b031615610fd6576000818152600e6020526040902054630100000081046001600160a01b03169061271090610fc790610100900461ffff16876147e5565b610fd1919061481a565b610fda565b6000805b92509250505b9250929050565b6000610bd5826132b4565b6000610bd56110008361313e565b6132b4565b61100d612fee565b6040517fb88d4fde0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03838116602483015260448201839052608060648301526000608483015284169063b88d4fde9060a401600060405180830381600087803b15801561108457600080fd5b505af1158015611098573d6000803e3d6000fd5b50505050505050565b610df2838383604051806020016040528060008152506127aa565b610e6d816132f4565b600b5460408051808201909152601f81527f52652d696e697469616c697a6174696f6e206e6f74207065726d69747465640060208201529060ff161561111e5760405162461bcd60e51b815260040161037691906140fb565b50600d80546001600160a01b0319166001600160a01b0392909216919091179055600b805460ff19166001179055565b611156612fee565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390526000919085169063a9059cbb90604401602060405180830381600087803b1580156111bd57600080fd5b505af11580156111d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f5919061482e565b9050806040518060400160405280601581526020017f576974686472617720756e7375636365737366756c000000000000000000000081525090610ee35760405162461bcd60e51b815260040161037691906140fb565b6000611256612fee565b6000878152600e602052604090208054600180871160ff19831617909255630100000090046001600160a01b031690851461129d576112988787878787613469565b6112c5565b858560008181106112b0576112b061484b565b90506020020160208101906112c591906141cb565b6000898152600e602090815260409182902080547fffffffffffffffffff0000000000000000000000000000000000000000ffffff1663010000006001600160a01b03958616810291909117918290558351868616815291049093169083015289917f834a47bfbb51ad808d8649527d9bf540f58cc71dc1093ae2249c8b230575ce98910160405180910390a250505060009485525050600e60205250506040902054630100000090046001600160a01b031690565b611383612fee565b60408051808201909152601181527f5a65726f20455448205472616e736665720000000000000000000000000000006020820152816113d55760405162461bcd60e51b815260040161037691906140fb565b506001600160a01b03821661142c5760405162461bcd60e51b815260206004820152601860248201527f5472616e7366657220746f207a65726f206164647265737300000000000000006044820152606401610376565b60408051808201909152601481527f496e73756666696369656e742062616c616e636500000000000000000000000060208201524790818311156114835760405162461bcd60e51b815260040161037691906140fb565b506000836001600160a01b03168360405160006040518083038185875af1925050503d80600081146114d1576040519150601f19603f3d011682016040523d82523d6000602084013e6114d6565b606091505b50509050806040518060400160405280601581526020017f576974686472617720756e7375636365737366756c000000000000000000000081525090610ee35760405162461bcd60e51b815260040161037691906140fb565b6000610bd582612c82565b601180546115479061479a565b80601f01602080910402602001604051908101604052809291908181526020018280546115739061479a565b80156115c05780601f10611595576101008083540402835291602001916115c0565b820191906000526020600020905b8154815290600101906020018083116115a357829003601f168201915b505050505081565b60606014805480602002602001604051908101604052809291908181526020016000905b82821015611667576000848152602090819020604080516080810182529185015460ff81161515835268ffffffffffffffffff610100820416838501526affffffffffffffffffffff6a01000000000000000000008204811692840192909252600160a81b90041660608201528252600190920191016115ec565b50505050905090565b611678612fee565b6116b782828080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506135ee92505050565b5050565b60005460408051808201909152601f81527f52652d696e697469616c697a6174696f6e206e6f74207065726d69747465640060208201529060ff16156117145760405162461bcd60e51b815260040161037691906140fb565b508251611728906001906020860190613f5f565b50815161173c906002906020850190613f5f565b50611746816135ee565b50506000805460ff1916600117905550565b600061176382613601565b60405180604001604052806014815260200173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b815250906117ae5760405162461bcd60e51b815260040161037691906140fb565b506000828152600a602052604090205460ff166117e6576009546c0100000000000000000000000090046001600160a01b0316611804565b6000828152600a602052604090205461010090046001600160a01b03165b604080518082019091526014815273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b60208201529091506001600160a01b0382166118595760405162461bcd60e51b815260040161037691906140fb565b50919050565b606060038054610bea9061479a565b60408051808201909152601681527f517565727920666f72207a65726f20616464726573730000000000000000000060208201526000906001600160a01b0383166118cc5760405162461bcd60e51b815260040161037691906140fb565b50506001600160a01b031660009081526005602052604090205490565b6118f1612fee565b82158015906118ff57508015155b6040518060400160405280601181526020017f496e70757420617272617920656d707479000000000000000000000000000000815250906119535760405162461bcd60e51b815260040161037691906140fb565b5060408051808201909152601981527f496e7075742061727261792073697a65206d69736d617463680000000000000060208201528382146119a85760405162461bcd60e51b815260040161037691906140fb565b5060095460408051808201909152601881527f5472616e7366657220746f207a65726f2061646472657373000000000000000060208201526c010000000000000000000000009091046001600160a01b03169081611a195760405162461bcd60e51b815260040161037691906140fb565b5060095460408051808201909152601581527f436f6e74726163742069732066696e616c697a6564000000000000000000000060208201529060ff1615611a735760405162461bcd60e51b815260040161037691906140fb565b50601354600160a81b81046affffffffffffffffffffff1690610100900468ffffffffffffffffff166000611aa9836001614861565b9050806000805b89811015611d635760008b8b83818110611acc57611acc61484b565b90506020020135116040518060400160405280601081526020017f4e6f20746f6b656e73206d696e7465640000000000000000000000000000000081525090611b285760405162461bcd60e51b815260040161037691906140fb565b5060008b8b83818110611b3d57611b3d61484b565b90506020020135905060018186611b549190614861565b611b5e9190614890565b925085611b6a816148bc565b96505060008a8a84818110611b8157611b8161484b565b9050602002810190611b9391906148e5565b90501115611be657898983818110611bad57611bad61484b565b9050602002810190611bbf91906148e5565b68ffffffffffffffffff88166000908152601560205260409020611be4929091613fe3565b505b60408051608081018252600180825268ffffffffffffffffff89811660208085018281526affffffffffffffffffffff8c81168789018181528c83166060808b01828152601480549b8c0181556000529a517fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec909a018054965193519b518616600160a81b0274ffffffffffffffffffffffffffffffffffffffffff9c9096166a0100000000000000000000029b909b1669ffffffffffffffffffff93909916610100027fffffffffffffffffffffffffffffffffffffffffffff000000000000000000ff9a15159a909a167fffffffffffffffffffffffffffffffffffffffffffff00000000000000000000909616959095179890981716959095171790955585519182528101919091529283015230917feb15cc05309c4c75cd685463644508ef1d1663a4ca01ed00737631dc6dd02073910160405180910390a2611d4d8186614861565b9450508080611d5b9061492c565b915050611ab0565b506000611d708683614890565b6affffffffffffffffffffff1690508060056000896001600160a01b03166001600160a01b031681526020019081526020016000206000828254611db49190614947565b9091555050601380546affffffffffffffffffffff808516600160a81b0274ffffffffffffffffffffffffffffffffffffffffff68ffffffffffffffffff8a166101009081029190911674ffffffffffffffffffffff000000000000000000ff90941693909317179092556009805484939192600192611e38928692900416614861565b92506101000a8154816affffffffffffffffffffff02191690836affffffffffffffffffffff160217905550866001600160a01b031660006001600160a01b0316846affffffffffffffffffffff167fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d85604051611ec991906affffffffffffffffffffff91909116815260200190565b60405180910390a45050505050505050505050565b611ee6612fee565b60408051808201909152600e81527f42697073206f76657220313030250000000000000000000000000000000000006020820152612710821115611f3d5760405162461bcd60e51b815260040161037691906140fb565b506000918252600e6020526040909120805461ffff9092166101000262ffff0019909216919091179055565b60085460408051808201909152601f81527f52652d696e697469616c697a6174696f6e206e6f74207065726d69747465640060208201529060ff1615611fc25760405162461bcd60e51b815260040161037691906140fb565b50600980546001600160a01b039092166c01000000000000000000000000026bffffffffffffffffffffffff9092169190911790556008805460ff19166001179055565b61200e612fee565b6120186000612d32565b565b612022612fee565b60408051808201909152601a81527f5369676e65722073657420746f207a65726f206164647265737300000000000060208201526001600160a01b03831661207d5760405162461bcd60e51b815260040161037691906140fb565b5060408051808201909152601781527f53616c74656420686173682073657420746f207a65726f0000000000000000006020820152816120d05760405162461bcd60e51b815260040161037691906140fb565b50600f5460408051808201909152601781527f436f6e747261637420616c7265616479207369676e6564000000000000000000602082015290610100900460ff161561212f5760405162461bcd60e51b815260040161037691906140fb565b50600f805460109290925560ff196001600160a01b039093166201000002929092167fffffffffffffffffffff0000000000000000000000000000000000000000ff00909116176001179055565b612185612fee565b6001600160a01b0381166121b357601280546001600160a01b0383166001600160a01b031990911617905550565b6040516301ffc9a760e01b81527f5219fb8e0000000000000000000000000000000000000000000000000000000060048201526001600160a01b038216906301ffc9a79060240160206040518083038186803b15801561221257600080fd5b505afa158015612226573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224a919061482e565b6122965760405162461bcd60e51b815260206004820152601a60248201527f496e76616c6964204d657461646174612047656e657261746f720000000000006044820152606401610376565b601280546001600160a01b0383166001600160a01b031990911617905550565b606060028054610bea9061479a565b600f5460408051808201909152601781527f436f6e747261637420616c7265616479207369676e6564000000000000000000602082015290610100900460ff16156123235760405162461bcd60e51b815260040161037691906140fb565b50600f5460408051808201909152601381527f436f6e7472616374206e6f742073616c7465640000000000000000000000000060208201529060ff1661237c5760405162461bcd60e51b815260040161037691906140fb565b50600f54601054620100009091046001600160a01b03169081336001600160a01b0316146040518060400160405280601281526020017f496e76616c6964206d73672e73656e6465720000000000000000000000000000815250906123f45760405162461bcd60e51b815260040161037691906140fb565b50808560405160200161240991815260200190565b60405160208183030381529060405280519060200120146040518060400160405280601581526020017f496e636f7272656374207365637265742073616c740000000000000000000000815250906124745760405162461bcd60e51b815260040161037691906140fb565b50816001600160a01b03166125156124d9836040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b86868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061362892505050565b6001600160a01b0316146040518060400160405280601681526020017f556e65787065637465642064617461207369676e657200000000000000000000815250906125735760405162461bcd60e51b815260040161037691906140fb565b5061258060118585613fe3565b50600f805461ff0019166101001790556040517f955fd8871b091d05a1f766f82ece6ba4d9c55e65e065d4459b26740f2e698e70906125c690849084908890889061495f565b60405180910390a15050505050565b6000610bd58261313e565b60408051808201909152601181527f417070726f766520746f2063616c6c657200000000000000000000000000000060208201526001600160a01b03831633141561263e5760405162461bcd60e51b815260040161037691906140fb565b503360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260145460001983019081106127265760405162461bcd60e51b815260206004820152601960248201527f4e69667479205479706520446f6573204e6f74204578697374000000000000006044820152606401610376565b601481815481106127395761273961484b565b600091825260209182902060408051608081018252919092015460ff81161515825268ffffffffffffffffff610100820416938201939093526affffffffffffffffffffff6a01000000000000000000008404811692820192909252600160a81b9092041660608201529392505050565b6127b5848484610e70565b6127c18484848461364c565b6040518060400160405280601581526020017f4e6f7420616e204552433732315265636569766572000000000000000000000081525090610ee35760405162461bcd60e51b815260040161037691906140fb565b61281d612fee565b600082815260156020526040902080546128369061479a565b1590506128ab5760405162461bcd60e51b815260206004820152602560248201527f4552433732314d657461646174613a2049504653206861736820616c7265616460448201527f79207365740000000000000000000000000000000000000000000000000000006064820152608401610376565b60008281526015602090815260409091208251610df292840190613f5f565b6012546060906001600160a01b03166128e657610bd58261378d565b6128ef82612c82565b60405180604001604052806014815260200173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b8152509061293a5760405162461bcd60e51b815260040161037691906140fb565b506012546001600160a01b031663f572b6d8836129568161313e565b604051806020016040528060008152506040518463ffffffff1660e01b8152600401612984939291906149a5565b60006040518083038186803b15801561299c57600080fd5b505afa1580156129b0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610bd591908101906149cd565b919050565b6129e5612fee565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6060612a1282612c82565b60405180604001604052806014815260200173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b81525090612a5d5760405162461bcd60e51b815260040161037691906140fb565b5060156000612a6b8461313e565b81526020019081526020016000208054612a849061479a565b80601f0160208091040260200160405190810160405280929190818152602001828054612ab09061479a565b8015612afd5780601f10612ad257610100808354040283529160200191612afd565b820191906000526020600020905b815481529060010190602001808311612ae057829003601f168201915b50505050509050919050565b60408051808201909152601181527f496e70757420617272617920656d707479000000000000000000000000000000602082015281612b5b5760405162461bcd60e51b815260040161037691906140fb565b5060005b81811015610df257612b88838383818110612b7c57612b7c61484b565b905060200201356132f4565b80612b928161492c565b915050612b5f565b6012546060906001600160a01b0316612bba57612bb5613840565b905090565b601260009054906101000a90046001600160a01b03166001600160a01b031663a76b4d566040518163ffffffff1660e01b815260040160006040518083038186803b158015612c0857600080fd5b505afa158015612c1c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612bb591908101906149cd565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610bd55750610bd582613893565b6000612c8d82613601565b15612cce576000828152600a602052604090205461010090046001600160a01b0316151580610bd55750506000908152600a602052604090205460ff161590565b506000919050565b60008181526006602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600b80546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617909455600c80546001600160a01b031916905560405193909204169182907ff8ccb027dfcd135e000e9d45e6cc2d662578a8825d4c45b5e32e0adf67e79ec690600090a35050565b600080612dbf83611758565b9150816001600160a01b0316846001600160a01b03161480612dfa57506000838152600660205260409020546001600160a01b038581169116145b80612e2a57506001600160a01b0380831660009081526007602090815260408083209388168352929052205460ff165b90509250929050565b826001600160a01b0316846001600160a01b0316146040518060400160405280601d81526020017f5472616e736665722066726f6d20696e636f7272656374206f776e657200000081525090612e9c5760405162461bcd60e51b815260040161037691906140fb565b5060408051808201909152601881527f5472616e7366657220746f207a65726f2061646472657373000000000000000060208201526001600160a01b038316612ef85760405162461bcd60e51b815260040161037691906140fb565b50612f0384826138d1565b6001600160a01b0383166000908152600560205260408120805460019290612f2c908490614a3b565b90915550506001600160a01b0382166000908152600560205260408120805460019290612f5a908490614947565b90915550506000818152600a60205260409020805460017fffffffffffffffffffffff0000000000000000000000000000000000000000009091166101006001600160a01b038616021717905580826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b600b5461010090046001600160a01b0316806130e157600d546001600160a01b031663e37ce6fa336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561305557600080fd5b505afa158015613069573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061308d919061482e565b6040518060400160405280601281526020017f496e76616c6964206d73672e73656e6465720000000000000000000000000000815250906116b75760405162461bcd60e51b815260040161037691906140fb565b60408051808201909152601281527f496e76616c6964206d73672e73656e64657200000000000000000000000000006020820152336001600160a01b038316146116b75760405162461bcd60e51b815260040161037691906140fb565b6014546000908190819061315490600190614a3b565b9050600060026131648484614a3b565b61316e919061481a565b90505b6014548110156132a9576000601482815481106131905761319061484b565b600091825260209091200180549091506a010000000000000000000090046affffffffffffffffffffff1686108015906131df57508054600160a81b90046affffffffffffffffffffff168611155b156131fe5754610100900468ffffffffffffffffff1695945050505050565b8054600160a81b90046affffffffffffffffffffff1686111561324f57613226826001614947565b935060026132348585614a3b565b61323e919061481a565b6132489085614947565b91506132a3565b80546a010000000000000000000090046affffffffffffffffffffff168610156132a35761327e600183614a3b565b9250600261328c8585614a3b565b613296919061481a565b6132a09085614947565b91505b50613171565b506000949350505050565b6000818152600e602052604081205460ff166132d1576000610bd5565b506000908152600e6020526040902054630100000090046001600160a01b031690565b60006132ff82611758565b90506000336001600160a01b038316148061333057506000838152600660205260409020546001600160a01b031633145b8061335e57506001600160a01b038216600090815260076020908152604080832033845290915290205460ff165b9050806040518060400160405280601681526020017f4e6f74206f776e6572206e6f7220617070726f76656400000000000000000000815250906133b55760405162461bcd60e51b815260040161037691906140fb565b506133c082846138d1565b6001600160a01b03821660009081526005602052604081208054600192906133e9908490614a3b565b9091555061342c9050836000908152600a6020526040902080547fffffffffffffffffffffff000000000000000000000000000000000000000000166001179055565b60405183906000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505050565b6040516301ffc9a760e01b81527f37de79fc0000000000000000000000000000000000000000000000000000000060048201526000906001600160a01b038716906301ffc9a79060240160206040518083038186803b1580156134cb57600080fd5b505afa1580156134df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613503919061482e565b6040518060400160405280601e81526020017f556e636c6f6e6561626c65207265666572656e636520636f6e74726163740000815250906135575760405162461bcd60e51b815260040161037691906140fb565b50600061356387613926565b6040517f7fbbe46f0000000000000000000000000000000000000000000000000000000081529091506001600160a01b03821690637fbbe46f906135b1908990899089908990600401614a52565b600060405180830381600087803b1580156135cb57600080fd5b505af11580156135df573d6000803e3d6000fd5b50929998505050505050505050565b80516116b7906003906020840190613f5f565b60008082118015610bd557505060095461010090046affffffffffffffffffffff16101590565b600080600061363785856139dc565b9150915061364481613a49565b509392505050565b60006001600160a01b0384163b1561378157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613690903390899088908890600401614aef565b602060405180830381600087803b1580156136aa57600080fd5b505af19250505080156136da575060408051601f3d908101601f191682019092526136d791810190614b2b565b60015b613767573d808015613708576040519150601f19603f3d011682016040523d82523d6000602084013e61370d565b606091505b50805161375f57604080518082018252601581527f4e6f7420616e20455243373231526563656976657200000000000000000000006020820152905162461bcd60e51b815261037691906004016140fb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613785565b5060015b949350505050565b606061379882612c82565b60405180604001604052806014815260200173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b815250906137e35760405162461bcd60e51b815260040161037691906140fb565b5060006137ee61185f565b9050600081511161380e5760405180602001604052806000815250613839565b8061381884613c04565b604051602001613829929190614b48565b6040516020818303038152906040525b9392505050565b6060600061384c61185f565b9050600081511161386c576040518060200160405280600081525061388d565b8060405160200161387d9190614b6e565b6040516020818303038152906040525b91505090565b60006001600160e01b031982167f43264347000000000000000000000000000000000000000000000000000000001480610bd55750610bd582613d36565b60008181526006602052604080822080546001600160a01b0319169055518291906001600160a01b038516907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925908390a45050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f09150506001600160a01b0381166129d85760405162461bcd60e51b815260206004820152601660248201527f455243313136373a20637265617465206661696c6564000000000000000000006044820152606401610376565b600080825160411415613a135760208301516040840151606085015160001a613a0787828585613d74565b94509450505050610fe0565b825160401415613a3d5760208301516040840151613a32868383613e61565b935093505050610fe0565b50600090506002610fe0565b6000816004811115613a5d57613a5d614baf565b1415613a665750565b6001816004811115613a7a57613a7a614baf565b1415613ac85760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610376565b6002816004811115613adc57613adc614baf565b1415613b2a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610376565b6003816004811115613b3e57613b3e614baf565b1415613b975760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610376565b6004816004811115613bab57613bab614baf565b1415610e6d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610376565b606081613c4457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613c6e5780613c588161492c565b9150613c679050600a8361481a565b9150613c48565b60008167ffffffffffffffff811115613c8957613c896143cc565b6040519080825280601f01601f191660200182016040528015613cb3576020820181803683370190505b5090505b841561378557613cc8600183614a3b565b9150613cd5600a86614bc5565b613ce0906030614947565b60f81b818381518110613cf557613cf561484b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613d2f600a8661481a565b9450613cb7565b60006001600160e01b031982167f792ccce0000000000000000000000000000000000000000000000000000000001480610bd55750610bd582613ea9565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613dab5750600090506003613e58565b8460ff16601b14158015613dc357508460ff16601c14155b15613dd45750600090506004613e58565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613e28573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613e5157600060019250925050613e58565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01613e9b87828885613d74565b935093505050935093915050565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480613f0c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80613f4057506001600160e01b031982167f6050f48e00000000000000000000000000000000000000000000000000000000145b80610bd557506301ffc9a760e01b6001600160e01b0319831614610bd5565b828054613f6b9061479a565b90600052602060002090601f016020900481019282613f8d5760008555613fd3565b82601f10613fa657805160ff1916838001178555613fd3565b82800160010185558215613fd3579182015b82811115613fd3578251825591602001919060010190613fb8565b50613fdf929150614057565b5090565b828054613fef9061479a565b90600052602060002090601f0160209004810192826140115760008555613fd3565b82601f1061402a5782800160ff19823516178555613fd3565b82800160010185558215613fd3579182015b82811115613fd357823582559160200191906001019061403c565b5b80821115613fdf5760008155600101614058565b6001600160e01b031981168114610e6d57600080fd5b60006020828403121561409457600080fd5b81356138398161406c565b60005b838110156140ba5781810151838201526020016140a2565b838111156140c9576000848401525b50505050565b600081518084526140e781602086016020860161409f565b601f01601f19169290920160200192915050565b60208152600061383960208301846140cf565b60006020828403121561412057600080fd5b5035919050565b6001600160a01b0381168114610e6d57600080fd5b6000806040838503121561414f57600080fd5b823561415a81614127565b946020939093013593505050565b60008060006060848603121561417d57600080fd5b833561418881614127565b9250602084013561419881614127565b929592945050506040919091013590565b600080604083850312156141bc57600080fd5b50508035926020909101359150565b6000602082840312156141dd57600080fd5b813561383981614127565b60008083601f8401126141fa57600080fd5b50813567ffffffffffffffff81111561421257600080fd5b6020830191508360208260051b8501011115610fe057600080fd5b6000806000806000806080878903121561424657600080fd5b86359550602087013561425881614127565b9450604087013567ffffffffffffffff8082111561427557600080fd5b6142818a838b016141e8565b9096509450606089013591508082111561429a57600080fd5b506142a789828a016141e8565b979a9699509497509295939492505050565b6020808252825182820181905260009190848201906040850190845b8181101561433c5761432983855180511515825268ffffffffffffffffff602082015116602083015260408101516affffffffffffffffffffff808216604085015280606084015116606085015250505050565b92840192608092909201916001016142d5565b50909695505050505050565b60008083601f84011261435a57600080fd5b50813567ffffffffffffffff81111561437257600080fd5b602083019150836020828501011115610fe057600080fd5b6000806020838503121561439d57600080fd5b823567ffffffffffffffff8111156143b457600080fd5b6143c085828601614348565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561440b5761440b6143cc565b604052919050565b600067ffffffffffffffff82111561442d5761442d6143cc565b50601f01601f191660200190565b600061444e61444984614413565b6143e2565b905082815283838301111561446257600080fd5b828260208301376000602084830101529392505050565b600082601f83011261448a57600080fd5b6138398383356020850161443b565b6000806000606084860312156144ae57600080fd5b833567ffffffffffffffff808211156144c657600080fd5b6144d287838801614479565b945060208601359150808211156144e857600080fd5b6144f487838801614479565b9350604086013591508082111561450a57600080fd5b5061451786828701614479565b9150509250925092565b6000806000806040858703121561453757600080fd5b843567ffffffffffffffff8082111561454f57600080fd5b61455b888389016141e8565b9096509450602087013591508082111561457457600080fd5b50614581878288016141e8565b95989497509550505050565b6000806000604084860312156145a257600080fd5b83359250602084013567ffffffffffffffff8111156145c057600080fd5b6145cc86828701614348565b9497909650939450505050565b8015158114610e6d57600080fd5b600080604083850312156145fa57600080fd5b823561460581614127565b91506020830135614615816145d9565b809150509250929050565b60808101610bd5828480511515825268ffffffffffffffffff602082015116602083015260408101516affffffffffffffffffffff808216604085015280606084015116606085015250505050565b6000806000806080858703121561468557600080fd5b843561469081614127565b935060208501356146a081614127565b925060408501359150606085013567ffffffffffffffff8111156146c357600080fd5b8501601f810187136146d457600080fd5b6146e38782356020840161443b565b91505092959194509250565b6000806040838503121561470257600080fd5b82359150602083013567ffffffffffffffff81111561472057600080fd5b61472c85828601614479565b9150509250929050565b6000806020838503121561474957600080fd5b823567ffffffffffffffff81111561476057600080fd5b6143c0858286016141e8565b6000806040838503121561477f57600080fd5b823561478a81614127565b9150602083013561461581614127565b600181811c908216806147ae57607f821691505b6020821081141561185957634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156147ff576147ff6147cf565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261482957614829614804565b500490565b60006020828403121561484057600080fd5b8151613839816145d9565b634e487b7160e01b600052603260045260246000fd5b60006affffffffffffffffffffff808316818516808303821115614887576148876147cf565b01949350505050565b60006affffffffffffffffffffff838116908316818110156148b4576148b46147cf565b039392505050565b600068ffffffffffffffffff808316818114156148db576148db6147cf565b6001019392505050565b6000808335601e198436030181126148fc57600080fd5b83018035915067ffffffffffffffff82111561491757600080fd5b602001915036819003821315610fe057600080fd5b6000600019821415614940576149406147cf565b5060010190565b6000821982111561495a5761495a6147cf565b500190565b6001600160a01b038516815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b8381528260208201526060604082015260006149c460608301846140cf565b95945050505050565b6000602082840312156149df57600080fd5b815167ffffffffffffffff8111156149f657600080fd5b8201601f81018413614a0757600080fd5b8051614a1561444982614413565b818152856020838501011115614a2a57600080fd5b6149c482602083016020860161409f565b600082821015614a4d57614a4d6147cf565b500390565b6040808252810184905260008560608301825b87811015614a95578235614a7881614127565b6001600160a01b0316825260209283019290910190600101614a65565b5083810360208501528481527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff851115614ace57600080fd5b8460051b915081866020830137600091016020019081529695505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152614b2160808301846140cf565b9695505050505050565b600060208284031215614b3d57600080fd5b81516138398161406c565b60008351614b5a81846020880161409f565b83519083019061488781836020880161409f565b60008251614b8081846020870161409f565b7f636f6e74726163742d6d65746164617461000000000000000000000000000000920191825250601101919050565b634e487b7160e01b600052602160045260246000fd5b600082614bd457614bd4614804565b50069056fea2646970667358221220878107751eee67cb535853b1cbb50025c07045552f56cd05cca19a0664cbc01c64736f6c63430008090033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.