Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
2,000 BAKE
Holders
279
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 BAKELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BakedBuds
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Creator: Andrew Cunningham pragma solidity ^0.8.4; import 'erc721a/contracts/ERC721A.sol'; import '@openzeppelin/contracts/token/common/ERC2981.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/finance/PaymentSplitter.sol'; import '@openzeppelin/contracts/security/Pausable.sol'; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; contract BakedBuds is ERC721A, ERC2981, Ownable, Pausable, PaymentSplitter { uint96 public maxQuantityPerTxn = 5; string public contractURI; uint256 public maxTokens = 4200; uint256 public price = 0.03 ether; uint256 public maxQuantityForPresale = 4; string private _baseURIAddress; bytes32 private _presaleMerkleRoot; address public admin; /** Hardcoded parameters */ uint256 private _maxPresaleAmount = 1010; // max presale + reserved tokens uint256 private _reservedTokensAmount = 220; string private _metadataExtension = '.json'; /** flags */ bool private _presaleActive; bool private _publicSaleActive; bool private _isRevealed; constructor( string memory baseURI, string memory _contractURI, bytes32 merkleRoot, address _admin, uint96 royaltyFee, address[] memory payees, uint256[] memory shares ) ERC721A('BakedBuds', 'BAKE') PaymentSplitter(payees, shares) { /* URI for unrevealed */ _baseURIAddress = baseURI; admin = _admin; _presaleMerkleRoot = merkleRoot; /* secondary market royalties */ _setDefaultRoyalty(admin, royaltyFee); /* contract metadata */ contractURI = _contractURI; } /** ------------------------ Minting ---------------------------- */ function publicMint(uint256 quantity) external payable whenNotPaused { require(_isPublicSaleMintable(), 'Sale not active'); require(quantity > 0, 'Zero'); require(msg.value == price * quantity, 'NonEqualValue'); _mintToken(quantity); } function presaleMint(uint256 quantity, bytes32[] calldata merkleProof) external payable whenNotPaused { require(_isPresaleMintable(), 'Sale not active'); require(msg.value == price * quantity, 'NonEqualValue'); uint256 mints = _numberMinted(msg.sender); require(mints + quantity < maxQuantityForPresale + 1, 'Max quantity reached'); require( _totalMinted() + quantity < _maxPresaleAmount + 1, 'Max presale quantity per wallet minted' ); require(_isWhitelistApproved(msg.sender, merkleProof), 'Not on whitelist'); _mintToken(quantity); } function _mintToken(uint256 quantity) private { require(msg.sender == tx.origin, 'NotContractMintable'); require(quantity < maxQuantityPerTxn + 1, 'Max presale quantity per wallet minted'); require(_totalMinted() + quantity < maxTokens + 1, 'Max tokens minted'); _safeMint(msg.sender, quantity); } function _isWhitelistApproved( address _address, bytes32[] calldata merkleProof ) private view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(_address)); return MerkleProof.verify(merkleProof, _presaleMerkleRoot, leaf); } function _isPresaleMintable() private view returns (bool) { return _presaleActive && !paused() && !_publicSaleActive && (_totalMinted() < _maxPresaleAmount); } function _isPublicSaleMintable() private view returns (bool) { return _publicSaleActive && !paused() && !_presaleActive && (_totalMinted() < maxTokens); } function adminMint(uint256 quantity) external onlyOwner { _safeMint(admin, quantity); } function mintReservedTokens() external onlyOwner { _safeMint(admin, _reservedTokensAmount); } /** ------------------------ Overrides ---------------------------- */ function _baseURI() internal view override returns (string memory) { return _baseURIAddress; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } function releaseFunds(address account) public { release(payable(account)); } function tokenURI(uint256 tokenId) public view override returns (string memory) { if (_isRevealed) { return string(abi.encodePacked(_baseURI(), Strings.toString(tokenId), _metadataExtension)); } return _baseURI(); } /** ----------------------- Getters --------------------------- */ function getPresaleActive() external view returns (bool) { return _isPresaleMintable(); } function getPublicSaleActive() external view returns (bool) { return _isPublicSaleMintable(); } function getTotalMinted() external view returns (uint256) { return _totalMinted(); } function getWhitelistApproved( address _address, bytes32[] calldata merkleProof ) external view returns (bool) { return _isWhitelistApproved(_address, merkleProof); } function getMaxPerTxn() external view returns (uint256) { if (_isPresaleMintable()) { return maxQuantityForPresale; } return maxQuantityPerTxn; } /** ---------------------------- Setters - Owner Only Accessible -------------------------------- */ function setMaxQuantityPerTxn(uint96 amount) external onlyOwner { maxQuantityPerTxn = amount; } function setMaxQuantityForPresale(uint256 amount) external onlyOwner { maxQuantityForPresale = amount; } function setMaxPresaleAmount(uint256 amount) external onlyOwner { _maxPresaleAmount = amount; } function setAdmin(address _admin) external onlyOwner { admin = _admin; } function setReservedTokensAmount(uint256 amount) external onlyOwner { _reservedTokensAmount = amount; } function setBaseURI(string memory baseURIAddress, bool isRevealed) external onlyOwner { _baseURIAddress = baseURIAddress; _isRevealed = isRevealed; } function setMetadataExtension(string memory metadataExtension) external onlyOwner { _metadataExtension = metadataExtension; } function setContractURI(string calldata _contractURI) external onlyOwner { contractURI = _contractURI; } function setPrice(uint256 amount) external onlyOwner { price = amount; } function setPresaleMerkleRoot(bytes32 merkleRoot) external onlyOwner { _presaleMerkleRoot = merkleRoot; } function setMaxTokens(uint256 amount) external onlyOwner { maxTokens = amount; } function setRoyalty(address _address, uint96 royaltyFee) external onlyOwner { _setDefaultRoyalty(_address, royaltyFee); } function togglePresaleActive() external onlyOwner { _presaleActive = !_presaleActive; } function togglePublicSaleActive() external onlyOwner { _publicSaleActive = !_publicSaleActive; if (_presaleActive) { _presaleActive = false; } } function togglePause() external onlyOwner { if (paused()) { _unpause(); } else { _pause(); } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; import "../token/ERC20/utils/SafeERC20.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. The distribution of shares is set at the * time of contract deployment and can't be updated thereafter. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Getter for the amount of payee's releasable Ether. */ function releasable(address account) public view returns (uint256) { uint256 totalReceived = address(this).balance + totalReleased(); return _pendingPayment(account, totalReceived, released(account)); } /** * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an * IERC20 contract. */ function releasable(IERC20 token, address account) public view returns (uint256) { uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); return _pendingPayment(account, totalReceived, released(token, account)); } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(account); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(token, account); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/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 Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"uint96","name":"royaltyFee","type":"uint96"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","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":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxPerTxn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"getWhitelistApproved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxQuantityForPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxQuantityPerTxn","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintReservedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"releaseFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURIAddress","type":"string"},{"internalType":"bool","name":"isRevealed","type":"bool"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxPresaleAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxQuantityForPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"amount","type":"uint96"}],"name":"setMaxQuantityPerTxn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"metadataExtension","type":"string"}],"name":"setMetadataExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setPresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setReservedTokensAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint96","name":"royaltyFee","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePresaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
601280546001600160601b0319166005908117909155611068601455666a94d74f43000060155560046016556103f2601a5560dc601b5560c0604052608081905264173539b7b760d91b60a09081526200005d91601c919062000609565b503480156200006b57600080fd5b5060405162004247380380620042478339810160408190526200008e9162000859565b604080518082018252600981526842616b65644275647360b81b60208083019182528351808501909452600484526342414b4560e01b90840152815185938593929091620000df9160029162000609565b508051620000f590600390602084019062000609565b505060008055506200010733620002c8565b600a805460ff60a01b191690558051825114620001865760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001d95760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200017d565b60005b82518110156200025d57620002488382815181106200020b57634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200023457634e487b7160e01b600052603260045260246000fd5b60200260200101516200031a60201b60201c565b806200025481620009ed565b915050620001dc565b5050875162000275915060179060208a019062000609565b50601980546001600160a01b0319166001600160a01b0386169081179091556018869055620002a5908462000508565b8551620002ba90601390602089019062000609565b505050505050505062000a37565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003875760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200017d565b60008111620003d95760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200017d565b6001600160a01b0382166000908152600d602052604090205415620004555760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200017d565b600f8054600181019091557f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b0319166001600160a01b0384169081179091556000908152600d60205260409020819055600b54620004bf90829062000995565b600b55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b6127106001600160601b0382161115620005785760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016200017d565b6001600160a01b038216620005d05760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200017d565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b8280546200061790620009b0565b90600052602060002090601f0160209004810192826200063b576000855562000686565b82601f106200065657805160ff191683800117855562000686565b8280016001018555821562000686579182015b828111156200068657825182559160200191906001019062000669565b506200069492915062000698565b5090565b5b8082111562000694576000815560010162000699565b80516001600160a01b0381168114620006c757600080fd5b919050565b600082601f830112620006dd578081fd5b81516020620006f6620006f0836200096f565b6200093c565b80838252828201915082860187848660051b890101111562000716578586fd5b855b858110156200073f576200072c82620006af565b8452928401929084019060010162000718565b5090979650505050505050565b600082601f8301126200075d578081fd5b8151602062000770620006f0836200096f565b80838252828201915082860187848660051b890101111562000790578586fd5b855b858110156200073f5781518452928401929084019060010162000792565b600082601f830112620007c1578081fd5b81516001600160401b03811115620007dd57620007dd62000a21565b6020620007f3601f8301601f191682016200093c565b828152858284870101111562000807578384fd5b835b838110156200082657858101830151828201840152820162000809565b838111156200083757848385840101525b5095945050505050565b80516001600160601b0381168114620006c757600080fd5b600080600080600080600060e0888a03121562000874578283fd5b87516001600160401b03808211156200088b578485fd5b620008998b838c01620007b0565b985060208a0151915080821115620008af578485fd5b620008bd8b838c01620007b0565b975060408a01519650620008d460608b01620006af565b9550620008e460808b0162000841565b945060a08a0151915080821115620008fa578384fd5b620009088b838c01620006cc565b935060c08a01519150808211156200091e578283fd5b506200092d8a828b016200074c565b91505092959891949750929550565b604051601f8201601f191681016001600160401b038111828210171562000967576200096762000a21565b604052919050565b60006001600160401b038211156200098b576200098b62000a21565b5060051b60200190565b60008219821115620009ab57620009ab62000a0b565b500190565b600181811c90821680620009c557607f821691505b60208210811415620009e757634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000a045762000a0462000a0b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6138008062000a476000396000f3fe6080604052600436106103a65760003560e01c80637ef72716116101e7578063b88d4fde1161010d578063d94a599c116100a0578063e8a3d4851161006f578063e8a3d48514610b28578063e985e9c514610b3d578063f2fde38b14610b86578063f851a44014610ba657600080fd5b8063d94a599c14610aca578063e33b7de314610aea578063e3e1e8ef14610aff578063e831574214610b1257600080fd5b8063c4bd0b5e116100dc578063c4bd0b5e14610a06578063c87b56dd14610a3e578063ce7c2ac214610a5e578063d79779b214610a9457600080fd5b8063b88d4fde14610991578063c1f26123146109b1578063c45ac050146109d1578063c4ae3168146109f157600080fd5b806395d89b4111610185578063a22cb46511610154578063a22cb46514610911578063a3f8eace14610931578063b64b21ca14610951578063b6f132151461097157600080fd5b806395d89b41146108905780639852595c146108a55780639f6350e6146108db578063a035b1fe146108fb57600080fd5b80638da5cb5b116101c15780638da5cb5b146108125780638f2fc60b1461083057806391b7f5ed14610850578063938e3d7b1461087057600080fd5b80637ef72716146107c857806389b0649b146107dd5780638b83209b146107f257600080fd5b80633a98ef39116102cc5780635c975abb1161026a578063715018a611610239578063715018a61461075e57806373ea4e8814610773578063769b911d146107935780637c914d8d146107b357600080fd5b80635c975abb146106df5780636352211e146106fe578063704b6c021461071e57806370a082311461073e57600080fd5b806342842e0e116102a657806342842e0e1461066a57806343ac7bb11461068a57806348b75044146106aa57806351187292146106ca57600080fd5b80633a98ef39146105fa5780633eefe2391461060f578063406072a91461062457600080fd5b806318160ddd1161034457806328d7b2761161031357806328d7b276146105725780632a55205a146105925780632db11544146105d157806333fce443146105e457600080fd5b806318160ddd146104f95780631916558714610512578063192e7a7b1461053257806323b872dd1461055257600080fd5b8063095ea7b311610380578063095ea7b3146104835780630c894cfe146104a55780630ca1c5c9146104ba57806311e776fe146104d957600080fd5b806301ffc9a7146103f457806306fdde0314610429578063081812fc1461044b57600080fd5b366103ef577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561040057600080fd5b5061041461040f366004613320565b610bc6565b60405190151581526020015b60405180910390f35b34801561043557600080fd5b5061043e610c27565b6040516104209190613619565b34801561045757600080fd5b5061046b610466366004613308565b610cb9565b6040516001600160a01b039091168152602001610420565b34801561048f57600080fd5b506104a361049e36600461328d565b610d16565b005b3480156104b157600080fd5b506104a3610dcf565b3480156104c657600080fd5b506000545b604051908152602001610420565b3480156104e557600080fd5b506104a36104f4366004613308565b610e0f565b34801561050557600080fd5b50600154600054036104cb565b34801561051e57600080fd5b506104a361052d3660046130fc565b610e1c565b34801561053e57600080fd5b506104a361054d3660046130fc565b610f9a565b34801561055e57600080fd5b506104a361056d366004613150565b610fa6565b34801561057e57600080fd5b506104a361058d366004613308565b610fb1565b34801561059e57600080fd5b506105b26105ad366004613498565b610fbe565b604080516001600160a01b039093168352602083019190915201610420565b6104a36105df366004613308565b61106c565b3480156105f057600080fd5b506104cb60165481565b34801561060657600080fd5b50600b546104cb565b34801561061b57600080fd5b506104a361116f565b34801561063057600080fd5b506104cb61063f366004613358565b6001600160a01b03918216600090815260116020908152604080832093909416825291909152205490565b34801561067657600080fd5b506104a3610685366004613150565b611190565b34801561069657600080fd5b506104a36106a5366004613308565b6111ab565b3480156106b657600080fd5b506104a36106c5366004613358565b6111b8565b3480156106d657600080fd5b506104cb61135b565b3480156106eb57600080fd5b50600a54600160a01b900460ff16610414565b34801561070a57600080fd5b5061046b610719366004613308565b611381565b34801561072a57600080fd5b506104a36107393660046130fc565b611393565b34801561074a57600080fd5b506104cb6107593660046130fc565b6113ca565b34801561076a57600080fd5b506104a3611432565b34801561077f57600080fd5b506104a361078e366004613308565b611444565b34801561079f57600080fd5b506104a36107ae3660046134b9565b611451565b3480156107bf57600080fd5b50610414611480565b3480156107d457600080fd5b5061041461148a565b3480156107e957600080fd5b506104a3611494565b3480156107fe57600080fd5b5061046b61080d366004613308565b6114b0565b34801561081e57600080fd5b50600a546001600160a01b031661046b565b34801561083c57600080fd5b506104a361084b3660046132b8565b6114ee565b34801561085c57600080fd5b506104a361086b366004613308565b611504565b34801561087c57600080fd5b506104a361088b36600461336a565b611511565b34801561089c57600080fd5b5061043e611525565b3480156108b157600080fd5b506104cb6108c03660046130fc565b6001600160a01b03166000908152600e602052604090205490565b3480156108e757600080fd5b506104a36108f63660046133d7565b611534565b34801561090757600080fd5b506104cb60155481565b34801561091d57600080fd5b506104a361092c366004613260565b61154f565b34801561093d57600080fd5b506104cb61094c3660046130fc565b6115fe565b34801561095d57600080fd5b506104a361096c36600461340a565b611646565b34801561097d57600080fd5b506104a361098c366004613308565b61167f565b34801561099d57600080fd5b506104a36109ac366004613190565b61168c565b3480156109bd57600080fd5b506104a36109cc366004613308565b6116d6565b3480156109dd57600080fd5b506104cb6109ec366004613358565b6116f4565b3480156109fd57600080fd5b506104a36117e7565b348015610a1257600080fd5b50601254610a26906001600160601b031681565b6040516001600160601b039091168152602001610420565b348015610a4a57600080fd5b5061043e610a59366004613308565b611811565b348015610a6a57600080fd5b506104cb610a793660046130fc565b6001600160a01b03166000908152600d602052604090205490565b348015610aa057600080fd5b506104cb610aaf3660046130fc565b6001600160a01b031660009081526010602052604090205490565b348015610ad657600080fd5b50610414610ae536600461320d565b611868565b348015610af657600080fd5b50600c546104cb565b6104a3610b0d366004613467565b611875565b348015610b1e57600080fd5b506104cb60145481565b348015610b3457600080fd5b5061043e611a89565b348015610b4957600080fd5b50610414610b58366004613118565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b9257600080fd5b506104a3610ba13660046130fc565b611b17565b348015610bb257600080fd5b5060195461046b906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b1480610bf757506001600160e01b03198216635b5e139f60e01b145b80610c1257506001600160e01b0319821663152a902d60e11b145b80610c215750610c2182611ba4565b92915050565b606060028054610c36906136e5565b80601f0160208091040260200160405190810160405280929190818152602001828054610c62906136e5565b8015610caf5780601f10610c8457610100808354040283529160200191610caf565b820191906000526020600020905b815481529060010190602001808311610c9257829003601f168201915b5050505050905090565b6000610cc482611bc9565b610cfa576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610d2182611381565b9050806001600160a01b0316836001600160a01b03161415610d6f576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614610dbf57610d898133610b58565b610dbf576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dca838383611bf4565b505050565b610dd7611c5d565b601d805460ff6101008083048216150261ff00198316811790935591821691161715610e0857601d805460ff191690555b565b905090565b610e17611c5d565b601455565b6001600160a01b0381166000908152600d6020526040902054610e955760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084015b60405180910390fd5b6000610ea0826115fe565b905080610f035760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610e8c565b6001600160a01b0382166000908152600e602052604081208054839290610f2b90849061362c565b9250508190555080600c6000828254610f44919061362c565b90915550610f5490508282611cb7565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b610fa381610e1c565b50565b610dca838383611dd0565b610fb9611c5d565b601855565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916110335750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611052906001600160601b031687613683565b61105c919061366f565b91519350909150505b9250929050565b61107461200b565b61107c612065565b6110c85760405162461bcd60e51b815260206004820152600f60248201527f53616c65206e6f742061637469766500000000000000000000000000000000006044820152606401610e8c565b6000811161111a5760405162461bcd60e51b8152600401610e8c9060208082526004908201527f5a65726f00000000000000000000000000000000000000000000000000000000604082015260600190565b806015546111289190613683565b34146111665760405162461bcd60e51b815260206004820152600d60248201526c4e6f6e457175616c56616c756560981b6044820152606401610e8c565b610fa3816120ac565b611177611c5d565b601954601b54610e08916001600160a01b0316906121ed565b610dca8383836040518060200160405280600081525061168c565b6111b3611c5d565b601655565b6001600160a01b0381166000908152600d602052604090205461122c5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610e8c565b600061123883836116f4565b90508061129b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610e8c565b6001600160a01b038084166000908152601160209081526040808320938616835292905290812080548392906112d290849061362c565b90915550506001600160a01b038316600090815260106020526040812080548392906112ff90849061362c565b909155506113109050838383612207565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b6000611365612287565b15611371575060165490565b506012546001600160601b031690565b600061138c826122cc565b5192915050565b61139b611c5d565b6019805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60006001600160a01b03821661140c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61143a611c5d565b610e086000612401565b61144c611c5d565b601a55565b611459611c5d565b601280546bffffffffffffffffffffffff19166001600160601b0392909216919091179055565b6000610e0a612287565b6000610e0a612065565b61149c611c5d565b601d805460ff19811660ff90911615179055565b6000600f82815481106114d357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6114f6611c5d565b6115008282612460565b5050565b61150c611c5d565b601555565b611519611c5d565b610dca60138383612efb565b606060038054610c36906136e5565b61153c611c5d565b805161150090601c906020840190612f7f565b6001600160a01b038216331415611592576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008061160a600c5490565b611614904761362c565b905061163f838261163a866001600160a01b03166000908152600e602052604090205490565b612570565b9392505050565b61164e611c5d565b8151611661906017906020850190612f7f565b50601d8054911515620100000262ff00001990921691909117905550565b611687611c5d565b601b55565b611697848484611dd0565b6001600160a01b0383163b156116d0576116b3848484846125ae565b6116d0576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6116de611c5d565b601954610fa3906001600160a01b0316826121ed565b6001600160a01b03821660009081526010602052604081205481906040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038616906370a082319060240160206040518083038186803b15801561176757600080fd5b505afa15801561177b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061179f919061344f565b6117a9919061362c565b6001600160a01b038086166000908152601160209081526040808320938816835292905220549091506117df9084908390612570565b949350505050565b6117ef611c5d565b600a54600160a01b900460ff161561180957610e086126a5565b610e086126fa565b601d5460609062010000900460ff16156118605761182d61273d565b6118368361274c565b601c60405160200161184a9392919061351b565b6040516020818303038152906040529050919050565b610c2161273d565b60006117df84848461289a565b61187d61200b565b611885612287565b6118d15760405162461bcd60e51b815260206004820152600f60248201527f53616c65206e6f742061637469766500000000000000000000000000000000006044820152606401610e8c565b826015546118df9190613683565b341461191d5760405162461bcd60e51b815260206004820152600d60248201526c4e6f6e457175616c56616c756560981b6044820152606401610e8c565b3360009081526005602052604081205468010000000000000000900467ffffffffffffffff1690506016546001611954919061362c565b61195e858361362c565b106119ab5760405162461bcd60e51b815260206004820152601460248201527f4d6178207175616e7469747920726561636865640000000000000000000000006044820152606401610e8c565b601a546119b990600161362c565b846119c360005490565b6119cd919061362c565b10611a295760405162461bcd60e51b815260206004820152602660248201527f4d61782070726573616c65207175616e74697479207065722077616c6c6574206044820152651b5a5b9d195960d21b6064820152608401610e8c565b611a3433848461289a565b611a805760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f6e2077686974656c697374000000000000000000000000000000006044820152606401610e8c565b6116d0846120ac565b60138054611a96906136e5565b80601f0160208091040260200160405190810160405280929190818152602001828054611ac2906136e5565b8015611b0f5780601f10611ae457610100808354040283529160200191611b0f565b820191906000526020600020905b815481529060010190602001808311611af257829003601f168201915b505050505081565b611b1f611c5d565b6001600160a01b038116611b9b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e8c565b610fa381612401565b60006001600160e01b0319821663152a902d60e11b1480610c215750610c2182612920565b6000805482108015610c21575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600a546001600160a01b03163314610e085760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8c565b80471015611d075760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610e8c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611d54576040519150601f19603f3d011682016040523d82523d6000602084013e611d59565b606091505b5050905080610dca5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610e8c565b6000611ddb826122cc565b9050836001600160a01b031681600001516001600160a01b031614611e2c576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480611e4a5750611e4a8533610b58565b80611e65575033611e5a84610cb9565b6001600160a01b0316145b905080611e9e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416611ede576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611eea60008487611bf4565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611fc0576000548214611fc0578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600a54600160a01b900460ff1615610e085760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610e8c565b601d54600090610100900460ff1680156120895750600a54600160a01b900460ff16155b80156120985750601d5460ff16155b8015610e0a57506014546000545b10905090565b3332146120fb5760405162461bcd60e51b815260206004820152601360248201527f4e6f74436f6e74726163744d696e7461626c65000000000000000000000000006044820152606401610e8c565b601254612112906001600160601b03166001613644565b6001600160601b031681106121785760405162461bcd60e51b815260206004820152602660248201527f4d61782070726573616c65207175616e74697479207065722077616c6c6574206044820152651b5a5b9d195960d21b6064820152608401610e8c565b60145461218690600161362c565b8161219060005490565b61219a919061362c565b106121e75760405162461bcd60e51b815260206004820152601160248201527f4d617820746f6b656e73206d696e7465640000000000000000000000000000006044820152606401610e8c565b610fa333825b611500828260405180602001604052806000815250612989565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610dca908490612b90565b601d5460009060ff1680156122a65750600a54600160a01b900460ff16155b80156122ba5750601d54610100900460ff16155b8015610e0a5750601a546000546120a6565b6040805160608101825260008082526020820181905291810191909152816000548110156123cf57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906123cd5780516001600160a01b031615612363579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156123c8579392505050565b612363565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156124e15760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610e8c565b6001600160a01b0382166125375760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610e8c565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b600b546001600160a01b0384166000908152600d60205260408120549091839161259a9086613683565b6125a4919061366f565b6117df91906136a2565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906125e39033908990889088906004016135dd565b602060405180830381600087803b1580156125fd57600080fd5b505af192505050801561262d575060408051601f3d908101601f1916820190925261262a9181019061333c565b60015b612688573d80801561265b576040519150601f19603f3d011682016040523d82523d6000602084013e612660565b606091505b508051612680576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6126ad612c75565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61270261200b565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126dd3390565b606060178054610c36906136e5565b60608161278c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156127b657806127a081613720565b91506127af9050600a8361366f565b9150612790565b60008167ffffffffffffffff8111156127df57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612809576020820181803683370190505b5090505b84156117df5761281e6001836136a2565b915061282b600a8661373b565b61283690603061362c565b60f81b81838151811061285957634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612893600a8661366f565b945061280d565b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050612917848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506018549150849050612cce565b95945050505050565b60006001600160e01b031982166380ac58cd60e01b148061295157506001600160e01b03198216635b5e139f60e01b145b80610c2157507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610c21565b6000546001600160a01b0384166129cc576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82612a03576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612b3b575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612b0460008784806001019550876125ae565b612b21576040516368d2bf6b60e11b815260040160405180910390fd5b808210612ab9578260005414612b3657600080fd5b612b80565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210612b3c575b5060009081556116d09085838684565b6000612be5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612ce49092919063ffffffff16565b805190915015610dca5780806020019051810190612c0391906132ec565b610dca5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610e8c565b600a54600160a01b900460ff16610e085760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610e8c565b600082612cdb8584612cf3565b14949350505050565b60606117df8484600085612d4e565b600081815b8451811015612d4657612d3282868381518110612d2557634e487b7160e01b600052603260045260246000fd5b6020026020010151612e96565b915080612d3e81613720565b915050612cf8565b509392505050565b606082471015612dc65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610e8c565b6001600160a01b0385163b612e1d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610e8c565b600080866001600160a01b03168587604051612e3991906134ff565b60006040518083038185875af1925050503d8060008114612e76576040519150601f19603f3d011682016040523d82523d6000602084013e612e7b565b606091505b5091509150612e8b828286612ec2565b979650505050505050565b6000818310612eb257600082815260208490526040902061163f565b5060009182526020526040902090565b60608315612ed157508161163f565b825115612ee15782518084602001fd5b8160405162461bcd60e51b8152600401610e8c9190613619565b828054612f07906136e5565b90600052602060002090601f016020900481019282612f295760008555612f6f565b82601f10612f425782800160ff19823516178555612f6f565b82800160010185558215612f6f579182015b82811115612f6f578235825591602001919060010190612f54565b50612f7b929150612ff3565b5090565b828054612f8b906136e5565b90600052602060002090601f016020900481019282612fad5760008555612f6f565b82601f10612fc657805160ff1916838001178555612f6f565b82800160010185558215612f6f579182015b82811115612f6f578251825591602001919060010190612fd8565b5b80821115612f7b5760008155600101612ff4565b600067ffffffffffffffff808411156130235761302361377b565b604051601f8501601f19908116603f0116810190828211818310171561304b5761304b61377b565b8160405280935085815286868601111561306457600080fd5b858560208301376000602087830101525050509392505050565b60008083601f84011261308f578182fd5b50813567ffffffffffffffff8111156130a6578182fd5b6020830191508360208260051b850101111561106557600080fd5b600082601f8301126130d1578081fd5b61163f83833560208501613008565b80356001600160601b03811681146130f757600080fd5b919050565b60006020828403121561310d578081fd5b813561163f81613791565b6000806040838503121561312a578081fd5b823561313581613791565b9150602083013561314581613791565b809150509250929050565b600080600060608486031215613164578081fd5b833561316f81613791565b9250602084013561317f81613791565b929592945050506040919091013590565b600080600080608085870312156131a5578081fd5b84356131b081613791565b935060208501356131c081613791565b925060408501359150606085013567ffffffffffffffff8111156131e2578182fd5b8501601f810187136131f2578182fd5b61320187823560208401613008565b91505092959194509250565b600080600060408486031215613221578283fd5b833561322c81613791565b9250602084013567ffffffffffffffff811115613247578283fd5b6132538682870161307e565b9497909650939450505050565b60008060408385031215613272578182fd5b823561327d81613791565b91506020830135613145816137a6565b6000806040838503121561329f578182fd5b82356132aa81613791565b946020939093013593505050565b600080604083850312156132ca578081fd5b82356132d581613791565b91506132e3602084016130e0565b90509250929050565b6000602082840312156132fd578081fd5b815161163f816137a6565b600060208284031215613319578081fd5b5035919050565b600060208284031215613331578081fd5b813561163f816137b4565b60006020828403121561334d578081fd5b815161163f816137b4565b6000806040838503121561312a578182fd5b6000806020838503121561337c578182fd5b823567ffffffffffffffff80821115613393578384fd5b818501915085601f8301126133a6578384fd5b8135818111156133b4578485fd5b8660208285010111156133c5578485fd5b60209290920196919550909350505050565b6000602082840312156133e8578081fd5b813567ffffffffffffffff8111156133fe578182fd5b6117df848285016130c1565b6000806040838503121561341c578182fd5b823567ffffffffffffffff811115613432578283fd5b61343e858286016130c1565b9250506020830135613145816137a6565b600060208284031215613460578081fd5b5051919050565b60008060006040848603121561347b578081fd5b83359250602084013567ffffffffffffffff811115613247578182fd5b600080604083850312156134aa578182fd5b50508035926020909101359150565b6000602082840312156134ca578081fd5b61163f826130e0565b600081518084526134eb8160208601602086016136b9565b601f01601f19169290920160200192915050565b600082516135118184602087016136b9565b9190910192915050565b60008451602061352e8285838a016136b9565b8551918401916135418184848a016136b9565b85549201918390600181811c908083168061355d57607f831692505b85831081141561357b57634e487b7160e01b88526022600452602488fd5b80801561358f57600181146135a0576135cc565b60ff198516885283880195506135cc565b60008b815260209020895b858110156135c45781548a8201529084019088016135ab565b505083880195505b50939b9a5050505050505050505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261360f60808301846134d3565b9695505050505050565b60208152600061163f60208301846134d3565b6000821982111561363f5761363f61374f565b500190565b60006001600160601b038083168185168083038211156136665761366661374f565b01949350505050565b60008261367e5761367e613765565b500490565b600081600019048311821515161561369d5761369d61374f565b500290565b6000828210156136b4576136b461374f565b500390565b60005b838110156136d45781810151838201526020016136bc565b838111156116d05750506000910152565b600181811c908216806136f957607f821691505b6020821081141561371a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156137345761373461374f565b5060010190565b60008261374a5761374a613765565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610fa357600080fd5b8015158114610fa357600080fd5b6001600160e01b031981168114610fa357600080fdfea26469706673582212208ad8844426d0a2a14d443fd1e3737a47c0baeb0b0109dbfd1f95cb3b075a8c7864736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001404cafcd0492ecbd20f8f4650f948cbd016de0b25c2170e1befc46fa82db0c1a27000000000000000000000000cee8e1760aff538bc722dbdeacdb2f07aa0de56600000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d575944536d33333962694b55337637526d6a7641534e5039684164786e3342746f6b6f786274634172396e3900000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d64385244746e615375454b61733248696455384d574876596d4e6d4152554c434a4e446b316334386d50373900000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000cee8e1760aff538bc722dbdeacdb2f07aa0de56600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000002710
Deployed Bytecode
0x6080604052600436106103a65760003560e01c80637ef72716116101e7578063b88d4fde1161010d578063d94a599c116100a0578063e8a3d4851161006f578063e8a3d48514610b28578063e985e9c514610b3d578063f2fde38b14610b86578063f851a44014610ba657600080fd5b8063d94a599c14610aca578063e33b7de314610aea578063e3e1e8ef14610aff578063e831574214610b1257600080fd5b8063c4bd0b5e116100dc578063c4bd0b5e14610a06578063c87b56dd14610a3e578063ce7c2ac214610a5e578063d79779b214610a9457600080fd5b8063b88d4fde14610991578063c1f26123146109b1578063c45ac050146109d1578063c4ae3168146109f157600080fd5b806395d89b4111610185578063a22cb46511610154578063a22cb46514610911578063a3f8eace14610931578063b64b21ca14610951578063b6f132151461097157600080fd5b806395d89b41146108905780639852595c146108a55780639f6350e6146108db578063a035b1fe146108fb57600080fd5b80638da5cb5b116101c15780638da5cb5b146108125780638f2fc60b1461083057806391b7f5ed14610850578063938e3d7b1461087057600080fd5b80637ef72716146107c857806389b0649b146107dd5780638b83209b146107f257600080fd5b80633a98ef39116102cc5780635c975abb1161026a578063715018a611610239578063715018a61461075e57806373ea4e8814610773578063769b911d146107935780637c914d8d146107b357600080fd5b80635c975abb146106df5780636352211e146106fe578063704b6c021461071e57806370a082311461073e57600080fd5b806342842e0e116102a657806342842e0e1461066a57806343ac7bb11461068a57806348b75044146106aa57806351187292146106ca57600080fd5b80633a98ef39146105fa5780633eefe2391461060f578063406072a91461062457600080fd5b806318160ddd1161034457806328d7b2761161031357806328d7b276146105725780632a55205a146105925780632db11544146105d157806333fce443146105e457600080fd5b806318160ddd146104f95780631916558714610512578063192e7a7b1461053257806323b872dd1461055257600080fd5b8063095ea7b311610380578063095ea7b3146104835780630c894cfe146104a55780630ca1c5c9146104ba57806311e776fe146104d957600080fd5b806301ffc9a7146103f457806306fdde0314610429578063081812fc1461044b57600080fd5b366103ef577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561040057600080fd5b5061041461040f366004613320565b610bc6565b60405190151581526020015b60405180910390f35b34801561043557600080fd5b5061043e610c27565b6040516104209190613619565b34801561045757600080fd5b5061046b610466366004613308565b610cb9565b6040516001600160a01b039091168152602001610420565b34801561048f57600080fd5b506104a361049e36600461328d565b610d16565b005b3480156104b157600080fd5b506104a3610dcf565b3480156104c657600080fd5b506000545b604051908152602001610420565b3480156104e557600080fd5b506104a36104f4366004613308565b610e0f565b34801561050557600080fd5b50600154600054036104cb565b34801561051e57600080fd5b506104a361052d3660046130fc565b610e1c565b34801561053e57600080fd5b506104a361054d3660046130fc565b610f9a565b34801561055e57600080fd5b506104a361056d366004613150565b610fa6565b34801561057e57600080fd5b506104a361058d366004613308565b610fb1565b34801561059e57600080fd5b506105b26105ad366004613498565b610fbe565b604080516001600160a01b039093168352602083019190915201610420565b6104a36105df366004613308565b61106c565b3480156105f057600080fd5b506104cb60165481565b34801561060657600080fd5b50600b546104cb565b34801561061b57600080fd5b506104a361116f565b34801561063057600080fd5b506104cb61063f366004613358565b6001600160a01b03918216600090815260116020908152604080832093909416825291909152205490565b34801561067657600080fd5b506104a3610685366004613150565b611190565b34801561069657600080fd5b506104a36106a5366004613308565b6111ab565b3480156106b657600080fd5b506104a36106c5366004613358565b6111b8565b3480156106d657600080fd5b506104cb61135b565b3480156106eb57600080fd5b50600a54600160a01b900460ff16610414565b34801561070a57600080fd5b5061046b610719366004613308565b611381565b34801561072a57600080fd5b506104a36107393660046130fc565b611393565b34801561074a57600080fd5b506104cb6107593660046130fc565b6113ca565b34801561076a57600080fd5b506104a3611432565b34801561077f57600080fd5b506104a361078e366004613308565b611444565b34801561079f57600080fd5b506104a36107ae3660046134b9565b611451565b3480156107bf57600080fd5b50610414611480565b3480156107d457600080fd5b5061041461148a565b3480156107e957600080fd5b506104a3611494565b3480156107fe57600080fd5b5061046b61080d366004613308565b6114b0565b34801561081e57600080fd5b50600a546001600160a01b031661046b565b34801561083c57600080fd5b506104a361084b3660046132b8565b6114ee565b34801561085c57600080fd5b506104a361086b366004613308565b611504565b34801561087c57600080fd5b506104a361088b36600461336a565b611511565b34801561089c57600080fd5b5061043e611525565b3480156108b157600080fd5b506104cb6108c03660046130fc565b6001600160a01b03166000908152600e602052604090205490565b3480156108e757600080fd5b506104a36108f63660046133d7565b611534565b34801561090757600080fd5b506104cb60155481565b34801561091d57600080fd5b506104a361092c366004613260565b61154f565b34801561093d57600080fd5b506104cb61094c3660046130fc565b6115fe565b34801561095d57600080fd5b506104a361096c36600461340a565b611646565b34801561097d57600080fd5b506104a361098c366004613308565b61167f565b34801561099d57600080fd5b506104a36109ac366004613190565b61168c565b3480156109bd57600080fd5b506104a36109cc366004613308565b6116d6565b3480156109dd57600080fd5b506104cb6109ec366004613358565b6116f4565b3480156109fd57600080fd5b506104a36117e7565b348015610a1257600080fd5b50601254610a26906001600160601b031681565b6040516001600160601b039091168152602001610420565b348015610a4a57600080fd5b5061043e610a59366004613308565b611811565b348015610a6a57600080fd5b506104cb610a793660046130fc565b6001600160a01b03166000908152600d602052604090205490565b348015610aa057600080fd5b506104cb610aaf3660046130fc565b6001600160a01b031660009081526010602052604090205490565b348015610ad657600080fd5b50610414610ae536600461320d565b611868565b348015610af657600080fd5b50600c546104cb565b6104a3610b0d366004613467565b611875565b348015610b1e57600080fd5b506104cb60145481565b348015610b3457600080fd5b5061043e611a89565b348015610b4957600080fd5b50610414610b58366004613118565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b9257600080fd5b506104a3610ba13660046130fc565b611b17565b348015610bb257600080fd5b5060195461046b906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b1480610bf757506001600160e01b03198216635b5e139f60e01b145b80610c1257506001600160e01b0319821663152a902d60e11b145b80610c215750610c2182611ba4565b92915050565b606060028054610c36906136e5565b80601f0160208091040260200160405190810160405280929190818152602001828054610c62906136e5565b8015610caf5780601f10610c8457610100808354040283529160200191610caf565b820191906000526020600020905b815481529060010190602001808311610c9257829003601f168201915b5050505050905090565b6000610cc482611bc9565b610cfa576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610d2182611381565b9050806001600160a01b0316836001600160a01b03161415610d6f576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614610dbf57610d898133610b58565b610dbf576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dca838383611bf4565b505050565b610dd7611c5d565b601d805460ff6101008083048216150261ff00198316811790935591821691161715610e0857601d805460ff191690555b565b905090565b610e17611c5d565b601455565b6001600160a01b0381166000908152600d6020526040902054610e955760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084015b60405180910390fd5b6000610ea0826115fe565b905080610f035760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610e8c565b6001600160a01b0382166000908152600e602052604081208054839290610f2b90849061362c565b9250508190555080600c6000828254610f44919061362c565b90915550610f5490508282611cb7565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b610fa381610e1c565b50565b610dca838383611dd0565b610fb9611c5d565b601855565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916110335750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611052906001600160601b031687613683565b61105c919061366f565b91519350909150505b9250929050565b61107461200b565b61107c612065565b6110c85760405162461bcd60e51b815260206004820152600f60248201527f53616c65206e6f742061637469766500000000000000000000000000000000006044820152606401610e8c565b6000811161111a5760405162461bcd60e51b8152600401610e8c9060208082526004908201527f5a65726f00000000000000000000000000000000000000000000000000000000604082015260600190565b806015546111289190613683565b34146111665760405162461bcd60e51b815260206004820152600d60248201526c4e6f6e457175616c56616c756560981b6044820152606401610e8c565b610fa3816120ac565b611177611c5d565b601954601b54610e08916001600160a01b0316906121ed565b610dca8383836040518060200160405280600081525061168c565b6111b3611c5d565b601655565b6001600160a01b0381166000908152600d602052604090205461122c5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610e8c565b600061123883836116f4565b90508061129b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610e8c565b6001600160a01b038084166000908152601160209081526040808320938616835292905290812080548392906112d290849061362c565b90915550506001600160a01b038316600090815260106020526040812080548392906112ff90849061362c565b909155506113109050838383612207565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b6000611365612287565b15611371575060165490565b506012546001600160601b031690565b600061138c826122cc565b5192915050565b61139b611c5d565b6019805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60006001600160a01b03821661140c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61143a611c5d565b610e086000612401565b61144c611c5d565b601a55565b611459611c5d565b601280546bffffffffffffffffffffffff19166001600160601b0392909216919091179055565b6000610e0a612287565b6000610e0a612065565b61149c611c5d565b601d805460ff19811660ff90911615179055565b6000600f82815481106114d357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6114f6611c5d565b6115008282612460565b5050565b61150c611c5d565b601555565b611519611c5d565b610dca60138383612efb565b606060038054610c36906136e5565b61153c611c5d565b805161150090601c906020840190612f7f565b6001600160a01b038216331415611592576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008061160a600c5490565b611614904761362c565b905061163f838261163a866001600160a01b03166000908152600e602052604090205490565b612570565b9392505050565b61164e611c5d565b8151611661906017906020850190612f7f565b50601d8054911515620100000262ff00001990921691909117905550565b611687611c5d565b601b55565b611697848484611dd0565b6001600160a01b0383163b156116d0576116b3848484846125ae565b6116d0576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6116de611c5d565b601954610fa3906001600160a01b0316826121ed565b6001600160a01b03821660009081526010602052604081205481906040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038616906370a082319060240160206040518083038186803b15801561176757600080fd5b505afa15801561177b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061179f919061344f565b6117a9919061362c565b6001600160a01b038086166000908152601160209081526040808320938816835292905220549091506117df9084908390612570565b949350505050565b6117ef611c5d565b600a54600160a01b900460ff161561180957610e086126a5565b610e086126fa565b601d5460609062010000900460ff16156118605761182d61273d565b6118368361274c565b601c60405160200161184a9392919061351b565b6040516020818303038152906040529050919050565b610c2161273d565b60006117df84848461289a565b61187d61200b565b611885612287565b6118d15760405162461bcd60e51b815260206004820152600f60248201527f53616c65206e6f742061637469766500000000000000000000000000000000006044820152606401610e8c565b826015546118df9190613683565b341461191d5760405162461bcd60e51b815260206004820152600d60248201526c4e6f6e457175616c56616c756560981b6044820152606401610e8c565b3360009081526005602052604081205468010000000000000000900467ffffffffffffffff1690506016546001611954919061362c565b61195e858361362c565b106119ab5760405162461bcd60e51b815260206004820152601460248201527f4d6178207175616e7469747920726561636865640000000000000000000000006044820152606401610e8c565b601a546119b990600161362c565b846119c360005490565b6119cd919061362c565b10611a295760405162461bcd60e51b815260206004820152602660248201527f4d61782070726573616c65207175616e74697479207065722077616c6c6574206044820152651b5a5b9d195960d21b6064820152608401610e8c565b611a3433848461289a565b611a805760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f6e2077686974656c697374000000000000000000000000000000006044820152606401610e8c565b6116d0846120ac565b60138054611a96906136e5565b80601f0160208091040260200160405190810160405280929190818152602001828054611ac2906136e5565b8015611b0f5780601f10611ae457610100808354040283529160200191611b0f565b820191906000526020600020905b815481529060010190602001808311611af257829003601f168201915b505050505081565b611b1f611c5d565b6001600160a01b038116611b9b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e8c565b610fa381612401565b60006001600160e01b0319821663152a902d60e11b1480610c215750610c2182612920565b6000805482108015610c21575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600a546001600160a01b03163314610e085760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8c565b80471015611d075760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610e8c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611d54576040519150601f19603f3d011682016040523d82523d6000602084013e611d59565b606091505b5050905080610dca5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610e8c565b6000611ddb826122cc565b9050836001600160a01b031681600001516001600160a01b031614611e2c576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480611e4a5750611e4a8533610b58565b80611e65575033611e5a84610cb9565b6001600160a01b0316145b905080611e9e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416611ede576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611eea60008487611bf4565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611fc0576000548214611fc0578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600a54600160a01b900460ff1615610e085760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610e8c565b601d54600090610100900460ff1680156120895750600a54600160a01b900460ff16155b80156120985750601d5460ff16155b8015610e0a57506014546000545b10905090565b3332146120fb5760405162461bcd60e51b815260206004820152601360248201527f4e6f74436f6e74726163744d696e7461626c65000000000000000000000000006044820152606401610e8c565b601254612112906001600160601b03166001613644565b6001600160601b031681106121785760405162461bcd60e51b815260206004820152602660248201527f4d61782070726573616c65207175616e74697479207065722077616c6c6574206044820152651b5a5b9d195960d21b6064820152608401610e8c565b60145461218690600161362c565b8161219060005490565b61219a919061362c565b106121e75760405162461bcd60e51b815260206004820152601160248201527f4d617820746f6b656e73206d696e7465640000000000000000000000000000006044820152606401610e8c565b610fa333825b611500828260405180602001604052806000815250612989565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610dca908490612b90565b601d5460009060ff1680156122a65750600a54600160a01b900460ff16155b80156122ba5750601d54610100900460ff16155b8015610e0a5750601a546000546120a6565b6040805160608101825260008082526020820181905291810191909152816000548110156123cf57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906123cd5780516001600160a01b031615612363579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156123c8579392505050565b612363565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156124e15760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610e8c565b6001600160a01b0382166125375760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610e8c565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b600b546001600160a01b0384166000908152600d60205260408120549091839161259a9086613683565b6125a4919061366f565b6117df91906136a2565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906125e39033908990889088906004016135dd565b602060405180830381600087803b1580156125fd57600080fd5b505af192505050801561262d575060408051601f3d908101601f1916820190925261262a9181019061333c565b60015b612688573d80801561265b576040519150601f19603f3d011682016040523d82523d6000602084013e612660565b606091505b508051612680576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6126ad612c75565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61270261200b565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126dd3390565b606060178054610c36906136e5565b60608161278c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156127b657806127a081613720565b91506127af9050600a8361366f565b9150612790565b60008167ffffffffffffffff8111156127df57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612809576020820181803683370190505b5090505b84156117df5761281e6001836136a2565b915061282b600a8661373b565b61283690603061362c565b60f81b81838151811061285957634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612893600a8661366f565b945061280d565b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050612917848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506018549150849050612cce565b95945050505050565b60006001600160e01b031982166380ac58cd60e01b148061295157506001600160e01b03198216635b5e139f60e01b145b80610c2157507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610c21565b6000546001600160a01b0384166129cc576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82612a03576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612b3b575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612b0460008784806001019550876125ae565b612b21576040516368d2bf6b60e11b815260040160405180910390fd5b808210612ab9578260005414612b3657600080fd5b612b80565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210612b3c575b5060009081556116d09085838684565b6000612be5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612ce49092919063ffffffff16565b805190915015610dca5780806020019051810190612c0391906132ec565b610dca5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610e8c565b600a54600160a01b900460ff16610e085760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610e8c565b600082612cdb8584612cf3565b14949350505050565b60606117df8484600085612d4e565b600081815b8451811015612d4657612d3282868381518110612d2557634e487b7160e01b600052603260045260246000fd5b6020026020010151612e96565b915080612d3e81613720565b915050612cf8565b509392505050565b606082471015612dc65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610e8c565b6001600160a01b0385163b612e1d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610e8c565b600080866001600160a01b03168587604051612e3991906134ff565b60006040518083038185875af1925050503d8060008114612e76576040519150601f19603f3d011682016040523d82523d6000602084013e612e7b565b606091505b5091509150612e8b828286612ec2565b979650505050505050565b6000818310612eb257600082815260208490526040902061163f565b5060009182526020526040902090565b60608315612ed157508161163f565b825115612ee15782518084602001fd5b8160405162461bcd60e51b8152600401610e8c9190613619565b828054612f07906136e5565b90600052602060002090601f016020900481019282612f295760008555612f6f565b82601f10612f425782800160ff19823516178555612f6f565b82800160010185558215612f6f579182015b82811115612f6f578235825591602001919060010190612f54565b50612f7b929150612ff3565b5090565b828054612f8b906136e5565b90600052602060002090601f016020900481019282612fad5760008555612f6f565b82601f10612fc657805160ff1916838001178555612f6f565b82800160010185558215612f6f579182015b82811115612f6f578251825591602001919060010190612fd8565b5b80821115612f7b5760008155600101612ff4565b600067ffffffffffffffff808411156130235761302361377b565b604051601f8501601f19908116603f0116810190828211818310171561304b5761304b61377b565b8160405280935085815286868601111561306457600080fd5b858560208301376000602087830101525050509392505050565b60008083601f84011261308f578182fd5b50813567ffffffffffffffff8111156130a6578182fd5b6020830191508360208260051b850101111561106557600080fd5b600082601f8301126130d1578081fd5b61163f83833560208501613008565b80356001600160601b03811681146130f757600080fd5b919050565b60006020828403121561310d578081fd5b813561163f81613791565b6000806040838503121561312a578081fd5b823561313581613791565b9150602083013561314581613791565b809150509250929050565b600080600060608486031215613164578081fd5b833561316f81613791565b9250602084013561317f81613791565b929592945050506040919091013590565b600080600080608085870312156131a5578081fd5b84356131b081613791565b935060208501356131c081613791565b925060408501359150606085013567ffffffffffffffff8111156131e2578182fd5b8501601f810187136131f2578182fd5b61320187823560208401613008565b91505092959194509250565b600080600060408486031215613221578283fd5b833561322c81613791565b9250602084013567ffffffffffffffff811115613247578283fd5b6132538682870161307e565b9497909650939450505050565b60008060408385031215613272578182fd5b823561327d81613791565b91506020830135613145816137a6565b6000806040838503121561329f578182fd5b82356132aa81613791565b946020939093013593505050565b600080604083850312156132ca578081fd5b82356132d581613791565b91506132e3602084016130e0565b90509250929050565b6000602082840312156132fd578081fd5b815161163f816137a6565b600060208284031215613319578081fd5b5035919050565b600060208284031215613331578081fd5b813561163f816137b4565b60006020828403121561334d578081fd5b815161163f816137b4565b6000806040838503121561312a578182fd5b6000806020838503121561337c578182fd5b823567ffffffffffffffff80821115613393578384fd5b818501915085601f8301126133a6578384fd5b8135818111156133b4578485fd5b8660208285010111156133c5578485fd5b60209290920196919550909350505050565b6000602082840312156133e8578081fd5b813567ffffffffffffffff8111156133fe578182fd5b6117df848285016130c1565b6000806040838503121561341c578182fd5b823567ffffffffffffffff811115613432578283fd5b61343e858286016130c1565b9250506020830135613145816137a6565b600060208284031215613460578081fd5b5051919050565b60008060006040848603121561347b578081fd5b83359250602084013567ffffffffffffffff811115613247578182fd5b600080604083850312156134aa578182fd5b50508035926020909101359150565b6000602082840312156134ca578081fd5b61163f826130e0565b600081518084526134eb8160208601602086016136b9565b601f01601f19169290920160200192915050565b600082516135118184602087016136b9565b9190910192915050565b60008451602061352e8285838a016136b9565b8551918401916135418184848a016136b9565b85549201918390600181811c908083168061355d57607f831692505b85831081141561357b57634e487b7160e01b88526022600452602488fd5b80801561358f57600181146135a0576135cc565b60ff198516885283880195506135cc565b60008b815260209020895b858110156135c45781548a8201529084019088016135ab565b505083880195505b50939b9a5050505050505050505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261360f60808301846134d3565b9695505050505050565b60208152600061163f60208301846134d3565b6000821982111561363f5761363f61374f565b500190565b60006001600160601b038083168185168083038211156136665761366661374f565b01949350505050565b60008261367e5761367e613765565b500490565b600081600019048311821515161561369d5761369d61374f565b500290565b6000828210156136b4576136b461374f565b500390565b60005b838110156136d45781810151838201526020016136bc565b838111156116d05750506000910152565b600181811c908216806136f957607f821691505b6020821081141561371a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156137345761373461374f565b5060010190565b60008261374a5761374a613765565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610fa357600080fd5b8015158114610fa357600080fd5b6001600160e01b031981168114610fa357600080fdfea26469706673582212208ad8844426d0a2a14d443fd1e3737a47c0baeb0b0109dbfd1f95cb3b075a8c7864736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001404cafcd0492ecbd20f8f4650f948cbd016de0b25c2170e1befc46fa82db0c1a27000000000000000000000000cee8e1760aff538bc722dbdeacdb2f07aa0de56600000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d575944536d33333962694b55337637526d6a7641534e5039684164786e3342746f6b6f786274634172396e3900000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d64385244746e615375454b61733248696455384d574876596d4e6d4152554c434a4e446b316334386d50373900000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000cee8e1760aff538bc722dbdeacdb2f07aa0de56600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000002710
-----Decoded View---------------
Arg [0] : baseURI (string): ipfs://QmWYDSm339biKU3v7RmjvASNP9hAdxn3BtokoxbtcAr9n9
Arg [1] : _contractURI (string): ipfs://Qmd8RDtnaSuEKas2HidU8MWHvYmNmARULCJNDk1c48mP79
Arg [2] : merkleRoot (bytes32): 0x4cafcd0492ecbd20f8f4650f948cbd016de0b25c2170e1befc46fa82db0c1a27
Arg [3] : _admin (address): 0xcEe8e1760aFF538Bc722DbdeaCdB2f07aA0de566
Arg [4] : royaltyFee (uint96): 500
Arg [5] : payees (address[]): 0xcEe8e1760aFF538Bc722DbdeaCdB2f07aA0de566
Arg [6] : shares (uint256[]): 10000
-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 4cafcd0492ecbd20f8f4650f948cbd016de0b25c2170e1befc46fa82db0c1a27
Arg [3] : 000000000000000000000000cee8e1760aff538bc722dbdeacdb2f07aa0de566
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [6] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [8] : 697066733a2f2f516d575944536d33333962694b55337637526d6a7641534e50
Arg [9] : 39684164786e3342746f6b6f786274634172396e390000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [11] : 697066733a2f2f516d64385244746e615375454b61733248696455384d574876
Arg [12] : 596d4e6d4152554c434a4e446b316334386d5037390000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [14] : 000000000000000000000000cee8e1760aff538bc722dbdeacdb2f07aa0de566
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [16] : 0000000000000000000000000000000000000000000000000000000000002710
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.