ERC-721
Overview
Max Total Supply
892 MXTTER
Holders
427
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MXTTERLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MxtterTartarusToken
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; /** * __ __ __ __ ______ ______ ______ ______ * /\ "-./ \ /\_\_\_\ /\__ _\ /\__ _\ /\ ___\ /\ == \ * \ \ \-./\ \ \/_/\_\/_ \/_/\ \/ \/_/\ \/ \ \ __\ \ \ __< * \ \_\ \ \_\ /\_\/\_\ \ \_\ \ \_\ \ \_____\ \ \_\ \_\ * \/_/ \/_/ \/_/\/_/ \/_/ \/_/ \/_____/ \/_/ /_/ * * @title Token contract for Mxtter Tartarus public sale pieces * @dev This contract allows the distribution of Mxtter Tartarus public sale tokens * * * MXTTER X BLOCK::BLOCK */ contract MxtterTartarusToken is ERC721A, PaymentSplitter, Ownable { // Merkle Root for Presale bytes32 public presaleRoot; // Presale Active bool public isPresaleActive; // Sale Active bool public isSaleActive; // Price uint256 public immutable price; // Base URI string private baseURI; // Tracks hash for each token mapping(uint256 => bytes32) private hashForToken; // Tracks redeem for presale mapping(address => bool) private presaleRedeemed; // Max per wallet for presale uint256 private presaleMaxPerWallet; // Tracks redeem for sale mapping(address => uint256) private saleRedeemedCount; // Max per wallet for sale uint256 private immutable saleMaxPerWallet; // Max batch size for minting uint256 private immutable maxBatchSize; constructor( uint256 price_, uint256 maxBatchSize_, string memory baseURI_, address[] memory payees_, uint256[] memory shares_ ) ERC721A("MxtterTartarusToken", "MXTTER") PaymentSplitter(payees_, shares_) { price = price_; presaleMaxPerWallet = 5; saleMaxPerWallet = 20; maxBatchSize = maxBatchSize_; baseURI = baseURI_; isPresaleActive = false; isSaleActive = false; } function mint(uint256 quantity, bytes32[] calldata proof) external payable { require(isPresaleActive, "Presale Not Active"); require(msg.value == price * quantity, "Incorrect Value"); require( MerkleProof.verify( proof, presaleRoot, keccak256(abi.encodePacked(_msgSender())) ), "Not Eligible" ); require(!presaleRedeemed[_msgSender()], "Already Minted"); require(quantity <= presaleMaxPerWallet, "Exceeded Max Quantity"); presaleRedeemed[_msgSender()] = true; _mintToken(_msgSender(), quantity); } function mint(uint256 quantity) external payable { require(isSaleActive, "Sale Not Active"); require(msg.value == price * quantity, "Incorrect Value"); require( saleMaxPerWallet >= saleRedeemedCount[_msgSender()] + quantity, "Max Minted" ); saleRedeemedCount[_msgSender()] = saleRedeemedCount[_msgSender()] + quantity; _mintToken(_msgSender(), quantity); } function isEligiblePresale(bytes32[] calldata proof, address address_) external view returns (bool) { return MerkleProof.verify( proof, presaleRoot, keccak256(abi.encodePacked(address_)) ); } function getTokenHash(uint256 tokenId) external view returns (bytes32) { return hashForToken[tokenId]; } function setBaseURI(string memory baseURI_) external onlyOwner { baseURI = baseURI_; } function setPresaleRoot(bytes32 root) external onlyOwner { presaleRoot = root; } function setPresaleMaxPerWallet(uint256 maxPerWallet) external onlyOwner { presaleMaxPerWallet = maxPerWallet; } function togglePresaleActive() external onlyOwner { isPresaleActive = !isPresaleActive; } function toggleSaleActive() external onlyOwner { isSaleActive = !isSaleActive; } function mintTokens(address to, uint256 quantity) external onlyOwner { _mintToken(to, quantity); } function _mintToken(address to, uint256 quantity) internal { require(quantity <= maxBatchSize, "Exceeded Max Batch Size"); uint256 startTokenId = totalSupply(); uint256 endTokenId = startTokenId + quantity; for (uint256 i = startTokenId; i < endTokenId; i++) { bytes32 tokenHash = _getHash(i); hashForToken[i] = tokenHash; } _safeMint(to, quantity); } function _baseURI() internal view override returns (string memory) { return baseURI; } function _getHash(uint256 tokenId) private view returns (bytes32) { return keccak256(abi.encodePacked(tokenId, blockhash(block.number - 1))); } function _startTokenId() internal view override virtual returns (uint256) { return 19; } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.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'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error AuxQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @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, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // 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; } // 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 See {IERC721Enumerable-totalSupply}. * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view 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) { if (owner == address(0)) revert MintedQueryForZeroAddress(); 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) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); 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) { if (owner == address(0)) revert AuxQueryForZeroAddress(); 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 { if (owner == address(0)) revert AuxQueryForZeroAddress(); _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 && 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 && !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 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() && !_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; } 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 { _mint(to, quantity, _data, true); } /** * @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, bytes memory _data, bool safe ) 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 (safe && 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 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); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // 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; _ownerships[tokenId].addr = to; _ownerships[tokenId].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; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // 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[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].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; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, 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 v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ 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 Returns the rebuilt hash obtained by traversing a Merklee 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++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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. * * `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 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 totalReceived = address(this).balance + totalReleased(); uint256 payment = _pendingPayment(account, totalReceived, released(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 totalReceived = token.balanceOf(address(this)) + totalReleased(token); uint256 payment = _pendingPayment(account, totalReceived, released(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 v4.4.1 (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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../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 (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // 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 v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.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)); } } /** * @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.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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); /** * @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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"price_","type":"uint256"},{"internalType":"uint256","name":"maxBatchSize_","type":"uint256"},{"internalType":"string","name":"baseURI_","type":"string"},{"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"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"address","name":"address_","type":"address"}],"name":"isEligiblePresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintTokens","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","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":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPerWallet","type":"uint256"}],"name":"setPresaleMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setPresaleRoot","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":"togglePresaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSaleActive","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
60e06040523480156200001157600080fd5b506040516200625438038062006254833981810160405281019062000037919062000877565b81816040518060400160405280601381526020017f4d78747465725461727461727573546f6b656e000000000000000000000000008152506040518060400160405280600681526020017f4d585454455200000000000000000000000000000000000000000000000000008152508160029080519060200190620000bd929190620005e3565b508060039080519060200190620000d6929190620005e3565b50620000e7620002d260201b60201c565b6000819055505050805182511462000136576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200012d9062000a78565b60405180910390fd5b60008251116200017d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001749062000abc565b60405180910390fd5b60005b825181101562000234576200021e838281518110620001c8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101518383815181106200020a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151620002db60201b60201c565b80806200022b9062000d0b565b91505062000180565b505050620002576200024b6200051560201b60201c565b6200051d60201b60201c565b84608081815250506005601581905550601460a081815250508360c08181525050826012908051906020019062000290929190620005e3565b506000601160006101000a81548160ff0219169083151502179055506000601160016101000a81548160ff021916908315150217905550505050505062000f6a565b60006013905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200034e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003459062000a56565b60405180910390fd5b6000811162000394576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200038b9062000ade565b60405180910390fd5b6000600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541462000419576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004109062000a9a565b60405180910390fd5b600c829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600854620004d0919062000bce565b6008819055507f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac82826040516200050992919062000a29565b60405180910390a15050565b600033905090565b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620005f19062000c9f565b90600052602060002090601f01602090048101928262000615576000855562000661565b82601f106200063057805160ff191683800117855562000661565b8280016001018555821562000661579182015b828111156200066057825182559160200191906001019062000643565b5b50905062000670919062000674565b5090565b5b808211156200068f57600081600090555060010162000675565b5090565b6000620006aa620006a48462000b29565b62000b00565b90508083825260208201905082856020860282011115620006ca57600080fd5b60005b85811015620006fe5781620006e38882620007c2565b845260208401935060208301925050600181019050620006cd565b5050509392505050565b60006200071f620007198462000b58565b62000b00565b905080838252602082019050828560208602820111156200073f57600080fd5b60005b8581101562000773578162000758888262000860565b84526020840193506020830192505060018101905062000742565b5050509392505050565b6000620007946200078e8462000b87565b62000b00565b905082815260208101848484011115620007ad57600080fd5b620007ba84828562000c69565b509392505050565b600081519050620007d38162000f36565b92915050565b600082601f830112620007eb57600080fd5b8151620007fd84826020860162000693565b91505092915050565b600082601f8301126200081857600080fd5b81516200082a84826020860162000708565b91505092915050565b600082601f8301126200084557600080fd5b8151620008578482602086016200077d565b91505092915050565b600081519050620008718162000f50565b92915050565b600080600080600060a086880312156200089057600080fd5b6000620008a08882890162000860565b9550506020620008b38882890162000860565b945050604086015167ffffffffffffffff811115620008d157600080fd5b620008df8882890162000833565b935050606086015167ffffffffffffffff811115620008fd57600080fd5b6200090b88828901620007d9565b925050608086015167ffffffffffffffff8111156200092957600080fd5b620009378882890162000806565b9150509295509295909350565b6200094f8162000c2b565b82525050565b600062000964602c8362000bbd565b9150620009718262000df7565b604082019050919050565b60006200098b60328362000bbd565b9150620009988262000e46565b604082019050919050565b6000620009b2602b8362000bbd565b9150620009bf8262000e95565b604082019050919050565b6000620009d9601a8362000bbd565b9150620009e68262000ee4565b602082019050919050565b600062000a00601d8362000bbd565b915062000a0d8262000f0d565b602082019050919050565b62000a238162000c5f565b82525050565b600060408201905062000a40600083018562000944565b62000a4f602083018462000a18565b9392505050565b6000602082019050818103600083015262000a718162000955565b9050919050565b6000602082019050818103600083015262000a93816200097c565b9050919050565b6000602082019050818103600083015262000ab581620009a3565b9050919050565b6000602082019050818103600083015262000ad781620009ca565b9050919050565b6000602082019050818103600083015262000af981620009f1565b9050919050565b600062000b0c62000b1f565b905062000b1a828262000cd5565b919050565b6000604051905090565b600067ffffffffffffffff82111562000b475762000b4662000db7565b5b602082029050602081019050919050565b600067ffffffffffffffff82111562000b765762000b7562000db7565b5b602082029050602081019050919050565b600067ffffffffffffffff82111562000ba55762000ba462000db7565b5b62000bb08262000de6565b9050602081019050919050565b600082825260208201905092915050565b600062000bdb8262000c5f565b915062000be88362000c5f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000c205762000c1f62000d59565b5b828201905092915050565b600062000c388262000c3f565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000c8957808201518184015260208101905062000c6c565b8381111562000c99576000848401525b50505050565b6000600282049050600182168062000cb857607f821691505b6020821081141562000ccf5762000cce62000d88565b5b50919050565b62000ce08262000de6565b810181811067ffffffffffffffff8211171562000d025762000d0162000db7565b5b80604052505050565b600062000d188262000c5f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141562000d4e5762000d4d62000d59565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973207468652060008201527f7a65726f20616464726573730000000000000000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a2070617965657320616e64207368617260008201527f6573206c656e677468206d69736d617463680000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960008201527f2068617320736861726573000000000000000000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a206e6f20706179656573000000000000600082015250565b7f5061796d656e7453706c69747465723a20736861726573206172652030000000600082015250565b62000f418162000c2b565b811462000f4d57600080fd5b50565b62000f5b8162000c5f565b811462000f6757600080fd5b50565b60805160a05160c0516152ac62000fa86000396000612e94015260006118b6015260008181611784015281816117f80152611caf01526152ac6000f3fe60806040526004361061023f5760003560e01c806389b0649b1161012e578063b88d4fde116100ab578063d79779b21161006f578063d79779b2146108c4578063e33b7de314610901578063e985e9c51461092c578063f0dda65c14610969578063f2fde38b1461099257610286565b8063b88d4fde146107c8578063ba41b0c6146107f1578063c87b56dd1461080d578063c944ec841461084a578063ce7c2ac21461088757610286565b8063a035b1fe116100f2578063a035b1fe146106f2578063a0712d681461071d578063a0cc0dc514610739578063a22cb46514610776578063b658b60f1461079f57610286565b806389b0649b1461060b5780638b83209b146106225780638da5cb5b1461065f57806395d89b411461068a5780639852595c146106b557610286565b806342842e0e116101bc57806360d938dc1161018057806360d938dc146105245780636352211e1461054f57806370a082311461058c578063715018a6146105c957806385449697146105e057610286565b806342842e0e1461045557806348b750441461047e5780634c0770f0146104a757806355f804b3146104d0578063564566a8146104f957610286565b80631916558711610203578063191655871461038457806323b872dd146103ad5780633100a535146103d65780633a98ef39146103ed578063406072a91461041857610286565b806301ffc9a71461028b57806306fdde03146102c8578063081812fc146102f3578063095ea7b31461033057806318160ddd1461035957610286565b36610286577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77061026d6109bb565b3460405161027c929190614686565b60405180910390a1005b600080fd5b34801561029757600080fd5b506102b260048036038101906102ad9190613fe3565b6109c3565b6040516102bf91906146af565b60405180910390f35b3480156102d457600080fd5b506102dd610aa5565b6040516102ea91906146e5565b60405180910390f35b3480156102ff57600080fd5b5061031a600480360381019061031591906140db565b610b37565b60405161032791906145f6565b60405180910390f35b34801561033c57600080fd5b5061035760048036038101906103529190613efd565b610bb3565b005b34801561036557600080fd5b5061036e610cbe565b60405161037b9190614927565b60405180910390f35b34801561039057600080fd5b506103ab60048036038101906103a69190613d92565b610cd5565b005b3480156103b957600080fd5b506103d460048036038101906103cf9190613df7565b610e80565b005b3480156103e257600080fd5b506103eb610e90565b005b3480156103f957600080fd5b50610402610f38565b60405161040f9190614927565b60405180910390f35b34801561042457600080fd5b5061043f600480360381019061043a919061405e565b610f42565b60405161044c9190614927565b60405180910390f35b34801561046157600080fd5b5061047c60048036038101906104779190613df7565b610fc9565b005b34801561048a57600080fd5b506104a560048036038101906104a0919061405e565b610fe9565b005b3480156104b357600080fd5b506104ce60048036038101906104c991906140db565b6112b1565b005b3480156104dc57600080fd5b506104f760048036038101906104f2919061409a565b611337565b005b34801561050557600080fd5b5061050e6113cd565b60405161051b91906146af565b60405180910390f35b34801561053057600080fd5b506105396113e0565b60405161054691906146af565b60405180910390f35b34801561055b57600080fd5b50610576600480360381019061057191906140db565b6113f3565b60405161058391906145f6565b60405180910390f35b34801561059857600080fd5b506105b360048036038101906105ae9190613d69565b611409565b6040516105c09190614927565b60405180910390f35b3480156105d557600080fd5b506105de6114d9565b005b3480156105ec57600080fd5b506105f5611561565b60405161060291906146ca565b60405180910390f35b34801561061757600080fd5b50610620611567565b005b34801561062e57600080fd5b50610649600480360381019061064491906140db565b61160f565b60405161065691906145f6565b60405180910390f35b34801561066b57600080fd5b5061067461167d565b60405161068191906145f6565b60405180910390f35b34801561069657600080fd5b5061069f6116a7565b6040516106ac91906146e5565b60405180910390f35b3480156106c157600080fd5b506106dc60048036038101906106d79190613d69565b611739565b6040516106e99190614927565b60405180910390f35b3480156106fe57600080fd5b50610707611782565b6040516107149190614927565b60405180910390f35b610737600480360381019061073291906140db565b6117a6565b005b34801561074557600080fd5b50610760600480360381019061075b91906140db565b6119c6565b60405161076d91906146ca565b60405180910390f35b34801561078257600080fd5b5061079d60048036038101906107989190613ec1565b6119e3565b005b3480156107ab57600080fd5b506107c660048036038101906107c19190613fba565b611b5b565b005b3480156107d457600080fd5b506107ef60048036038101906107ea9190613e46565b611be1565b005b61080b6004803603810190610806919061412d565b611c5d565b005b34801561081957600080fd5b50610834600480360381019061082f91906140db565b611f21565b60405161084191906146e5565b60405180910390f35b34801561085657600080fd5b50610871600480360381019061086c9190613f39565b611fc0565b60405161087e91906146af565b60405180910390f35b34801561089357600080fd5b506108ae60048036038101906108a99190613d69565b61203f565b6040516108bb9190614927565b60405180910390f35b3480156108d057600080fd5b506108eb60048036038101906108e69190614035565b612088565b6040516108f89190614927565b60405180910390f35b34801561090d57600080fd5b506109166120d1565b6040516109239190614927565b60405180910390f35b34801561093857600080fd5b50610953600480360381019061094e9190613dbb565b6120db565b60405161096091906146af565b60405180910390f35b34801561097557600080fd5b50610990600480360381019061098b9190613efd565b61216f565b005b34801561099e57600080fd5b506109b960048036038101906109b49190613d69565b6121f9565b005b600033905090565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a8e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a9e5750610a9d826122f1565b5b9050919050565b606060028054610ab490614c46565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae090614c46565b8015610b2d5780601f10610b0257610100808354040283529160200191610b2d565b820191906000526020600020905b815481529060010190602001808311610b1057829003601f168201915b5050505050905090565b6000610b428261235b565b610b78576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610bbe826113f3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c26576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c456109bb565b73ffffffffffffffffffffffffffffffffffffffff1614158015610c775750610c7581610c706109bb565b6120db565b155b15610cae576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cb98383836123a9565b505050565b6000610cc861245b565b6001546000540303905090565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4e90614787565b60405180910390fd5b6000610d616120d1565b47610d6c9190614a17565b90506000610d838383610d7e86611739565b612464565b90506000811415610dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc090614807565b60405180910390fd5b80600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e189190614a17565b925050819055508060096000828254610e319190614a17565b92505081905550610e4283826124d2565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568382604051610e73929190614611565b60405180910390a1505050565b610e8b8383836125c6565b505050565b610e986109bb565b73ffffffffffffffffffffffffffffffffffffffff16610eb661167d565b73ffffffffffffffffffffffffffffffffffffffff1614610f0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f03906148c7565b60405180910390fd5b601160019054906101000a900460ff1615601160016101000a81548160ff021916908315150217905550565b6000600854905090565b6000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610fe483838360405180602001604052806000815250611be1565b505050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541161106b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106290614787565b60405180910390fd5b600061107683612088565b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016110af91906145f6565b60206040518083038186803b1580156110c757600080fd5b505afa1580156110db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ff9190614104565b6111099190614a17565b90506000611121838361111c8787610f42565b612464565b90506000811415611167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115e90614807565b60405180910390fd5b80600e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546111f39190614a17565b9250508190555080600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546112499190614a17565b9250508190555061125b848483612ab7565b8373ffffffffffffffffffffffffffffffffffffffff167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a84836040516112a3929190614686565b60405180910390a250505050565b6112b96109bb565b73ffffffffffffffffffffffffffffffffffffffff166112d761167d565b73ffffffffffffffffffffffffffffffffffffffff161461132d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611324906148c7565b60405180910390fd5b8060158190555050565b61133f6109bb565b73ffffffffffffffffffffffffffffffffffffffff1661135d61167d565b73ffffffffffffffffffffffffffffffffffffffff16146113b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113aa906148c7565b60405180910390fd5b80601290805190602001906113c9929190613a97565b5050565b601160019054906101000a900460ff1681565b601160009054906101000a900460ff1681565b60006113fe82612b3d565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611471576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6114e16109bb565b73ffffffffffffffffffffffffffffffffffffffff166114ff61167d565b73ffffffffffffffffffffffffffffffffffffffff1614611555576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154c906148c7565b60405180910390fd5b61155f6000612dcc565b565b60105481565b61156f6109bb565b73ffffffffffffffffffffffffffffffffffffffff1661158d61167d565b73ffffffffffffffffffffffffffffffffffffffff16146115e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115da906148c7565b60405180910390fd5b601160009054906101000a900460ff1615601160006101000a81548160ff021916908315150217905550565b6000600c828154811061164b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546116b690614c46565b80601f01602080910402602001604051908101604052809291908181526020018280546116e290614c46565b801561172f5780601f106117045761010080835404028352916020019161172f565b820191906000526020600020905b81548152906001019060200180831161171257829003601f168201915b5050505050905090565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b601160019054906101000a900460ff166117f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ec90614747565b60405180910390fd5b807f00000000000000000000000000000000000000000000000000000000000000006118219190614a9e565b3414611862576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185990614707565b60405180910390fd5b806016600061186f6109bb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546118b49190614a17565b7f00000000000000000000000000000000000000000000000000000000000000001015611916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190d90614827565b60405180910390fd5b80601660006119236109bb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546119689190614a17565b601660006119746109bb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506119c36119bd6109bb565b82612e92565b50565b600060136000838152602001908152602001600020549050919050565b6119eb6109bb565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a50576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611a5d6109bb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b0a6109bb565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b4f91906146af565b60405180910390a35050565b611b636109bb565b73ffffffffffffffffffffffffffffffffffffffff16611b8161167d565b73ffffffffffffffffffffffffffffffffffffffff1614611bd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bce906148c7565b60405180910390fd5b8060108190555050565b611bec8484846125c6565b611c0b8373ffffffffffffffffffffffffffffffffffffffff16612f69565b8015611c205750611c1e84848484612f8c565b155b15611c57576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b601160009054906101000a900460ff16611cac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca390614847565b60405180910390fd5b827f0000000000000000000000000000000000000000000000000000000000000000611cd89190614a9e565b3414611d19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1090614707565b60405180910390fd5b611d94828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601054611d696109bb565b604051602001611d79919061455f565b604051602081830303815290604052805190602001206130ec565b611dd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dca90614867565b60405180910390fd5b60146000611ddf6109bb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611e67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5e90614887565b60405180910390fd5b601554831115611eac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea390614767565b60405180910390fd5b600160146000611eba6109bb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611f1c611f166109bb565b84612e92565b505050565b6060611f2c8261235b565b611f62576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611f6c613103565b9050600081511415611f8d5760405180602001604052806000815250611fb8565b80611f9784613195565b604051602001611fa8929190614591565b6040516020818303038152906040525b915050919050565b6000612036848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506010548460405160200161201b919061455f565b604051602081830303815290604052805190602001206130ec565b90509392505050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600954905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121776109bb565b73ffffffffffffffffffffffffffffffffffffffff1661219561167d565b73ffffffffffffffffffffffffffffffffffffffff16146121eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e2906148c7565b60405180910390fd5b6121f58282612e92565b5050565b6122016109bb565b73ffffffffffffffffffffffffffffffffffffffff1661221f61167d565b73ffffffffffffffffffffffffffffffffffffffff1614612275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226c906148c7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122dc90614727565b60405180910390fd5b6122ee81612dcc565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008161236661245b565b11158015612375575060005482105b80156123a2575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006013905090565b600081600854600a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054856124b59190614a9e565b6124bf9190614a6d565b6124c99190614af8565b90509392505050565b80471015612515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250c906147c7565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161253b906145b5565b60006040518083038185875af1925050503d8060008114612578576040519150601f19603f3d011682016040523d82523d6000602084013e61257d565b606091505b50509050806125c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125b8906147a7565b60405180910390fd5b505050565b60006125d182612b3d565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166125f86109bb565b73ffffffffffffffffffffffffffffffffffffffff16148061262b575061262a82600001516126256109bb565b6120db565b5b8061267057506126396109bb565b73ffffffffffffffffffffffffffffffffffffffff1661265884610b37565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806126a9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612712576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612779576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127868585856001613342565b61279660008484600001516123a9565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612a4757600054811015612a465782600001516004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ab08585856001613348565b5050505050565b612b388363a9059cbb60e01b8484604051602401612ad6929190614686565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061334e565b505050565b612b45613b1d565b600082905080612b5361245b565b11158015612b62575060005481105b15612d95576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612d9357600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612c77578092505050612dc7565b5b600115612d9257818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612d8d578092505050612dc7565b612c78565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b7f0000000000000000000000000000000000000000000000000000000000000000811115612ef5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eec906148a7565b60405180910390fd5b6000612eff610cbe565b905060008282612f0f9190614a17565b905060008290505b81811015612f58576000612f2a82613415565b9050806013600084815260200190815260200160002081905550508080612f5090614ca9565b915050612f17565b50612f638484613454565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612fb26109bb565b8786866040518563ffffffff1660e01b8152600401612fd4949392919061463a565b602060405180830381600087803b158015612fee57600080fd5b505af192505050801561301f57506040513d601f19601f8201168201806040525081019061301c919061400c565b60015b613099573d806000811461304f576040519150601f19603f3d011682016040523d82523d6000602084013e613054565b606091505b50600081511415613091576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000826130f98584613472565b1490509392505050565b60606012805461311290614c46565b80601f016020809104026020016040519081016040528092919081815260200182805461313e90614c46565b801561318b5780601f106131605761010080835404028352916020019161318b565b820191906000526020600020905b81548152906001019060200180831161316e57829003601f168201915b5050505050905090565b606060008214156131dd576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061333d565b600082905060005b6000821461320f5780806131f890614ca9565b915050600a826132089190614a6d565b91506131e5565b60008167ffffffffffffffff811115613251577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132835781602001600182028036833780820191505090505b5090505b600085146133365760018261329c9190614af8565b9150600a856132ab9190614d2a565b60306132b79190614a17565b60f81b8183815181106132f3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561332f9190614a6d565b9450613287565b8093505050505b919050565b50505050565b50505050565b60006133b0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661350d9092919063ffffffff16565b905060008151111561341057808060200190518101906133d09190613f91565b61340f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340690614907565b60405180910390fd5b5b505050565b6000816001436134259190614af8565b406040516020016134379291906145ca565b604051602081830303815290604052805190602001209050919050565b61346e828260405180602001604052806000815250613525565b5050565b60008082905060005b84518110156135025760008582815181106134bf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190508083116134e1576134da8382613537565b92506134ee565b6134eb8184613537565b92505b5080806134fa90614ca9565b91505061347b565b508091505092915050565b606061351c848460008561354e565b90509392505050565b6135328383836001613662565b505050565b600082600052816020526040600020905092915050565b606082471015613593576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161358a906147e7565b60405180910390fd5b61359c85612f69565b6135db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135d2906148e7565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613604919061457a565b60006040518083038185875af1925050503d8060008114613641576040519150601f19603f3d011682016040523d82523d6000602084013e613646565b606091505b5091509150613656828286613a30565b92505050949350505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156136cf576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084141561370a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6137176000868387613342565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600085820190508380156138e157506138e08773ffffffffffffffffffffffffffffffffffffffff16612f69565b5b156139a7575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46139566000888480600101955088612f8c565b61398c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808214156138e75782600054146139a257600080fd5b613a13565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808214156139a8575b816000819055505050613a296000868387613348565b5050505050565b60608315613a4057829050613a90565b600083511115613a535782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a8791906146e5565b60405180910390fd5b9392505050565b828054613aa390614c46565b90600052602060002090601f016020900481019282613ac55760008555613b0c565b82601f10613ade57805160ff1916838001178555613b0c565b82800160010185558215613b0c579182015b82811115613b0b578251825591602001919060010190613af0565b5b509050613b199190613b60565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613b79576000816000905550600101613b61565b5090565b6000613b90613b8b84614967565b614942565b905082815260208101848484011115613ba857600080fd5b613bb3848285614c04565b509392505050565b6000613bce613bc984614998565b614942565b905082815260208101848484011115613be657600080fd5b613bf1848285614c04565b509392505050565b600081359050613c08816151d5565b92915050565b600081359050613c1d816151ec565b92915050565b60008083601f840112613c3557600080fd5b8235905067ffffffffffffffff811115613c4e57600080fd5b602083019150836020820283011115613c6657600080fd5b9250929050565b600081359050613c7c81615203565b92915050565b600081519050613c9181615203565b92915050565b600081359050613ca68161521a565b92915050565b600081359050613cbb81615231565b92915050565b600081519050613cd081615231565b92915050565b600082601f830112613ce757600080fd5b8135613cf7848260208601613b7d565b91505092915050565b600081359050613d0f81615248565b92915050565b600082601f830112613d2657600080fd5b8135613d36848260208601613bbb565b91505092915050565b600081359050613d4e8161525f565b92915050565b600081519050613d638161525f565b92915050565b600060208284031215613d7b57600080fd5b6000613d8984828501613bf9565b91505092915050565b600060208284031215613da457600080fd5b6000613db284828501613c0e565b91505092915050565b60008060408385031215613dce57600080fd5b6000613ddc85828601613bf9565b9250506020613ded85828601613bf9565b9150509250929050565b600080600060608486031215613e0c57600080fd5b6000613e1a86828701613bf9565b9350506020613e2b86828701613bf9565b9250506040613e3c86828701613d3f565b9150509250925092565b60008060008060808587031215613e5c57600080fd5b6000613e6a87828801613bf9565b9450506020613e7b87828801613bf9565b9350506040613e8c87828801613d3f565b925050606085013567ffffffffffffffff811115613ea957600080fd5b613eb587828801613cd6565b91505092959194509250565b60008060408385031215613ed457600080fd5b6000613ee285828601613bf9565b9250506020613ef385828601613c6d565b9150509250929050565b60008060408385031215613f1057600080fd5b6000613f1e85828601613bf9565b9250506020613f2f85828601613d3f565b9150509250929050565b600080600060408486031215613f4e57600080fd5b600084013567ffffffffffffffff811115613f6857600080fd5b613f7486828701613c23565b93509350506020613f8786828701613bf9565b9150509250925092565b600060208284031215613fa357600080fd5b6000613fb184828501613c82565b91505092915050565b600060208284031215613fcc57600080fd5b6000613fda84828501613c97565b91505092915050565b600060208284031215613ff557600080fd5b600061400384828501613cac565b91505092915050565b60006020828403121561401e57600080fd5b600061402c84828501613cc1565b91505092915050565b60006020828403121561404757600080fd5b600061405584828501613d00565b91505092915050565b6000806040838503121561407157600080fd5b600061407f85828601613d00565b925050602061409085828601613bf9565b9150509250929050565b6000602082840312156140ac57600080fd5b600082013567ffffffffffffffff8111156140c657600080fd5b6140d284828501613d15565b91505092915050565b6000602082840312156140ed57600080fd5b60006140fb84828501613d3f565b91505092915050565b60006020828403121561411657600080fd5b600061412484828501613d54565b91505092915050565b60008060006040848603121561414257600080fd5b600061415086828701613d3f565b935050602084013567ffffffffffffffff81111561416d57600080fd5b61417986828701613c23565b92509250509250925092565b61418e81614bce565b82525050565b61419d81614b2c565b82525050565b6141b46141af82614b2c565b614cf2565b82525050565b6141c381614b50565b82525050565b6141d281614b5c565b82525050565b6141e96141e482614b5c565b614d04565b82525050565b60006141fa826149c9565b61420481856149df565b9350614214818560208601614c13565b61421d81614e17565b840191505092915050565b6000614233826149c9565b61423d81856149f0565b935061424d818560208601614c13565b80840191505092915050565b6000614264826149d4565b61426e81856149fb565b935061427e818560208601614c13565b61428781614e17565b840191505092915050565b600061429d826149d4565b6142a78185614a0c565b93506142b7818560208601614c13565b80840191505092915050565b60006142d0600f836149fb565b91506142db82614e35565b602082019050919050565b60006142f36026836149fb565b91506142fe82614e5e565b604082019050919050565b6000614316600f836149fb565b915061432182614ead565b602082019050919050565b60006143396015836149fb565b915061434482614ed6565b602082019050919050565b600061435c6026836149fb565b915061436782614eff565b604082019050919050565b600061437f603a836149fb565b915061438a82614f4e565b604082019050919050565b60006143a2601d836149fb565b91506143ad82614f9d565b602082019050919050565b60006143c56026836149fb565b91506143d082614fc6565b604082019050919050565b60006143e8602b836149fb565b91506143f382615015565b604082019050919050565b600061440b600a836149fb565b915061441682615064565b602082019050919050565b600061442e6012836149fb565b91506144398261508d565b602082019050919050565b6000614451600c836149fb565b915061445c826150b6565b602082019050919050565b6000614474600e836149fb565b915061447f826150df565b602082019050919050565b60006144976017836149fb565b91506144a282615108565b602082019050919050565b60006144ba6020836149fb565b91506144c582615131565b602082019050919050565b60006144dd6000836149f0565b91506144e88261515a565b600082019050919050565b6000614500601d836149fb565b915061450b8261515d565b602082019050919050565b6000614523602a836149fb565b915061452e82615186565b604082019050919050565b61454281614bc4565b82525050565b61455961455482614bc4565b614d20565b82525050565b600061456b82846141a3565b60148201915081905092915050565b60006145868284614228565b915081905092915050565b600061459d8285614292565b91506145a98284614292565b91508190509392505050565b60006145c0826144d0565b9150819050919050565b60006145d68285614548565b6020820191506145e682846141d8565b6020820191508190509392505050565b600060208201905061460b6000830184614194565b92915050565b60006040820190506146266000830185614185565b6146336020830184614539565b9392505050565b600060808201905061464f6000830187614194565b61465c6020830186614194565b6146696040830185614539565b818103606083015261467b81846141ef565b905095945050505050565b600060408201905061469b6000830185614194565b6146a86020830184614539565b9392505050565b60006020820190506146c460008301846141ba565b92915050565b60006020820190506146df60008301846141c9565b92915050565b600060208201905081810360008301526146ff8184614259565b905092915050565b60006020820190508181036000830152614720816142c3565b9050919050565b60006020820190508181036000830152614740816142e6565b9050919050565b6000602082019050818103600083015261476081614309565b9050919050565b600060208201905081810360008301526147808161432c565b9050919050565b600060208201905081810360008301526147a08161434f565b9050919050565b600060208201905081810360008301526147c081614372565b9050919050565b600060208201905081810360008301526147e081614395565b9050919050565b60006020820190508181036000830152614800816143b8565b9050919050565b60006020820190508181036000830152614820816143db565b9050919050565b60006020820190508181036000830152614840816143fe565b9050919050565b6000602082019050818103600083015261486081614421565b9050919050565b6000602082019050818103600083015261488081614444565b9050919050565b600060208201905081810360008301526148a081614467565b9050919050565b600060208201905081810360008301526148c08161448a565b9050919050565b600060208201905081810360008301526148e0816144ad565b9050919050565b60006020820190508181036000830152614900816144f3565b9050919050565b6000602082019050818103600083015261492081614516565b9050919050565b600060208201905061493c6000830184614539565b92915050565b600061494c61495d565b90506149588282614c78565b919050565b6000604051905090565b600067ffffffffffffffff82111561498257614981614de8565b5b61498b82614e17565b9050602081019050919050565b600067ffffffffffffffff8211156149b3576149b2614de8565b5b6149bc82614e17565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614a2282614bc4565b9150614a2d83614bc4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614a6257614a61614d5b565b5b828201905092915050565b6000614a7882614bc4565b9150614a8383614bc4565b925082614a9357614a92614d8a565b5b828204905092915050565b6000614aa982614bc4565b9150614ab483614bc4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614aed57614aec614d5b565b5b828202905092915050565b6000614b0382614bc4565b9150614b0e83614bc4565b925082821015614b2157614b20614d5b565b5b828203905092915050565b6000614b3782614ba4565b9050919050565b6000614b4982614ba4565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000614b9d82614b2c565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614bd982614be0565b9050919050565b6000614beb82614bf2565b9050919050565b6000614bfd82614ba4565b9050919050565b82818337600083830152505050565b60005b83811015614c31578082015181840152602081019050614c16565b83811115614c40576000848401525b50505050565b60006002820490506001821680614c5e57607f821691505b60208210811415614c7257614c71614db9565b5b50919050565b614c8182614e17565b810181811067ffffffffffffffff82111715614ca057614c9f614de8565b5b80604052505050565b6000614cb482614bc4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614ce757614ce6614d5b565b5b600182019050919050565b6000614cfd82614d0e565b9050919050565b6000819050919050565b6000614d1982614e28565b9050919050565b6000819050919050565b6000614d3582614bc4565b9150614d4083614bc4565b925082614d5057614d4f614d8a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f496e636f72726563742056616c75650000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f53616c65204e6f74204163746976650000000000000000000000000000000000600082015250565b7f4578636565646564204d6178205175616e746974790000000000000000000000600082015250565b7f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008201527f7368617265730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008201527f647565207061796d656e74000000000000000000000000000000000000000000602082015250565b7f4d6178204d696e74656400000000000000000000000000000000000000000000600082015250565b7f50726573616c65204e6f74204163746976650000000000000000000000000000600082015250565b7f4e6f7420456c696769626c650000000000000000000000000000000000000000600082015250565b7f416c7265616479204d696e746564000000000000000000000000000000000000600082015250565b7f4578636565646564204d61782042617463682053697a65000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6151de81614b2c565b81146151e957600080fd5b50565b6151f581614b3e565b811461520057600080fd5b50565b61520c81614b50565b811461521757600080fd5b50565b61522381614b5c565b811461522e57600080fd5b50565b61523a81614b66565b811461524557600080fd5b50565b61525181614b92565b811461525c57600080fd5b50565b61526881614bc4565b811461527357600080fd5b5056fea2646970667358221220be9331449286a23ef5058b15220ecc060e0fc040a0bc40d4608865accf01d7a664736f6c63430008040033000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f6d78747465722d74617274617275732d6d657461646174612e6865726f6b756170702e636f6d2f6170692f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000ac7b11dd5262ef39cb85b6df315e448d9749af7b00000000000000000000000053adfd2fd44b5222206091f8475cde1a53d7e3e00000000000000000000000006c6af3b1a70df1e4596557da92b16ed812e27b580000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000000a
Deployed Bytecode
0x60806040526004361061023f5760003560e01c806389b0649b1161012e578063b88d4fde116100ab578063d79779b21161006f578063d79779b2146108c4578063e33b7de314610901578063e985e9c51461092c578063f0dda65c14610969578063f2fde38b1461099257610286565b8063b88d4fde146107c8578063ba41b0c6146107f1578063c87b56dd1461080d578063c944ec841461084a578063ce7c2ac21461088757610286565b8063a035b1fe116100f2578063a035b1fe146106f2578063a0712d681461071d578063a0cc0dc514610739578063a22cb46514610776578063b658b60f1461079f57610286565b806389b0649b1461060b5780638b83209b146106225780638da5cb5b1461065f57806395d89b411461068a5780639852595c146106b557610286565b806342842e0e116101bc57806360d938dc1161018057806360d938dc146105245780636352211e1461054f57806370a082311461058c578063715018a6146105c957806385449697146105e057610286565b806342842e0e1461045557806348b750441461047e5780634c0770f0146104a757806355f804b3146104d0578063564566a8146104f957610286565b80631916558711610203578063191655871461038457806323b872dd146103ad5780633100a535146103d65780633a98ef39146103ed578063406072a91461041857610286565b806301ffc9a71461028b57806306fdde03146102c8578063081812fc146102f3578063095ea7b31461033057806318160ddd1461035957610286565b36610286577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77061026d6109bb565b3460405161027c929190614686565b60405180910390a1005b600080fd5b34801561029757600080fd5b506102b260048036038101906102ad9190613fe3565b6109c3565b6040516102bf91906146af565b60405180910390f35b3480156102d457600080fd5b506102dd610aa5565b6040516102ea91906146e5565b60405180910390f35b3480156102ff57600080fd5b5061031a600480360381019061031591906140db565b610b37565b60405161032791906145f6565b60405180910390f35b34801561033c57600080fd5b5061035760048036038101906103529190613efd565b610bb3565b005b34801561036557600080fd5b5061036e610cbe565b60405161037b9190614927565b60405180910390f35b34801561039057600080fd5b506103ab60048036038101906103a69190613d92565b610cd5565b005b3480156103b957600080fd5b506103d460048036038101906103cf9190613df7565b610e80565b005b3480156103e257600080fd5b506103eb610e90565b005b3480156103f957600080fd5b50610402610f38565b60405161040f9190614927565b60405180910390f35b34801561042457600080fd5b5061043f600480360381019061043a919061405e565b610f42565b60405161044c9190614927565b60405180910390f35b34801561046157600080fd5b5061047c60048036038101906104779190613df7565b610fc9565b005b34801561048a57600080fd5b506104a560048036038101906104a0919061405e565b610fe9565b005b3480156104b357600080fd5b506104ce60048036038101906104c991906140db565b6112b1565b005b3480156104dc57600080fd5b506104f760048036038101906104f2919061409a565b611337565b005b34801561050557600080fd5b5061050e6113cd565b60405161051b91906146af565b60405180910390f35b34801561053057600080fd5b506105396113e0565b60405161054691906146af565b60405180910390f35b34801561055b57600080fd5b50610576600480360381019061057191906140db565b6113f3565b60405161058391906145f6565b60405180910390f35b34801561059857600080fd5b506105b360048036038101906105ae9190613d69565b611409565b6040516105c09190614927565b60405180910390f35b3480156105d557600080fd5b506105de6114d9565b005b3480156105ec57600080fd5b506105f5611561565b60405161060291906146ca565b60405180910390f35b34801561061757600080fd5b50610620611567565b005b34801561062e57600080fd5b50610649600480360381019061064491906140db565b61160f565b60405161065691906145f6565b60405180910390f35b34801561066b57600080fd5b5061067461167d565b60405161068191906145f6565b60405180910390f35b34801561069657600080fd5b5061069f6116a7565b6040516106ac91906146e5565b60405180910390f35b3480156106c157600080fd5b506106dc60048036038101906106d79190613d69565b611739565b6040516106e99190614927565b60405180910390f35b3480156106fe57600080fd5b50610707611782565b6040516107149190614927565b60405180910390f35b610737600480360381019061073291906140db565b6117a6565b005b34801561074557600080fd5b50610760600480360381019061075b91906140db565b6119c6565b60405161076d91906146ca565b60405180910390f35b34801561078257600080fd5b5061079d60048036038101906107989190613ec1565b6119e3565b005b3480156107ab57600080fd5b506107c660048036038101906107c19190613fba565b611b5b565b005b3480156107d457600080fd5b506107ef60048036038101906107ea9190613e46565b611be1565b005b61080b6004803603810190610806919061412d565b611c5d565b005b34801561081957600080fd5b50610834600480360381019061082f91906140db565b611f21565b60405161084191906146e5565b60405180910390f35b34801561085657600080fd5b50610871600480360381019061086c9190613f39565b611fc0565b60405161087e91906146af565b60405180910390f35b34801561089357600080fd5b506108ae60048036038101906108a99190613d69565b61203f565b6040516108bb9190614927565b60405180910390f35b3480156108d057600080fd5b506108eb60048036038101906108e69190614035565b612088565b6040516108f89190614927565b60405180910390f35b34801561090d57600080fd5b506109166120d1565b6040516109239190614927565b60405180910390f35b34801561093857600080fd5b50610953600480360381019061094e9190613dbb565b6120db565b60405161096091906146af565b60405180910390f35b34801561097557600080fd5b50610990600480360381019061098b9190613efd565b61216f565b005b34801561099e57600080fd5b506109b960048036038101906109b49190613d69565b6121f9565b005b600033905090565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a8e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a9e5750610a9d826122f1565b5b9050919050565b606060028054610ab490614c46565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae090614c46565b8015610b2d5780601f10610b0257610100808354040283529160200191610b2d565b820191906000526020600020905b815481529060010190602001808311610b1057829003601f168201915b5050505050905090565b6000610b428261235b565b610b78576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610bbe826113f3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c26576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c456109bb565b73ffffffffffffffffffffffffffffffffffffffff1614158015610c775750610c7581610c706109bb565b6120db565b155b15610cae576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cb98383836123a9565b505050565b6000610cc861245b565b6001546000540303905090565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4e90614787565b60405180910390fd5b6000610d616120d1565b47610d6c9190614a17565b90506000610d838383610d7e86611739565b612464565b90506000811415610dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc090614807565b60405180910390fd5b80600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e189190614a17565b925050819055508060096000828254610e319190614a17565b92505081905550610e4283826124d2565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568382604051610e73929190614611565b60405180910390a1505050565b610e8b8383836125c6565b505050565b610e986109bb565b73ffffffffffffffffffffffffffffffffffffffff16610eb661167d565b73ffffffffffffffffffffffffffffffffffffffff1614610f0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f03906148c7565b60405180910390fd5b601160019054906101000a900460ff1615601160016101000a81548160ff021916908315150217905550565b6000600854905090565b6000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610fe483838360405180602001604052806000815250611be1565b505050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541161106b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106290614787565b60405180910390fd5b600061107683612088565b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016110af91906145f6565b60206040518083038186803b1580156110c757600080fd5b505afa1580156110db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ff9190614104565b6111099190614a17565b90506000611121838361111c8787610f42565b612464565b90506000811415611167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115e90614807565b60405180910390fd5b80600e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546111f39190614a17565b9250508190555080600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546112499190614a17565b9250508190555061125b848483612ab7565b8373ffffffffffffffffffffffffffffffffffffffff167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a84836040516112a3929190614686565b60405180910390a250505050565b6112b96109bb565b73ffffffffffffffffffffffffffffffffffffffff166112d761167d565b73ffffffffffffffffffffffffffffffffffffffff161461132d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611324906148c7565b60405180910390fd5b8060158190555050565b61133f6109bb565b73ffffffffffffffffffffffffffffffffffffffff1661135d61167d565b73ffffffffffffffffffffffffffffffffffffffff16146113b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113aa906148c7565b60405180910390fd5b80601290805190602001906113c9929190613a97565b5050565b601160019054906101000a900460ff1681565b601160009054906101000a900460ff1681565b60006113fe82612b3d565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611471576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6114e16109bb565b73ffffffffffffffffffffffffffffffffffffffff166114ff61167d565b73ffffffffffffffffffffffffffffffffffffffff1614611555576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154c906148c7565b60405180910390fd5b61155f6000612dcc565b565b60105481565b61156f6109bb565b73ffffffffffffffffffffffffffffffffffffffff1661158d61167d565b73ffffffffffffffffffffffffffffffffffffffff16146115e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115da906148c7565b60405180910390fd5b601160009054906101000a900460ff1615601160006101000a81548160ff021916908315150217905550565b6000600c828154811061164b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546116b690614c46565b80601f01602080910402602001604051908101604052809291908181526020018280546116e290614c46565b801561172f5780601f106117045761010080835404028352916020019161172f565b820191906000526020600020905b81548152906001019060200180831161171257829003601f168201915b5050505050905090565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f000000000000000000000000000000000000000000000000016345785d8a000081565b601160019054906101000a900460ff166117f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ec90614747565b60405180910390fd5b807f000000000000000000000000000000000000000000000000016345785d8a00006118219190614a9e565b3414611862576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185990614707565b60405180910390fd5b806016600061186f6109bb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546118b49190614a17565b7f00000000000000000000000000000000000000000000000000000000000000141015611916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190d90614827565b60405180910390fd5b80601660006119236109bb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546119689190614a17565b601660006119746109bb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506119c36119bd6109bb565b82612e92565b50565b600060136000838152602001908152602001600020549050919050565b6119eb6109bb565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a50576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611a5d6109bb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b0a6109bb565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b4f91906146af565b60405180910390a35050565b611b636109bb565b73ffffffffffffffffffffffffffffffffffffffff16611b8161167d565b73ffffffffffffffffffffffffffffffffffffffff1614611bd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bce906148c7565b60405180910390fd5b8060108190555050565b611bec8484846125c6565b611c0b8373ffffffffffffffffffffffffffffffffffffffff16612f69565b8015611c205750611c1e84848484612f8c565b155b15611c57576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b601160009054906101000a900460ff16611cac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca390614847565b60405180910390fd5b827f000000000000000000000000000000000000000000000000016345785d8a0000611cd89190614a9e565b3414611d19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1090614707565b60405180910390fd5b611d94828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601054611d696109bb565b604051602001611d79919061455f565b604051602081830303815290604052805190602001206130ec565b611dd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dca90614867565b60405180910390fd5b60146000611ddf6109bb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611e67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5e90614887565b60405180910390fd5b601554831115611eac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea390614767565b60405180910390fd5b600160146000611eba6109bb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611f1c611f166109bb565b84612e92565b505050565b6060611f2c8261235b565b611f62576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611f6c613103565b9050600081511415611f8d5760405180602001604052806000815250611fb8565b80611f9784613195565b604051602001611fa8929190614591565b6040516020818303038152906040525b915050919050565b6000612036848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506010548460405160200161201b919061455f565b604051602081830303815290604052805190602001206130ec565b90509392505050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600954905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121776109bb565b73ffffffffffffffffffffffffffffffffffffffff1661219561167d565b73ffffffffffffffffffffffffffffffffffffffff16146121eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e2906148c7565b60405180910390fd5b6121f58282612e92565b5050565b6122016109bb565b73ffffffffffffffffffffffffffffffffffffffff1661221f61167d565b73ffffffffffffffffffffffffffffffffffffffff1614612275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226c906148c7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122dc90614727565b60405180910390fd5b6122ee81612dcc565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008161236661245b565b11158015612375575060005482105b80156123a2575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006013905090565b600081600854600a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054856124b59190614a9e565b6124bf9190614a6d565b6124c99190614af8565b90509392505050565b80471015612515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250c906147c7565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161253b906145b5565b60006040518083038185875af1925050503d8060008114612578576040519150601f19603f3d011682016040523d82523d6000602084013e61257d565b606091505b50509050806125c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125b8906147a7565b60405180910390fd5b505050565b60006125d182612b3d565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166125f86109bb565b73ffffffffffffffffffffffffffffffffffffffff16148061262b575061262a82600001516126256109bb565b6120db565b5b8061267057506126396109bb565b73ffffffffffffffffffffffffffffffffffffffff1661265884610b37565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806126a9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612712576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612779576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127868585856001613342565b61279660008484600001516123a9565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612a4757600054811015612a465782600001516004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ab08585856001613348565b5050505050565b612b388363a9059cbb60e01b8484604051602401612ad6929190614686565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061334e565b505050565b612b45613b1d565b600082905080612b5361245b565b11158015612b62575060005481105b15612d95576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612d9357600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612c77578092505050612dc7565b5b600115612d9257818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612d8d578092505050612dc7565b612c78565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b7f000000000000000000000000000000000000000000000000000000000000000a811115612ef5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eec906148a7565b60405180910390fd5b6000612eff610cbe565b905060008282612f0f9190614a17565b905060008290505b81811015612f58576000612f2a82613415565b9050806013600084815260200190815260200160002081905550508080612f5090614ca9565b915050612f17565b50612f638484613454565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612fb26109bb565b8786866040518563ffffffff1660e01b8152600401612fd4949392919061463a565b602060405180830381600087803b158015612fee57600080fd5b505af192505050801561301f57506040513d601f19601f8201168201806040525081019061301c919061400c565b60015b613099573d806000811461304f576040519150601f19603f3d011682016040523d82523d6000602084013e613054565b606091505b50600081511415613091576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000826130f98584613472565b1490509392505050565b60606012805461311290614c46565b80601f016020809104026020016040519081016040528092919081815260200182805461313e90614c46565b801561318b5780601f106131605761010080835404028352916020019161318b565b820191906000526020600020905b81548152906001019060200180831161316e57829003601f168201915b5050505050905090565b606060008214156131dd576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061333d565b600082905060005b6000821461320f5780806131f890614ca9565b915050600a826132089190614a6d565b91506131e5565b60008167ffffffffffffffff811115613251577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132835781602001600182028036833780820191505090505b5090505b600085146133365760018261329c9190614af8565b9150600a856132ab9190614d2a565b60306132b79190614a17565b60f81b8183815181106132f3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561332f9190614a6d565b9450613287565b8093505050505b919050565b50505050565b50505050565b60006133b0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661350d9092919063ffffffff16565b905060008151111561341057808060200190518101906133d09190613f91565b61340f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340690614907565b60405180910390fd5b5b505050565b6000816001436134259190614af8565b406040516020016134379291906145ca565b604051602081830303815290604052805190602001209050919050565b61346e828260405180602001604052806000815250613525565b5050565b60008082905060005b84518110156135025760008582815181106134bf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190508083116134e1576134da8382613537565b92506134ee565b6134eb8184613537565b92505b5080806134fa90614ca9565b91505061347b565b508091505092915050565b606061351c848460008561354e565b90509392505050565b6135328383836001613662565b505050565b600082600052816020526040600020905092915050565b606082471015613593576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161358a906147e7565b60405180910390fd5b61359c85612f69565b6135db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135d2906148e7565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613604919061457a565b60006040518083038185875af1925050503d8060008114613641576040519150601f19603f3d011682016040523d82523d6000602084013e613646565b606091505b5091509150613656828286613a30565b92505050949350505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156136cf576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084141561370a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6137176000868387613342565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600085820190508380156138e157506138e08773ffffffffffffffffffffffffffffffffffffffff16612f69565b5b156139a7575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46139566000888480600101955088612f8c565b61398c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808214156138e75782600054146139a257600080fd5b613a13565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808214156139a8575b816000819055505050613a296000868387613348565b5050505050565b60608315613a4057829050613a90565b600083511115613a535782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a8791906146e5565b60405180910390fd5b9392505050565b828054613aa390614c46565b90600052602060002090601f016020900481019282613ac55760008555613b0c565b82601f10613ade57805160ff1916838001178555613b0c565b82800160010185558215613b0c579182015b82811115613b0b578251825591602001919060010190613af0565b5b509050613b199190613b60565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613b79576000816000905550600101613b61565b5090565b6000613b90613b8b84614967565b614942565b905082815260208101848484011115613ba857600080fd5b613bb3848285614c04565b509392505050565b6000613bce613bc984614998565b614942565b905082815260208101848484011115613be657600080fd5b613bf1848285614c04565b509392505050565b600081359050613c08816151d5565b92915050565b600081359050613c1d816151ec565b92915050565b60008083601f840112613c3557600080fd5b8235905067ffffffffffffffff811115613c4e57600080fd5b602083019150836020820283011115613c6657600080fd5b9250929050565b600081359050613c7c81615203565b92915050565b600081519050613c9181615203565b92915050565b600081359050613ca68161521a565b92915050565b600081359050613cbb81615231565b92915050565b600081519050613cd081615231565b92915050565b600082601f830112613ce757600080fd5b8135613cf7848260208601613b7d565b91505092915050565b600081359050613d0f81615248565b92915050565b600082601f830112613d2657600080fd5b8135613d36848260208601613bbb565b91505092915050565b600081359050613d4e8161525f565b92915050565b600081519050613d638161525f565b92915050565b600060208284031215613d7b57600080fd5b6000613d8984828501613bf9565b91505092915050565b600060208284031215613da457600080fd5b6000613db284828501613c0e565b91505092915050565b60008060408385031215613dce57600080fd5b6000613ddc85828601613bf9565b9250506020613ded85828601613bf9565b9150509250929050565b600080600060608486031215613e0c57600080fd5b6000613e1a86828701613bf9565b9350506020613e2b86828701613bf9565b9250506040613e3c86828701613d3f565b9150509250925092565b60008060008060808587031215613e5c57600080fd5b6000613e6a87828801613bf9565b9450506020613e7b87828801613bf9565b9350506040613e8c87828801613d3f565b925050606085013567ffffffffffffffff811115613ea957600080fd5b613eb587828801613cd6565b91505092959194509250565b60008060408385031215613ed457600080fd5b6000613ee285828601613bf9565b9250506020613ef385828601613c6d565b9150509250929050565b60008060408385031215613f1057600080fd5b6000613f1e85828601613bf9565b9250506020613f2f85828601613d3f565b9150509250929050565b600080600060408486031215613f4e57600080fd5b600084013567ffffffffffffffff811115613f6857600080fd5b613f7486828701613c23565b93509350506020613f8786828701613bf9565b9150509250925092565b600060208284031215613fa357600080fd5b6000613fb184828501613c82565b91505092915050565b600060208284031215613fcc57600080fd5b6000613fda84828501613c97565b91505092915050565b600060208284031215613ff557600080fd5b600061400384828501613cac565b91505092915050565b60006020828403121561401e57600080fd5b600061402c84828501613cc1565b91505092915050565b60006020828403121561404757600080fd5b600061405584828501613d00565b91505092915050565b6000806040838503121561407157600080fd5b600061407f85828601613d00565b925050602061409085828601613bf9565b9150509250929050565b6000602082840312156140ac57600080fd5b600082013567ffffffffffffffff8111156140c657600080fd5b6140d284828501613d15565b91505092915050565b6000602082840312156140ed57600080fd5b60006140fb84828501613d3f565b91505092915050565b60006020828403121561411657600080fd5b600061412484828501613d54565b91505092915050565b60008060006040848603121561414257600080fd5b600061415086828701613d3f565b935050602084013567ffffffffffffffff81111561416d57600080fd5b61417986828701613c23565b92509250509250925092565b61418e81614bce565b82525050565b61419d81614b2c565b82525050565b6141b46141af82614b2c565b614cf2565b82525050565b6141c381614b50565b82525050565b6141d281614b5c565b82525050565b6141e96141e482614b5c565b614d04565b82525050565b60006141fa826149c9565b61420481856149df565b9350614214818560208601614c13565b61421d81614e17565b840191505092915050565b6000614233826149c9565b61423d81856149f0565b935061424d818560208601614c13565b80840191505092915050565b6000614264826149d4565b61426e81856149fb565b935061427e818560208601614c13565b61428781614e17565b840191505092915050565b600061429d826149d4565b6142a78185614a0c565b93506142b7818560208601614c13565b80840191505092915050565b60006142d0600f836149fb565b91506142db82614e35565b602082019050919050565b60006142f36026836149fb565b91506142fe82614e5e565b604082019050919050565b6000614316600f836149fb565b915061432182614ead565b602082019050919050565b60006143396015836149fb565b915061434482614ed6565b602082019050919050565b600061435c6026836149fb565b915061436782614eff565b604082019050919050565b600061437f603a836149fb565b915061438a82614f4e565b604082019050919050565b60006143a2601d836149fb565b91506143ad82614f9d565b602082019050919050565b60006143c56026836149fb565b91506143d082614fc6565b604082019050919050565b60006143e8602b836149fb565b91506143f382615015565b604082019050919050565b600061440b600a836149fb565b915061441682615064565b602082019050919050565b600061442e6012836149fb565b91506144398261508d565b602082019050919050565b6000614451600c836149fb565b915061445c826150b6565b602082019050919050565b6000614474600e836149fb565b915061447f826150df565b602082019050919050565b60006144976017836149fb565b91506144a282615108565b602082019050919050565b60006144ba6020836149fb565b91506144c582615131565b602082019050919050565b60006144dd6000836149f0565b91506144e88261515a565b600082019050919050565b6000614500601d836149fb565b915061450b8261515d565b602082019050919050565b6000614523602a836149fb565b915061452e82615186565b604082019050919050565b61454281614bc4565b82525050565b61455961455482614bc4565b614d20565b82525050565b600061456b82846141a3565b60148201915081905092915050565b60006145868284614228565b915081905092915050565b600061459d8285614292565b91506145a98284614292565b91508190509392505050565b60006145c0826144d0565b9150819050919050565b60006145d68285614548565b6020820191506145e682846141d8565b6020820191508190509392505050565b600060208201905061460b6000830184614194565b92915050565b60006040820190506146266000830185614185565b6146336020830184614539565b9392505050565b600060808201905061464f6000830187614194565b61465c6020830186614194565b6146696040830185614539565b818103606083015261467b81846141ef565b905095945050505050565b600060408201905061469b6000830185614194565b6146a86020830184614539565b9392505050565b60006020820190506146c460008301846141ba565b92915050565b60006020820190506146df60008301846141c9565b92915050565b600060208201905081810360008301526146ff8184614259565b905092915050565b60006020820190508181036000830152614720816142c3565b9050919050565b60006020820190508181036000830152614740816142e6565b9050919050565b6000602082019050818103600083015261476081614309565b9050919050565b600060208201905081810360008301526147808161432c565b9050919050565b600060208201905081810360008301526147a08161434f565b9050919050565b600060208201905081810360008301526147c081614372565b9050919050565b600060208201905081810360008301526147e081614395565b9050919050565b60006020820190508181036000830152614800816143b8565b9050919050565b60006020820190508181036000830152614820816143db565b9050919050565b60006020820190508181036000830152614840816143fe565b9050919050565b6000602082019050818103600083015261486081614421565b9050919050565b6000602082019050818103600083015261488081614444565b9050919050565b600060208201905081810360008301526148a081614467565b9050919050565b600060208201905081810360008301526148c08161448a565b9050919050565b600060208201905081810360008301526148e0816144ad565b9050919050565b60006020820190508181036000830152614900816144f3565b9050919050565b6000602082019050818103600083015261492081614516565b9050919050565b600060208201905061493c6000830184614539565b92915050565b600061494c61495d565b90506149588282614c78565b919050565b6000604051905090565b600067ffffffffffffffff82111561498257614981614de8565b5b61498b82614e17565b9050602081019050919050565b600067ffffffffffffffff8211156149b3576149b2614de8565b5b6149bc82614e17565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614a2282614bc4565b9150614a2d83614bc4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614a6257614a61614d5b565b5b828201905092915050565b6000614a7882614bc4565b9150614a8383614bc4565b925082614a9357614a92614d8a565b5b828204905092915050565b6000614aa982614bc4565b9150614ab483614bc4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614aed57614aec614d5b565b5b828202905092915050565b6000614b0382614bc4565b9150614b0e83614bc4565b925082821015614b2157614b20614d5b565b5b828203905092915050565b6000614b3782614ba4565b9050919050565b6000614b4982614ba4565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000614b9d82614b2c565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614bd982614be0565b9050919050565b6000614beb82614bf2565b9050919050565b6000614bfd82614ba4565b9050919050565b82818337600083830152505050565b60005b83811015614c31578082015181840152602081019050614c16565b83811115614c40576000848401525b50505050565b60006002820490506001821680614c5e57607f821691505b60208210811415614c7257614c71614db9565b5b50919050565b614c8182614e17565b810181811067ffffffffffffffff82111715614ca057614c9f614de8565b5b80604052505050565b6000614cb482614bc4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614ce757614ce6614d5b565b5b600182019050919050565b6000614cfd82614d0e565b9050919050565b6000819050919050565b6000614d1982614e28565b9050919050565b6000819050919050565b6000614d3582614bc4565b9150614d4083614bc4565b925082614d5057614d4f614d8a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f496e636f72726563742056616c75650000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f53616c65204e6f74204163746976650000000000000000000000000000000000600082015250565b7f4578636565646564204d6178205175616e746974790000000000000000000000600082015250565b7f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008201527f7368617265730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008201527f647565207061796d656e74000000000000000000000000000000000000000000602082015250565b7f4d6178204d696e74656400000000000000000000000000000000000000000000600082015250565b7f50726573616c65204e6f74204163746976650000000000000000000000000000600082015250565b7f4e6f7420456c696769626c650000000000000000000000000000000000000000600082015250565b7f416c7265616479204d696e746564000000000000000000000000000000000000600082015250565b7f4578636565646564204d61782042617463682053697a65000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6151de81614b2c565b81146151e957600080fd5b50565b6151f581614b3e565b811461520057600080fd5b50565b61520c81614b50565b811461521757600080fd5b50565b61522381614b5c565b811461522e57600080fd5b50565b61523a81614b66565b811461524557600080fd5b50565b61525181614b92565b811461525c57600080fd5b50565b61526881614bc4565b811461527357600080fd5b5056fea2646970667358221220be9331449286a23ef5058b15220ecc060e0fc040a0bc40d4608865accf01d7a664736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f6d78747465722d74617274617275732d6d657461646174612e6865726f6b756170702e636f6d2f6170692f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000ac7b11dd5262ef39cb85b6df315e448d9749af7b00000000000000000000000053adfd2fd44b5222206091f8475cde1a53d7e3e00000000000000000000000006c6af3b1a70df1e4596557da92b16ed812e27b580000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000000a
-----Decoded View---------------
Arg [0] : price_ (uint256): 100000000000000000
Arg [1] : maxBatchSize_ (uint256): 10
Arg [2] : baseURI_ (string): https://mxtter-tartarus-metadata.herokuapp.com/api/
Arg [3] : payees_ (address[]): 0xAC7B11dd5262EF39cb85b6df315e448D9749AF7b,0x53ADfd2Fd44b5222206091F8475CDE1a53D7E3e0,0x6C6af3b1a70df1e4596557DA92B16Ed812e27B58
Arg [4] : shares_ (uint256[]): 45,45,10
-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [1] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000033
Arg [6] : 68747470733a2f2f6d78747465722d74617274617275732d6d65746164617461
Arg [7] : 2e6865726f6b756170702e636f6d2f6170692f00000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 000000000000000000000000ac7b11dd5262ef39cb85b6df315e448d9749af7b
Arg [10] : 00000000000000000000000053adfd2fd44b5222206091f8475cde1a53d7e3e0
Arg [11] : 0000000000000000000000006c6af3b1a70df1e4596557da92b16ed812e27b58
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [13] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [14] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [15] : 000000000000000000000000000000000000000000000000000000000000000a
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.