0xCee349e3c7bD21d9a5F570D640f691930E5631b3
Sponsored
Sponsored
Sponsored
Sponsored
Source Code
- Token Approvals Beta
- Validate Account Balance Check Previous Balance
- Update Name Tag or Label
- Report/Flag Address
Overview
ETH Balance
0 ETH
Eth Value
$0.00
More Info
Private Name Tags
Add
ContractCreator
Pukenza: Deployer at txn 0xf5247e82a05177689dee982c4656dbed944885aa549c75289d0fb6e30bd89869
TokenTracker
DegenArtClub (DAC)
Multichain Info
$0 (Multichain Portfolio)
No addresses found
- Transactions
- Internal Transactions
- Token Transfers (ERC-20)
- Contract
- Events
- Analytics
- Multichain Portfolio
- CardsNew
Advanced Filter
- Filter by Tx Type:
- Tx
- Internal Tx
- ERC-20
Latest 25 from a total of 1,276 transactions
- View Completed Txns
- View Pending Txns
- View Failed Txns
- View Outgoing Txns
- View Incoming Txns
- View Contract Creation
Transaction Hash | Method | Block | From | To | Value | ||||
---|---|---|---|---|---|---|---|---|---|
0xe1135ab10b602040c04a3575e72dc7e1af93bdfefb9cefccdc8823d0317b5d44 | Set Approval For... | 19474088 | 110 days ago | 0x5f7ACa5f...B208D949c | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00065917 | |
0x18ef1627aca62b90635ad8cf5395a78b25c76dd4331559cae611ff1ffd94f4d7 | Set Approval For... | 19331065 | 130 days ago | buymorenfts.eth | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00233958 | |
0x705e42540e50cf75cef9b73df8a02d1b9e3f2e52f9d40ff69b9c8781339dc0b9 | Safe Transfer Fr... | 19328227 | 130 days ago | 0x840e56A9...7F8E65061 | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00311096 | |
0xabd4c5a766892c6eeaf02fecd5b70c9485748800c5cc24ab40fc6ed797ff9caa | Set Approval For... | 19100614 | 162 days ago | ahustle.eth | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00045625 | |
0x3ad60cdf2a1a8e5abb7aa19a884ce2fd1dcba31df619500118b283755e76123f | Transfer From | 19090172 | 164 days ago | 0xd081AB2e...93d399A32 | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00112755 | |
0xcc02711da3ee1790c284c5de48635dd01b25d11b9407345eef4e3333f7d71feb | Transfer From | 19090172 | 164 days ago | 0xd081AB2e...93d399A32 | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.0012609 | |
0x4965b37a7aef52ae280214d17e2dcb222fa46128d17f4634d1ad3e19ae6c37d0 | Transfer From | 19090172 | 164 days ago | 0xd081AB2e...93d399A32 | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00173596 | |
0x16c9c69d57defdf30f8a5dc0d0a44c966d3182659e998504aa2ea4cf44ecb0de | Set Approval For... | 19063534 | 167 days ago | 0x840e56A9...7F8E65061 | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00095386 | |
0x19018bb3accefecfb004bd898588cd8cefb793c584a79752bec3b65b100547f4 | Set Approval For... | 19063377 | 167 days ago | 0x012B8478...3Fa5DFf03 | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00095964 | |
0x4e2e7e427200683f11df732a03ee1bfc3f4f5b07c5b9d12f137122c1d9a5ba60 | Set Approval For... | 18965292 | 181 days ago | 0xfD138009...C9d47fA5E | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00099162 | |
0x1f783b30da5b07aef556325195eea58392115eebb0012ce7a65888905b85ea24 | Set Approval For... | 18893057 | 191 days ago | gamblinginspector.eth | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.0011186 | |
0x6bfbd974fd2b98c23b77e1bed51606c0a797d855d6c40e49acb4d78e8b9b0bd4 | Set Approval For... | 18784058 | 207 days ago | 0x3859bd7D...B8804d2Df | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00180137 | |
0x07655029730d4b3dae2adef2a9d23525f5324f001477f393322e68cb3b5c3fd3 | Set Approval For... | 18535403 | 241 days ago | 0x65406499...019c89686 | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00542711 | |
0x0c9e934767af189362a244b08a846c6e1073b3386e5f970e9dc4944fc27ff3c7 | Set Approval For... | 18297016 | 275 days ago | cycycy.eth | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00031116 | |
0xf9e310bfa4468dd00818a0c923607ec483d04f373ff08f10a973a05acbf20557 | Set Approval For... | 18246105 | 282 days ago | 0xC33DA4E7...46ADa41cc | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00031479 | |
0x064e4784a0efff5ea5dce1980fbf54d2aa9f5e9d59047758c05451b13a310f5f | Transfer From | 18246038 | 282 days ago | 0x5f7ACa5f...B208D949c | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00030472 | |
0xd470c4ce1875febf3a10d476a9732aa44fc5f224ea45c284df9b07ae3ffae50b | Transfer From | 18246035 | 282 days ago | 0x5f7ACa5f...B208D949c | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00033398 | |
0x5fa51b3ced62ae4c84af59347c243dfc62631e1f43ccea6a82e8fed1e9e8a659 | Set Approval For... | 18244100 | 282 days ago | 0x5f7ACa5f...B208D949c | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00039315 | |
0xaaa527b256b4de0f88bb247490a7a25ed0cdd2d6ee0790140088245bf65e1b1f | Set Approval For... | 18210744 | 287 days ago | 0x5f7ACa5f...B208D949c | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00018157 | |
0xde5cfb4ed210591bb8e39ea5af4b660e06caeadf020dbc7308e09d9f9f20d081 | Set Approval For... | 18210743 | 287 days ago | 0x5f7ACa5f...B208D949c | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.0001824 | |
0x07dc619ca051b59cf506ed62390ae7e591a9441507036e6f7f197afd633d3d28 | Set Approval For... | 18045951 | 310 days ago | 0x5d1477AE...c37906D3f | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00049263 | |
0xc819206e0634e285d67214f94adf743b0e508625ae1bb5eaa28ea37a3f3718c9 | Safe Transfer Fr... | 17917229 | 328 days ago | anonymeta.eth | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.0011215 | |
0x4270bbe562718ddc1c5b266d0fe386051bd95b64bd8a885312c4d857a40022a8 | Safe Transfer Fr... | 17917225 | 328 days ago | anonymeta.eth | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00161262 | |
0xf83cf97af18b38e610b7a26c28b4528bcc3048fc616613e7835a2feb4c4e9413 | Set Approval For... | 17812159 | 343 days ago | 0x1x2x.eth | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00067932 | |
0x3bfe0659589d85d51f790b2487f8f92f6b634225a2fb06227b4649e1c5c0e7e7 | Set Approval For... | 17674831 | 362 days ago | f5enter.eth | IN | 0xCee349e3...30E5631b3 | 0 ETH | 0.00035886 |
View all transactions
Latest 2 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
0x7bfaf38fef9aee2445b859a20cded6a56cdb7d33221cba6b0d32338c42f377cb | 14832662 | 776 days ago | 0xCee349e3...30E5631b3 | Pukenza: Deployer | 20.48 ETH | |
0x785d4e1bcadf8c11c2e8ace29490c425cb5e37f9d7763963886f01bc0b6c9561 | 14086541 | 893 days ago | 0xCee349e3...30E5631b3 | Pukenza: Deployer | 10.24 ETH |
Loading...
Loading
- Code
- Read Contract
- Write Contract
Contract Source Code Verified (Exact Match)
Contract Name:
DegenArtClub
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
- Blockscan IDE
- 🤖 Code ReaderBeta
- Remix IDE
- Similar
- Sol2Uml
- Submit Audit
- Compare
File 1 of 13 : dac.sol
// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import "@openzeppelin/contracts/access/Ownable.sol";import "@openzeppelin/contracts/token/ERC721/ERC721.sol";import "@openzeppelin/contracts/security/ReentrancyGuard.sol";import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";abstract contract Parent { function ownerOf(uint256 tokenId) public virtual view returns (address); function tokenOfOwnerByIndex(address owner, uint256 index) public virtual view returns (uint256); function balanceOf(address owner) external virtual view returns (uint256 balance);}contract DegenArtClub is ReentrancyGuard, ERC721, Ownable { using Strings for uint256; Parent private parent; struct Project { string name; string description; uint256 pricePerTokenInWei; uint256 invocations; uint256 maxInvocations; mapping(uint256 => string) scripts; uint256 scriptCount; bool isSaleActive; bool isClaimActive; string communityHash; string traitScript; string provenance; bytes32 merkleRoot; bool isAllowListActive; string projectBaseURI; mapping(address => uint) _allowListNumMinted; } mapping(uint256 => string) libraryScripts; uint256 public libraryScriptCount; mapping(uint256 => bytes32[]) internal tokenSeeds; string private _baseURIextended; uint256 constant ONE_MILLION = 1_000_000; mapping(uint256 => Project) projects; mapping(uint256 => uint256) public tokenIdToProjectId; uint256 public nextProjectId = 1; uint public constant MAX_PUBLIC_MINT = 3; uint public constant MAX_ALLOWLIST_MINT = 1; uint256 public immutable PARENT_SUPPLY; constructor(address parentAddress, uint _parentSupply) ERC721('DegenArtClub', 'DAC') { parent = Parent(parentAddress); PARENT_SUPPLY = _parentSupply; } function _claim(uint256 _projectId, uint256 startingIndex, uint256 numberOfTokens) internal { require(projects[_projectId].isClaimActive, 'Claim must be active to mint tokens'); require(numberOfTokens > 0, "Must claim at least one token."); uint balance = parent.balanceOf(msg.sender); require(balance >= numberOfTokens, "Insufficient parent tokens."); require(balance >= startingIndex + numberOfTokens, "Insufficient parent tokens."); for (uint i = 0; i < balance && i < numberOfTokens; i++) { uint parentTokenId = parent.tokenOfOwnerByIndex(msg.sender, i + startingIndex); uint256 tokenId = (_projectId * ONE_MILLION) + parentTokenId; if (!_exists(tokenId)) { _mintToken(msg.sender, tokenId, _projectId); tokenIdToProjectId[tokenId] = _projectId; } } } function claim(uint256 _projectId, uint256 startingIndex, uint256 numberOfTokens) external nonReentrant callerIsUser{ _claim(_projectId, startingIndex, numberOfTokens); } function claimAll(uint256 _projectId) external nonReentrant callerIsUser{ _claim(_projectId, 0, parent.balanceOf(msg.sender)); } function claimByTokenIds(uint256 _projectId, uint256[] calldata _parentTokenIds) external nonReentrant callerIsUser{ require(projects[_projectId].isClaimActive, 'Claim must be active to mint tokens'); require(_parentTokenIds.length > 0, "Must claim at least one token."); for (uint i = 0; i < _parentTokenIds.length; i++) { require(parent.ownerOf(_parentTokenIds[i]) == msg.sender, "Must own all parent tokens."); if (!_exists(_parentTokenIds[i])) { uint256 tokenId = (_projectId * ONE_MILLION) + _parentTokenIds[i]; _mintToken(msg.sender, tokenId, _projectId); tokenIdToProjectId[tokenId] = _projectId; } } } function mintAllowList(uint256 _projectId, uint numberOfTokens, bytes32[] memory merkleProof) external payable nonReentrant callerIsUser{ require(projects[_projectId].isAllowListActive, "Allow list is not active"); require(onProjectAllowList(_projectId, msg.sender, merkleProof), "Not on allow list"); require(numberOfTokens <= MAX_ALLOWLIST_MINT - projects[_projectId]._allowListNumMinted[msg.sender], "Exceeded max available to purchase"); require(projects[_projectId].invocations + numberOfTokens <= projects[_projectId].maxInvocations, "Purchase would exceed max tokens"); require(projects[_projectId].pricePerTokenInWei * numberOfTokens <= msg.value, "Ether value sent is not correct"); projects[_projectId]._allowListNumMinted[msg.sender] += numberOfTokens; for (uint i = 0; i < numberOfTokens; i++) { uint256 tokenId = (_projectId * ONE_MILLION) + projects[_projectId].invocations; projects[_projectId].invocations = projects[_projectId].invocations + 1; _mintToken(msg.sender, tokenId, _projectId); tokenIdToProjectId[tokenId] = _projectId; } } function mint(uint256 _projectId, uint256 numberOfTokens) external payable nonReentrant callerIsUser{ require(projects[_projectId].isSaleActive, 'Sale must be active to mint tokens'); require(numberOfTokens <= MAX_PUBLIC_MINT, 'Exceeded max token purchase'); require( projects[_projectId].invocations + numberOfTokens <= projects[_projectId].maxInvocations, 'Purchase would exceed max tokens' ); require( projects[_projectId].pricePerTokenInWei * numberOfTokens <= msg.value, 'Ether value sent is not correct' ); for (uint256 i = 0; i < numberOfTokens; i++) { uint256 tokenId = (_projectId * ONE_MILLION) + projects[_projectId].invocations; projects[_projectId].invocations = projects[_projectId].invocations + 1; _mintToken(msg.sender, tokenId, _projectId); tokenIdToProjectId[tokenId] = _projectId; } } function _mintToken(address _to, uint256 _tokenId, uint256 _projectId) internal { bytes32 seed = keccak256(abi.encodePacked(_tokenId, projects[_projectId].provenance, projects[_projectId].communityHash)); tokenSeeds[_tokenId].push(seed); _safeMint(_to, _tokenId); } function addProject( uint256 _pricePerTokenInWei, uint256 _mintVolume, string memory _name, string memory _description ) external onlyOwner { uint256 projectId = nextProjectId; projects[projectId].pricePerTokenInWei = _pricePerTokenInWei; projects[projectId].isSaleActive = false; projects[projectId].isClaimActive = false; projects[projectId].isAllowListActive = false; projects[projectId].invocations = PARENT_SUPPLY; projects[projectId].maxInvocations = _mintVolume; projects[projectId].name = _name; projects[projectId].description = _description; nextProjectId = nextProjectId + 1; } function setProjectSaleActive(uint256 _projectId, bool newState) external onlyOwner { projects[_projectId].isSaleActive = newState; } function setProjectClaimActive(uint256 _projectId, bool newState) external onlyOwner { projects[_projectId].isClaimActive = newState; } function setProjectAllowListActive(uint256 _projectId, bool newState) external onlyOwner { projects[_projectId].isAllowListActive = newState; } function setProjectAllowList(uint256 _projectId, bytes32 _merkleRoot) external onlyOwner { projects[_projectId].merkleRoot = _merkleRoot; } function setProjectPricePerTokenInWei(uint256 _projectId, uint256 _pricePerTokenInWei) external onlyOwner { projects[_projectId].pricePerTokenInWei = _pricePerTokenInWei; } function setProjectName(uint256 _projectId, string memory _projectName) external onlyOwner { projects[_projectId].name = _projectName; } function onProjectAllowList(uint256 _projectId, address claimer, bytes32[] memory proof) public view returns(bool){ bytes32 leaf = keccak256(abi.encodePacked(claimer)); return MerkleProof.verify(proof, projects[_projectId].merkleRoot, leaf); } function numAvailableToMint(uint256 _projectId, address claimer, bytes32[] memory proof) public view returns (uint) { if (onProjectAllowList(_projectId, claimer, proof)) { return MAX_ALLOWLIST_MINT - projects[_projectId]._allowListNumMinted[claimer]; } else { return 0; } } function setProjectMaxInvocations(uint256 _projectId, uint256 _maxInvocations) external onlyOwner { require( _maxInvocations > projects[_projectId].invocations, 'You must set max invocations greater than current invocations' ); projects[_projectId].maxInvocations = _maxInvocations; } function addLibraryScript(string memory _script) external onlyOwner { libraryScripts[libraryScriptCount] = _script; libraryScriptCount = libraryScriptCount + 1; } function setLibraryScript(uint256 _scriptId, string memory _script) external onlyOwner { require(_scriptId < libraryScriptCount, "scriptId out of range"); libraryScripts[_scriptId] = _script; } function removeLibraryLastScript() external onlyOwner { require(libraryScriptCount > 0, "there are no scripts to remove"); delete libraryScripts[libraryScriptCount - 1]; libraryScriptCount = libraryScriptCount -1; } function libraryScriptByIndex(uint256 _index) public view returns (string memory) { return libraryScripts[_index]; } function addProjectScript(uint256 _projectId, string memory _script) external onlyOwner { projects[_projectId].scripts[projects[_projectId].scriptCount] = _script; projects[_projectId].scriptCount = projects[_projectId].scriptCount + 1; } function setProjectScript( uint256 _projectId, uint256 _scriptId, string memory _script ) external onlyOwner { require(_scriptId < projects[_projectId].scriptCount, 'scriptId out of range'); projects[_projectId].scripts[_scriptId] = _script; } function setProjectCommunityHash(uint256 _projectId, string memory _projectCommunityHash) external onlyOwner { projects[_projectId].communityHash = _projectCommunityHash; } function projectCommunityHash(uint256 _projectId) public view returns (string memory) { return projects[_projectId].communityHash; } function setProjectProvenanceHash(uint256 _projectId, string memory _provenance) public onlyOwner { projects[_projectId].provenance = _provenance; } function projectProvenanceHash(uint256 _projectId) public view returns (string memory) { return projects[_projectId].provenance; } function setProjectTraitScript(uint256 _projectId, string memory _projectTraitScript) external onlyOwner { projects[_projectId].traitScript = _projectTraitScript; } function projectTraitScript(uint256 _projectId) public view returns (string memory) { return projects[_projectId].traitScript; } function removeProjectLastScript(uint256 _projectId) external onlyOwner { require(projects[_projectId].scriptCount > 0, 'there are no scripts to remove'); delete projects[_projectId].scripts[projects[_projectId].scriptCount - 1]; projects[_projectId].scriptCount = projects[_projectId].scriptCount - 1; } function projectScriptByIndex(uint256 _projectId, uint256 _index) public view returns (string memory) { return projects[_projectId].scripts[_index]; } function setProjectBaseURI(uint256 _projectId, string memory _newBaseURI) external onlyOwner { projects[_projectId].projectBaseURI = _newBaseURI; } function projectBaseURI(uint256 _projectId) public view returns (string memory) { if(bytes(projects[_projectId].projectBaseURI).length > 0) { return projects[_projectId].projectBaseURI; } string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? baseURI: ""; } function projectDetails(uint256 _projectId) public view returns ( string memory projectName, string memory projectDescription, uint256 pricePerTokenInWei, uint256 invocations, uint256 maxInvocations, bool isSaleActive, bool isClaimActive, bool isAllowListActive, uint256 scriptCount ) { projectName = projects[_projectId].name; projectDescription = projects[_projectId].description; pricePerTokenInWei = projects[_projectId].pricePerTokenInWei; invocations = projects[_projectId].invocations; maxInvocations = projects[_projectId].maxInvocations; isSaleActive = projects[_projectId].isSaleActive; isClaimActive = projects[_projectId].isClaimActive; isAllowListActive = projects[_projectId].isAllowListActive; scriptCount = projects[_projectId].scriptCount; } function showTokenSeeds(uint256 _tokenId) public view returns (bytes32[] memory) { return tokenSeeds[_tokenId]; } function isMinted(uint256 tokenId) external view returns (bool) { return _exists(tokenId); } function setBaseURI(string memory baseURI_) external onlyOwner { _baseURIextended = baseURI_; } function _baseURI() internal view virtual override returns (string memory) { return _baseURIextended; } function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId), "Token ID does not exist"); if(bytes(projects[tokenIdToProjectId[_tokenId]].projectBaseURI).length > 0) { return string(abi.encodePacked(projects[tokenIdToProjectId[_tokenId]].projectBaseURI, _tokenId.toString())); } string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, _tokenId.toString())) : ""; } function withdraw() external onlyOwner nonReentrant{ (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; }}
File 2 of 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)pragma solidity ^0.8.0;/** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; }}
File 3 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol)pragma solidity ^0.8.0;/** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; }}
File 4 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)pragma solidity ^0.8.0;import "./IERC721.sol";import "./IERC721Receiver.sol";import "./extensions/IERC721Metadata.sol";import "../../utils/Address.sol";import "../../utils/Context.sol";import "../../utils/Strings.sol";import "../../utils/introspection/ERC165.sol";/** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @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 || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @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), "ERC721Metadata: 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 = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: 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), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_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), "ERC721: 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), "ERC721: 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, _data), "ERC721: 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`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {}}
File 5 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); }}
File 6 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.0 (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; }}
File 7 of 13 : Strings.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)pragma solidity ^0.8.0;/** * @dev String operations. */library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); }}
File 8 of 13 : Context.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.0 (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; }}
File 9 of 13 : Address.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)pragma solidity ^0.8.0;/** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }}
File 10 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.0 (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);}
File 11 of 13 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4);}
File 12 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external;}
File 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.0 (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);}
Settings
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }}
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
- JSON Format
- RAW/Text Format
[{"inputs":[{"internalType":"address","name":"parentAddress","type":"address"},{"internalType":"uint256","name":"_parentSupply","type":"uint256"}],"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":[],"name":"MAX_ALLOWLIST_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PUBLIC_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PARENT_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_script","type":"string"}],"name":"addLibraryScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"},{"internalType":"uint256","name":"_mintVolume","type":"uint256"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_description","type":"string"}],"name":"addProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_script","type":"string"}],"name":"addProjectScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"startingIndex","type":"uint256"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256[]","name":"_parentTokenIds","type":"uint256[]"}],"name":"claimByTokenIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"libraryScriptByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"libraryScriptCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintAllowList","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextProjectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address","name":"claimer","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"numAvailableToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"address","name":"claimer","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"onProjectAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectCommunityHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectDetails","outputs":[{"internalType":"string","name":"projectName","type":"string"},{"internalType":"string","name":"projectDescription","type":"string"},{"internalType":"uint256","name":"pricePerTokenInWei","type":"uint256"},{"internalType":"uint256","name":"invocations","type":"uint256"},{"internalType":"uint256","name":"maxInvocations","type":"uint256"},{"internalType":"bool","name":"isSaleActive","type":"bool"},{"internalType":"bool","name":"isClaimActive","type":"bool"},{"internalType":"bool","name":"isAllowListActive","type":"bool"},{"internalType":"uint256","name":"scriptCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectProvenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"projectScriptByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectTraitScript","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLibraryLastScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"removeProjectLastScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_scriptId","type":"uint256"},{"internalType":"string","name":"_script","type":"string"}],"name":"setLibraryScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setProjectAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"bool","name":"newState","type":"bool"}],"name":"setProjectAllowListActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setProjectBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"bool","name":"newState","type":"bool"}],"name":"setProjectClaimActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectCommunityHash","type":"string"}],"name":"setProjectCommunityHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_maxInvocations","type":"uint256"}],"name":"setProjectMaxInvocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectName","type":"string"}],"name":"setProjectName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"}],"name":"setProjectPricePerTokenInWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_provenance","type":"string"}],"name":"setProjectProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"bool","name":"newState","type":"bool"}],"name":"setProjectSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_scriptId","type":"uint256"},{"internalType":"string","name":"_script","type":"string"}],"name":"setProjectScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_projectTraitScript","type":"string"}],"name":"setProjectTraitScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"showTokenSeeds","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToProjectId","outputs":[{"internalType":"uint256","name":"","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":[{"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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
Decompile Bytecode Switch to Opcodes View
60a06040526001600f553480156200001657600080fd5b5060405162004358380380620043588339810160408190526200003991620001e6565b604080518082018252600c81526b2232b3b2b720b93a21b63ab160a11b60208083019182528351808501909452600384526244414360e81b908401526001600081905582519293926200008d929062000140565b508051620000a390600290602084019062000140565b505050620000c0620000ba620000ea60201b60201c565b620000ee565b600880546001600160a01b0319166001600160a01b0393909316929092179091556080526200025f565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200014e9062000222565b90600052602060002090601f016020900481019282620001725760008555620001bd565b82601f106200018d57805160ff1916838001178555620001bd565b82800160010185558215620001bd579182015b82811115620001bd578251825591602001919060010190620001a0565b50620001cb929150620001cf565b5090565b5b80821115620001cb5760008155600101620001d0565b60008060408385031215620001fa57600080fd5b82516001600160a01b03811681146200021257600080fd5b6020939093015192949293505050565b600181811c908216806200023757607f821691505b602082108114156200025957634e487b7160e01b600052602260045260246000fd5b50919050565b6080516140d662000282600039600081816107ab015261158501526140d66000f3fe6080604052600436106103815760003560e01c806370a08231116101d1578063acad012411610102578063d2fefda1116100a0578063e985e9c51161006f578063e985e9c514610a56578063efa9a9be14610a9f578063f0d5307414610abf578063f2fde38b14610adf57600080fd5b8063d2fefda1146109e0578063db2ff86114610a00578063e0014a9714610a20578063e935b7b114610a4057600080fd5b8063bf5d07c3116100dc578063bf5d07c314610960578063c87b56dd14610980578063ca6bc241146109a0578063d2f6fce6146109c057600080fd5b8063acad01241461090b578063adb0e9e31461092b578063b88d4fde1461094057600080fd5b80638c3c9cdd1161016f57806395d89b411161014957806395d89b4114610896578063a22cb465146108ab578063a423ac4f146108cb578063a875f57f146108eb57600080fd5b80638c3c9cdd146108235780638da5cb5b146108435780638dd91a561461086157600080fd5b806379a801c0116101ab57806379a801c0146107995780637ad38df2146107cd57806385efccd8146107ed5780638a6e6aae1461080d57600080fd5b806370a082311461074f578063715018a61461076f57806372f85d511461078457600080fd5b8063379d04ae116102b65780634b3b248a116102545780636352211e116102235780636352211e146106cd57806365f13097146106ed5780636930fd2a14610702578063697c64f91461072257600080fd5b80634b3b248a1461064d578063500145131461066d57806355f804b31461068d57806361a712b7146106ad57600080fd5b80634186b9a3116102905780634186b9a3146105cd57806342842e0e146105ed57806342bec6d71461060d5780634aff0e2f1461062d57600080fd5b8063379d04ae146105785780633ccfd60b1461059857806340a53c77146105ad57600080fd5b80631928e1be1161032357806323b872dd116102fd57806323b872dd1461050557806326da01001461052557806333c41a901461054557806334281c9d1461056557600080fd5b80631928e1be146104975780631b2ef1ca146104b75780631b689c0b146104ca57600080fd5b8063095ea7b31161035f578063095ea7b3146104155780630d73f08e14610437578063142c61211461045757806316b60bc61461047757600080fd5b806301ffc9a71461038657806306fdde03146103bb578063081812fc146103dd575b600080fd5b34801561039257600080fd5b506103a66103a136600461382a565b610aff565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103d0610b51565b6040516103b29190613cf3565b3480156103e957600080fd5b506103fd6103f8366004613899565b610be3565b6040516001600160a01b0390911681526020016103b2565b34801561042157600080fd5b506104356104303660046137fe565b610c70565b005b34801561044357600080fd5b506104356104523660046139a3565b610d86565b34801561046357600080fd5b506103d0610472366004613899565b610dda565b34801561048357600080fd5b506103d0610492366004613899565b610e7f565b3480156104a357600080fd5b506104356104b23660046139e8565b610e9f565b6104356104c53660046139c6565b610eee565b3480156104d657600080fd5b506104f76104e5366004613899565b600e6020526000908152604090205481565b6040519081526020016103b2565b34801561051157600080fd5b50610435610520366004613708565b61116f565b34801561053157600080fd5b506104f76105403660046138cb565b6111a0565b34801561055157600080fd5b506103a6610560366004613899565b6111f5565b610435610573366004613a2f565b611200565b34801561058457600080fd5b50610435610593366004613aaf565b611525565b3480156105a457600080fd5b506104356115fd565b3480156105b957600080fd5b506103d06105c8366004613899565b6116e1565b3480156105d957600080fd5b506104356105e83660046139e8565b611701565b3480156105f957600080fd5b50610435610608366004613708565b611793565b34801561061957600080fd5b506104356106283660046139a3565b6117ae565b34801561063957600080fd5b50610435610648366004613864565b6117fb565b34801561065957600080fd5b506104356106683660046139a3565b61185c565b34801561067957600080fd5b50610435610688366004613924565b6118a9565b34801561069957600080fd5b506104356106a8366004613864565b611af8565b3480156106b957600080fd5b506104356106c8366004613a69565b611b39565b3480156106d957600080fd5b506103fd6106e8366004613899565b611beb565b3480156106f957600080fd5b506104f7600381565b34801561070e57600080fd5b5061043561071d366004613899565b611c62565b34801561072e57600080fd5b5061074261073d366004613899565b611d30565b6040516103b29190613caf565b34801561075b57600080fd5b506104f761076a366004613695565b611d91565b34801561077b57600080fd5b50610435611e18565b34801561079057600080fd5b506104f7600181565b3480156107a557600080fd5b506104f77f000000000000000000000000000000000000000000000000000000000000000081565b3480156107d957600080fd5b506104356107e83660046139c6565b611e4e565b3480156107f957600080fd5b506104356108083660046139e8565b611f13565b34801561081957600080fd5b506104f7600a5481565b34801561082f57600080fd5b506103d061083e3660046139c6565b611f62565b34801561084f57600080fd5b506007546001600160a01b03166103fd565b34801561086d57600080fd5b5061088161087c366004613899565b612013565b6040516103b299989796959493929190613d06565b3480156108a257600080fd5b506103d06121b5565b3480156108b757600080fd5b506104356108c63660046137c9565b6121c4565b3480156108d757600080fd5b506103a66108e63660046138cb565b6121cf565b3480156108f757600080fd5b506104356109063660046139c6565b612235565b34801561091757600080fd5b506104356109263660046139e8565b612274565b34801561093757600080fd5b50610435612303565b34801561094c57600080fd5b5061043561095b366004613749565b6123c0565b34801561096c57600080fd5b506103d061097b366004613899565b6123f2565b34801561098c57600080fd5b506103d061099b366004613899565b61240f565b3480156109ac57600080fd5b506104356109bb3660046139c6565b61253f565b3480156109cc57600080fd5b506104356109db3660046139e8565b61257e565b3480156109ec57600080fd5b506104356109fb3660046139e8565b6125cd565b348015610a0c57600080fd5b50610435610a1b366004613899565b61261c565b348015610a2c57600080fd5b506103d0610a3b366004613899565b612717565b348015610a4c57600080fd5b506104f7600f5481565b348015610a6257600080fd5b506103a6610a713660046136cf565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610aab57600080fd5b50610435610aba366004613b1a565b612787565b348015610acb57600080fd5b50610435610ada3660046139e8565b6127d9565b348015610aeb57600080fd5b50610435610afa366004613695565b612822565b60006001600160e01b031982166380ac58cd60e01b1480610b3057506001600160e01b03198216635b5e139f60e01b145b80610b4b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610b6090613fb3565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8c90613fb3565b8015610bd95780601f10610bae57610100808354040283529160200191610bd9565b820191906000526020600020905b815481529060010190602001808311610bbc57829003601f168201915b5050505050905090565b6000610bee826128bd565b610c545760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610c7b82611beb565b9050806001600160a01b0316836001600160a01b03161415610ce95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c4b565b336001600160a01b0382161480610d055750610d058133610a71565b610d775760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c4b565b610d8183836128da565b505050565b6007546001600160a01b03163314610db05760405162461bcd60e51b8152600401610c4b90613e37565b6000918252600d602052604090912060070180549115156101000261ff0019909216919091179055565b6000818152600d60205260409020600a01805460609190610dfa90613fb3565b80601f0160208091040260200160405190810160405280929190818152602001828054610e2690613fb3565b8015610e735780601f10610e4857610100808354040283529160200191610e73565b820191906000526020600020905b815481529060010190602001808311610e5657829003601f168201915b50505050509050919050565b6000818152600d60205260409020600901805460609190610dfa90613fb3565b6007546001600160a01b03163314610ec95760405162461bcd60e51b8152600401610c4b90613e37565b6000828152600d602081815260409092208351610d81939190920191908401906134b3565b60026000541415610f115760405162461bcd60e51b8152600401610c4b90613ebd565b6002600055323314610f355760405162461bcd60e51b8152600401610c4b90613dbd565b6000828152600d602052604090206007015460ff16610fa15760405162461bcd60e51b815260206004820152602260248201527f53616c65206d7573742062652061637469766520746f206d696e7420746f6b656044820152616e7360f01b6064820152608401610c4b565b6003811115610ff25760405162461bcd60e51b815260206004820152601b60248201527f4578636565646564206d617820746f6b656e20707572636861736500000000006044820152606401610c4b565b6000828152600d602052604090206004810154600390910154611016908390613f25565b11156110645760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e736044820152606401610c4b565b6000828152600d60205260409020600201543490611083908390613f51565b11156110d15760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610c4b565b60005b81811015611165576000838152600d60205260408120600301546110fb620f424086613f51565b6111059190613f25565b6000858152600d6020526040902060030154909150611125906001613f25565b6000858152600d6020526040902060030155611142338286612948565b6000908152600e602052604090208390558061115d81613fee565b9150506110d4565b5050600160005550565b61117933826129b7565b6111955760405162461bcd60e51b8152600401610c4b90613e6c565b610d81838383612aa1565b60006111ad8484846121cf565b156111ea576000848152600d602090815260408083206001600160a01b0387168452600e019091529020546111e3906001613f70565b90506111ee565b5060005b9392505050565b6000610b4b826128bd565b600260005414156112235760405162461bcd60e51b8152600401610c4b90613ebd565b60026000553233146112475760405162461bcd60e51b8152600401610c4b90613dbd565b6000838152600d60205260409020600c015460ff166112a85760405162461bcd60e51b815260206004820152601860248201527f416c6c6f77206c697374206973206e6f742061637469766500000000000000006044820152606401610c4b565b6112b38333836121cf565b6112f35760405162461bcd60e51b8152602060048201526011602482015270139bdd081bdb88185b1b1bddc81b1a5cdd607a1b6044820152606401610c4b565b6000838152600d60209081526040808320338452600e0190915290205461131b906001613f70565b8211156113755760405162461bcd60e51b815260206004820152602260248201527f4578636565646564206d617820617661696c61626c6520746f20707572636861604482015261736560f01b6064820152608401610c4b565b6000838152600d602052604090206004810154600390910154611399908490613f25565b11156113e75760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e736044820152606401610c4b565b6000838152600d60205260409020600201543490611406908490613f51565b11156114545760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610c4b565b6000838152600d60209081526040808320338452600e0190915281208054849290611480908490613f25565b90915550600090505b8281101561151a576000848152600d60205260408120600301546114b0620f424087613f51565b6114ba9190613f25565b6000868152600d60205260409020600301549091506114da906001613f25565b6000868152600d60205260409020600301556114f7338287612948565b6000908152600e602052604090208490558061151281613fee565b915050611489565b505060016000555050565b6007546001600160a01b0316331461154f5760405162461bcd60e51b8152600401610c4b90613e37565b600f546000818152600d602090815260409091206002810187905560078101805461ffff19169055600c8101805460ff191690557f000000000000000000000000000000000000000000000000000000000000000060038201556004810186905584516115be928601906134b3565b506000818152600d6020908152604090912083516115e4926001909201918501906134b3565b50600f546115f3906001613f25565b600f555050505050565b6007546001600160a01b031633146116275760405162461bcd60e51b8152600401610c4b90613e37565b6002600054141561164a5760405162461bcd60e51b8152600401610c4b90613ebd565b60026000908155604051339047908381818185875af1925050503d8060008114611690576040519150601f19603f3d011682016040523d82523d6000602084013e611695565b606091505b50509050806116d95760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610c4b565b506001600055565b6000818152600d60205260409020600801805460609190610dfa90613fb3565b6007546001600160a01b0316331461172b5760405162461bcd60e51b8152600401610c4b90613e37565b600a5482106117745760405162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b6044820152606401610c4b565b60008281526009602090815260409091208251610d81928401906134b3565b610d81838383604051806020016040528060008152506123c0565b6007546001600160a01b031633146117d85760405162461bcd60e51b8152600401610c4b90613e37565b6000918252600d6020526040909120600701805460ff1916911515919091179055565b6007546001600160a01b031633146118255760405162461bcd60e51b8152600401610c4b90613e37565b600a5460009081526009602090815260409091208251611847928401906134b3565b50600a54611856906001613f25565b600a5550565b6007546001600160a01b031633146118865760405162461bcd60e51b8152600401610c4b90613e37565b6000918252600d6020526040909120600c01805460ff1916911515919091179055565b600260005414156118cc5760405162461bcd60e51b8152600401610c4b90613ebd565b60026000553233146118f05760405162461bcd60e51b8152600401610c4b90613dbd565b6000838152600d6020526040902060070154610100900460ff166119265760405162461bcd60e51b8152600401610c4b90613df4565b806119735760405162461bcd60e51b815260206004820152601e60248201527f4d75737420636c61696d206174206c65617374206f6e6520746f6b656e2e00006044820152606401610c4b565b60005b8181101561151a5760085433906001600160a01b0316636352211e8585858181106119a3576119a3614049565b905060200201356040518263ffffffff1660e01b81526004016119c891815260200190565b60206040518083038186803b1580156119e057600080fd5b505afa1580156119f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1891906136b2565b6001600160a01b031614611a6e5760405162461bcd60e51b815260206004820152601b60248201527f4d757374206f776e20616c6c20706172656e7420746f6b656e732e00000000006044820152606401610c4b565b611a8f838383818110611a8357611a83614049565b905060200201356128bd565b611ae6576000838383818110611aa757611aa7614049565b90506020020135620f424086611abd9190613f51565b611ac79190613f25565b9050611ad4338287612948565b6000908152600e602052604090208490555b80611af081613fee565b915050611976565b6007546001600160a01b03163314611b225760405162461bcd60e51b8152600401610c4b90613e37565b8051611b3590600c9060208401906134b3565b5050565b6007546001600160a01b03163314611b635760405162461bcd60e51b8152600401610c4b90613e37565b6000838152600d60205260409020600601548210611bbb5760405162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b6044820152606401610c4b565b6000838152600d6020908152604080832085845260050182529091208251611be5928401906134b3565b50505050565b6000818152600360205260408120546001600160a01b031680610b4b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c4b565b60026000541415611c855760405162461bcd60e51b8152600401610c4b90613ebd565b6002600055323314611ca95760405162461bcd60e51b8152600401610c4b90613dbd565b6008546040516370a0823160e01b81523360048201526116d99183916000916001600160a01b0316906370a082319060240160206040518083038186803b158015611cf357600080fd5b505afa158015611d07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d2b91906138b2565b612c41565b6000818152600b6020908152604091829020805483518184028101840190945280845260609392830182828015610e7357602002820191906000526020600020905b815481526020019060010190808311611d725750505050509050919050565b60006001600160a01b038216611dfc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c4b565b506001600160a01b031660009081526004602052604090205490565b6007546001600160a01b03163314611e425760405162461bcd60e51b8152600401610c4b90613e37565b611e4c6000612f03565b565b6007546001600160a01b03163314611e785760405162461bcd60e51b8152600401610c4b90613e37565b6000828152600d60205260409020600301548111611efe5760405162461bcd60e51b815260206004820152603d60248201527f596f75206d75737420736574206d617820696e766f636174696f6e732067726560448201527f61746572207468616e2063757272656e7420696e766f636174696f6e730000006064820152608401610c4b565b6000918252600d602052604090912060040155565b6007546001600160a01b03163314611f3d5760405162461bcd60e51b8152600401610c4b90613e37565b6000828152600d602090815260409091208251610d81926009909201918401906134b3565b6000828152600d602090815260408083208484526005019091529020805460609190611f8d90613fb3565b80601f0160208091040260200160405190810160405280929190818152602001828054611fb990613fb3565b80156120065780601f10611fdb57610100808354040283529160200191612006565b820191906000526020600020905b815481529060010190602001808311611fe957829003601f168201915b5050505050905092915050565b6060806000806000806000806000600d60008b8152602001908152602001600020600001805461204290613fb3565b80601f016020809104026020016040519081016040528092919081815260200182805461206e90613fb3565b80156120bb5780601f10612090576101008083540402835291602001916120bb565b820191906000526020600020905b81548152906001019060200180831161209e57829003601f168201915b50505060008d8152600d602052604090206001018054939c50926120e192509050613fb3565b80601f016020809104026020016040519081016040528092919081815260200182805461210d90613fb3565b801561215a5780601f1061212f5761010080835404028352916020019161215a565b820191906000526020600020905b81548152906001019060200180831161213d57829003601f168201915b50505060009c8d525050600d6020526040909a206002810154600382015460048301546007840154600c8501546006909501549d9f939d929c50909a5060ff8082169a50610100909104811698509092169550909350915050565b606060028054610b6090613fb3565b611b35338383612f55565b6040516bffffffffffffffffffffffff19606084901b166020820152600090819060340160405160208183030381529060405280519060200120905061222c83600d6000888152602001908152602001600020600b015483613024565b95945050505050565b6007546001600160a01b0316331461225f5760405162461bcd60e51b8152600401610c4b90613e37565b6000918252600d602052604090912060020155565b6007546001600160a01b0316331461229e5760405162461bcd60e51b8152600401610c4b90613e37565b6000828152600d6020908152604080832060068101548452600501825290912082516122cc928401906134b3565b506000828152600d60205260409020600601546122ea906001613f25565b6000928352600d60205260409092206006019190915550565b6007546001600160a01b0316331461232d5760405162461bcd60e51b8152600401610c4b90613e37565b6000600a541161237f5760405162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f766500006044820152606401610c4b565b600960006001600a546123929190613f70565b815260200190815260200160002060006123ac9190613537565b6001600a546123bb9190613f70565b600a55565b6123ca33836129b7565b6123e65760405162461bcd60e51b8152600401610c4b90613e6c565b611be58484848461303a565b6000818152600960205260409020805460609190610dfa90613fb3565b606061241a826128bd565b6124665760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20494420646f6573206e6f742065786973740000000000000000006044820152606401610c4b565b6000828152600e60209081526040808320548352600d91829052822001805461248e90613fb3565b905011156124e4576000828152600e60209081526040808320548352600d91829052909120016124bd8361306d565b6040516020016124ce929190613c3b565b6040516020818303038152906040529050919050565b60006124ee61316b565b9050600081511161250e57604051806020016040528060008152506111ee565b806125188461306d565b604051602001612529929190613c0c565b6040516020818303038152906040529392505050565b6007546001600160a01b031633146125695760405162461bcd60e51b8152600401610c4b90613e37565b6000918252600d6020526040909120600b0155565b6007546001600160a01b031633146125a85760405162461bcd60e51b8152600401610c4b90613e37565b6000828152600d602090815260409091208251610d8192600a909201918401906134b3565b6007546001600160a01b031633146125f75760405162461bcd60e51b8152600401610c4b90613e37565b6000828152600d602090815260409091208251610d81926008909201918401906134b3565b6007546001600160a01b031633146126465760405162461bcd60e51b8152600401610c4b90613e37565b6000818152600d60205260409020600601546126a45760405162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f766500006044820152606401610c4b565b6000818152600d602052604081206006810154600590910191906126ca90600190613f70565b815260200190815260200160002060006126e49190613537565b6000818152600d602052604090206006015461270290600190613f70565b6000918252600d602052604090912060060155565b6000818152600d602081905260408220018054606092919061273890613fb3565b9050111561275d576000828152600d60208190526040909120018054610dfa90613fb3565b600061276761316b565b90506000815111610b4b57604051806020016040528060008152506111ee565b600260005414156127aa5760405162461bcd60e51b8152600401610c4b90613ebd565b60026000553233146127ce5760405162461bcd60e51b8152600401610c4b90613dbd565b611165838383612c41565b6007546001600160a01b031633146128035760405162461bcd60e51b8152600401610c4b90613e37565b6000828152600d602090815260409091208251610d81928401906134b3565b6007546001600160a01b0316331461284c5760405162461bcd60e51b8152600401610c4b90613e37565b6001600160a01b0381166128b15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c4b565b6128ba81612f03565b50565b6000908152600360205260409020546001600160a01b0316151590565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061290f82611beb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600d602090815260408083209051612972928692600a81019260089091019101613c57565b60408051601f1981840301815291815281516020928301206000868152600b84529182208054600181018255908352929091209091018190559050611be5848461317a565b60006129c2826128bd565b612a235760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c4b565b6000612a2e83611beb565b9050806001600160a01b0316846001600160a01b03161480612a695750836001600160a01b0316612a5e84610be3565b6001600160a01b0316145b80612a9957506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612ab482611beb565b6001600160a01b031614612b1c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c4b565b6001600160a01b038216612b7e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c4b565b612b896000826128da565b6001600160a01b0383166000908152600460205260408120805460019290612bb2908490613f70565b90915550506001600160a01b0382166000908152600460205260408120805460019290612be0908490613f25565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000838152600d6020526040902060070154610100900460ff16612c775760405162461bcd60e51b8152600401610c4b90613df4565b60008111612cc75760405162461bcd60e51b815260206004820152601e60248201527f4d75737420636c61696d206174206c65617374206f6e6520746f6b656e2e00006044820152606401610c4b565b6008546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015612d0b57600080fd5b505afa158015612d1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d4391906138b2565b905081811015612d955760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e7420706172656e7420746f6b656e732e00000000006044820152606401610c4b565b612d9f8284613f25565b811015612dee5760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e7420706172656e7420746f6b656e732e00000000006044820152606401610c4b565b60005b8181108015612dff57508281105b15612efc576008546000906001600160a01b0316632f745c5933612e238886613f25565b6040516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482015260440160206040518083038186803b158015612e6757600080fd5b505afa158015612e7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e9f91906138b2565b9050600081612eb1620f424089613f51565b612ebb9190613f25565b9050612ec6816128bd565b612ee757612ed5338289612948565b6000818152600e602052604090208790555b50508080612ef490613fee565b915050612df1565b5050505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612fb75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c4b565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000826130318584613194565b14949350505050565b613045848484612aa1565b61305184848484613240565b611be55760405162461bcd60e51b8152600401610c4b90613d6b565b6060816130915750506040805180820190915260018152600360fc1b602082015290565b8160005b81156130bb57806130a581613fee565b91506130b49050600a83613f3d565b9150613095565b60008167ffffffffffffffff8111156130d6576130d661405f565b6040519080825280601f01601f191660200182016040528015613100576020820181803683370190505b5090505b8415612a9957613115600183613f70565b9150613122600a86614009565b61312d906030613f25565b60f81b81838151811061314257613142614049565b60200101906001600160f81b031916908160001a905350613164600a86613f3d565b9450613104565b6060600c8054610b6090613fb3565b611b3582826040518060200160405280600081525061334d565b600081815b84518110156132385760008582815181106131b6576131b6614049565b602002602001015190508083116131f8576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250613225565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061323081613fee565b915050613199565b509392505050565b60006001600160a01b0384163b1561334257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613284903390899088908890600401613c72565b602060405180830381600087803b15801561329e57600080fd5b505af19250505080156132ce575060408051601f3d908101601f191682019092526132cb91810190613847565b60015b613328573d8080156132fc576040519150601f19603f3d011682016040523d82523d6000602084013e613301565b606091505b5080516133205760405162461bcd60e51b8152600401610c4b90613d6b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612a99565b506001949350505050565b6133578383613380565b6133646000848484613240565b610d815760405162461bcd60e51b8152600401610c4b90613d6b565b6001600160a01b0382166133d65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c4b565b6133df816128bd565b1561342c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c4b565b6001600160a01b0382166000908152600460205260408120805460019290613455908490613f25565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546134bf90613fb3565b90600052602060002090601f0160209004810192826134e15760008555613527565b82601f106134fa57805160ff1916838001178555613527565b82800160010185558215613527579182015b8281111561352757825182559160200191906001019061350c565b5061353392915061356d565b5090565b50805461354390613fb3565b6000825580601f10613553575050565b601f0160209004906000526020600020908101906128ba91905b5b80821115613533576000815560010161356e565b600067ffffffffffffffff83111561359c5761359c61405f565b6135af601f8401601f1916602001613ef4565b90508281528383830111156135c357600080fd5b828260208301376000602084830101529392505050565b600082601f8301126135eb57600080fd5b8135602067ffffffffffffffff8211156136075761360761405f565b8160051b613616828201613ef4565b83815282810190868401838801850189101561363157600080fd5b600093505b85841015613654578035835260019390930192918401918401613636565b50979650505050505050565b8035801515811461367057600080fd5b919050565b600082601f83011261368657600080fd5b6111ee83833560208501613582565b6000602082840312156136a757600080fd5b81356111ee81614075565b6000602082840312156136c457600080fd5b81516111ee81614075565b600080604083850312156136e257600080fd5b82356136ed81614075565b915060208301356136fd81614075565b809150509250929050565b60008060006060848603121561371d57600080fd5b833561372881614075565b9250602084013561373881614075565b929592945050506040919091013590565b6000806000806080858703121561375f57600080fd5b843561376a81614075565b9350602085013561377a81614075565b925060408501359150606085013567ffffffffffffffff81111561379d57600080fd5b8501601f810187136137ae57600080fd5b6137bd87823560208401613582565b91505092959194509250565b600080604083850312156137dc57600080fd5b82356137e781614075565b91506137f560208401613660565b90509250929050565b6000806040838503121561381157600080fd5b823561381c81614075565b946020939093013593505050565b60006020828403121561383c57600080fd5b81356111ee8161408a565b60006020828403121561385957600080fd5b81516111ee8161408a565b60006020828403121561387657600080fd5b813567ffffffffffffffff81111561388d57600080fd5b612a9984828501613675565b6000602082840312156138ab57600080fd5b5035919050565b6000602082840312156138c457600080fd5b5051919050565b6000806000606084860312156138e057600080fd5b8335925060208401356138f281614075565b9150604084013567ffffffffffffffff81111561390e57600080fd5b61391a868287016135da565b9150509250925092565b60008060006040848603121561393957600080fd5b83359250602084013567ffffffffffffffff8082111561395857600080fd5b818601915086601f83011261396c57600080fd5b81358181111561397b57600080fd5b8760208260051b850101111561399057600080fd5b6020830194508093505050509250925092565b600080604083850312156139b657600080fd5b823591506137f560208401613660565b600080604083850312156139d957600080fd5b50508035926020909101359150565b600080604083850312156139fb57600080fd5b82359150602083013567ffffffffffffffff811115613a1957600080fd5b613a2585828601613675565b9150509250929050565b600080600060608486031215613a4457600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561390e57600080fd5b600080600060608486031215613a7e57600080fd5b8335925060208401359150604084013567ffffffffffffffff811115613aa357600080fd5b61391a86828701613675565b60008060008060808587031215613ac557600080fd5b8435935060208501359250604085013567ffffffffffffffff80821115613aeb57600080fd5b613af788838901613675565b93506060870135915080821115613b0d57600080fd5b506137bd87828801613675565b600080600060608486031215613b2f57600080fd5b505081359360208301359350604090920135919050565b60008151808452613b5e816020860160208601613f87565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680613b8c57607f831692505b6020808410821415613bae57634e487b7160e01b600052602260045260246000fd5b818015613bc25760018114613bd357613c00565b60ff19861689528489019650613c00565b60008881526020902060005b86811015613bf85781548b820152908501908301613bdf565b505084890196505b50505050505092915050565b60008351613c1e818460208801613f87565b835190830190613c32818360208801613f87565b01949350505050565b6000613c478285613b72565b8351613c32818360208801613f87565b838152600061222c613c6c6020840186613b72565b84613b72565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613ca590830184613b46565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613ce757835183529284019291840191600101613ccb565b50909695505050505050565b6020815260006111ee6020830184613b46565b6000610120808352613d1a8184018d613b46565b90508281036020840152613d2e818c613b46565b604084019a909a5250506060810196909652608086019490945291151560a0850152151560c0840152151560e08301526101009091015292915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b60208082526023908201527f436c61696d206d7573742062652061637469766520746f206d696e7420746f6b604082015262656e7360e81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613f1d57613f1d61405f565b604052919050565b60008219821115613f3857613f3861401d565b500190565b600082613f4c57613f4c614033565b500490565b6000816000190483118215151615613f6b57613f6b61401d565b500290565b600082821015613f8257613f8261401d565b500390565b60005b83811015613fa2578181015183820152602001613f8a565b83811115611be55750506000910152565b600181811c90821680613fc757607f821691505b60208210811415613fe857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156140025761400261401d565b5060010190565b60008261401857614018614033565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146128ba57600080fd5b6001600160e01b0319811681146128ba57600080fdfea26469706673582212204114390f31187ec2ac562ae22b35f1fcc6076665f4e1a47ddb8070a4c56077ab64736f6c634300080700330000000000000000000000002083bfc586265b3dfac363f075ef7bd2e1b443700000000000000000000000000000000000000000000000000000000000000080
Deployed Bytecode
0x6080604052600436106103815760003560e01c806370a08231116101d1578063acad012411610102578063d2fefda1116100a0578063e985e9c51161006f578063e985e9c514610a56578063efa9a9be14610a9f578063f0d5307414610abf578063f2fde38b14610adf57600080fd5b8063d2fefda1146109e0578063db2ff86114610a00578063e0014a9714610a20578063e935b7b114610a4057600080fd5b8063bf5d07c3116100dc578063bf5d07c314610960578063c87b56dd14610980578063ca6bc241146109a0578063d2f6fce6146109c057600080fd5b8063acad01241461090b578063adb0e9e31461092b578063b88d4fde1461094057600080fd5b80638c3c9cdd1161016f57806395d89b411161014957806395d89b4114610896578063a22cb465146108ab578063a423ac4f146108cb578063a875f57f146108eb57600080fd5b80638c3c9cdd146108235780638da5cb5b146108435780638dd91a561461086157600080fd5b806379a801c0116101ab57806379a801c0146107995780637ad38df2146107cd57806385efccd8146107ed5780638a6e6aae1461080d57600080fd5b806370a082311461074f578063715018a61461076f57806372f85d511461078457600080fd5b8063379d04ae116102b65780634b3b248a116102545780636352211e116102235780636352211e146106cd57806365f13097146106ed5780636930fd2a14610702578063697c64f91461072257600080fd5b80634b3b248a1461064d578063500145131461066d57806355f804b31461068d57806361a712b7146106ad57600080fd5b80634186b9a3116102905780634186b9a3146105cd57806342842e0e146105ed57806342bec6d71461060d5780634aff0e2f1461062d57600080fd5b8063379d04ae146105785780633ccfd60b1461059857806340a53c77146105ad57600080fd5b80631928e1be1161032357806323b872dd116102fd57806323b872dd1461050557806326da01001461052557806333c41a901461054557806334281c9d1461056557600080fd5b80631928e1be146104975780631b2ef1ca146104b75780631b689c0b146104ca57600080fd5b8063095ea7b31161035f578063095ea7b3146104155780630d73f08e14610437578063142c61211461045757806316b60bc61461047757600080fd5b806301ffc9a71461038657806306fdde03146103bb578063081812fc146103dd575b600080fd5b34801561039257600080fd5b506103a66103a136600461382a565b610aff565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103d0610b51565b6040516103b29190613cf3565b3480156103e957600080fd5b506103fd6103f8366004613899565b610be3565b6040516001600160a01b0390911681526020016103b2565b34801561042157600080fd5b506104356104303660046137fe565b610c70565b005b34801561044357600080fd5b506104356104523660046139a3565b610d86565b34801561046357600080fd5b506103d0610472366004613899565b610dda565b34801561048357600080fd5b506103d0610492366004613899565b610e7f565b3480156104a357600080fd5b506104356104b23660046139e8565b610e9f565b6104356104c53660046139c6565b610eee565b3480156104d657600080fd5b506104f76104e5366004613899565b600e6020526000908152604090205481565b6040519081526020016103b2565b34801561051157600080fd5b50610435610520366004613708565b61116f565b34801561053157600080fd5b506104f76105403660046138cb565b6111a0565b34801561055157600080fd5b506103a6610560366004613899565b6111f5565b610435610573366004613a2f565b611200565b34801561058457600080fd5b50610435610593366004613aaf565b611525565b3480156105a457600080fd5b506104356115fd565b3480156105b957600080fd5b506103d06105c8366004613899565b6116e1565b3480156105d957600080fd5b506104356105e83660046139e8565b611701565b3480156105f957600080fd5b50610435610608366004613708565b611793565b34801561061957600080fd5b506104356106283660046139a3565b6117ae565b34801561063957600080fd5b50610435610648366004613864565b6117fb565b34801561065957600080fd5b506104356106683660046139a3565b61185c565b34801561067957600080fd5b50610435610688366004613924565b6118a9565b34801561069957600080fd5b506104356106a8366004613864565b611af8565b3480156106b957600080fd5b506104356106c8366004613a69565b611b39565b3480156106d957600080fd5b506103fd6106e8366004613899565b611beb565b3480156106f957600080fd5b506104f7600381565b34801561070e57600080fd5b5061043561071d366004613899565b611c62565b34801561072e57600080fd5b5061074261073d366004613899565b611d30565b6040516103b29190613caf565b34801561075b57600080fd5b506104f761076a366004613695565b611d91565b34801561077b57600080fd5b50610435611e18565b34801561079057600080fd5b506104f7600181565b3480156107a557600080fd5b506104f77f000000000000000000000000000000000000000000000000000000000000008081565b3480156107d957600080fd5b506104356107e83660046139c6565b611e4e565b3480156107f957600080fd5b506104356108083660046139e8565b611f13565b34801561081957600080fd5b506104f7600a5481565b34801561082f57600080fd5b506103d061083e3660046139c6565b611f62565b34801561084f57600080fd5b506007546001600160a01b03166103fd565b34801561086d57600080fd5b5061088161087c366004613899565b612013565b6040516103b299989796959493929190613d06565b3480156108a257600080fd5b506103d06121b5565b3480156108b757600080fd5b506104356108c63660046137c9565b6121c4565b3480156108d757600080fd5b506103a66108e63660046138cb565b6121cf565b3480156108f757600080fd5b506104356109063660046139c6565b612235565b34801561091757600080fd5b506104356109263660046139e8565b612274565b34801561093757600080fd5b50610435612303565b34801561094c57600080fd5b5061043561095b366004613749565b6123c0565b34801561096c57600080fd5b506103d061097b366004613899565b6123f2565b34801561098c57600080fd5b506103d061099b366004613899565b61240f565b3480156109ac57600080fd5b506104356109bb3660046139c6565b61253f565b3480156109cc57600080fd5b506104356109db3660046139e8565b61257e565b3480156109ec57600080fd5b506104356109fb3660046139e8565b6125cd565b348015610a0c57600080fd5b50610435610a1b366004613899565b61261c565b348015610a2c57600080fd5b506103d0610a3b366004613899565b612717565b348015610a4c57600080fd5b506104f7600f5481565b348015610a6257600080fd5b506103a6610a713660046136cf565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610aab57600080fd5b50610435610aba366004613b1a565b612787565b348015610acb57600080fd5b50610435610ada3660046139e8565b6127d9565b348015610aeb57600080fd5b50610435610afa366004613695565b612822565b60006001600160e01b031982166380ac58cd60e01b1480610b3057506001600160e01b03198216635b5e139f60e01b145b80610b4b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610b6090613fb3565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8c90613fb3565b8015610bd95780601f10610bae57610100808354040283529160200191610bd9565b820191906000526020600020905b815481529060010190602001808311610bbc57829003601f168201915b5050505050905090565b6000610bee826128bd565b610c545760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610c7b82611beb565b9050806001600160a01b0316836001600160a01b03161415610ce95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c4b565b336001600160a01b0382161480610d055750610d058133610a71565b610d775760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c4b565b610d8183836128da565b505050565b6007546001600160a01b03163314610db05760405162461bcd60e51b8152600401610c4b90613e37565b6000918252600d602052604090912060070180549115156101000261ff0019909216919091179055565b6000818152600d60205260409020600a01805460609190610dfa90613fb3565b80601f0160208091040260200160405190810160405280929190818152602001828054610e2690613fb3565b8015610e735780601f10610e4857610100808354040283529160200191610e73565b820191906000526020600020905b815481529060010190602001808311610e5657829003601f168201915b50505050509050919050565b6000818152600d60205260409020600901805460609190610dfa90613fb3565b6007546001600160a01b03163314610ec95760405162461bcd60e51b8152600401610c4b90613e37565b6000828152600d602081815260409092208351610d81939190920191908401906134b3565b60026000541415610f115760405162461bcd60e51b8152600401610c4b90613ebd565b6002600055323314610f355760405162461bcd60e51b8152600401610c4b90613dbd565b6000828152600d602052604090206007015460ff16610fa15760405162461bcd60e51b815260206004820152602260248201527f53616c65206d7573742062652061637469766520746f206d696e7420746f6b656044820152616e7360f01b6064820152608401610c4b565b6003811115610ff25760405162461bcd60e51b815260206004820152601b60248201527f4578636565646564206d617820746f6b656e20707572636861736500000000006044820152606401610c4b565b6000828152600d602052604090206004810154600390910154611016908390613f25565b11156110645760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e736044820152606401610c4b565b6000828152600d60205260409020600201543490611083908390613f51565b11156110d15760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610c4b565b60005b81811015611165576000838152600d60205260408120600301546110fb620f424086613f51565b6111059190613f25565b6000858152600d6020526040902060030154909150611125906001613f25565b6000858152600d6020526040902060030155611142338286612948565b6000908152600e602052604090208390558061115d81613fee565b9150506110d4565b5050600160005550565b61117933826129b7565b6111955760405162461bcd60e51b8152600401610c4b90613e6c565b610d81838383612aa1565b60006111ad8484846121cf565b156111ea576000848152600d602090815260408083206001600160a01b0387168452600e019091529020546111e3906001613f70565b90506111ee565b5060005b9392505050565b6000610b4b826128bd565b600260005414156112235760405162461bcd60e51b8152600401610c4b90613ebd565b60026000553233146112475760405162461bcd60e51b8152600401610c4b90613dbd565b6000838152600d60205260409020600c015460ff166112a85760405162461bcd60e51b815260206004820152601860248201527f416c6c6f77206c697374206973206e6f742061637469766500000000000000006044820152606401610c4b565b6112b38333836121cf565b6112f35760405162461bcd60e51b8152602060048201526011602482015270139bdd081bdb88185b1b1bddc81b1a5cdd607a1b6044820152606401610c4b565b6000838152600d60209081526040808320338452600e0190915290205461131b906001613f70565b8211156113755760405162461bcd60e51b815260206004820152602260248201527f4578636565646564206d617820617661696c61626c6520746f20707572636861604482015261736560f01b6064820152608401610c4b565b6000838152600d602052604090206004810154600390910154611399908490613f25565b11156113e75760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e736044820152606401610c4b565b6000838152600d60205260409020600201543490611406908490613f51565b11156114545760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610c4b565b6000838152600d60209081526040808320338452600e0190915281208054849290611480908490613f25565b90915550600090505b8281101561151a576000848152600d60205260408120600301546114b0620f424087613f51565b6114ba9190613f25565b6000868152600d60205260409020600301549091506114da906001613f25565b6000868152600d60205260409020600301556114f7338287612948565b6000908152600e602052604090208490558061151281613fee565b915050611489565b505060016000555050565b6007546001600160a01b0316331461154f5760405162461bcd60e51b8152600401610c4b90613e37565b600f546000818152600d602090815260409091206002810187905560078101805461ffff19169055600c8101805460ff191690557f000000000000000000000000000000000000000000000000000000000000008060038201556004810186905584516115be928601906134b3565b506000818152600d6020908152604090912083516115e4926001909201918501906134b3565b50600f546115f3906001613f25565b600f555050505050565b6007546001600160a01b031633146116275760405162461bcd60e51b8152600401610c4b90613e37565b6002600054141561164a5760405162461bcd60e51b8152600401610c4b90613ebd565b60026000908155604051339047908381818185875af1925050503d8060008114611690576040519150601f19603f3d011682016040523d82523d6000602084013e611695565b606091505b50509050806116d95760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610c4b565b506001600055565b6000818152600d60205260409020600801805460609190610dfa90613fb3565b6007546001600160a01b0316331461172b5760405162461bcd60e51b8152600401610c4b90613e37565b600a5482106117745760405162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b6044820152606401610c4b565b60008281526009602090815260409091208251610d81928401906134b3565b610d81838383604051806020016040528060008152506123c0565b6007546001600160a01b031633146117d85760405162461bcd60e51b8152600401610c4b90613e37565b6000918252600d6020526040909120600701805460ff1916911515919091179055565b6007546001600160a01b031633146118255760405162461bcd60e51b8152600401610c4b90613e37565b600a5460009081526009602090815260409091208251611847928401906134b3565b50600a54611856906001613f25565b600a5550565b6007546001600160a01b031633146118865760405162461bcd60e51b8152600401610c4b90613e37565b6000918252600d6020526040909120600c01805460ff1916911515919091179055565b600260005414156118cc5760405162461bcd60e51b8152600401610c4b90613ebd565b60026000553233146118f05760405162461bcd60e51b8152600401610c4b90613dbd565b6000838152600d6020526040902060070154610100900460ff166119265760405162461bcd60e51b8152600401610c4b90613df4565b806119735760405162461bcd60e51b815260206004820152601e60248201527f4d75737420636c61696d206174206c65617374206f6e6520746f6b656e2e00006044820152606401610c4b565b60005b8181101561151a5760085433906001600160a01b0316636352211e8585858181106119a3576119a3614049565b905060200201356040518263ffffffff1660e01b81526004016119c891815260200190565b60206040518083038186803b1580156119e057600080fd5b505afa1580156119f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1891906136b2565b6001600160a01b031614611a6e5760405162461bcd60e51b815260206004820152601b60248201527f4d757374206f776e20616c6c20706172656e7420746f6b656e732e00000000006044820152606401610c4b565b611a8f838383818110611a8357611a83614049565b905060200201356128bd565b611ae6576000838383818110611aa757611aa7614049565b90506020020135620f424086611abd9190613f51565b611ac79190613f25565b9050611ad4338287612948565b6000908152600e602052604090208490555b80611af081613fee565b915050611976565b6007546001600160a01b03163314611b225760405162461bcd60e51b8152600401610c4b90613e37565b8051611b3590600c9060208401906134b3565b5050565b6007546001600160a01b03163314611b635760405162461bcd60e51b8152600401610c4b90613e37565b6000838152600d60205260409020600601548210611bbb5760405162461bcd60e51b81526020600482015260156024820152747363726970744964206f7574206f662072616e676560581b6044820152606401610c4b565b6000838152600d6020908152604080832085845260050182529091208251611be5928401906134b3565b50505050565b6000818152600360205260408120546001600160a01b031680610b4b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c4b565b60026000541415611c855760405162461bcd60e51b8152600401610c4b90613ebd565b6002600055323314611ca95760405162461bcd60e51b8152600401610c4b90613dbd565b6008546040516370a0823160e01b81523360048201526116d99183916000916001600160a01b0316906370a082319060240160206040518083038186803b158015611cf357600080fd5b505afa158015611d07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d2b91906138b2565b612c41565b6000818152600b6020908152604091829020805483518184028101840190945280845260609392830182828015610e7357602002820191906000526020600020905b815481526020019060010190808311611d725750505050509050919050565b60006001600160a01b038216611dfc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c4b565b506001600160a01b031660009081526004602052604090205490565b6007546001600160a01b03163314611e425760405162461bcd60e51b8152600401610c4b90613e37565b611e4c6000612f03565b565b6007546001600160a01b03163314611e785760405162461bcd60e51b8152600401610c4b90613e37565b6000828152600d60205260409020600301548111611efe5760405162461bcd60e51b815260206004820152603d60248201527f596f75206d75737420736574206d617820696e766f636174696f6e732067726560448201527f61746572207468616e2063757272656e7420696e766f636174696f6e730000006064820152608401610c4b565b6000918252600d602052604090912060040155565b6007546001600160a01b03163314611f3d5760405162461bcd60e51b8152600401610c4b90613e37565b6000828152600d602090815260409091208251610d81926009909201918401906134b3565b6000828152600d602090815260408083208484526005019091529020805460609190611f8d90613fb3565b80601f0160208091040260200160405190810160405280929190818152602001828054611fb990613fb3565b80156120065780601f10611fdb57610100808354040283529160200191612006565b820191906000526020600020905b815481529060010190602001808311611fe957829003601f168201915b5050505050905092915050565b6060806000806000806000806000600d60008b8152602001908152602001600020600001805461204290613fb3565b80601f016020809104026020016040519081016040528092919081815260200182805461206e90613fb3565b80156120bb5780601f10612090576101008083540402835291602001916120bb565b820191906000526020600020905b81548152906001019060200180831161209e57829003601f168201915b50505060008d8152600d602052604090206001018054939c50926120e192509050613fb3565b80601f016020809104026020016040519081016040528092919081815260200182805461210d90613fb3565b801561215a5780601f1061212f5761010080835404028352916020019161215a565b820191906000526020600020905b81548152906001019060200180831161213d57829003601f168201915b50505060009c8d525050600d6020526040909a206002810154600382015460048301546007840154600c8501546006909501549d9f939d929c50909a5060ff8082169a50610100909104811698509092169550909350915050565b606060028054610b6090613fb3565b611b35338383612f55565b6040516bffffffffffffffffffffffff19606084901b166020820152600090819060340160405160208183030381529060405280519060200120905061222c83600d6000888152602001908152602001600020600b015483613024565b95945050505050565b6007546001600160a01b0316331461225f5760405162461bcd60e51b8152600401610c4b90613e37565b6000918252600d602052604090912060020155565b6007546001600160a01b0316331461229e5760405162461bcd60e51b8152600401610c4b90613e37565b6000828152600d6020908152604080832060068101548452600501825290912082516122cc928401906134b3565b506000828152600d60205260409020600601546122ea906001613f25565b6000928352600d60205260409092206006019190915550565b6007546001600160a01b0316331461232d5760405162461bcd60e51b8152600401610c4b90613e37565b6000600a541161237f5760405162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f766500006044820152606401610c4b565b600960006001600a546123929190613f70565b815260200190815260200160002060006123ac9190613537565b6001600a546123bb9190613f70565b600a55565b6123ca33836129b7565b6123e65760405162461bcd60e51b8152600401610c4b90613e6c565b611be58484848461303a565b6000818152600960205260409020805460609190610dfa90613fb3565b606061241a826128bd565b6124665760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20494420646f6573206e6f742065786973740000000000000000006044820152606401610c4b565b6000828152600e60209081526040808320548352600d91829052822001805461248e90613fb3565b905011156124e4576000828152600e60209081526040808320548352600d91829052909120016124bd8361306d565b6040516020016124ce929190613c3b565b6040516020818303038152906040529050919050565b60006124ee61316b565b9050600081511161250e57604051806020016040528060008152506111ee565b806125188461306d565b604051602001612529929190613c0c565b6040516020818303038152906040529392505050565b6007546001600160a01b031633146125695760405162461bcd60e51b8152600401610c4b90613e37565b6000918252600d6020526040909120600b0155565b6007546001600160a01b031633146125a85760405162461bcd60e51b8152600401610c4b90613e37565b6000828152600d602090815260409091208251610d8192600a909201918401906134b3565b6007546001600160a01b031633146125f75760405162461bcd60e51b8152600401610c4b90613e37565b6000828152600d602090815260409091208251610d81926008909201918401906134b3565b6007546001600160a01b031633146126465760405162461bcd60e51b8152600401610c4b90613e37565b6000818152600d60205260409020600601546126a45760405162461bcd60e51b815260206004820152601e60248201527f746865726520617265206e6f207363726970747320746f2072656d6f766500006044820152606401610c4b565b6000818152600d602052604081206006810154600590910191906126ca90600190613f70565b815260200190815260200160002060006126e49190613537565b6000818152600d602052604090206006015461270290600190613f70565b6000918252600d602052604090912060060155565b6000818152600d602081905260408220018054606092919061273890613fb3565b9050111561275d576000828152600d60208190526040909120018054610dfa90613fb3565b600061276761316b565b90506000815111610b4b57604051806020016040528060008152506111ee565b600260005414156127aa5760405162461bcd60e51b8152600401610c4b90613ebd565b60026000553233146127ce5760405162461bcd60e51b8152600401610c4b90613dbd565b611165838383612c41565b6007546001600160a01b031633146128035760405162461bcd60e51b8152600401610c4b90613e37565b6000828152600d602090815260409091208251610d81928401906134b3565b6007546001600160a01b0316331461284c5760405162461bcd60e51b8152600401610c4b90613e37565b6001600160a01b0381166128b15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c4b565b6128ba81612f03565b50565b6000908152600360205260409020546001600160a01b0316151590565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061290f82611beb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600d602090815260408083209051612972928692600a81019260089091019101613c57565b60408051601f1981840301815291815281516020928301206000868152600b84529182208054600181018255908352929091209091018190559050611be5848461317a565b60006129c2826128bd565b612a235760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c4b565b6000612a2e83611beb565b9050806001600160a01b0316846001600160a01b03161480612a695750836001600160a01b0316612a5e84610be3565b6001600160a01b0316145b80612a9957506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612ab482611beb565b6001600160a01b031614612b1c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c4b565b6001600160a01b038216612b7e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c4b565b612b896000826128da565b6001600160a01b0383166000908152600460205260408120805460019290612bb2908490613f70565b90915550506001600160a01b0382166000908152600460205260408120805460019290612be0908490613f25565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000838152600d6020526040902060070154610100900460ff16612c775760405162461bcd60e51b8152600401610c4b90613df4565b60008111612cc75760405162461bcd60e51b815260206004820152601e60248201527f4d75737420636c61696d206174206c65617374206f6e6520746f6b656e2e00006044820152606401610c4b565b6008546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015612d0b57600080fd5b505afa158015612d1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d4391906138b2565b905081811015612d955760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e7420706172656e7420746f6b656e732e00000000006044820152606401610c4b565b612d9f8284613f25565b811015612dee5760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e7420706172656e7420746f6b656e732e00000000006044820152606401610c4b565b60005b8181108015612dff57508281105b15612efc576008546000906001600160a01b0316632f745c5933612e238886613f25565b6040516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482015260440160206040518083038186803b158015612e6757600080fd5b505afa158015612e7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e9f91906138b2565b9050600081612eb1620f424089613f51565b612ebb9190613f25565b9050612ec6816128bd565b612ee757612ed5338289612948565b6000818152600e602052604090208790555b50508080612ef490613fee565b915050612df1565b5050505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612fb75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c4b565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000826130318584613194565b14949350505050565b613045848484612aa1565b61305184848484613240565b611be55760405162461bcd60e51b8152600401610c4b90613d6b565b6060816130915750506040805180820190915260018152600360fc1b602082015290565b8160005b81156130bb57806130a581613fee565b91506130b49050600a83613f3d565b9150613095565b60008167ffffffffffffffff8111156130d6576130d661405f565b6040519080825280601f01601f191660200182016040528015613100576020820181803683370190505b5090505b8415612a9957613115600183613f70565b9150613122600a86614009565b61312d906030613f25565b60f81b81838151811061314257613142614049565b60200101906001600160f81b031916908160001a905350613164600a86613f3d565b9450613104565b6060600c8054610b6090613fb3565b611b3582826040518060200160405280600081525061334d565b600081815b84518110156132385760008582815181106131b6576131b6614049565b602002602001015190508083116131f8576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250613225565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061323081613fee565b915050613199565b509392505050565b60006001600160a01b0384163b1561334257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613284903390899088908890600401613c72565b602060405180830381600087803b15801561329e57600080fd5b505af19250505080156132ce575060408051601f3d908101601f191682019092526132cb91810190613847565b60015b613328573d8080156132fc576040519150601f19603f3d011682016040523d82523d6000602084013e613301565b606091505b5080516133205760405162461bcd60e51b8152600401610c4b90613d6b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612a99565b506001949350505050565b6133578383613380565b6133646000848484613240565b610d815760405162461bcd60e51b8152600401610c4b90613d6b565b6001600160a01b0382166133d65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c4b565b6133df816128bd565b1561342c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c4b565b6001600160a01b0382166000908152600460205260408120805460019290613455908490613f25565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546134bf90613fb3565b90600052602060002090601f0160209004810192826134e15760008555613527565b82601f106134fa57805160ff1916838001178555613527565b82800160010185558215613527579182015b8281111561352757825182559160200191906001019061350c565b5061353392915061356d565b5090565b50805461354390613fb3565b6000825580601f10613553575050565b601f0160209004906000526020600020908101906128ba91905b5b80821115613533576000815560010161356e565b600067ffffffffffffffff83111561359c5761359c61405f565b6135af601f8401601f1916602001613ef4565b90508281528383830111156135c357600080fd5b828260208301376000602084830101529392505050565b600082601f8301126135eb57600080fd5b8135602067ffffffffffffffff8211156136075761360761405f565b8160051b613616828201613ef4565b83815282810190868401838801850189101561363157600080fd5b600093505b85841015613654578035835260019390930192918401918401613636565b50979650505050505050565b8035801515811461367057600080fd5b919050565b600082601f83011261368657600080fd5b6111ee83833560208501613582565b6000602082840312156136a757600080fd5b81356111ee81614075565b6000602082840312156136c457600080fd5b81516111ee81614075565b600080604083850312156136e257600080fd5b82356136ed81614075565b915060208301356136fd81614075565b809150509250929050565b60008060006060848603121561371d57600080fd5b833561372881614075565b9250602084013561373881614075565b929592945050506040919091013590565b6000806000806080858703121561375f57600080fd5b843561376a81614075565b9350602085013561377a81614075565b925060408501359150606085013567ffffffffffffffff81111561379d57600080fd5b8501601f810187136137ae57600080fd5b6137bd87823560208401613582565b91505092959194509250565b600080604083850312156137dc57600080fd5b82356137e781614075565b91506137f560208401613660565b90509250929050565b6000806040838503121561381157600080fd5b823561381c81614075565b946020939093013593505050565b60006020828403121561383c57600080fd5b81356111ee8161408a565b60006020828403121561385957600080fd5b81516111ee8161408a565b60006020828403121561387657600080fd5b813567ffffffffffffffff81111561388d57600080fd5b612a9984828501613675565b6000602082840312156138ab57600080fd5b5035919050565b6000602082840312156138c457600080fd5b5051919050565b6000806000606084860312156138e057600080fd5b8335925060208401356138f281614075565b9150604084013567ffffffffffffffff81111561390e57600080fd5b61391a868287016135da565b9150509250925092565b60008060006040848603121561393957600080fd5b83359250602084013567ffffffffffffffff8082111561395857600080fd5b818601915086601f83011261396c57600080fd5b81358181111561397b57600080fd5b8760208260051b850101111561399057600080fd5b6020830194508093505050509250925092565b600080604083850312156139b657600080fd5b823591506137f560208401613660565b600080604083850312156139d957600080fd5b50508035926020909101359150565b600080604083850312156139fb57600080fd5b82359150602083013567ffffffffffffffff811115613a1957600080fd5b613a2585828601613675565b9150509250929050565b600080600060608486031215613a4457600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561390e57600080fd5b600080600060608486031215613a7e57600080fd5b8335925060208401359150604084013567ffffffffffffffff811115613aa357600080fd5b61391a86828701613675565b60008060008060808587031215613ac557600080fd5b8435935060208501359250604085013567ffffffffffffffff80821115613aeb57600080fd5b613af788838901613675565b93506060870135915080821115613b0d57600080fd5b506137bd87828801613675565b600080600060608486031215613b2f57600080fd5b505081359360208301359350604090920135919050565b60008151808452613b5e816020860160208601613f87565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680613b8c57607f831692505b6020808410821415613bae57634e487b7160e01b600052602260045260246000fd5b818015613bc25760018114613bd357613c00565b60ff19861689528489019650613c00565b60008881526020902060005b86811015613bf85781548b820152908501908301613bdf565b505084890196505b50505050505092915050565b60008351613c1e818460208801613f87565b835190830190613c32818360208801613f87565b01949350505050565b6000613c478285613b72565b8351613c32818360208801613f87565b838152600061222c613c6c6020840186613b72565b84613b72565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613ca590830184613b46565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613ce757835183529284019291840191600101613ccb565b50909695505050505050565b6020815260006111ee6020830184613b46565b6000610120808352613d1a8184018d613b46565b90508281036020840152613d2e818c613b46565b604084019a909a5250506060810196909652608086019490945291151560a0850152151560c0840152151560e08301526101009091015292915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b60208082526023908201527f436c61696d206d7573742062652061637469766520746f206d696e7420746f6b604082015262656e7360e81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613f1d57613f1d61405f565b604052919050565b60008219821115613f3857613f3861401d565b500190565b600082613f4c57613f4c614033565b500490565b6000816000190483118215151615613f6b57613f6b61401d565b500290565b600082821015613f8257613f8261401d565b500390565b60005b83811015613fa2578181015183820152602001613f8a565b83811115611be55750506000910152565b600181811c90821680613fc757607f821691505b60208210811415613fe857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156140025761400261401d565b5060010190565b60008261401857614018614033565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146128ba57600080fd5b6001600160e01b0319811681146128ba57600080fdfea26469706673582212204114390f31187ec2ac562ae22b35f1fcc6076665f4e1a47ddb8070a4c56077ab64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002083bfc586265b3dfac363f075ef7bd2e1b443700000000000000000000000000000000000000000000000000000000000000080-----Decoded View---------------
Arg [0] : parentAddress (address): 0x2083BfC586265b3DfAc363F075Ef7bd2e1b44370
Arg [1] : _parentSupply (uint256): 128-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000002083bfc586265b3dfac363f075ef7bd2e1b44370
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Block | Transaction | Difficulty | Gas Used | Reward |
---|
Block | Uncle Number | Difficulty | Gas Used | Reward |
---|
Loading...
Loading
Loading...
Loading
Validator Index | Block | Amount |
---|
Transaction Hash | Block | Value | Eth2 PubKey | Valid |
---|
Multichain Portfolio | 26 Chains
Display all chains•
Last updated: less than 1 sec ago
Show 26 more chains Hide 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.
Address QR Code
My Address - Private Name Tag or Note
My Name Tag:
Private Name Tags (up to 35 characters) can be used for easy identification of addresses
Private Note:
A private note (up to 500 characters) can be attached to this address.
Please DO NOT store any passwords or private keys here.
View all Private Name Tags
Compiler specific version warnings:
The compiled contract might be susceptible to VerbatimInvalidDeduplication (low-severity), FullInlinerNonExpressionSplitArgumentEvaluationOrder (low-severity), MissingSideEffectsOnSelectorAccess (low-severity), AbiReencodingHeadOverflowWithStaticArrayCleanup (medium-severity), DirtyBytesArrayToStorage (low-severity), DataLocationChangeInInternalOverride (very low-severity), NestedCalldataArrayAbiReencodingSizeValidation (very low-severity), SignedImmutables (very low-severity) Solidity Compiler Bugs.