Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 724 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 20237712 | 10 days ago | IN | 0 ETH | 0.00056629 | ||||
Set Approval For... | 20200429 | 16 days ago | IN | 0 ETH | 0.00003531 | ||||
Set Approval For... | 20200427 | 16 days ago | IN | 0 ETH | 0.00003586 | ||||
Set Approval For... | 19176089 | 159 days ago | IN | 0 ETH | 0.0006334 | ||||
Set Approval For... | 19176089 | 159 days ago | IN | 0 ETH | 0.0006334 | ||||
Set Approval For... | 19159825 | 161 days ago | IN | 0 ETH | 0.00029527 | ||||
Set Approval For... | 19159812 | 161 days ago | IN | 0 ETH | 0.00029175 | ||||
Set Approval For... | 19111177 | 168 days ago | IN | 0 ETH | 0.00025157 | ||||
Set Approval For... | 19108994 | 168 days ago | IN | 0 ETH | 0.00023169 | ||||
Set Approval For... | 19050180 | 177 days ago | IN | 0 ETH | 0.00036392 | ||||
Set Approval For... | 18939376 | 192 days ago | IN | 0 ETH | 0.00034548 | ||||
Set Approval For... | 18820160 | 209 days ago | IN | 0 ETH | 0.00152458 | ||||
Set Approval For... | 18673143 | 230 days ago | IN | 0 ETH | 0.0011565 | ||||
Set Approval For... | 18330527 | 277 days ago | IN | 0 ETH | 0.00013519 | ||||
Set Approval For... | 18166987 | 300 days ago | IN | 0 ETH | 0.00018738 | ||||
Set Approval For... | 18166986 | 300 days ago | IN | 0 ETH | 0.00019267 | ||||
Set Approval For... | 17967773 | 328 days ago | IN | 0 ETH | 0.00033252 | ||||
Set Approval For... | 17803427 | 351 days ago | IN | 0 ETH | 0.00037092 | ||||
Set Approval For... | 17803336 | 351 days ago | IN | 0 ETH | 0.00036855 | ||||
Set Approval For... | 17799128 | 352 days ago | IN | 0 ETH | 0.00063307 | ||||
Withdraw | 17684143 | 368 days ago | IN | 0 ETH | 0.00054597 | ||||
Set Approval For... | 17606612 | 379 days ago | IN | 0 ETH | 0.00036382 | ||||
Set Approval For... | 17549833 | 387 days ago | IN | 0 ETH | 0.00034893 | ||||
Set Approval For... | 17549832 | 387 days ago | IN | 0 ETH | 0.00031057 | ||||
Set Approval For... | 17230167 | 432 days ago | IN | 0 ETH | 0.00259136 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
17684143 | 368 days ago | 0.4 ETH |
Loading...
Loading
Contract Name:
FoboOG
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "erc721psi/contracts/ERC721Psi.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract FoboOG is ERC721Psi,Ownable { uint public whiteMintPrice = 0 ether; uint public mintPrice = 0.1 ether; uint constant public maxSupply = 7777; bool public publicMintSwitch = false; string baseURI; bytes32 public merkleRoot; mapping( address => bool ) whiteListMinted; constructor() ERC721Psi ("Fobo OG Pass", "FOG"){ } function switchPublicMint() public onlyOwner { publicMintSwitch = !publicMintSwitch; } function setWhiteMintPrice(uint _price) public onlyOwner { whiteMintPrice = _price; } function setMintPrice(uint price) public onlyOwner{ mintPrice = price; } function setBaseURI(string calldata baseURI_) public onlyOwner { baseURI = baseURI_; } function setMerkleRoot(bytes32 merkleRoot_) public onlyOwner { merkleRoot = merkleRoot_; } /** * Mint to partners */ function premint(address to,uint quantity) public onlyOwner { _safeMint(to, quantity); } /** * Mint to Whitelist, but each address can only mint once */ function whiteListMint(bytes32[] calldata proof,uint amount) external payable{ require(MerkleProof.verifyCalldata(proof, merkleRoot, keccak256(abi.encodePacked(msg.sender,amount))),"Fobo OG: Invalid proof"); require(!whiteListMinted[msg.sender],"Fobo OG: Already minted"); require(msg.value == whiteMintPrice,"Fobo OG: Insufficient amount"); whiteListMinted[msg.sender] = true; _safeMint(msg.sender, amount); } function publicMint(uint quantity) external payable { require(publicMintSwitch,"Fobo OG: Public mint is not open"); require(totalSupply() + quantity <= maxSupply,"Fobo OG: Exceed max supply"); require(msg.value == mintPrice * quantity,"Fobo OG: Insufficient amount"); _safeMint(msg.sender, quantity); } function withdraw() public onlyOwner { payable(msg.sender).transfer(address(this).balance); } function _baseURI() internal view override returns (string memory) { return baseURI; } }
// SPDX-License-Identifier: MIT /** ______ _____ _____ ______ ___ __ _ _ _ | ____| __ \ / ____|____ |__ \/_ | || || | | |__ | |__) | | / / ) || | \| |/ | | __| | _ /| | / / / / | |\_ _/ | |____| | \ \| |____ / / / /_ | | | | |______|_| \_\\_____|/_/ |____||_| |_| */ pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/StorageSlot.sol"; import "solidity-bits/contracts/BitMaps.sol"; contract ERC721Psi is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; using BitMaps for BitMaps.BitMap; BitMaps.BitMap private _batchHead; string private _name; string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) internal _owners; uint256 internal _minted; mapping(uint256 => address) private _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint) { require(owner != address(0), "ERC721Psi: balance query for the zero address"); uint count; for( uint i; i < _minted; ++i ){ if(_exists(i)){ if( owner == ownerOf(i)){ ++count; } } } return count; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { (address owner, ) = _ownerAndBatchHeadOf(tokenId); return owner; } function _ownerAndBatchHeadOf(uint256 tokenId) internal view returns (address owner, uint256 tokenIdBatchHead){ require(_exists(tokenId), "ERC721Psi: owner query for nonexistent token"); tokenIdBatchHead = _getBatchHead(tokenId); owner = _owners[tokenIdBatchHead]; } /** * @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) { require(_exists(tokenId), "ERC721Psi: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); require(to != owner, "ERC721Psi: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721Psi: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require( _exists(tokenId), "ERC721Psi: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721Psi: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721Psi: transfer caller is not owner nor approved" ); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721Psi: transfer caller is not owner nor approved" ); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, 1,_data), "ERC721Psi: transfer to non ERC721Receiver implementer" ); } /** * @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 virtual returns (bool) { return tokenId < _minted; } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require( _exists(tokenId), "ERC721Psi: operator query for nonexistent token" ); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ""); } function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { uint256 startTokenId = _minted; _mint(to, quantity); require( _checkOnERC721Received(address(0), to, startTokenId, quantity, _data), "ERC721Psi: transfer to non ERC721Receiver implementer" ); } function _mint( address to, uint256 quantity ) internal virtual { uint256 tokenIdBatchHead = _minted; require(quantity > 0, "ERC721Psi: quantity must be greater 0"); require(to != address(0), "ERC721Psi: mint to the zero address"); _beforeTokenTransfers(address(0), to, tokenIdBatchHead, quantity); _minted += quantity; _owners[tokenIdBatchHead] = to; _batchHead.set(tokenIdBatchHead); _afterTokenTransfers(address(0), to, tokenIdBatchHead, quantity); // Emit events for(uint256 tokenId=tokenIdBatchHead;tokenId < tokenIdBatchHead + quantity; tokenId++){ emit Transfer(address(0), to, tokenId); } } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { (address owner, uint256 tokenIdBatchHead) = _ownerAndBatchHeadOf(tokenId); require( owner == from, "ERC721Psi: transfer of token that is not own" ); require(to != address(0), "ERC721Psi: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId); uint256 nextTokenId = tokenId + 1; if(!_batchHead.get(nextTokenId) && nextTokenId < _minted ) { _owners[nextTokenId] = from; _batchHead.set(nextTokenId); } _owners[tokenId] = to; if(tokenId != tokenIdBatchHead) { _batchHead.set(tokenId); } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param startTokenId uint256 the first ID of the tokens to be transferred * @param quantity uint256 amount of the tokens to be transfered. * @param _data bytes optional data to send along with the call * @return r bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 startTokenId, uint256 quantity, bytes memory _data ) private returns (bool r) { if (to.isContract()) { r = true; for(uint256 tokenId = startTokenId; tokenId < startTokenId + quantity; tokenId++){ try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { r = r && retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721Psi: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } return r; } else { return true; } } function _getBatchHead(uint256 tokenId) internal view returns (uint256 tokenIdBatchHead) { tokenIdBatchHead = _batchHead.scanForward(tokenId); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _minted; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256 tokenId) { require(index < totalSupply(), "ERC721Psi: global index out of bounds"); uint count; for(uint i; i < _minted; i++){ if(_exists(i)){ if(count == index) return i; else count++; } } } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) { uint count; for(uint i; i < _minted; i++){ if(_exists(i) && owner == ownerOf(i)){ if(count == index) return i; else count++; } } revert("ERC721Psi: owner index out of bounds"); } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * 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`. */ 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. * * 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` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 /** _____ ___ ___ __ ____ _ __ / ___/____ / (_)___/ (_) /___ __ / __ )(_) /______ \__ \/ __ \/ / / __ / / __/ / / / / __ / / __/ ___/ ___/ / /_/ / / / /_/ / / /_/ /_/ / / /_/ / / /_(__ ) /____/\____/_/_/\__,_/_/\__/\__, / /_____/_/\__/____/ /____/ - npm: https://www.npmjs.com/package/solidity-bits - github: https://github.com/estarriolvetch/solidity-bits */ pragma solidity ^0.8.0; import "./BitScan.sol"; /** * @dev This Library is a modified version of Openzeppelin's BitMaps library. * Functions of finding the index of the closest set bit from a given index are added. * The indexing of each bucket is modifed to count from the MSB to the LSB instead of from the LSB to the MSB. * The modification of indexing makes finding the closest previous set bit more efficient in gas usage. */ /** * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential. * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor]. */ library BitMaps { using BitScan for uint256; uint256 private constant MASK_INDEX_ZERO = (1 << 255); uint256 private constant MASK_FULL = type(uint256).max; struct BitMap { mapping(uint256 => uint256) _data; } /** * @dev Returns whether the bit at `index` is set. */ function get(BitMap storage bitmap, uint256 index) internal view returns (bool) { uint256 bucket = index >> 8; uint256 mask = MASK_INDEX_ZERO >> (index & 0xff); return bitmap._data[bucket] & mask != 0; } /** * @dev Sets the bit at `index` to the boolean `value`. */ function setTo( BitMap storage bitmap, uint256 index, bool value ) internal { if (value) { set(bitmap, index); } else { unset(bitmap, index); } } /** * @dev Sets the bit at `index`. */ function set(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = MASK_INDEX_ZERO >> (index & 0xff); bitmap._data[bucket] |= mask; } /** * @dev Unsets the bit at `index`. */ function unset(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = MASK_INDEX_ZERO >> (index & 0xff); bitmap._data[bucket] &= ~mask; } /** * @dev Consecutively sets `amount` of bits starting from the bit at `startIndex`. */ function setBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal { uint256 bucket = startIndex >> 8; uint256 bucketStartIndex = (startIndex & 0xff); unchecked { if(bucketStartIndex + amount < 256) { bitmap._data[bucket] |= MASK_FULL << (256 - amount) >> bucketStartIndex; } else { bitmap._data[bucket] |= MASK_FULL >> bucketStartIndex; amount -= (256 - bucketStartIndex); bucket++; while(amount > 256) { bitmap._data[bucket] = MASK_FULL; amount -= 256; bucket++; } bitmap._data[bucket] |= MASK_FULL << (256 - amount); } } } /** * @dev Consecutively unsets `amount` of bits starting from the bit at `startIndex`. */ function unsetBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal { uint256 bucket = startIndex >> 8; uint256 bucketStartIndex = (startIndex & 0xff); unchecked { if(bucketStartIndex + amount < 256) { bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount) >> bucketStartIndex); } else { bitmap._data[bucket] &= ~(MASK_FULL >> bucketStartIndex); amount -= (256 - bucketStartIndex); bucket++; while(amount > 256) { bitmap._data[bucket] = 0; amount -= 256; bucket++; } bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount)); } } } /** * @dev Find the closest index of the set bit before `index`. */ function scanForward(BitMap storage bitmap, uint256 index) internal view returns (uint256 setBitIndex) { uint256 bucket = index >> 8; // index within the bucket uint256 bucketIndex = (index & 0xff); // load a bitboard from the bitmap. uint256 bb = bitmap._data[bucket]; // offset the bitboard to scan from `bucketIndex`. bb = bb >> (0xff ^ bucketIndex); // bb >> (255 - bucketIndex) if(bb > 0) { unchecked { setBitIndex = (bucket << 8) | (bucketIndex - bb.bitScanForward256()); } } else { while(true) { require(bucket > 0, "BitMaps: The set bit before the index doesn't exist."); unchecked { bucket--; } // No offset. Always scan from the least significiant bit now. bb = bitmap._data[bucket]; if(bb > 0) { unchecked { setBitIndex = (bucket << 8) | (255 - bb.bitScanForward256()); break; } } } } } function getBucket(BitMap storage bitmap, uint256 bucket) internal view returns (uint256) { return bitmap._data[bucket]; } }
// 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) (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/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol) pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ``` * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT /** _____ ___ ___ __ ____ _ __ / ___/____ / (_)___/ (_) /___ __ / __ )(_) /______ \__ \/ __ \/ / / __ / / __/ / / / / __ / / __/ ___/ ___/ / /_/ / / / /_/ / / /_/ /_/ / / /_/ / / /_(__ ) /____/\____/_/_/\__,_/_/\__/\__, / /_____/_/\__/____/ /____/ - npm: https://www.npmjs.com/package/solidity-bits - github: https://github.com/estarriolvetch/solidity-bits */ pragma solidity ^0.8.0; library BitScan { uint256 constant private DEBRUIJN_256 = 0x818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff; bytes constant private LOOKUP_TABLE_256 = hex"0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8"; /** @dev Isolate the least significant set bit. */ function isolateLS1B256(uint256 bb) pure internal returns (uint256) { require(bb > 0); unchecked { return bb & (0 - bb); } } /** @dev Isolate the most significant set bit. */ function isolateMS1B256(uint256 bb) pure internal returns (uint256) { require(bb > 0); unchecked { bb |= bb >> 128; bb |= bb >> 64; bb |= bb >> 32; bb |= bb >> 16; bb |= bb >> 8; bb |= bb >> 4; bb |= bb >> 2; bb |= bb >> 1; return (bb >> 1) + 1; } } /** @dev Find the index of the lest significant set bit. (trailing zero count) */ function bitScanForward256(uint256 bb) pure internal returns (uint8) { unchecked { return uint8(LOOKUP_TABLE_256[(isolateLS1B256(bb) * DEBRUIJN_256) >> 248]); } } /** @dev Find the index of the most significant set bit. */ function bitScanReverse256(uint256 bb) pure internal returns (uint8) { unchecked { return 255 - uint8(LOOKUP_TABLE_256[((isolateMS1B256(bb) * DEBRUIJN_256) >> 248)]); } } function log2(uint256 bb) pure internal returns (uint8) { unchecked { return uint8(LOOKUP_TABLE_256[(isolateMS1B256(bb) * DEBRUIJN_256) >> 248]); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"premint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMintSwitch","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setWhiteMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"whiteListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whiteMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600060085567016345785d8a0000600955600a805460ff191690553480156200002c57600080fd5b50604080518082018252600c81526b466f626f204f47205061737360a01b602080830191825283518085019094526003845262464f4760e81b9084015281519192916200007c916001916200010b565b508051620000929060029060208401906200010b565b505050620000af620000a9620000b560201b60201c565b620000b9565b620001ee565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200011990620001b1565b90600052602060002090601f0160209004810192826200013d576000855562000188565b82601f106200015857805160ff191683800117855562000188565b8280016001018555821562000188579182015b82811115620001885782518255916020019190600101906200016b565b50620001969291506200019a565b5090565b5b808211156200019657600081556001016200019b565b600181811c90821680620001c657607f821691505b60208210811415620001e857634e487b7160e01b600052602260045260246000fd5b50919050565b61238380620001fe6000396000f3fe6080604052600436106101ee5760003560e01c806370a082311161010d578063c87b56dd116100a0578063e985e9c51161006f578063e985e9c51461053d578063ed2bc3f514610586578063f2fde38b1461059c578063f4a0a528146105bc578063fabc4d5d146105dc57600080fd5b8063c87b56dd146104d2578063cda8d0ed146104f2578063d2ec285614610507578063d5abeb011461052757600080fd5b806395d89b41116100dc57806395d89b411461046a578063a22cb4651461047f578063b88d4fde1461049f578063c30bf318146104bf57600080fd5b806370a08231146103f7578063715018a6146104175780637cb647591461042c5780638da5cb5b1461044c57600080fd5b80632eb4a7ab116101855780634f6ccce7116101545780634f6ccce71461038157806355f804b3146103a15780636352211e146103c15780636817c76c146103e157600080fd5b80632eb4a7ab146103165780632f745c591461032c5780633ccfd60b1461034c57806342842e0e1461036157600080fd5b806318160ddd116101c157806318160ddd146102a457806323b872dd146102c35780632b5e3e26146102e35780632db115441461030357600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e366004611f04565b6105f6565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610663565b60405161021f9190612041565b34801561025657600080fd5b5061026a610265366004611eec565b6106f5565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d366004611e4d565b610787565b005b3480156102b057600080fd5b506004545b60405190815260200161021f565b3480156102cf57600080fd5b506102a26102de366004611d03565b61089f565b3480156102ef57600080fd5b506102a26102fe366004611e4d565b6108d0565b6102a2610311366004611eec565b6108e6565b34801561032257600080fd5b506102b5600c5481565b34801561033857600080fd5b506102b5610347366004611e4d565b610a06565b34801561035857600080fd5b506102a2610ad1565b34801561036d57600080fd5b506102a261037c366004611d03565b610b05565b34801561038d57600080fd5b506102b561039c366004611eec565b610b20565b3480156103ad57600080fd5b506102a26103bc366004611f3c565b610bdb565b3480156103cd57600080fd5b5061026a6103dc366004611eec565b610bef565b3480156103ed57600080fd5b506102b560095481565b34801561040357600080fd5b506102b5610412366004611cb7565b610c03565b34801561042357600080fd5b506102a2610cd4565b34801561043857600080fd5b506102a2610447366004611eec565b610ce8565b34801561045857600080fd5b506007546001600160a01b031661026a565b34801561047657600080fd5b5061023d610cf5565b34801561048b57600080fd5b506102a261049a366004611e13565b610d04565b3480156104ab57600080fd5b506102a26104ba366004611d3e565b610dc9565b6102a26104cd366004611e76565b610e01565b3480156104de57600080fd5b5061023d6104ed366004611eec565b610f67565b3480156104fe57600080fd5b506102a261102f565b34801561051357600080fd5b506102a2610522366004611eec565b61104b565b34801561053357600080fd5b506102b5611e6181565b34801561054957600080fd5b50610213610558366004611cd1565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561059257600080fd5b506102b560085481565b3480156105a857600080fd5b506102a26105b7366004611cb7565b611058565b3480156105c857600080fd5b506102a26105d7366004611eec565b6110ce565b3480156105e857600080fd5b50600a546102139060ff1681565b60006001600160e01b031982166380ac58cd60e01b148061062757506001600160e01b03198216635b5e139f60e01b145b8061064257506001600160e01b0319821663780e9d6360e01b145b8061065d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546106729061218b565b80601f016020809104026020016040519081016040528092919081815260200182805461069e9061218b565b80156106eb5780601f106106c0576101008083540402835291602001916106eb565b820191906000526020600020905b8154815290600101906020018083116106ce57829003601f168201915b5050505050905090565b6000610702826004541190565b61076b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732315073693a20617070726f76656420717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061079282610bef565b9050806001600160a01b0316836001600160a01b031614156108025760405162461bcd60e51b8152602060048201526024808201527f4552433732315073693a20617070726f76616c20746f2063757272656e74206f6044820152633bb732b960e11b6064820152608401610762565b336001600160a01b038216148061081e575061081e8133610558565b6108905760405162461bcd60e51b815260206004820152603b60248201527f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460448201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c00000000006064820152608401610762565b61089a83836110db565b505050565b6108a93382611149565b6108c55760405162461bcd60e51b8152600401610762906120a9565b61089a838383611238565b6108d8611424565b6108e2828261147e565b5050565b600a5460ff166109385760405162461bcd60e51b815260206004820181905260248201527f466f626f204f473a205075626c6963206d696e74206973206e6f74206f70656e6044820152606401610762565b611e618161094560045490565b61094f91906120fd565b111561099d5760405162461bcd60e51b815260206004820152601a60248201527f466f626f204f473a20457863656564206d617820737570706c790000000000006044820152606401610762565b806009546109ab9190612129565b34146109f95760405162461bcd60e51b815260206004820152601c60248201527f466f626f204f473a20496e73756666696369656e7420616d6f756e74000000006044820152606401610762565b610a03338261147e565b50565b60008060005b600454811015610a7c57610a21816004541190565b8015610a465750610a3181610bef565b6001600160a01b0316856001600160a01b0316145b15610a6a5783821415610a5c57915061065d9050565b81610a66816121c6565b9250505b80610a74816121c6565b915050610a0c565b5060405162461bcd60e51b8152602060048201526024808201527f4552433732315073693a206f776e657220696e646578206f7574206f6620626f604482015263756e647360e01b6064820152608401610762565b610ad9611424565b60405133904780156108fc02916000818181858888f19350505050158015610a03573d6000803e3d6000fd5b61089a83838360405180602001604052806000815250610dc9565b6000610b2b60045490565b8210610b875760405162461bcd60e51b815260206004820152602560248201527f4552433732315073693a20676c6f62616c20696e646578206f7574206f6620626044820152646f756e647360d81b6064820152608401610762565b6000805b600454811015610bd457610ba0816004541190565b15610bc25783821415610bb4579392505050565b81610bbe816121c6565b9250505b80610bcc816121c6565b915050610b8b565b5050919050565b610be3611424565b61089a600b8383611c02565b600080610bfb83611498565b509392505050565b60006001600160a01b038216610c715760405162461bcd60e51b815260206004820152602d60248201527f4552433732315073693a2062616c616e636520717565727920666f722074686560448201526c207a65726f206164647265737360981b6064820152608401610762565b6000805b600454811015610ccd57610c8a816004541190565b15610cbd57610c9881610bef565b6001600160a01b0316846001600160a01b03161415610cbd57610cba826121c6565b91505b610cc6816121c6565b9050610c75565b5092915050565b610cdc611424565b610ce66000611531565b565b610cf0611424565b600c55565b6060600280546106729061218b565b6001600160a01b038216331415610d5d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732315073693a20617070726f766520746f2063616c6c6572000000006044820152606401610762565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610dd33383611149565b610def5760405162461bcd60e51b8152600401610762906120a9565b610dfb84848484611583565b50505050565b600c546040516bffffffffffffffffffffffff193360601b16602082015260348101839052610e4d918591859190605401604051602081830303815290604052805190602001206115b8565b610e925760405162461bcd60e51b81526020600482015260166024820152752337b1379027a39d1024b73b30b634b210383937b7b360511b6044820152606401610762565b336000908152600d602052604090205460ff1615610ef25760405162461bcd60e51b815260206004820152601760248201527f466f626f204f473a20416c7265616479206d696e7465640000000000000000006044820152606401610762565b6008543414610f435760405162461bcd60e51b815260206004820152601c60248201527f466f626f204f473a20496e73756666696369656e7420616d6f756e74000000006044820152606401610762565b336000818152600d60205260409020805460ff1916600117905561089a908261147e565b6060610f74826004541190565b610fd35760405162461bcd60e51b815260206004820152602a60248201527f4552433732315073693a2055524920717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610762565b6000610fdd6115d0565b90506000815111610ffd5760405180602001604052806000815250611028565b80611007846115df565b604051602001611018929190611fd5565b6040516020818303038152906040525b9392505050565b611037611424565b600a805460ff19811660ff90911615179055565b611053611424565b600855565b611060611424565b6001600160a01b0381166110c55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610762565b610a0381611531565b6110d6611424565b600955565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061111082610bef565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611156826004541190565b6111ba5760405162461bcd60e51b815260206004820152602f60248201527f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610762565b60006111c583610bef565b9050806001600160a01b0316846001600160a01b031614806112005750836001600160a01b03166111f5846106f5565b6001600160a01b0316145b8061123057506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b60008061124483611498565b91509150846001600160a01b0316826001600160a01b0316146112be5760405162461bcd60e51b815260206004820152602c60248201527f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160448201526b3a1034b9903737ba1037bbb760a11b6064820152608401610762565b6001600160a01b0384166113245760405162461bcd60e51b815260206004820152602760248201527f4552433732315073693a207472616e7366657220746f20746865207a65726f206044820152666164647265737360c81b6064820152608401610762565b61132f6000846110db565b600061133c8460016120fd565b600881901c600090815260208190526040902054909150600160ff1b60ff83161c1615801561136c575060045481105b156113a257600081815260036020526040812080546001600160a01b0319166001600160a01b0389161790556113a290826116f9565b600084815260036020526040902080546001600160a01b0319166001600160a01b0387161790558184146113db576113db6000856116f9565b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6007546001600160a01b03163314610ce65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610762565b6108e2828260405180602001604052806000815250611725565b6000806114a6836004541190565b6115075760405162461bcd60e51b815260206004820152602c60248201527f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610762565b61151083611740565b6000818152600360205260409020546001600160a01b031694909350915050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61158e848484611238565b61159c84848460018561174c565b610dfb5760405162461bcd60e51b815260040161076290612054565b6000826115c686868561188f565b1495945050505050565b6060600b80546106729061218b565b6060816116035750506040805180820190915260018152600360fc1b602082015290565b8160005b811561162d5780611617816121c6565b91506116269050600a83612115565b9150611607565b60008167ffffffffffffffff81111561165657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611680576020820181803683370190505b5090505b841561123057611695600183612148565b91506116a2600a866121e1565b6116ad9060306120fd565b60f81b8183815181106116d057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506116f2600a86612115565b9450611684565b600881901c600090815260209290925260409091208054600160ff1b60ff9093169290921c9091179055565b60045461173284846118e9565b61159c60008583868661174c565b600061065d8183611a4e565b60006001600160a01b0385163b1561188257506001835b61176d84866120fd565b81101561187c57604051630a85bd0160e11b81526001600160a01b0387169063150b7a02906117a69033908b9086908990600401612004565b602060405180830381600087803b1580156117c057600080fd5b505af19250505080156117f0575060408051601f3d908101601f191682019092526117ed91810190611f20565b60015b61184a573d80801561181e576040519150601f19603f3d011682016040523d82523d6000602084013e611823565b606091505b5080516118425760405162461bcd60e51b815260040161076290612054565b805181602001fd5b82801561186757506001600160e01b03198116630a85bd0160e11b145b92505080611874816121c6565b915050611763565b50611886565b5060015b95945050505050565b600081815b848110156118e0576118cc828787848181106118c057634e487b7160e01b600052603260045260246000fd5b90506020020135611b46565b9150806118d8816121c6565b915050611894565b50949350505050565b600454816119475760405162461bcd60e51b815260206004820152602560248201527f4552433732315073693a207175616e74697479206d7573742062652067726561604482015264074657220360dc1b6064820152608401610762565b6001600160a01b0383166119a95760405162461bcd60e51b815260206004820152602360248201527f4552433732315073693a206d696e7420746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610762565b81600460008282546119bb91906120fd565b9091555050600081815260036020526040812080546001600160a01b0319166001600160a01b0386161790556119f190826116f9565b805b6119fd83836120fd565b811015610dfb5760405181906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480611a46816121c6565b9150506119f3565b600881901c60008181526020849052604081205490919060ff808516919082181c8015611a9057611a7e81611b72565b60ff168203600884901b179350611b3d565b60008311611afd5760405162461bcd60e51b815260206004820152603460248201527f4269744d6170733a205468652073657420626974206265666f7265207468652060448201527334b73232bc103237b2b9b713ba1032bc34b9ba1760611b6064820152608401610762565b506000199091016000818152602086905260409020549091908015611b3857611b2581611b72565b60ff0360ff16600884901b179350611b3d565b611a90565b50505092915050565b6000818310611b62576000828152602084905260409020611028565b5060009182526020526040902090565b6000604051806101200160405280610100815260200161224e610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff611bbb85611bea565b02901c81518110611bdc57634e487b7160e01b600052603260045260246000fd5b016020015160f81c92915050565b6000808211611bf857600080fd5b5060008190031690565b828054611c0e9061218b565b90600052602060002090601f016020900481019282611c305760008555611c76565b82601f10611c495782800160ff19823516178555611c76565b82800160010185558215611c76579182015b82811115611c76578235825591602001919060010190611c5b565b50611c82929150611c86565b5090565b5b80821115611c825760008155600101611c87565b80356001600160a01b0381168114611cb257600080fd5b919050565b600060208284031215611cc8578081fd5b61102882611c9b565b60008060408385031215611ce3578081fd5b611cec83611c9b565b9150611cfa60208401611c9b565b90509250929050565b600080600060608486031215611d17578081fd5b611d2084611c9b565b9250611d2e60208501611c9b565b9150604084013590509250925092565b60008060008060808587031215611d53578081fd5b611d5c85611c9b565b9350611d6a60208601611c9b565b925060408501359150606085013567ffffffffffffffff80821115611d8d578283fd5b818701915087601f830112611da0578283fd5b813581811115611db257611db2612221565b604051601f8201601f19908116603f01168101908382118183101715611dda57611dda612221565b816040528281528a6020848701011115611df2578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215611e25578182fd5b611e2e83611c9b565b915060208301358015158114611e42578182fd5b809150509250929050565b60008060408385031215611e5f578182fd5b611e6883611c9b565b946020939093013593505050565b600080600060408486031215611e8a578283fd5b833567ffffffffffffffff80821115611ea1578485fd5b818601915086601f830112611eb4578485fd5b813581811115611ec2578586fd5b8760208260051b8501011115611ed6578586fd5b6020928301989097509590910135949350505050565b600060208284031215611efd578081fd5b5035919050565b600060208284031215611f15578081fd5b813561102881612237565b600060208284031215611f31578081fd5b815161102881612237565b60008060208385031215611f4e578182fd5b823567ffffffffffffffff80821115611f65578384fd5b818501915085601f830112611f78578384fd5b813581811115611f86578485fd5b866020828501011115611f97578485fd5b60209290920196919550909350505050565b60008151808452611fc181602086016020860161215f565b601f01601f19169290920160200192915050565b60008351611fe781846020880161215f565b835190830190611ffb81836020880161215f565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061203790830184611fa9565b9695505050505050565b6020815260006110286020830184611fa9565b60208082526035908201527f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260408201527418a932b1b2b4bb32b91034b6b83632b6b2b73a32b960591b606082015260800190565b60208082526034908201527f4552433732315073693a207472616e736665722063616c6c6572206973206e6f6040820152731d081bdddb995c881b9bdc88185c1c1c9bdd995960621b606082015260800190565b60008219821115612110576121106121f5565b500190565b6000826121245761212461220b565b500490565b6000816000190483118215151615612143576121436121f5565b500290565b60008282101561215a5761215a6121f5565b500390565b60005b8381101561217a578181015183820152602001612162565b83811115610dfb5750506000910152565b600181811c9082168061219f57607f821691505b602082108114156121c057634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156121da576121da6121f5565b5060010190565b6000826121f0576121f061220b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610a0357600080fdfe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a2646970667358221220f9049030e2d89eb63536be45786d9f17aad0d2d44198fb6c6b2c9e9de85db88764736f6c63430008040033
Deployed Bytecode
0x6080604052600436106101ee5760003560e01c806370a082311161010d578063c87b56dd116100a0578063e985e9c51161006f578063e985e9c51461053d578063ed2bc3f514610586578063f2fde38b1461059c578063f4a0a528146105bc578063fabc4d5d146105dc57600080fd5b8063c87b56dd146104d2578063cda8d0ed146104f2578063d2ec285614610507578063d5abeb011461052757600080fd5b806395d89b41116100dc57806395d89b411461046a578063a22cb4651461047f578063b88d4fde1461049f578063c30bf318146104bf57600080fd5b806370a08231146103f7578063715018a6146104175780637cb647591461042c5780638da5cb5b1461044c57600080fd5b80632eb4a7ab116101855780634f6ccce7116101545780634f6ccce71461038157806355f804b3146103a15780636352211e146103c15780636817c76c146103e157600080fd5b80632eb4a7ab146103165780632f745c591461032c5780633ccfd60b1461034c57806342842e0e1461036157600080fd5b806318160ddd116101c157806318160ddd146102a457806323b872dd146102c35780632b5e3e26146102e35780632db115441461030357600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e366004611f04565b6105f6565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610663565b60405161021f9190612041565b34801561025657600080fd5b5061026a610265366004611eec565b6106f5565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d366004611e4d565b610787565b005b3480156102b057600080fd5b506004545b60405190815260200161021f565b3480156102cf57600080fd5b506102a26102de366004611d03565b61089f565b3480156102ef57600080fd5b506102a26102fe366004611e4d565b6108d0565b6102a2610311366004611eec565b6108e6565b34801561032257600080fd5b506102b5600c5481565b34801561033857600080fd5b506102b5610347366004611e4d565b610a06565b34801561035857600080fd5b506102a2610ad1565b34801561036d57600080fd5b506102a261037c366004611d03565b610b05565b34801561038d57600080fd5b506102b561039c366004611eec565b610b20565b3480156103ad57600080fd5b506102a26103bc366004611f3c565b610bdb565b3480156103cd57600080fd5b5061026a6103dc366004611eec565b610bef565b3480156103ed57600080fd5b506102b560095481565b34801561040357600080fd5b506102b5610412366004611cb7565b610c03565b34801561042357600080fd5b506102a2610cd4565b34801561043857600080fd5b506102a2610447366004611eec565b610ce8565b34801561045857600080fd5b506007546001600160a01b031661026a565b34801561047657600080fd5b5061023d610cf5565b34801561048b57600080fd5b506102a261049a366004611e13565b610d04565b3480156104ab57600080fd5b506102a26104ba366004611d3e565b610dc9565b6102a26104cd366004611e76565b610e01565b3480156104de57600080fd5b5061023d6104ed366004611eec565b610f67565b3480156104fe57600080fd5b506102a261102f565b34801561051357600080fd5b506102a2610522366004611eec565b61104b565b34801561053357600080fd5b506102b5611e6181565b34801561054957600080fd5b50610213610558366004611cd1565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561059257600080fd5b506102b560085481565b3480156105a857600080fd5b506102a26105b7366004611cb7565b611058565b3480156105c857600080fd5b506102a26105d7366004611eec565b6110ce565b3480156105e857600080fd5b50600a546102139060ff1681565b60006001600160e01b031982166380ac58cd60e01b148061062757506001600160e01b03198216635b5e139f60e01b145b8061064257506001600160e01b0319821663780e9d6360e01b145b8061065d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546106729061218b565b80601f016020809104026020016040519081016040528092919081815260200182805461069e9061218b565b80156106eb5780601f106106c0576101008083540402835291602001916106eb565b820191906000526020600020905b8154815290600101906020018083116106ce57829003601f168201915b5050505050905090565b6000610702826004541190565b61076b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732315073693a20617070726f76656420717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061079282610bef565b9050806001600160a01b0316836001600160a01b031614156108025760405162461bcd60e51b8152602060048201526024808201527f4552433732315073693a20617070726f76616c20746f2063757272656e74206f6044820152633bb732b960e11b6064820152608401610762565b336001600160a01b038216148061081e575061081e8133610558565b6108905760405162461bcd60e51b815260206004820152603b60248201527f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460448201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c00000000006064820152608401610762565b61089a83836110db565b505050565b6108a93382611149565b6108c55760405162461bcd60e51b8152600401610762906120a9565b61089a838383611238565b6108d8611424565b6108e2828261147e565b5050565b600a5460ff166109385760405162461bcd60e51b815260206004820181905260248201527f466f626f204f473a205075626c6963206d696e74206973206e6f74206f70656e6044820152606401610762565b611e618161094560045490565b61094f91906120fd565b111561099d5760405162461bcd60e51b815260206004820152601a60248201527f466f626f204f473a20457863656564206d617820737570706c790000000000006044820152606401610762565b806009546109ab9190612129565b34146109f95760405162461bcd60e51b815260206004820152601c60248201527f466f626f204f473a20496e73756666696369656e7420616d6f756e74000000006044820152606401610762565b610a03338261147e565b50565b60008060005b600454811015610a7c57610a21816004541190565b8015610a465750610a3181610bef565b6001600160a01b0316856001600160a01b0316145b15610a6a5783821415610a5c57915061065d9050565b81610a66816121c6565b9250505b80610a74816121c6565b915050610a0c565b5060405162461bcd60e51b8152602060048201526024808201527f4552433732315073693a206f776e657220696e646578206f7574206f6620626f604482015263756e647360e01b6064820152608401610762565b610ad9611424565b60405133904780156108fc02916000818181858888f19350505050158015610a03573d6000803e3d6000fd5b61089a83838360405180602001604052806000815250610dc9565b6000610b2b60045490565b8210610b875760405162461bcd60e51b815260206004820152602560248201527f4552433732315073693a20676c6f62616c20696e646578206f7574206f6620626044820152646f756e647360d81b6064820152608401610762565b6000805b600454811015610bd457610ba0816004541190565b15610bc25783821415610bb4579392505050565b81610bbe816121c6565b9250505b80610bcc816121c6565b915050610b8b565b5050919050565b610be3611424565b61089a600b8383611c02565b600080610bfb83611498565b509392505050565b60006001600160a01b038216610c715760405162461bcd60e51b815260206004820152602d60248201527f4552433732315073693a2062616c616e636520717565727920666f722074686560448201526c207a65726f206164647265737360981b6064820152608401610762565b6000805b600454811015610ccd57610c8a816004541190565b15610cbd57610c9881610bef565b6001600160a01b0316846001600160a01b03161415610cbd57610cba826121c6565b91505b610cc6816121c6565b9050610c75565b5092915050565b610cdc611424565b610ce66000611531565b565b610cf0611424565b600c55565b6060600280546106729061218b565b6001600160a01b038216331415610d5d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732315073693a20617070726f766520746f2063616c6c6572000000006044820152606401610762565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610dd33383611149565b610def5760405162461bcd60e51b8152600401610762906120a9565b610dfb84848484611583565b50505050565b600c546040516bffffffffffffffffffffffff193360601b16602082015260348101839052610e4d918591859190605401604051602081830303815290604052805190602001206115b8565b610e925760405162461bcd60e51b81526020600482015260166024820152752337b1379027a39d1024b73b30b634b210383937b7b360511b6044820152606401610762565b336000908152600d602052604090205460ff1615610ef25760405162461bcd60e51b815260206004820152601760248201527f466f626f204f473a20416c7265616479206d696e7465640000000000000000006044820152606401610762565b6008543414610f435760405162461bcd60e51b815260206004820152601c60248201527f466f626f204f473a20496e73756666696369656e7420616d6f756e74000000006044820152606401610762565b336000818152600d60205260409020805460ff1916600117905561089a908261147e565b6060610f74826004541190565b610fd35760405162461bcd60e51b815260206004820152602a60248201527f4552433732315073693a2055524920717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610762565b6000610fdd6115d0565b90506000815111610ffd5760405180602001604052806000815250611028565b80611007846115df565b604051602001611018929190611fd5565b6040516020818303038152906040525b9392505050565b611037611424565b600a805460ff19811660ff90911615179055565b611053611424565b600855565b611060611424565b6001600160a01b0381166110c55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610762565b610a0381611531565b6110d6611424565b600955565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061111082610bef565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611156826004541190565b6111ba5760405162461bcd60e51b815260206004820152602f60248201527f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610762565b60006111c583610bef565b9050806001600160a01b0316846001600160a01b031614806112005750836001600160a01b03166111f5846106f5565b6001600160a01b0316145b8061123057506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b60008061124483611498565b91509150846001600160a01b0316826001600160a01b0316146112be5760405162461bcd60e51b815260206004820152602c60248201527f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160448201526b3a1034b9903737ba1037bbb760a11b6064820152608401610762565b6001600160a01b0384166113245760405162461bcd60e51b815260206004820152602760248201527f4552433732315073693a207472616e7366657220746f20746865207a65726f206044820152666164647265737360c81b6064820152608401610762565b61132f6000846110db565b600061133c8460016120fd565b600881901c600090815260208190526040902054909150600160ff1b60ff83161c1615801561136c575060045481105b156113a257600081815260036020526040812080546001600160a01b0319166001600160a01b0389161790556113a290826116f9565b600084815260036020526040902080546001600160a01b0319166001600160a01b0387161790558184146113db576113db6000856116f9565b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6007546001600160a01b03163314610ce65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610762565b6108e2828260405180602001604052806000815250611725565b6000806114a6836004541190565b6115075760405162461bcd60e51b815260206004820152602c60248201527f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610762565b61151083611740565b6000818152600360205260409020546001600160a01b031694909350915050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61158e848484611238565b61159c84848460018561174c565b610dfb5760405162461bcd60e51b815260040161076290612054565b6000826115c686868561188f565b1495945050505050565b6060600b80546106729061218b565b6060816116035750506040805180820190915260018152600360fc1b602082015290565b8160005b811561162d5780611617816121c6565b91506116269050600a83612115565b9150611607565b60008167ffffffffffffffff81111561165657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611680576020820181803683370190505b5090505b841561123057611695600183612148565b91506116a2600a866121e1565b6116ad9060306120fd565b60f81b8183815181106116d057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506116f2600a86612115565b9450611684565b600881901c600090815260209290925260409091208054600160ff1b60ff9093169290921c9091179055565b60045461173284846118e9565b61159c60008583868661174c565b600061065d8183611a4e565b60006001600160a01b0385163b1561188257506001835b61176d84866120fd565b81101561187c57604051630a85bd0160e11b81526001600160a01b0387169063150b7a02906117a69033908b9086908990600401612004565b602060405180830381600087803b1580156117c057600080fd5b505af19250505080156117f0575060408051601f3d908101601f191682019092526117ed91810190611f20565b60015b61184a573d80801561181e576040519150601f19603f3d011682016040523d82523d6000602084013e611823565b606091505b5080516118425760405162461bcd60e51b815260040161076290612054565b805181602001fd5b82801561186757506001600160e01b03198116630a85bd0160e11b145b92505080611874816121c6565b915050611763565b50611886565b5060015b95945050505050565b600081815b848110156118e0576118cc828787848181106118c057634e487b7160e01b600052603260045260246000fd5b90506020020135611b46565b9150806118d8816121c6565b915050611894565b50949350505050565b600454816119475760405162461bcd60e51b815260206004820152602560248201527f4552433732315073693a207175616e74697479206d7573742062652067726561604482015264074657220360dc1b6064820152608401610762565b6001600160a01b0383166119a95760405162461bcd60e51b815260206004820152602360248201527f4552433732315073693a206d696e7420746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610762565b81600460008282546119bb91906120fd565b9091555050600081815260036020526040812080546001600160a01b0319166001600160a01b0386161790556119f190826116f9565b805b6119fd83836120fd565b811015610dfb5760405181906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480611a46816121c6565b9150506119f3565b600881901c60008181526020849052604081205490919060ff808516919082181c8015611a9057611a7e81611b72565b60ff168203600884901b179350611b3d565b60008311611afd5760405162461bcd60e51b815260206004820152603460248201527f4269744d6170733a205468652073657420626974206265666f7265207468652060448201527334b73232bc103237b2b9b713ba1032bc34b9ba1760611b6064820152608401610762565b506000199091016000818152602086905260409020549091908015611b3857611b2581611b72565b60ff0360ff16600884901b179350611b3d565b611a90565b50505092915050565b6000818310611b62576000828152602084905260409020611028565b5060009182526020526040902090565b6000604051806101200160405280610100815260200161224e610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff611bbb85611bea565b02901c81518110611bdc57634e487b7160e01b600052603260045260246000fd5b016020015160f81c92915050565b6000808211611bf857600080fd5b5060008190031690565b828054611c0e9061218b565b90600052602060002090601f016020900481019282611c305760008555611c76565b82601f10611c495782800160ff19823516178555611c76565b82800160010185558215611c76579182015b82811115611c76578235825591602001919060010190611c5b565b50611c82929150611c86565b5090565b5b80821115611c825760008155600101611c87565b80356001600160a01b0381168114611cb257600080fd5b919050565b600060208284031215611cc8578081fd5b61102882611c9b565b60008060408385031215611ce3578081fd5b611cec83611c9b565b9150611cfa60208401611c9b565b90509250929050565b600080600060608486031215611d17578081fd5b611d2084611c9b565b9250611d2e60208501611c9b565b9150604084013590509250925092565b60008060008060808587031215611d53578081fd5b611d5c85611c9b565b9350611d6a60208601611c9b565b925060408501359150606085013567ffffffffffffffff80821115611d8d578283fd5b818701915087601f830112611da0578283fd5b813581811115611db257611db2612221565b604051601f8201601f19908116603f01168101908382118183101715611dda57611dda612221565b816040528281528a6020848701011115611df2578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215611e25578182fd5b611e2e83611c9b565b915060208301358015158114611e42578182fd5b809150509250929050565b60008060408385031215611e5f578182fd5b611e6883611c9b565b946020939093013593505050565b600080600060408486031215611e8a578283fd5b833567ffffffffffffffff80821115611ea1578485fd5b818601915086601f830112611eb4578485fd5b813581811115611ec2578586fd5b8760208260051b8501011115611ed6578586fd5b6020928301989097509590910135949350505050565b600060208284031215611efd578081fd5b5035919050565b600060208284031215611f15578081fd5b813561102881612237565b600060208284031215611f31578081fd5b815161102881612237565b60008060208385031215611f4e578182fd5b823567ffffffffffffffff80821115611f65578384fd5b818501915085601f830112611f78578384fd5b813581811115611f86578485fd5b866020828501011115611f97578485fd5b60209290920196919550909350505050565b60008151808452611fc181602086016020860161215f565b601f01601f19169290920160200192915050565b60008351611fe781846020880161215f565b835190830190611ffb81836020880161215f565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061203790830184611fa9565b9695505050505050565b6020815260006110286020830184611fa9565b60208082526035908201527f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260408201527418a932b1b2b4bb32b91034b6b83632b6b2b73a32b960591b606082015260800190565b60208082526034908201527f4552433732315073693a207472616e736665722063616c6c6572206973206e6f6040820152731d081bdddb995c881b9bdc88185c1c1c9bdd995960621b606082015260800190565b60008219821115612110576121106121f5565b500190565b6000826121245761212461220b565b500490565b6000816000190483118215151615612143576121436121f5565b500290565b60008282101561215a5761215a6121f5565b500390565b60005b8381101561217a578181015183820152602001612162565b83811115610dfb5750506000910152565b600181811c9082168061219f57607f821691505b602082108114156121c057634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156121da576121da6121f5565b5060010190565b6000826121f0576121f061220b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610a0357600080fdfe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a2646970667358221220f9049030e2d89eb63536be45786d9f17aad0d2d44198fb6c6b2c9e9de85db88764736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.