ERC-721
Overview
Max Total Supply
2,022 HNT
Holders
914
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 HNTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Hunta
Compiler Version
v0.8.17+commit.8df45f5f
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.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./ERC721A.sol"; contract Hunta is Ownable, ERC721A, PaymentSplitter { using Strings for uint; enum Step { Before, WhitelistSale, PublicSale, SoldOut, Reveal } string public baseURI; Step public sellingStep; uint public MAX_SUPPLY = 2022; uint public MAX_TOTAL_WL = 2022; uint public MAX_PER_WALLET_WL = 3; uint public MAX_PER_WALLET_PUBLIC = 3; uint public wlSalePrice = 0.035 ether; uint public publicSalePrice = 0.05 ether; bytes32 public merkleRootWL; uint public WLsaleStartTime = 1666877100; mapping(address => uint) public amountNFTsperWalletPublicSale; mapping(address => uint) public amountNFTsperWalletWhitelistSale; uint private teamLength; constructor(address[] memory _team, uint[] memory _teamShares, bytes32 _merkleRootWL , string memory _baseURI) ERC721A("Hunta", "HNT") PaymentSplitter(_team, _teamShares) { merkleRootWL = _merkleRootWL; baseURI = _baseURI; teamLength = _team.length; } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } function whitelistMint(address _account, uint _quantity, bytes32[] calldata _proof) external payable callerIsUser { uint price = wlSalePrice; require(price != 0, "Price is 0"); require(currentTime() >= WLsaleStartTime, "Whitelist Sale has not started yet"); require(currentTime() < WLsaleStartTime + 240 minutes, "Whitelist Sale is finished"); require(sellingStep == Step.WhitelistSale, "Whitelist sale is not activated"); require(isWhiteListed(msg.sender, _proof), "Not whitelisted"); require(amountNFTsperWalletWhitelistSale[msg.sender] + _quantity <= MAX_PER_WALLET_WL, "You can only get 3 NFTs on the Whitelist Sale"); require(totalSupply() + _quantity <= MAX_TOTAL_WL, "Max supply exceeded"); require(msg.value >= price * _quantity, "Not enought funds"); amountNFTsperWalletWhitelistSale[msg.sender] += _quantity; _safeMint(_account, _quantity); } function publicSaleMint(address _account, uint _quantity) external payable callerIsUser { uint price = publicSalePrice; require(price != 0, "Price is 0"); require(sellingStep == Step.PublicSale, "Public sale is not activated"); require(totalSupply() + _quantity <= MAX_SUPPLY, "Max supply exceeded"); require(amountNFTsperWalletPublicSale[msg.sender] + _quantity <= MAX_PER_WALLET_PUBLIC, "You can only get 3 NFTs on the Whitelist Sale"); require(msg.value >= price * _quantity, "Not enought funds"); amountNFTsperWalletPublicSale[msg.sender] += _quantity; _safeMint(_account, _quantity); } function gift(address _to, uint _quantity) external onlyOwner { require(totalSupply() + _quantity <= MAX_SUPPLY, "Reached max Supply"); _safeMint(_to, _quantity); } function lowerSupply (uint _MAX_SUPPLY) external onlyOwner{ require(_MAX_SUPPLY < MAX_SUPPLY, "Cannot increase supply!"); MAX_SUPPLY = _MAX_SUPPLY; } function setMaxTotalWL(uint _MAX_TOTAL_WL) external onlyOwner { MAX_TOTAL_WL = _MAX_TOTAL_WL; } function setMaxPerWalletWL(uint _MAX_PER_WALLET_WL) external onlyOwner { MAX_PER_WALLET_WL = _MAX_PER_WALLET_WL; } function setMaxPerWalletPublic(uint _MAX_PER_WALLET_PUBLIC) external onlyOwner { MAX_PER_WALLET_PUBLIC = _MAX_PER_WALLET_PUBLIC; } function setWLSaleStartTime(uint _WLsaleStartTime) external onlyOwner { WLsaleStartTime = _WLsaleStartTime; } function setWLSalePrice(uint _wlSalePrice) external onlyOwner { wlSalePrice = _wlSalePrice; } function setPublicSalePrice(uint _publicSalePrice) external onlyOwner { publicSalePrice = _publicSalePrice; } function setBaseUri(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } function currentTime() internal view returns(uint) { return block.timestamp; } function setStep(uint _step) external onlyOwner { sellingStep = Step(_step); } function tokenURI(uint _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), "URI query for nonexistent token"); return string(abi.encodePacked(baseURI, _tokenId.toString(), ".json")); } //Whitelist function setMerkleRootWL(bytes32 _merkleRootWL) external onlyOwner { merkleRootWL = _merkleRootWL; } function isWhiteListed(address _account, bytes32[] calldata _proof) internal view returns(bool) { return _verifyWL(leaf(_account), _proof); } function leaf(address _account) internal pure returns(bytes32) { return keccak256(abi.encodePacked(_account)); } function _verifyWL(bytes32 _leaf, bytes32[] memory _proof) internal view returns(bool) { return MerkleProof.verify(_proof, merkleRootWL, _leaf); } //ReleaseALL function releaseAll() external onlyOwner { for(uint i = 0 ; i < teamLength ; i++) { release(payable(payee(i))); } } receive() override external payable { revert('Only if you mint'); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @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 IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _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 `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // 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(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev 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 Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary 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 { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // 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. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * 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) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @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, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), 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-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @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 for each mint. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @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 transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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 { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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 { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev 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 ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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 _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. * This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. * This includes minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; import "../token/ERC20/utils/SafeERC20.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. The distribution of shares is set at the * time of contract deployment and can't be updated thereafter. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Getter for the amount of payee's releasable Ether. */ function releasable(address account) public view returns (uint256) { uint256 totalReceived = address(this).balance + totalReleased(); return _pendingPayment(account, totalReceived, released(account)); } /** * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an * IERC20 contract. */ function releasable(IERC20 token, address account) public view returns (uint256) { uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); return _pendingPayment(account, totalReceived, released(token, account)); } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(account); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(token, account); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); 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; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @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); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"_team","type":"address[]"},{"internalType":"uint256[]","name":"_teamShares","type":"uint256[]"},{"internalType":"bytes32","name":"_merkleRootWL","type":"bytes32"},{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":[],"name":"MAX_PER_WALLET_PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET_WL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_WL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WLsaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsperWalletPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsperWalletWhitelistSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_SUPPLY","type":"uint256"}],"name":"lowerSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"merkleRootWL","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseAll","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":[],"name":"sellingStep","outputs":[{"internalType":"enum Hunta.Step","name":"","type":"uint8"}],"stateMutability":"view","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":"_MAX_PER_WALLET_PUBLIC","type":"uint256"}],"name":"setMaxPerWalletPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_PER_WALLET_WL","type":"uint256"}],"name":"setMaxPerWalletWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_TOTAL_WL","type":"uint256"}],"name":"setMaxTotalWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRootWL","type":"bytes32"}],"name":"setMerkleRootWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSalePrice","type":"uint256"}],"name":"setPublicSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_step","type":"uint256"}],"name":"setStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wlSalePrice","type":"uint256"}],"name":"setWLSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_WLsaleStartTime","type":"uint256"}],"name":"setWLSaleStartTime","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":[{"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"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"wlSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526107e66012556107e660135560036014556003601555667c58508723800060165566b1a2bc2ec5000060175563635a86ac6019553480156200004557600080fd5b50604051620065c5380380620065c583398181016040528101906200006b919062000989565b83836040518060400160405280600581526020017f48756e74610000000000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f484e540000000000000000000000000000000000000000000000000000000000815250620000f9620000ed6200026060201b60201c565b6200026860201b60201c565b81600390816200010a919062000c99565b5080600490816200011c919062000c99565b506200012d6200032c60201b60201c565b600181905550505080518251146200017c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001739062000e07565b60405180910390fd5b6000825111620001c3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001ba9062000e79565b60405180910390fd5b60005b825181101562000232576200021c838281518110620001ea57620001e962000e9b565b5b602002602001015183838151811062000208576200020762000e9b565b5b60200260200101516200033160201b60201c565b8080620002299062000ef9565b915050620001c6565b5050508160188190555080601090816200024d919062000c99565b508351601c819055505050505062001172565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620003a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200039a9062000fbc565b60405180910390fd5b60008111620003e9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003e0906200102e565b60405180910390fd5b6000600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054146200046e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200046590620010c6565b60405180910390fd5b600d829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600954620005259190620010e8565b6009819055507f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac82826040516200055e92919062001145565b60405180910390a15050565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620005ce8262000583565b810181811067ffffffffffffffff82111715620005f057620005ef62000594565b5b80604052505050565b6000620006056200056a565b9050620006138282620005c3565b919050565b600067ffffffffffffffff82111562000636576200063562000594565b5b602082029050602081019050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000679826200064c565b9050919050565b6200068b816200066c565b81146200069757600080fd5b50565b600081519050620006ab8162000680565b92915050565b6000620006c8620006c28462000618565b620005f9565b90508083825260208201905060208402830185811115620006ee57620006ed62000647565b5b835b818110156200071b57806200070688826200069a565b845260208401935050602081019050620006f0565b5050509392505050565b600082601f8301126200073d576200073c6200057e565b5b81516200074f848260208601620006b1565b91505092915050565b600067ffffffffffffffff82111562000776576200077562000594565b5b602082029050602081019050919050565b6000819050919050565b6200079c8162000787565b8114620007a857600080fd5b50565b600081519050620007bc8162000791565b92915050565b6000620007d9620007d38462000758565b620005f9565b90508083825260208201905060208402830185811115620007ff57620007fe62000647565b5b835b818110156200082c5780620008178882620007ab565b84526020840193505060208101905062000801565b5050509392505050565b600082601f8301126200084e576200084d6200057e565b5b815162000860848260208601620007c2565b91505092915050565b6000819050919050565b6200087e8162000869565b81146200088a57600080fd5b50565b6000815190506200089e8162000873565b92915050565b600080fd5b600067ffffffffffffffff821115620008c757620008c662000594565b5b620008d28262000583565b9050602081019050919050565b60005b83811015620008ff578082015181840152602081019050620008e2565b60008484015250505050565b6000620009226200091c84620008a9565b620005f9565b905082815260208101848484011115620009415762000940620008a4565b5b6200094e848285620008df565b509392505050565b600082601f8301126200096e576200096d6200057e565b5b8151620009808482602086016200090b565b91505092915050565b60008060008060808587031215620009a657620009a562000574565b5b600085015167ffffffffffffffff811115620009c757620009c662000579565b5b620009d58782880162000725565b945050602085015167ffffffffffffffff811115620009f957620009f862000579565b5b62000a078782880162000836565b935050604062000a1a878288016200088d565b925050606085015167ffffffffffffffff81111562000a3e5762000a3d62000579565b5b62000a4c8782880162000956565b91505092959194509250565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000aab57607f821691505b60208210810362000ac15762000ac062000a63565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000b2b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000aec565b62000b37868362000aec565b95508019841693508086168417925050509392505050565b6000819050919050565b600062000b7a62000b7462000b6e8462000787565b62000b4f565b62000787565b9050919050565b6000819050919050565b62000b968362000b59565b62000bae62000ba58262000b81565b84845462000af9565b825550505050565b600090565b62000bc562000bb6565b62000bd281848462000b8b565b505050565b5b8181101562000bfa5762000bee60008262000bbb565b60018101905062000bd8565b5050565b601f82111562000c495762000c138162000ac7565b62000c1e8462000adc565b8101602085101562000c2e578190505b62000c4662000c3d8562000adc565b83018262000bd7565b50505b505050565b600082821c905092915050565b600062000c6e6000198460080262000c4e565b1980831691505092915050565b600062000c89838362000c5b565b9150826002028217905092915050565b62000ca48262000a58565b67ffffffffffffffff81111562000cc05762000cbf62000594565b5b62000ccc825462000a92565b62000cd982828562000bfe565b600060209050601f83116001811462000d11576000841562000cfc578287015190505b62000d08858262000c7b565b86555062000d78565b601f19841662000d218662000ac7565b60005b8281101562000d4b5784890151825560018201915060208501945060208101905062000d24565b8683101562000d6b578489015162000d67601f89168262000c5b565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f5061796d656e7453706c69747465723a2070617965657320616e64207368617260008201527f6573206c656e677468206d69736d617463680000000000000000000000000000602082015250565b600062000def60328362000d80565b915062000dfc8262000d91565b604082019050919050565b6000602082019050818103600083015262000e228162000de0565b9050919050565b7f5061796d656e7453706c69747465723a206e6f20706179656573000000000000600082015250565b600062000e61601a8362000d80565b915062000e6e8262000e29565b602082019050919050565b6000602082019050818103600083015262000e948162000e52565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000f068262000787565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362000f3b5762000f3a62000eca565b5b600182019050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973207468652060008201527f7a65726f20616464726573730000000000000000000000000000000000000000602082015250565b600062000fa4602c8362000d80565b915062000fb18262000f46565b604082019050919050565b6000602082019050818103600083015262000fd78162000f95565b9050919050565b7f5061796d656e7453706c69747465723a20736861726573206172652030000000600082015250565b600062001016601d8362000d80565b9150620010238262000fde565b602082019050919050565b60006020820190508181036000830152620010498162001007565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960008201527f2068617320736861726573000000000000000000000000000000000000000000602082015250565b6000620010ae602b8362000d80565b9150620010bb8262001050565b604082019050919050565b60006020820190508181036000830152620010e1816200109f565b9050919050565b6000620010f58262000787565b9150620011028362000787565b92508282019050808211156200111d576200111c62000eca565b5b92915050565b6200112e816200066c565b82525050565b6200113f8162000787565b82525050565b60006040820190506200115c600083018562001123565b6200116b602083018462001134565b9392505050565b61544380620011826000396000f3fe6080604052600436106103395760003560e01c80638da5cb5b116101ab578063c1612d41116100f7578063d6492d8111610095578063e985e9c51161006f578063e985e9c514610c7a578063ecb2444f14610cb7578063f2fde38b14610ce0578063f8dcbddb14610d0957610379565b8063d6492d8114610be7578063d79779b214610c12578063e33b7de314610c4f57610379565b8063c87b56dd116100d1578063c87b56dd14610b19578063cbccefb214610b56578063cbce4c9714610b81578063ce7c2ac214610baa57610379565b8063c1612d4114610a8a578063c45ac05014610ab3578063c715381614610af057610379565b8063a22cb46511610164578063ac5ae11b1161013e578063ac5ae11b146109df578063ad3e31b7146109fb578063b3c5421514610a24578063b88d4fde14610a6157610379565b8063a22cb46514610950578063a3f8eace14610979578063aac0d2f6146109b657610379565b80638da5cb5b1461082c57806395d89b41146108575780639852595c1461088257806399d13800146108bf5780639b6860c8146108fc578063a0bcfc7f1461092757610379565b806342842e0e1161028557806370a0823111610223578063791a2519116101fd578063791a251914610772578063828122ab1461079b5780638b533ea4146107c65780638b83209b146107ef57610379565b806370a08231146106f3578063715018a614610730578063734c66bd1461074757610379565b80635be7fde81161025f5780635be7fde8146106495780636352211e1461066057806364affb401461069d5780636c0360eb146106c857610379565b806342842e0e146105db57806348b75044146106045780634b11faaf1461062d57610379565b806318160ddd116102f257806323b872dd116102cc57806323b872dd1461051f57806332cb6b0c146105485780633a98ef3914610573578063406072a91461059e57610379565b806318160ddd146104a057806319165587146104cb5780631d4d2537146104f457610379565b806301ffc9a71461037e57806306fdde03146103bb57806308059439146103e6578063081812fc1461040f57806308ab701c1461044c578063095ea7b31461047757610379565b36610379576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610370906136e1565b60405180910390fd5b600080fd5b34801561038a57600080fd5b506103a560048036038101906103a0919061376d565b610d32565b6040516103b291906137b5565b60405180910390f35b3480156103c757600080fd5b506103d0610dc4565b6040516103dd919061384f565b60405180910390f35b3480156103f257600080fd5b5061040d600480360381019061040891906138a7565b610e56565b005b34801561041b57600080fd5b50610436600480360381019061043191906138a7565b610e68565b6040516104439190613915565b60405180910390f35b34801561045857600080fd5b50610461610ee4565b60405161046e919061393f565b60405180910390f35b34801561048357600080fd5b5061049e60048036038101906104999190613986565b610eea565b005b3480156104ac57600080fd5b506104b561102b565b6040516104c2919061393f565b60405180910390f35b3480156104d757600080fd5b506104f260048036038101906104ed9190613a04565b611042565b005b34801561050057600080fd5b506105096111ca565b604051610516919061393f565b60405180910390f35b34801561052b57600080fd5b5061054660048036038101906105419190613a31565b6111d0565b005b34801561055457600080fd5b5061055d6114f2565b60405161056a919061393f565b60405180910390f35b34801561057f57600080fd5b506105886114f8565b604051610595919061393f565b60405180910390f35b3480156105aa57600080fd5b506105c560048036038101906105c09190613ac2565b611502565b6040516105d2919061393f565b60405180910390f35b3480156105e757600080fd5b5061060260048036038101906105fd9190613a31565b611589565b005b34801561061057600080fd5b5061062b60048036038101906106269190613ac2565b6115a9565b005b61064760048036038101906106429190613b67565b6117c5565b005b34801561065557600080fd5b5061065e611b7c565b005b34801561066c57600080fd5b50610687600480360381019061068291906138a7565b611bb8565b6040516106949190613915565b60405180910390f35b3480156106a957600080fd5b506106b2611bca565b6040516106bf919061393f565b60405180910390f35b3480156106d457600080fd5b506106dd611bd0565b6040516106ea919061384f565b60405180910390f35b3480156106ff57600080fd5b5061071a60048036038101906107159190613bdb565b611c5e565b604051610727919061393f565b60405180910390f35b34801561073c57600080fd5b50610745611d16565b005b34801561075357600080fd5b5061075c611d2a565b604051610769919061393f565b60405180910390f35b34801561077e57600080fd5b50610799600480360381019061079491906138a7565b611d30565b005b3480156107a757600080fd5b506107b0611d42565b6040516107bd919061393f565b60405180910390f35b3480156107d257600080fd5b506107ed60048036038101906107e891906138a7565b611d48565b005b3480156107fb57600080fd5b50610816600480360381019061081191906138a7565b611d5a565b6040516108239190613915565b60405180910390f35b34801561083857600080fd5b50610841611da2565b60405161084e9190613915565b60405180910390f35b34801561086357600080fd5b5061086c611dcb565b604051610879919061384f565b60405180910390f35b34801561088e57600080fd5b506108a960048036038101906108a49190613bdb565b611e5d565b6040516108b6919061393f565b60405180910390f35b3480156108cb57600080fd5b506108e660048036038101906108e19190613bdb565b611ea6565b6040516108f3919061393f565b60405180910390f35b34801561090857600080fd5b50610911611ebe565b60405161091e919061393f565b60405180910390f35b34801561093357600080fd5b5061094e60048036038101906109499190613d38565b611ec4565b005b34801561095c57600080fd5b5061097760048036038101906109729190613dad565b611edf565b005b34801561098557600080fd5b506109a0600480360381019061099b9190613bdb565b612056565b6040516109ad919061393f565b60405180910390f35b3480156109c257600080fd5b506109dd60048036038101906109d891906138a7565b612089565b005b6109f960048036038101906109f49190613986565b61209b565b005b348015610a0757600080fd5b50610a226004803603810190610a1d9190613e23565b612362565b005b348015610a3057600080fd5b50610a4b6004803603810190610a469190613bdb565b612374565b604051610a58919061393f565b60405180910390f35b348015610a6d57600080fd5b50610a886004803603810190610a839190613ef1565b61238c565b005b348015610a9657600080fd5b50610ab16004803603810190610aac91906138a7565b6123ff565b005b348015610abf57600080fd5b50610ada6004803603810190610ad59190613ac2565b612411565b604051610ae7919061393f565b60405180910390f35b348015610afc57600080fd5b50610b176004803603810190610b1291906138a7565b6124c0565b005b348015610b2557600080fd5b50610b406004803603810190610b3b91906138a7565b612516565b604051610b4d919061384f565b60405180910390f35b348015610b6257600080fd5b50610b6b612592565b604051610b789190613feb565b60405180910390f35b348015610b8d57600080fd5b50610ba86004803603810190610ba39190613986565b6125a5565b005b348015610bb657600080fd5b50610bd16004803603810190610bcc9190613bdb565b612612565b604051610bde919061393f565b60405180910390f35b348015610bf357600080fd5b50610bfc61265b565b604051610c099190614015565b60405180910390f35b348015610c1e57600080fd5b50610c396004803603810190610c349190614030565b612661565b604051610c46919061393f565b60405180910390f35b348015610c5b57600080fd5b50610c646126aa565b604051610c71919061393f565b60405180910390f35b348015610c8657600080fd5b50610ca16004803603810190610c9c919061405d565b6126b4565b604051610cae91906137b5565b60405180910390f35b348015610cc357600080fd5b50610cde6004803603810190610cd991906138a7565b612748565b005b348015610cec57600080fd5b50610d076004803603810190610d029190613bdb565b61275a565b005b348015610d1557600080fd5b50610d306004803603810190610d2b91906138a7565b6127dd565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d8d57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610dbd5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060038054610dd3906140cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610dff906140cc565b8015610e4c5780601f10610e2157610100808354040283529160200191610e4c565b820191906000526020600020905b815481529060010190602001808311610e2f57829003601f168201915b5050505050905090565b610e5e612824565b8060168190555050565b6000610e73826128a2565b610ea9576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60135481565b6000610ef582611bb8565b90508073ffffffffffffffffffffffffffffffffffffffff16610f16612901565b73ffffffffffffffffffffffffffffffffffffffff1614610f7957610f4281610f3d612901565b6126b4565b610f78576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000611035612909565b6002546001540303905090565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116110c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bb9061416f565b60405180910390fd5b60006110cf82612056565b905060008103611114576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110b90614201565b60405180910390fd5b80600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546111639190614250565b9250508190555080600a600082825461117c9190614250565b9250508190555061118d828261290e565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b05682826040516111be9291906142e3565b60405180910390a15050565b60195481565b60006111db82612a02565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611242576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061124e84612ace565b91509150611264818761125f612901565b612af0565b6112b05761127986611274612901565b6126b4565b6112af576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611316576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113238686866001612b34565b801561132e57600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506113fc856113d8888887612b3a565b7c020000000000000000000000000000000000000000000000000000000017612b62565b600560008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603611482576000600185019050600060056000838152602001908152602001600020540361148057600154811461147f578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46114ea8686866001612b8d565b505050505050565b60125481565b6000600954905090565b6000600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6115a48383836040518060200160405280600081525061238c565b505050565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541161162b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116229061416f565b60405180910390fd5b60006116378383612411565b90506000810361167c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167390614201565b60405180910390fd5b80600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117089190614250565b9250508190555080600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461175e9190614250565b92505081905550611770838383612b93565b8273ffffffffffffffffffffffffffffffffffffffff167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a83836040516117b892919061430c565b60405180910390a2505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611833576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182a90614381565b60405180910390fd5b600060165490506000810361187d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611874906143ed565b60405180910390fd5b601954611888612c19565b10156118c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c09061447f565b60405180910390fd5b6138406019546118d99190614250565b6118e1612c19565b10611921576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611918906144eb565b60405180910390fd5b6001600481111561193557611934613f74565b5b601160009054906101000a900460ff16600481111561195757611956613f74565b5b14611997576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198e90614557565b60405180910390fd5b6119a2338484612c21565b6119e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d8906145c3565b60405180910390fd5b60145484601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a2f9190614250565b1115611a70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6790614655565b60405180910390fd5b60135484611a7c61102b565b611a869190614250565b1115611ac7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abe906146c1565b60405180910390fd5b8381611ad391906146e1565b341015611b15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0c9061476f565b60405180910390fd5b83601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b649190614250565b92505081905550611b758585612c7f565b5050505050565b611b84612824565b60005b601c54811015611bb557611ba2611b9d82611d5a565b611042565b8080611bad9061478f565b915050611b87565b50565b6000611bc382612a02565b9050919050565b60155481565b60108054611bdd906140cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611c09906140cc565b8015611c565780601f10611c2b57610100808354040283529160200191611c56565b820191906000526020600020905b815481529060010190602001808311611c3957829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611cc5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611d1e612824565b611d286000612c9d565b565b60165481565b611d38612824565b8060178190555050565b60145481565b611d50612824565b8060158190555050565b6000600d8281548110611d7057611d6f6147d7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054611dda906140cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611e06906140cc565b8015611e535780601f10611e2857610100808354040283529160200191611e53565b820191906000526020600020905b815481529060010190602001808311611e3657829003601f168201915b5050505050905090565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b601b6020528060005260406000206000915090505481565b60175481565b611ecc612824565b8060109081611edb91906149a8565b5050565b611ee7612901565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f4b576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060086000611f58612901565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612005612901565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161204a91906137b5565b60405180910390a35050565b6000806120616126aa565b4761206c9190614250565b9050612081838261207c86611e5d565b612d61565b915050919050565b612091612824565b8060138190555050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612109576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210090614381565b60405180910390fd5b6000601754905060008103612153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214a906143ed565b60405180910390fd5b6002600481111561216757612166613f74565b5b601160009054906101000a900460ff16600481111561218957612188613f74565b5b146121c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c090614ac6565b60405180910390fd5b601254826121d561102b565b6121df9190614250565b1115612220576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612217906146c1565b60405180910390fd5b60155482601a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461226e9190614250565b11156122af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a690614655565b60405180910390fd5b81816122bb91906146e1565b3410156122fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f49061476f565b60405180910390fd5b81601a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461234c9190614250565b9250508190555061235d8383612c7f565b505050565b61236a612824565b8060188190555050565b601a6020528060005260406000206000915090505481565b6123978484846111d0565b60008373ffffffffffffffffffffffffffffffffffffffff163b146123f9576123c284848484612dcf565b6123f8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612407612824565b8060148190555050565b60008061241d84612661565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016124569190613915565b602060405180830381865afa158015612473573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124979190614afb565b6124a19190614250565b90506124b783826124b28787611502565b612d61565b91505092915050565b6124c8612824565b601254811061250c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250390614b74565b60405180910390fd5b8060128190555050565b6060612521826128a2565b612560576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255790614be0565b60405180910390fd5b601061256b83612f1f565b60405160200161257c929190614d0b565b6040516020818303038152906040529050919050565b601160009054906101000a900460ff1681565b6125ad612824565b601254816125b961102b565b6125c39190614250565b1115612604576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125fb90614d86565b60405180910390fd5b61260e8282612c7f565b5050565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60185481565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600a54905090565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612750612824565b8060198190555050565b612762612824565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036127d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c890614e18565b60405180910390fd5b6127da81612c9d565b50565b6127e5612824565b8060048111156127f8576127f7613f74565b5b601160006101000a81548160ff0219169083600481111561281c5761281b613f74565b5b021790555050565b61282c61307f565b73ffffffffffffffffffffffffffffffffffffffff1661284a611da2565b73ffffffffffffffffffffffffffffffffffffffff16146128a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289790614e84565b60405180910390fd5b565b6000816128ad612909565b111580156128bc575060015482105b80156128fa575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b80471015612951576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294890614ef0565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161297790614f41565b60006040518083038185875af1925050503d80600081146129b4576040519150601f19603f3d011682016040523d82523d6000602084013e6129b9565b606091505b50509050806129fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f490614fc8565b60405180910390fd5b505050565b60008082905080612a11612909565b11612a9757600154811015612a965760006005600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612a94575b60008103612a8a576005600083600190039350838152602001908152602001600020549050612a60565b8092505050612ac9565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600790508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612b51868684613087565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612c148363a9059cbb60e01b8484604051602401612bb292919061430c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613090565b505050565b600042905090565b6000612c76612c2f85613157565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050613187565b90509392505050565b612c9982826040518060200160405280600081525061319e565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600954600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485612db291906146e1565b612dbc9190615017565b612dc69190615048565b90509392505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612df5612901565b8786866040518563ffffffff1660e01b8152600401612e1794939291906150d1565b6020604051808303816000875af1925050508015612e5357506040513d601f19601f82011682018060405250810190612e509190615132565b60015b612ecc573d8060008114612e83576040519150601f19603f3d011682016040523d82523d6000602084013e612e88565b606091505b506000815103612ec4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008203612f66576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061307a565b600082905060005b60008214612f98578080612f819061478f565b915050600a82612f919190615017565b9150612f6e565b60008167ffffffffffffffff811115612fb457612fb3613c0d565b5b6040519080825280601f01601f191660200182016040528015612fe65781602001600182028036833780820191505090505b5090505b6000851461307357600182612fff9190615048565b9150600a8561300e919061515f565b603061301a9190614250565b60f81b8183815181106130305761302f6147d7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561306c9190615017565b9450612fea565b8093505050505b919050565b600033905090565b60009392505050565b60006130f2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661323c9092919063ffffffff16565b9050600081511115613152578080602001905181019061311291906151a5565b613151576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314890615244565b60405180910390fd5b5b505050565b60008160405160200161316a91906152ac565b604051602081830303815290604052805190602001209050919050565b60006131968260185485613254565b905092915050565b6131a8838361326b565b60008373ffffffffffffffffffffffffffffffffffffffff163b146132375760006001549050600083820390505b6131e96000868380600101945086612dcf565b61321f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106131d657816001541461323457600080fd5b50505b505050565b606061324b848460008561343e565b90509392505050565b6000826132618584613552565b1490509392505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036132d8576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008203613312576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61331f6000848385612b34565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613396836133876000866000612b3a565b613390856135a8565b17612b62565b60056000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106133ba578060018190555050506134396000848385612b8d565b505050565b606082471015613483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347a90615339565b60405180910390fd5b61348c856135b8565b6134cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134c2906153a5565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516134f491906153f6565b60006040518083038185875af1925050503d8060008114613531576040519150601f19603f3d011682016040523d82523d6000602084013e613536565b606091505b50915091506135468282866135db565b92505050949350505050565b60008082905060005b845181101561359d576135888286838151811061357b5761357a6147d7565b5b6020026020010151613642565b915080806135959061478f565b91505061355b565b508091505092915050565b60006001821460e11b9050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606083156135eb5782905061363b565b6000835111156135fe5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613632919061384f565b60405180910390fd5b9392505050565b600081831061365a57613655828461366d565b613665565b613664838361366d565b5b905092915050565b600082600052816020526040600020905092915050565b600082825260208201905092915050565b7f4f6e6c7920696620796f75206d696e7400000000000000000000000000000000600082015250565b60006136cb601083613684565b91506136d682613695565b602082019050919050565b600060208201905081810360008301526136fa816136be565b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61374a81613715565b811461375557600080fd5b50565b60008135905061376781613741565b92915050565b6000602082840312156137835761378261370b565b5b600061379184828501613758565b91505092915050565b60008115159050919050565b6137af8161379a565b82525050565b60006020820190506137ca60008301846137a6565b92915050565b600081519050919050565b60005b838110156137f95780820151818401526020810190506137de565b60008484015250505050565b6000601f19601f8301169050919050565b6000613821826137d0565b61382b8185613684565b935061383b8185602086016137db565b61384481613805565b840191505092915050565b600060208201905081810360008301526138698184613816565b905092915050565b6000819050919050565b61388481613871565b811461388f57600080fd5b50565b6000813590506138a18161387b565b92915050565b6000602082840312156138bd576138bc61370b565b5b60006138cb84828501613892565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138ff826138d4565b9050919050565b61390f816138f4565b82525050565b600060208201905061392a6000830184613906565b92915050565b61393981613871565b82525050565b60006020820190506139546000830184613930565b92915050565b613963816138f4565b811461396e57600080fd5b50565b6000813590506139808161395a565b92915050565b6000806040838503121561399d5761399c61370b565b5b60006139ab85828601613971565b92505060206139bc85828601613892565b9150509250929050565b60006139d1826138d4565b9050919050565b6139e1816139c6565b81146139ec57600080fd5b50565b6000813590506139fe816139d8565b92915050565b600060208284031215613a1a57613a1961370b565b5b6000613a28848285016139ef565b91505092915050565b600080600060608486031215613a4a57613a4961370b565b5b6000613a5886828701613971565b9350506020613a6986828701613971565b9250506040613a7a86828701613892565b9150509250925092565b6000613a8f826138f4565b9050919050565b613a9f81613a84565b8114613aaa57600080fd5b50565b600081359050613abc81613a96565b92915050565b60008060408385031215613ad957613ad861370b565b5b6000613ae785828601613aad565b9250506020613af885828601613971565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f840112613b2757613b26613b02565b5b8235905067ffffffffffffffff811115613b4457613b43613b07565b5b602083019150836020820283011115613b6057613b5f613b0c565b5b9250929050565b60008060008060608587031215613b8157613b8061370b565b5b6000613b8f87828801613971565b9450506020613ba087828801613892565b935050604085013567ffffffffffffffff811115613bc157613bc0613710565b5b613bcd87828801613b11565b925092505092959194509250565b600060208284031215613bf157613bf061370b565b5b6000613bff84828501613971565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c4582613805565b810181811067ffffffffffffffff82111715613c6457613c63613c0d565b5b80604052505050565b6000613c77613701565b9050613c838282613c3c565b919050565b600067ffffffffffffffff821115613ca357613ca2613c0d565b5b613cac82613805565b9050602081019050919050565b82818337600083830152505050565b6000613cdb613cd684613c88565b613c6d565b905082815260208101848484011115613cf757613cf6613c08565b5b613d02848285613cb9565b509392505050565b600082601f830112613d1f57613d1e613b02565b5b8135613d2f848260208601613cc8565b91505092915050565b600060208284031215613d4e57613d4d61370b565b5b600082013567ffffffffffffffff811115613d6c57613d6b613710565b5b613d7884828501613d0a565b91505092915050565b613d8a8161379a565b8114613d9557600080fd5b50565b600081359050613da781613d81565b92915050565b60008060408385031215613dc457613dc361370b565b5b6000613dd285828601613971565b9250506020613de385828601613d98565b9150509250929050565b6000819050919050565b613e0081613ded565b8114613e0b57600080fd5b50565b600081359050613e1d81613df7565b92915050565b600060208284031215613e3957613e3861370b565b5b6000613e4784828501613e0e565b91505092915050565b600067ffffffffffffffff821115613e6b57613e6a613c0d565b5b613e7482613805565b9050602081019050919050565b6000613e94613e8f84613e50565b613c6d565b905082815260208101848484011115613eb057613eaf613c08565b5b613ebb848285613cb9565b509392505050565b600082601f830112613ed857613ed7613b02565b5b8135613ee8848260208601613e81565b91505092915050565b60008060008060808587031215613f0b57613f0a61370b565b5b6000613f1987828801613971565b9450506020613f2a87828801613971565b9350506040613f3b87828801613892565b925050606085013567ffffffffffffffff811115613f5c57613f5b613710565b5b613f6887828801613ec3565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60058110613fb457613fb3613f74565b5b50565b6000819050613fc582613fa3565b919050565b6000613fd582613fb7565b9050919050565b613fe581613fca565b82525050565b60006020820190506140006000830184613fdc565b92915050565b61400f81613ded565b82525050565b600060208201905061402a6000830184614006565b92915050565b6000602082840312156140465761404561370b565b5b600061405484828501613aad565b91505092915050565b600080604083850312156140745761407361370b565b5b600061408285828601613971565b925050602061409385828601613971565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806140e457607f821691505b6020821081036140f7576140f661409d565b5b50919050565b7f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008201527f7368617265730000000000000000000000000000000000000000000000000000602082015250565b6000614159602683613684565b9150614164826140fd565b604082019050919050565b600060208201905081810360008301526141888161414c565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008201527f647565207061796d656e74000000000000000000000000000000000000000000602082015250565b60006141eb602b83613684565b91506141f68261418f565b604082019050919050565b6000602082019050818103600083015261421a816141de565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061425b82613871565b915061426683613871565b925082820190508082111561427e5761427d614221565b5b92915050565b6000819050919050565b60006142a96142a461429f846138d4565b614284565b6138d4565b9050919050565b60006142bb8261428e565b9050919050565b60006142cd826142b0565b9050919050565b6142dd816142c2565b82525050565b60006040820190506142f860008301856142d4565b6143056020830184613930565b9392505050565b60006040820190506143216000830185613906565b61432e6020830184613930565b9392505050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b600061436b601e83613684565b915061437682614335565b602082019050919050565b6000602082019050818103600083015261439a8161435e565b9050919050565b7f5072696365206973203000000000000000000000000000000000000000000000600082015250565b60006143d7600a83613684565b91506143e2826143a1565b602082019050919050565b60006020820190508181036000830152614406816143ca565b9050919050565b7f57686974656c6973742053616c6520686173206e6f742073746172746564207960008201527f6574000000000000000000000000000000000000000000000000000000000000602082015250565b6000614469602283613684565b91506144748261440d565b604082019050919050565b600060208201905081810360008301526144988161445c565b9050919050565b7f57686974656c6973742053616c652069732066696e6973686564000000000000600082015250565b60006144d5601a83613684565b91506144e08261449f565b602082019050919050565b60006020820190508181036000830152614504816144c8565b9050919050565b7f57686974656c6973742073616c65206973206e6f742061637469766174656400600082015250565b6000614541601f83613684565b915061454c8261450b565b602082019050919050565b6000602082019050818103600083015261457081614534565b9050919050565b7f4e6f742077686974656c69737465640000000000000000000000000000000000600082015250565b60006145ad600f83613684565b91506145b882614577565b602082019050919050565b600060208201905081810360008301526145dc816145a0565b9050919050565b7f596f752063616e206f6e6c79206765742033204e465473206f6e20746865205760008201527f686974656c6973742053616c6500000000000000000000000000000000000000602082015250565b600061463f602d83613684565b915061464a826145e3565b604082019050919050565b6000602082019050818103600083015261466e81614632565b9050919050565b7f4d617820737570706c7920657863656564656400000000000000000000000000600082015250565b60006146ab601383613684565b91506146b682614675565b602082019050919050565b600060208201905081810360008301526146da8161469e565b9050919050565b60006146ec82613871565b91506146f783613871565b925082820261470581613871565b9150828204841483151761471c5761471b614221565b5b5092915050565b7f4e6f7420656e6f756768742066756e6473000000000000000000000000000000600082015250565b6000614759601183613684565b915061476482614723565b602082019050919050565b600060208201905081810360008301526147888161474c565b9050919050565b600061479a82613871565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036147cc576147cb614221565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026148687fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261482b565b614872868361482b565b95508019841693508086168417925050509392505050565b60006148a56148a061489b84613871565b614284565b613871565b9050919050565b6000819050919050565b6148bf8361488a565b6148d36148cb826148ac565b848454614838565b825550505050565b600090565b6148e86148db565b6148f38184846148b6565b505050565b5b818110156149175761490c6000826148e0565b6001810190506148f9565b5050565b601f82111561495c5761492d81614806565b6149368461481b565b81016020851015614945578190505b6149596149518561481b565b8301826148f8565b50505b505050565b600082821c905092915050565b600061497f60001984600802614961565b1980831691505092915050565b6000614998838361496e565b9150826002028217905092915050565b6149b1826137d0565b67ffffffffffffffff8111156149ca576149c9613c0d565b5b6149d482546140cc565b6149df82828561491b565b600060209050601f831160018114614a125760008415614a00578287015190505b614a0a858261498c565b865550614a72565b601f198416614a2086614806565b60005b82811015614a4857848901518255600182019150602085019450602081019050614a23565b86831015614a655784890151614a61601f89168261496e565b8355505b6001600288020188555050505b505050505050565b7f5075626c69632073616c65206973206e6f742061637469766174656400000000600082015250565b6000614ab0601c83613684565b9150614abb82614a7a565b602082019050919050565b60006020820190508181036000830152614adf81614aa3565b9050919050565b600081519050614af58161387b565b92915050565b600060208284031215614b1157614b1061370b565b5b6000614b1f84828501614ae6565b91505092915050565b7f43616e6e6f7420696e63726561736520737570706c7921000000000000000000600082015250565b6000614b5e601783613684565b9150614b6982614b28565b602082019050919050565b60006020820190508181036000830152614b8d81614b51565b9050919050565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b6000614bca601f83613684565b9150614bd582614b94565b602082019050919050565b60006020820190508181036000830152614bf981614bbd565b9050919050565b600081905092915050565b60008154614c18816140cc565b614c228186614c00565b94506001821660008114614c3d5760018114614c5257614c85565b60ff1983168652811515820286019350614c85565b614c5b85614806565b60005b83811015614c7d57815481890152600182019150602081019050614c5e565b838801955050505b50505092915050565b6000614c99826137d0565b614ca38185614c00565b9350614cb38185602086016137db565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614cf5600583614c00565b9150614d0082614cbf565b600582019050919050565b6000614d178285614c0b565b9150614d238284614c8e565b9150614d2e82614ce8565b91508190509392505050565b7f52656163686564206d617820537570706c790000000000000000000000000000600082015250565b6000614d70601283613684565b9150614d7b82614d3a565b602082019050919050565b60006020820190508181036000830152614d9f81614d63565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614e02602683613684565b9150614e0d82614da6565b604082019050919050565b60006020820190508181036000830152614e3181614df5565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614e6e602083613684565b9150614e7982614e38565b602082019050919050565b60006020820190508181036000830152614e9d81614e61565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614eda601d83613684565b9150614ee582614ea4565b602082019050919050565b60006020820190508181036000830152614f0981614ecd565b9050919050565b600081905092915050565b50565b6000614f2b600083614f10565b9150614f3682614f1b565b600082019050919050565b6000614f4c82614f1e565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000614fb2603a83613684565b9150614fbd82614f56565b604082019050919050565b60006020820190508181036000830152614fe181614fa5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061502282613871565b915061502d83613871565b92508261503d5761503c614fe8565b5b828204905092915050565b600061505382613871565b915061505e83613871565b925082820390508181111561507657615075614221565b5b92915050565b600081519050919050565b600082825260208201905092915050565b60006150a38261507c565b6150ad8185615087565b93506150bd8185602086016137db565b6150c681613805565b840191505092915050565b60006080820190506150e66000830187613906565b6150f36020830186613906565b6151006040830185613930565b81810360608301526151128184615098565b905095945050505050565b60008151905061512c81613741565b92915050565b6000602082840312156151485761514761370b565b5b60006151568482850161511d565b91505092915050565b600061516a82613871565b915061517583613871565b92508261518557615184614fe8565b5b828206905092915050565b60008151905061519f81613d81565b92915050565b6000602082840312156151bb576151ba61370b565b5b60006151c984828501615190565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061522e602a83613684565b9150615239826151d2565b604082019050919050565b6000602082019050818103600083015261525d81615221565b9050919050565b60008160601b9050919050565b600061527c82615264565b9050919050565b600061528e82615271565b9050919050565b6152a66152a1826138f4565b615283565b82525050565b60006152b88284615295565b60148201915081905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000615323602683613684565b915061532e826152c7565b604082019050919050565b6000602082019050818103600083015261535281615316565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b600061538f601d83613684565b915061539a82615359565b602082019050919050565b600060208201905081810360008301526153be81615382565b9050919050565b60006153d08261507c565b6153da8185614f10565b93506153ea8185602086016137db565b80840191505092915050565b600061540282846153c5565b91508190509291505056fea264697066735822122002f4aded46cf21dcf22cd0d8fe9ce6291fd9c7a7d7e97848cceee95f2310828b64736f6c63430008110033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c01ac6c2272792014c826a8eec5a4c202f9f84ebf5caf583e4cbe2cc772aeb1e24000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000010000000000000000000000008f1f1b47c1b9c11f50a6db4cc16cc419d7cf7117000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696467736a726f6d6336376e733474336c6773687661666770666c616a3366336976687665336a67327635366f7074797a763535612f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103395760003560e01c80638da5cb5b116101ab578063c1612d41116100f7578063d6492d8111610095578063e985e9c51161006f578063e985e9c514610c7a578063ecb2444f14610cb7578063f2fde38b14610ce0578063f8dcbddb14610d0957610379565b8063d6492d8114610be7578063d79779b214610c12578063e33b7de314610c4f57610379565b8063c87b56dd116100d1578063c87b56dd14610b19578063cbccefb214610b56578063cbce4c9714610b81578063ce7c2ac214610baa57610379565b8063c1612d4114610a8a578063c45ac05014610ab3578063c715381614610af057610379565b8063a22cb46511610164578063ac5ae11b1161013e578063ac5ae11b146109df578063ad3e31b7146109fb578063b3c5421514610a24578063b88d4fde14610a6157610379565b8063a22cb46514610950578063a3f8eace14610979578063aac0d2f6146109b657610379565b80638da5cb5b1461082c57806395d89b41146108575780639852595c1461088257806399d13800146108bf5780639b6860c8146108fc578063a0bcfc7f1461092757610379565b806342842e0e1161028557806370a0823111610223578063791a2519116101fd578063791a251914610772578063828122ab1461079b5780638b533ea4146107c65780638b83209b146107ef57610379565b806370a08231146106f3578063715018a614610730578063734c66bd1461074757610379565b80635be7fde81161025f5780635be7fde8146106495780636352211e1461066057806364affb401461069d5780636c0360eb146106c857610379565b806342842e0e146105db57806348b75044146106045780634b11faaf1461062d57610379565b806318160ddd116102f257806323b872dd116102cc57806323b872dd1461051f57806332cb6b0c146105485780633a98ef3914610573578063406072a91461059e57610379565b806318160ddd146104a057806319165587146104cb5780631d4d2537146104f457610379565b806301ffc9a71461037e57806306fdde03146103bb57806308059439146103e6578063081812fc1461040f57806308ab701c1461044c578063095ea7b31461047757610379565b36610379576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610370906136e1565b60405180910390fd5b600080fd5b34801561038a57600080fd5b506103a560048036038101906103a0919061376d565b610d32565b6040516103b291906137b5565b60405180910390f35b3480156103c757600080fd5b506103d0610dc4565b6040516103dd919061384f565b60405180910390f35b3480156103f257600080fd5b5061040d600480360381019061040891906138a7565b610e56565b005b34801561041b57600080fd5b50610436600480360381019061043191906138a7565b610e68565b6040516104439190613915565b60405180910390f35b34801561045857600080fd5b50610461610ee4565b60405161046e919061393f565b60405180910390f35b34801561048357600080fd5b5061049e60048036038101906104999190613986565b610eea565b005b3480156104ac57600080fd5b506104b561102b565b6040516104c2919061393f565b60405180910390f35b3480156104d757600080fd5b506104f260048036038101906104ed9190613a04565b611042565b005b34801561050057600080fd5b506105096111ca565b604051610516919061393f565b60405180910390f35b34801561052b57600080fd5b5061054660048036038101906105419190613a31565b6111d0565b005b34801561055457600080fd5b5061055d6114f2565b60405161056a919061393f565b60405180910390f35b34801561057f57600080fd5b506105886114f8565b604051610595919061393f565b60405180910390f35b3480156105aa57600080fd5b506105c560048036038101906105c09190613ac2565b611502565b6040516105d2919061393f565b60405180910390f35b3480156105e757600080fd5b5061060260048036038101906105fd9190613a31565b611589565b005b34801561061057600080fd5b5061062b60048036038101906106269190613ac2565b6115a9565b005b61064760048036038101906106429190613b67565b6117c5565b005b34801561065557600080fd5b5061065e611b7c565b005b34801561066c57600080fd5b50610687600480360381019061068291906138a7565b611bb8565b6040516106949190613915565b60405180910390f35b3480156106a957600080fd5b506106b2611bca565b6040516106bf919061393f565b60405180910390f35b3480156106d457600080fd5b506106dd611bd0565b6040516106ea919061384f565b60405180910390f35b3480156106ff57600080fd5b5061071a60048036038101906107159190613bdb565b611c5e565b604051610727919061393f565b60405180910390f35b34801561073c57600080fd5b50610745611d16565b005b34801561075357600080fd5b5061075c611d2a565b604051610769919061393f565b60405180910390f35b34801561077e57600080fd5b50610799600480360381019061079491906138a7565b611d30565b005b3480156107a757600080fd5b506107b0611d42565b6040516107bd919061393f565b60405180910390f35b3480156107d257600080fd5b506107ed60048036038101906107e891906138a7565b611d48565b005b3480156107fb57600080fd5b50610816600480360381019061081191906138a7565b611d5a565b6040516108239190613915565b60405180910390f35b34801561083857600080fd5b50610841611da2565b60405161084e9190613915565b60405180910390f35b34801561086357600080fd5b5061086c611dcb565b604051610879919061384f565b60405180910390f35b34801561088e57600080fd5b506108a960048036038101906108a49190613bdb565b611e5d565b6040516108b6919061393f565b60405180910390f35b3480156108cb57600080fd5b506108e660048036038101906108e19190613bdb565b611ea6565b6040516108f3919061393f565b60405180910390f35b34801561090857600080fd5b50610911611ebe565b60405161091e919061393f565b60405180910390f35b34801561093357600080fd5b5061094e60048036038101906109499190613d38565b611ec4565b005b34801561095c57600080fd5b5061097760048036038101906109729190613dad565b611edf565b005b34801561098557600080fd5b506109a0600480360381019061099b9190613bdb565b612056565b6040516109ad919061393f565b60405180910390f35b3480156109c257600080fd5b506109dd60048036038101906109d891906138a7565b612089565b005b6109f960048036038101906109f49190613986565b61209b565b005b348015610a0757600080fd5b50610a226004803603810190610a1d9190613e23565b612362565b005b348015610a3057600080fd5b50610a4b6004803603810190610a469190613bdb565b612374565b604051610a58919061393f565b60405180910390f35b348015610a6d57600080fd5b50610a886004803603810190610a839190613ef1565b61238c565b005b348015610a9657600080fd5b50610ab16004803603810190610aac91906138a7565b6123ff565b005b348015610abf57600080fd5b50610ada6004803603810190610ad59190613ac2565b612411565b604051610ae7919061393f565b60405180910390f35b348015610afc57600080fd5b50610b176004803603810190610b1291906138a7565b6124c0565b005b348015610b2557600080fd5b50610b406004803603810190610b3b91906138a7565b612516565b604051610b4d919061384f565b60405180910390f35b348015610b6257600080fd5b50610b6b612592565b604051610b789190613feb565b60405180910390f35b348015610b8d57600080fd5b50610ba86004803603810190610ba39190613986565b6125a5565b005b348015610bb657600080fd5b50610bd16004803603810190610bcc9190613bdb565b612612565b604051610bde919061393f565b60405180910390f35b348015610bf357600080fd5b50610bfc61265b565b604051610c099190614015565b60405180910390f35b348015610c1e57600080fd5b50610c396004803603810190610c349190614030565b612661565b604051610c46919061393f565b60405180910390f35b348015610c5b57600080fd5b50610c646126aa565b604051610c71919061393f565b60405180910390f35b348015610c8657600080fd5b50610ca16004803603810190610c9c919061405d565b6126b4565b604051610cae91906137b5565b60405180910390f35b348015610cc357600080fd5b50610cde6004803603810190610cd991906138a7565b612748565b005b348015610cec57600080fd5b50610d076004803603810190610d029190613bdb565b61275a565b005b348015610d1557600080fd5b50610d306004803603810190610d2b91906138a7565b6127dd565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d8d57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610dbd5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060038054610dd3906140cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610dff906140cc565b8015610e4c5780601f10610e2157610100808354040283529160200191610e4c565b820191906000526020600020905b815481529060010190602001808311610e2f57829003601f168201915b5050505050905090565b610e5e612824565b8060168190555050565b6000610e73826128a2565b610ea9576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60135481565b6000610ef582611bb8565b90508073ffffffffffffffffffffffffffffffffffffffff16610f16612901565b73ffffffffffffffffffffffffffffffffffffffff1614610f7957610f4281610f3d612901565b6126b4565b610f78576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000611035612909565b6002546001540303905090565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116110c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bb9061416f565b60405180910390fd5b60006110cf82612056565b905060008103611114576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110b90614201565b60405180910390fd5b80600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546111639190614250565b9250508190555080600a600082825461117c9190614250565b9250508190555061118d828261290e565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b05682826040516111be9291906142e3565b60405180910390a15050565b60195481565b60006111db82612a02565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611242576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061124e84612ace565b91509150611264818761125f612901565b612af0565b6112b05761127986611274612901565b6126b4565b6112af576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611316576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113238686866001612b34565b801561132e57600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506113fc856113d8888887612b3a565b7c020000000000000000000000000000000000000000000000000000000017612b62565b600560008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603611482576000600185019050600060056000838152602001908152602001600020540361148057600154811461147f578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46114ea8686866001612b8d565b505050505050565b60125481565b6000600954905090565b6000600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6115a48383836040518060200160405280600081525061238c565b505050565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541161162b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116229061416f565b60405180910390fd5b60006116378383612411565b90506000810361167c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167390614201565b60405180910390fd5b80600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117089190614250565b9250508190555080600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461175e9190614250565b92505081905550611770838383612b93565b8273ffffffffffffffffffffffffffffffffffffffff167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a83836040516117b892919061430c565b60405180910390a2505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611833576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182a90614381565b60405180910390fd5b600060165490506000810361187d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611874906143ed565b60405180910390fd5b601954611888612c19565b10156118c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c09061447f565b60405180910390fd5b6138406019546118d99190614250565b6118e1612c19565b10611921576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611918906144eb565b60405180910390fd5b6001600481111561193557611934613f74565b5b601160009054906101000a900460ff16600481111561195757611956613f74565b5b14611997576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198e90614557565b60405180910390fd5b6119a2338484612c21565b6119e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d8906145c3565b60405180910390fd5b60145484601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a2f9190614250565b1115611a70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6790614655565b60405180910390fd5b60135484611a7c61102b565b611a869190614250565b1115611ac7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abe906146c1565b60405180910390fd5b8381611ad391906146e1565b341015611b15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0c9061476f565b60405180910390fd5b83601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b649190614250565b92505081905550611b758585612c7f565b5050505050565b611b84612824565b60005b601c54811015611bb557611ba2611b9d82611d5a565b611042565b8080611bad9061478f565b915050611b87565b50565b6000611bc382612a02565b9050919050565b60155481565b60108054611bdd906140cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611c09906140cc565b8015611c565780601f10611c2b57610100808354040283529160200191611c56565b820191906000526020600020905b815481529060010190602001808311611c3957829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611cc5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611d1e612824565b611d286000612c9d565b565b60165481565b611d38612824565b8060178190555050565b60145481565b611d50612824565b8060158190555050565b6000600d8281548110611d7057611d6f6147d7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054611dda906140cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611e06906140cc565b8015611e535780601f10611e2857610100808354040283529160200191611e53565b820191906000526020600020905b815481529060010190602001808311611e3657829003601f168201915b5050505050905090565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b601b6020528060005260406000206000915090505481565b60175481565b611ecc612824565b8060109081611edb91906149a8565b5050565b611ee7612901565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f4b576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060086000611f58612901565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612005612901565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161204a91906137b5565b60405180910390a35050565b6000806120616126aa565b4761206c9190614250565b9050612081838261207c86611e5d565b612d61565b915050919050565b612091612824565b8060138190555050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612109576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210090614381565b60405180910390fd5b6000601754905060008103612153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214a906143ed565b60405180910390fd5b6002600481111561216757612166613f74565b5b601160009054906101000a900460ff16600481111561218957612188613f74565b5b146121c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c090614ac6565b60405180910390fd5b601254826121d561102b565b6121df9190614250565b1115612220576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612217906146c1565b60405180910390fd5b60155482601a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461226e9190614250565b11156122af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a690614655565b60405180910390fd5b81816122bb91906146e1565b3410156122fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f49061476f565b60405180910390fd5b81601a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461234c9190614250565b9250508190555061235d8383612c7f565b505050565b61236a612824565b8060188190555050565b601a6020528060005260406000206000915090505481565b6123978484846111d0565b60008373ffffffffffffffffffffffffffffffffffffffff163b146123f9576123c284848484612dcf565b6123f8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612407612824565b8060148190555050565b60008061241d84612661565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016124569190613915565b602060405180830381865afa158015612473573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124979190614afb565b6124a19190614250565b90506124b783826124b28787611502565b612d61565b91505092915050565b6124c8612824565b601254811061250c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250390614b74565b60405180910390fd5b8060128190555050565b6060612521826128a2565b612560576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255790614be0565b60405180910390fd5b601061256b83612f1f565b60405160200161257c929190614d0b565b6040516020818303038152906040529050919050565b601160009054906101000a900460ff1681565b6125ad612824565b601254816125b961102b565b6125c39190614250565b1115612604576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125fb90614d86565b60405180910390fd5b61260e8282612c7f565b5050565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60185481565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600a54905090565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612750612824565b8060198190555050565b612762612824565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036127d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c890614e18565b60405180910390fd5b6127da81612c9d565b50565b6127e5612824565b8060048111156127f8576127f7613f74565b5b601160006101000a81548160ff0219169083600481111561281c5761281b613f74565b5b021790555050565b61282c61307f565b73ffffffffffffffffffffffffffffffffffffffff1661284a611da2565b73ffffffffffffffffffffffffffffffffffffffff16146128a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289790614e84565b60405180910390fd5b565b6000816128ad612909565b111580156128bc575060015482105b80156128fa575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b80471015612951576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294890614ef0565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161297790614f41565b60006040518083038185875af1925050503d80600081146129b4576040519150601f19603f3d011682016040523d82523d6000602084013e6129b9565b606091505b50509050806129fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f490614fc8565b60405180910390fd5b505050565b60008082905080612a11612909565b11612a9757600154811015612a965760006005600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612a94575b60008103612a8a576005600083600190039350838152602001908152602001600020549050612a60565b8092505050612ac9565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600790508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612b51868684613087565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612c148363a9059cbb60e01b8484604051602401612bb292919061430c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613090565b505050565b600042905090565b6000612c76612c2f85613157565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050613187565b90509392505050565b612c9982826040518060200160405280600081525061319e565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600954600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485612db291906146e1565b612dbc9190615017565b612dc69190615048565b90509392505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612df5612901565b8786866040518563ffffffff1660e01b8152600401612e1794939291906150d1565b6020604051808303816000875af1925050508015612e5357506040513d601f19601f82011682018060405250810190612e509190615132565b60015b612ecc573d8060008114612e83576040519150601f19603f3d011682016040523d82523d6000602084013e612e88565b606091505b506000815103612ec4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008203612f66576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061307a565b600082905060005b60008214612f98578080612f819061478f565b915050600a82612f919190615017565b9150612f6e565b60008167ffffffffffffffff811115612fb457612fb3613c0d565b5b6040519080825280601f01601f191660200182016040528015612fe65781602001600182028036833780820191505090505b5090505b6000851461307357600182612fff9190615048565b9150600a8561300e919061515f565b603061301a9190614250565b60f81b8183815181106130305761302f6147d7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561306c9190615017565b9450612fea565b8093505050505b919050565b600033905090565b60009392505050565b60006130f2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661323c9092919063ffffffff16565b9050600081511115613152578080602001905181019061311291906151a5565b613151576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314890615244565b60405180910390fd5b5b505050565b60008160405160200161316a91906152ac565b604051602081830303815290604052805190602001209050919050565b60006131968260185485613254565b905092915050565b6131a8838361326b565b60008373ffffffffffffffffffffffffffffffffffffffff163b146132375760006001549050600083820390505b6131e96000868380600101945086612dcf565b61321f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106131d657816001541461323457600080fd5b50505b505050565b606061324b848460008561343e565b90509392505050565b6000826132618584613552565b1490509392505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036132d8576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008203613312576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61331f6000848385612b34565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613396836133876000866000612b3a565b613390856135a8565b17612b62565b60056000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106133ba578060018190555050506134396000848385612b8d565b505050565b606082471015613483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347a90615339565b60405180910390fd5b61348c856135b8565b6134cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134c2906153a5565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516134f491906153f6565b60006040518083038185875af1925050503d8060008114613531576040519150601f19603f3d011682016040523d82523d6000602084013e613536565b606091505b50915091506135468282866135db565b92505050949350505050565b60008082905060005b845181101561359d576135888286838151811061357b5761357a6147d7565b5b6020026020010151613642565b915080806135959061478f565b91505061355b565b508091505092915050565b60006001821460e11b9050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606083156135eb5782905061363b565b6000835111156135fe5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613632919061384f565b60405180910390fd5b9392505050565b600081831061365a57613655828461366d565b613665565b613664838361366d565b5b905092915050565b600082600052816020526040600020905092915050565b600082825260208201905092915050565b7f4f6e6c7920696620796f75206d696e7400000000000000000000000000000000600082015250565b60006136cb601083613684565b91506136d682613695565b602082019050919050565b600060208201905081810360008301526136fa816136be565b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61374a81613715565b811461375557600080fd5b50565b60008135905061376781613741565b92915050565b6000602082840312156137835761378261370b565b5b600061379184828501613758565b91505092915050565b60008115159050919050565b6137af8161379a565b82525050565b60006020820190506137ca60008301846137a6565b92915050565b600081519050919050565b60005b838110156137f95780820151818401526020810190506137de565b60008484015250505050565b6000601f19601f8301169050919050565b6000613821826137d0565b61382b8185613684565b935061383b8185602086016137db565b61384481613805565b840191505092915050565b600060208201905081810360008301526138698184613816565b905092915050565b6000819050919050565b61388481613871565b811461388f57600080fd5b50565b6000813590506138a18161387b565b92915050565b6000602082840312156138bd576138bc61370b565b5b60006138cb84828501613892565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138ff826138d4565b9050919050565b61390f816138f4565b82525050565b600060208201905061392a6000830184613906565b92915050565b61393981613871565b82525050565b60006020820190506139546000830184613930565b92915050565b613963816138f4565b811461396e57600080fd5b50565b6000813590506139808161395a565b92915050565b6000806040838503121561399d5761399c61370b565b5b60006139ab85828601613971565b92505060206139bc85828601613892565b9150509250929050565b60006139d1826138d4565b9050919050565b6139e1816139c6565b81146139ec57600080fd5b50565b6000813590506139fe816139d8565b92915050565b600060208284031215613a1a57613a1961370b565b5b6000613a28848285016139ef565b91505092915050565b600080600060608486031215613a4a57613a4961370b565b5b6000613a5886828701613971565b9350506020613a6986828701613971565b9250506040613a7a86828701613892565b9150509250925092565b6000613a8f826138f4565b9050919050565b613a9f81613a84565b8114613aaa57600080fd5b50565b600081359050613abc81613a96565b92915050565b60008060408385031215613ad957613ad861370b565b5b6000613ae785828601613aad565b9250506020613af885828601613971565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f840112613b2757613b26613b02565b5b8235905067ffffffffffffffff811115613b4457613b43613b07565b5b602083019150836020820283011115613b6057613b5f613b0c565b5b9250929050565b60008060008060608587031215613b8157613b8061370b565b5b6000613b8f87828801613971565b9450506020613ba087828801613892565b935050604085013567ffffffffffffffff811115613bc157613bc0613710565b5b613bcd87828801613b11565b925092505092959194509250565b600060208284031215613bf157613bf061370b565b5b6000613bff84828501613971565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c4582613805565b810181811067ffffffffffffffff82111715613c6457613c63613c0d565b5b80604052505050565b6000613c77613701565b9050613c838282613c3c565b919050565b600067ffffffffffffffff821115613ca357613ca2613c0d565b5b613cac82613805565b9050602081019050919050565b82818337600083830152505050565b6000613cdb613cd684613c88565b613c6d565b905082815260208101848484011115613cf757613cf6613c08565b5b613d02848285613cb9565b509392505050565b600082601f830112613d1f57613d1e613b02565b5b8135613d2f848260208601613cc8565b91505092915050565b600060208284031215613d4e57613d4d61370b565b5b600082013567ffffffffffffffff811115613d6c57613d6b613710565b5b613d7884828501613d0a565b91505092915050565b613d8a8161379a565b8114613d9557600080fd5b50565b600081359050613da781613d81565b92915050565b60008060408385031215613dc457613dc361370b565b5b6000613dd285828601613971565b9250506020613de385828601613d98565b9150509250929050565b6000819050919050565b613e0081613ded565b8114613e0b57600080fd5b50565b600081359050613e1d81613df7565b92915050565b600060208284031215613e3957613e3861370b565b5b6000613e4784828501613e0e565b91505092915050565b600067ffffffffffffffff821115613e6b57613e6a613c0d565b5b613e7482613805565b9050602081019050919050565b6000613e94613e8f84613e50565b613c6d565b905082815260208101848484011115613eb057613eaf613c08565b5b613ebb848285613cb9565b509392505050565b600082601f830112613ed857613ed7613b02565b5b8135613ee8848260208601613e81565b91505092915050565b60008060008060808587031215613f0b57613f0a61370b565b5b6000613f1987828801613971565b9450506020613f2a87828801613971565b9350506040613f3b87828801613892565b925050606085013567ffffffffffffffff811115613f5c57613f5b613710565b5b613f6887828801613ec3565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60058110613fb457613fb3613f74565b5b50565b6000819050613fc582613fa3565b919050565b6000613fd582613fb7565b9050919050565b613fe581613fca565b82525050565b60006020820190506140006000830184613fdc565b92915050565b61400f81613ded565b82525050565b600060208201905061402a6000830184614006565b92915050565b6000602082840312156140465761404561370b565b5b600061405484828501613aad565b91505092915050565b600080604083850312156140745761407361370b565b5b600061408285828601613971565b925050602061409385828601613971565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806140e457607f821691505b6020821081036140f7576140f661409d565b5b50919050565b7f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008201527f7368617265730000000000000000000000000000000000000000000000000000602082015250565b6000614159602683613684565b9150614164826140fd565b604082019050919050565b600060208201905081810360008301526141888161414c565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008201527f647565207061796d656e74000000000000000000000000000000000000000000602082015250565b60006141eb602b83613684565b91506141f68261418f565b604082019050919050565b6000602082019050818103600083015261421a816141de565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061425b82613871565b915061426683613871565b925082820190508082111561427e5761427d614221565b5b92915050565b6000819050919050565b60006142a96142a461429f846138d4565b614284565b6138d4565b9050919050565b60006142bb8261428e565b9050919050565b60006142cd826142b0565b9050919050565b6142dd816142c2565b82525050565b60006040820190506142f860008301856142d4565b6143056020830184613930565b9392505050565b60006040820190506143216000830185613906565b61432e6020830184613930565b9392505050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b600061436b601e83613684565b915061437682614335565b602082019050919050565b6000602082019050818103600083015261439a8161435e565b9050919050565b7f5072696365206973203000000000000000000000000000000000000000000000600082015250565b60006143d7600a83613684565b91506143e2826143a1565b602082019050919050565b60006020820190508181036000830152614406816143ca565b9050919050565b7f57686974656c6973742053616c6520686173206e6f742073746172746564207960008201527f6574000000000000000000000000000000000000000000000000000000000000602082015250565b6000614469602283613684565b91506144748261440d565b604082019050919050565b600060208201905081810360008301526144988161445c565b9050919050565b7f57686974656c6973742053616c652069732066696e6973686564000000000000600082015250565b60006144d5601a83613684565b91506144e08261449f565b602082019050919050565b60006020820190508181036000830152614504816144c8565b9050919050565b7f57686974656c6973742073616c65206973206e6f742061637469766174656400600082015250565b6000614541601f83613684565b915061454c8261450b565b602082019050919050565b6000602082019050818103600083015261457081614534565b9050919050565b7f4e6f742077686974656c69737465640000000000000000000000000000000000600082015250565b60006145ad600f83613684565b91506145b882614577565b602082019050919050565b600060208201905081810360008301526145dc816145a0565b9050919050565b7f596f752063616e206f6e6c79206765742033204e465473206f6e20746865205760008201527f686974656c6973742053616c6500000000000000000000000000000000000000602082015250565b600061463f602d83613684565b915061464a826145e3565b604082019050919050565b6000602082019050818103600083015261466e81614632565b9050919050565b7f4d617820737570706c7920657863656564656400000000000000000000000000600082015250565b60006146ab601383613684565b91506146b682614675565b602082019050919050565b600060208201905081810360008301526146da8161469e565b9050919050565b60006146ec82613871565b91506146f783613871565b925082820261470581613871565b9150828204841483151761471c5761471b614221565b5b5092915050565b7f4e6f7420656e6f756768742066756e6473000000000000000000000000000000600082015250565b6000614759601183613684565b915061476482614723565b602082019050919050565b600060208201905081810360008301526147888161474c565b9050919050565b600061479a82613871565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036147cc576147cb614221565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026148687fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261482b565b614872868361482b565b95508019841693508086168417925050509392505050565b60006148a56148a061489b84613871565b614284565b613871565b9050919050565b6000819050919050565b6148bf8361488a565b6148d36148cb826148ac565b848454614838565b825550505050565b600090565b6148e86148db565b6148f38184846148b6565b505050565b5b818110156149175761490c6000826148e0565b6001810190506148f9565b5050565b601f82111561495c5761492d81614806565b6149368461481b565b81016020851015614945578190505b6149596149518561481b565b8301826148f8565b50505b505050565b600082821c905092915050565b600061497f60001984600802614961565b1980831691505092915050565b6000614998838361496e565b9150826002028217905092915050565b6149b1826137d0565b67ffffffffffffffff8111156149ca576149c9613c0d565b5b6149d482546140cc565b6149df82828561491b565b600060209050601f831160018114614a125760008415614a00578287015190505b614a0a858261498c565b865550614a72565b601f198416614a2086614806565b60005b82811015614a4857848901518255600182019150602085019450602081019050614a23565b86831015614a655784890151614a61601f89168261496e565b8355505b6001600288020188555050505b505050505050565b7f5075626c69632073616c65206973206e6f742061637469766174656400000000600082015250565b6000614ab0601c83613684565b9150614abb82614a7a565b602082019050919050565b60006020820190508181036000830152614adf81614aa3565b9050919050565b600081519050614af58161387b565b92915050565b600060208284031215614b1157614b1061370b565b5b6000614b1f84828501614ae6565b91505092915050565b7f43616e6e6f7420696e63726561736520737570706c7921000000000000000000600082015250565b6000614b5e601783613684565b9150614b6982614b28565b602082019050919050565b60006020820190508181036000830152614b8d81614b51565b9050919050565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b6000614bca601f83613684565b9150614bd582614b94565b602082019050919050565b60006020820190508181036000830152614bf981614bbd565b9050919050565b600081905092915050565b60008154614c18816140cc565b614c228186614c00565b94506001821660008114614c3d5760018114614c5257614c85565b60ff1983168652811515820286019350614c85565b614c5b85614806565b60005b83811015614c7d57815481890152600182019150602081019050614c5e565b838801955050505b50505092915050565b6000614c99826137d0565b614ca38185614c00565b9350614cb38185602086016137db565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614cf5600583614c00565b9150614d0082614cbf565b600582019050919050565b6000614d178285614c0b565b9150614d238284614c8e565b9150614d2e82614ce8565b91508190509392505050565b7f52656163686564206d617820537570706c790000000000000000000000000000600082015250565b6000614d70601283613684565b9150614d7b82614d3a565b602082019050919050565b60006020820190508181036000830152614d9f81614d63565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614e02602683613684565b9150614e0d82614da6565b604082019050919050565b60006020820190508181036000830152614e3181614df5565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614e6e602083613684565b9150614e7982614e38565b602082019050919050565b60006020820190508181036000830152614e9d81614e61565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614eda601d83613684565b9150614ee582614ea4565b602082019050919050565b60006020820190508181036000830152614f0981614ecd565b9050919050565b600081905092915050565b50565b6000614f2b600083614f10565b9150614f3682614f1b565b600082019050919050565b6000614f4c82614f1e565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000614fb2603a83613684565b9150614fbd82614f56565b604082019050919050565b60006020820190508181036000830152614fe181614fa5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061502282613871565b915061502d83613871565b92508261503d5761503c614fe8565b5b828204905092915050565b600061505382613871565b915061505e83613871565b925082820390508181111561507657615075614221565b5b92915050565b600081519050919050565b600082825260208201905092915050565b60006150a38261507c565b6150ad8185615087565b93506150bd8185602086016137db565b6150c681613805565b840191505092915050565b60006080820190506150e66000830187613906565b6150f36020830186613906565b6151006040830185613930565b81810360608301526151128184615098565b905095945050505050565b60008151905061512c81613741565b92915050565b6000602082840312156151485761514761370b565b5b60006151568482850161511d565b91505092915050565b600061516a82613871565b915061517583613871565b92508261518557615184614fe8565b5b828206905092915050565b60008151905061519f81613d81565b92915050565b6000602082840312156151bb576151ba61370b565b5b60006151c984828501615190565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061522e602a83613684565b9150615239826151d2565b604082019050919050565b6000602082019050818103600083015261525d81615221565b9050919050565b60008160601b9050919050565b600061527c82615264565b9050919050565b600061528e82615271565b9050919050565b6152a66152a1826138f4565b615283565b82525050565b60006152b88284615295565b60148201915081905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000615323602683613684565b915061532e826152c7565b604082019050919050565b6000602082019050818103600083015261535281615316565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b600061538f601d83613684565b915061539a82615359565b602082019050919050565b600060208201905081810360008301526153be81615382565b9050919050565b60006153d08261507c565b6153da8185614f10565b93506153ea8185602086016137db565b80840191505092915050565b600061540282846153c5565b91508190509291505056fea264697066735822122002f4aded46cf21dcf22cd0d8fe9ce6291fd9c7a7d7e97848cceee95f2310828b64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c01ac6c2272792014c826a8eec5a4c202f9f84ebf5caf583e4cbe2cc772aeb1e24000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000010000000000000000000000008f1f1b47c1b9c11f50a6db4cc16cc419d7cf7117000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696467736a726f6d6336376e733474336c6773687661666770666c616a3366336976687665336a67327635366f7074797a763535612f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _team (address[]): 0x8f1F1b47c1b9C11F50A6DB4CC16Cc419d7cf7117
Arg [1] : _teamShares (uint256[]): 100
Arg [2] : _merkleRootWL (bytes32): 0x1ac6c2272792014c826a8eec5a4c202f9f84ebf5caf583e4cbe2cc772aeb1e24
Arg [3] : _baseURI (string): ipfs://bafybeidgsjromc67ns4t3lgshvafgpflaj3f3ivhve3jg2v56optyzv55a/
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 1ac6c2272792014c826a8eec5a4c202f9f84ebf5caf583e4cbe2cc772aeb1e24
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 0000000000000000000000008f1f1b47c1b9c11f50a6db4cc16cc419d7cf7117
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [9] : 697066733a2f2f626166796265696467736a726f6d6336376e733474336c6773
Arg [10] : 687661666770666c616a3366336976687665336a67327635366f7074797a7635
Arg [11] : 35612f0000000000000000000000000000000000000000000000000000000000
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.