Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 28,296 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Mint Batch | 20193865 | 9 hrs ago | IN | 0 ETH | 0.00006397 | ||||
Mint | 20100894 | 13 days ago | IN | 0 ETH | 0.00005625 | ||||
Update Claim | 19825957 | 51 days ago | IN | 0 ETH | 0.00055275 | ||||
Mint | 19517096 | 95 days ago | IN | 0 ETH | 0.00307387 | ||||
Mint | 18993141 | 168 days ago | IN | 0 ETH | 0.00327247 | ||||
Update Claim | 18602048 | 223 days ago | IN | 0 ETH | 0.00079052 | ||||
Update Claim | 18521778 | 234 days ago | IN | 0 ETH | 0.00228721 | ||||
Update Claim | 18349553 | 258 days ago | IN | 0 ETH | 0.00041923 | ||||
Update Claim | 18349350 | 258 days ago | IN | 0 ETH | 0.00030635 | ||||
Update Claim | 18322216 | 262 days ago | IN | 0 ETH | 0.00040104 | ||||
Mint | 17953341 | 314 days ago | IN | 0 ETH | 0.00176774 | ||||
Mint | 17947144 | 315 days ago | IN | 0 ETH | 0.00214779 | ||||
Mint | 17618031 | 361 days ago | IN | 0 ETH | 0.0020627 | ||||
Update Claim | 17617209 | 361 days ago | IN | 0 ETH | 0.00075573 | ||||
Mint | 17488940 | 379 days ago | IN | 0 ETH | 0.00239819 | ||||
Mint | 17431365 | 387 days ago | IN | 0 ETH | 0.00326277 | ||||
Mint | 17043200 | 442 days ago | IN | 0 ETH | 0.00473582 | ||||
Mint | 17043143 | 442 days ago | IN | 0 ETH | 0.00456337 | ||||
Mint | 17042808 | 442 days ago | IN | 0 ETH | 0.00466696 | ||||
Mint | 17042785 | 442 days ago | IN | 0 ETH | 0.00436968 | ||||
Mint | 17042779 | 442 days ago | IN | 0 ETH | 0.00412535 | ||||
Mint | 17042766 | 442 days ago | IN | 0 ETH | 0.00438835 | ||||
Mint | 17040662 | 442 days ago | IN | 0 ETH | 0.0050034 | ||||
Mint | 17040568 | 442 days ago | IN | 0 ETH | 0.00608384 | ||||
Mint | 17030446 | 444 days ago | IN | 0 ETH | 0.00359693 |
Latest 9 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
15691166 | 631 days ago | 0.01470421 ETH | ||||
15668462 | 634 days ago | 0.01511847 ETH | ||||
15591119 | 645 days ago | 0.0089166 ETH | ||||
15590890 | 645 days ago | 0.0036 ETH | ||||
15590880 | 645 days ago | 0.00372614 ETH | ||||
15576503 | 647 days ago | 0.01117987 ETH | ||||
15460683 | 665 days ago | 0.05 ETH | ||||
15418807 | 672 days ago | 0.07344722 ETH | ||||
15414010 | 673 days ago | 0.00302243 ETH |
Loading...
Loading
Contract Name:
ERC721LazyClaim
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@manifoldxyz/creator-core-solidity/contracts/core/IERC721CreatorCore.sol"; import "@manifoldxyz/libraries-solidity/contracts/access/AdminControl.sol"; import "@manifoldxyz/creator-core-solidity/contracts/extensions/ICreatorExtensionTokenURI.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/interfaces/IERC165.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./IERC721LazyClaim.sol"; /** * @title Lazy Claim * @author manifold.xyz * @notice Lazy claim with optional whitelist ERC721 tokens */ contract ERC721LazyClaim is IERC165, IERC721LazyClaim, ICreatorExtensionTokenURI, ReentrancyGuard { using Strings for uint256; string private constant ARWEAVE_PREFIX = "https://arweave.net/"; string private constant IPFS_PREFIX = "ipfs://"; uint256 private constant MINT_INDEX_BITMASK = 0xFF; // stores the number of claim instances made by a given creator contract // used to determine the next claimIndex for a creator contract // { contractAddress => claimCount } mapping(address => uint224) private _claimCounts; // stores mapping from tokenId to the claim it represents // { contractAddress => { tokenId => Claim } } mapping(address => mapping(uint256 => Claim)) private _claims; // ONLY USED FOR NON-MERKLE MINTS: stores the number of tokens minted per wallet per claim, in order to limit maximum // { contractAddress => { claimIndex => { walletAddress => walletMints } } } mapping(address => mapping(uint256 => mapping(address => uint256))) private _mintsPerWallet; // ONLY USED FOR MERKLE MINTS: stores mapping from claim to indices minted // { contractAddress => {claimIndex => { claimIndexOffset => index } } } mapping(address => mapping(uint256 => mapping(uint256 => uint256))) private _claimMintIndices; struct TokenClaim { uint224 claimIndex; uint32 mintOrder; } // stores which tokenId corresponds to which claimIndex, used to generate token uris // { contractAddress => { tokenId => TokenClaim } } mapping(address => mapping(uint256 => TokenClaim)) private _tokenClaims; function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165) returns (bool) { return interfaceId == type(IERC721LazyClaim).interfaceId || interfaceId == type(ICreatorExtensionTokenURI).interfaceId || interfaceId == type(IERC165).interfaceId; } /** * @notice This extension is shared, not single-creator. So we must ensure * that a claim's initializer is an admin on the creator contract * @param creatorContractAddress the address of the creator contract to check the admin against */ modifier creatorAdminRequired(address creatorContractAddress) { AdminControl creatorCoreContract = AdminControl(creatorContractAddress); require(creatorCoreContract.isAdmin(msg.sender), "Wallet is not an administrator for contract"); _; } /** * See {IERC721LazyClaim-initializeClaim}. */ function initializeClaim( address creatorContractAddress, ClaimParameters calldata claimParameters ) external override creatorAdminRequired(creatorContractAddress) returns (uint256) { // Sanity checks require(claimParameters.storageProtocol != StorageProtocol.INVALID, "Cannot initialize with invalid storage protocol"); require(claimParameters.endDate == 0 || claimParameters.startDate < claimParameters.endDate, "Cannot have startDate greater than or equal to endDate"); require(claimParameters.merkleRoot == "" || claimParameters.walletMax == 0, "Cannot provide both mintsPerWallet and merkleRoot"); // Get the index for the new claim _claimCounts[creatorContractAddress]++; uint224 newIndex = _claimCounts[creatorContractAddress]; // Create the claim _claims[creatorContractAddress][newIndex] = Claim({ total: 0, totalMax: claimParameters.totalMax, walletMax: claimParameters.walletMax, startDate: claimParameters.startDate, endDate: claimParameters.endDate, storageProtocol: claimParameters.storageProtocol, identical: claimParameters.identical, merkleRoot: claimParameters.merkleRoot, location: claimParameters.location }); emit ClaimInitialized(creatorContractAddress, newIndex, msg.sender); return newIndex; } /** * See {IERC721LazyClaim-udpateClaim}. */ function updateClaim( address creatorContractAddress, uint256 claimIndex, ClaimParameters calldata claimParameters ) external override creatorAdminRequired(creatorContractAddress) { // Sanity checks require(_claims[creatorContractAddress][claimIndex].storageProtocol != StorageProtocol.INVALID, "Claim not initialized"); require(claimParameters.storageProtocol != StorageProtocol.INVALID, "Cannot set invalid storage protocol"); require(_claims[creatorContractAddress][claimIndex].totalMax == 0 || _claims[creatorContractAddress][claimIndex].totalMax <= claimParameters.totalMax, "Cannot decrease totalMax"); require(_claims[creatorContractAddress][claimIndex].walletMax == 0 || _claims[creatorContractAddress][claimIndex].walletMax <= claimParameters.walletMax, "Cannot decrease walletMax"); require(claimParameters.endDate == 0 || claimParameters.startDate < claimParameters.endDate, "Cannot have startDate greater than or equal to endDate"); // Overwrite the existing claim _claims[creatorContractAddress][claimIndex] = Claim({ total: _claims[creatorContractAddress][claimIndex].total, totalMax: claimParameters.totalMax, walletMax: claimParameters.walletMax, startDate: claimParameters.startDate, endDate: claimParameters.endDate, storageProtocol: claimParameters.storageProtocol, identical: claimParameters.identical, merkleRoot: claimParameters.merkleRoot, location: claimParameters.location }); } /** * See {IERC721LazyClaim-getClaimCount}. */ function getClaimCount(address creatorContractAddress) external override view returns(uint256) { return _claimCounts[creatorContractAddress]; } /** * See {IERC721LazyClaim-getClaim}. */ function getClaim(address creatorContractAddress, uint256 claimIndex) external override view returns(Claim memory) { require(_claims[creatorContractAddress][claimIndex].storageProtocol != StorageProtocol.INVALID, "Claim not initialized"); return _claims[creatorContractAddress][claimIndex]; } /** * See {IERC721LazyClaim-checkMintIndex}. */ function checkMintIndex(address creatorContractAddress, uint256 claimIndex, uint32 mintIndex) public override view returns(bool) { Claim storage claim = _claims[creatorContractAddress][claimIndex]; require(claim.storageProtocol != StorageProtocol.INVALID, "Claim not initialized"); require(claim.merkleRoot != "", "Can only check merkle claims"); uint256 claimMintIndex = mintIndex >> 8; uint256 claimMintTracking = _claimMintIndices[creatorContractAddress][claimIndex][claimMintIndex]; uint256 mintBitmask = 1 << (mintIndex & MINT_INDEX_BITMASK); return mintBitmask & claimMintTracking != 0; } /** * See {IERC721LazyClaim-checkMintIndices}. */ function checkMintIndices(address creatorContractAddress, uint256 claimIndex, uint32[] calldata mintIndices) external override view returns(bool[] memory minted) { minted = new bool[](mintIndices.length); for (uint i = 0; i < mintIndices.length; i++) { minted[i] = checkMintIndex(creatorContractAddress, claimIndex, mintIndices[i]); } } /** * See {IERC721LazyClaim-getTotalMints}. */ function getTotalMints(address minter, address creatorContractAddress, uint256 claimIndex) external override view returns(uint32) { Claim storage claim = _claims[creatorContractAddress][claimIndex]; require(claim.storageProtocol != StorageProtocol.INVALID, "Claim not initialized"); require(claim.walletMax != 0, "Can only retrieve for non-merkle claims with walletMax"); return uint32(_mintsPerWallet[creatorContractAddress][claimIndex][minter]); } /** * See {IERC721LazyClaim-mint}. */ function mint(address creatorContractAddress, uint256 claimIndex, uint32 mintIndex, bytes32[] calldata merkleProof) external override { Claim storage claim = _claims[creatorContractAddress][claimIndex]; // Safely retrieve the claim require(claim.storageProtocol != StorageProtocol.INVALID, "Claim not initialized"); // Check timestamps require(claim.startDate == 0 || claim.startDate < block.timestamp, "Transaction before start date"); require(claim.endDate == 0 || claim.endDate >= block.timestamp, "Transaction after end date"); // Check totalMax require(claim.totalMax == 0 || claim.total < claim.totalMax, "Maximum tokens already minted for this claim"); if (claim.merkleRoot != "") { // Merkle mint _checkMerkleAndUpdate(claim, creatorContractAddress, claimIndex, mintIndex, merkleProof); } else { // Non-merkle mint if (claim.walletMax != 0) { require(_mintsPerWallet[creatorContractAddress][claimIndex][msg.sender] < claim.walletMax, "Maximum tokens already minted for this wallet"); unchecked{ _mintsPerWallet[creatorContractAddress][claimIndex][msg.sender]++; } } } unchecked{ claim.total++; } // Do mint uint256 newTokenId = IERC721CreatorCore(creatorContractAddress).mintExtension(msg.sender); // Insert the new tokenId into _tokenClaims for the current claim address & index _tokenClaims[creatorContractAddress][newTokenId] = TokenClaim(uint224(claimIndex), claim.total); emit ClaimMint(creatorContractAddress, claimIndex); } /** * See {IERC721LazyClaim-mintBatch}. */ function mintBatch(address creatorContractAddress, uint256 claimIndex, uint16 mintCount, uint32[] calldata mintIndices, bytes32[][] calldata merkleProofs) external override { Claim storage claim = _claims[creatorContractAddress][claimIndex]; // Safely retrieve the claim require(claim.storageProtocol != StorageProtocol.INVALID, "Claim not initialized"); // Check timestamps require(claim.startDate == 0 || claim.startDate < block.timestamp, "Transaction before start date"); require(claim.endDate == 0 || claim.endDate >= block.timestamp, "Transaction after end date"); // Check totalMax require(claim.totalMax == 0 || claim.total+mintCount <= claim.totalMax, "Too many requested for this claim"); uint256 newMintIndex = claim.total+1; unchecked{ claim.total += mintCount; } if (claim.merkleRoot != "") { require(mintCount == mintIndices.length && mintCount == merkleProofs.length, "Invalid input"); // Merkle mint for (uint i = 0; i < mintCount; ) { uint32 mintIndex = mintIndices[i]; bytes32[] memory merkleProof = merkleProofs[i]; _checkMerkleAndUpdate(claim, creatorContractAddress, claimIndex, mintIndex, merkleProof); unchecked { i++; } } } else { // Non-merkle mint if (claim.walletMax != 0) { require(_mintsPerWallet[creatorContractAddress][claimIndex][msg.sender]+mintCount <= claim.walletMax, "Too many requested for this wallet"); unchecked{ _mintsPerWallet[creatorContractAddress][claimIndex][msg.sender] += mintCount; } } } uint256[] memory newTokenIds = IERC721CreatorCore(creatorContractAddress).mintExtensionBatch(msg.sender, mintCount); for (uint i = 0; i < mintCount; ) { _tokenClaims[creatorContractAddress][newTokenIds[i]] = TokenClaim(uint224(claimIndex), uint32(newMintIndex+i)); unchecked { i++; } } emit ClaimMintBatch(creatorContractAddress, claimIndex, mintCount); } /** * Helper to check merkle proof and whether or not the mintIndex was consumed. Also updates the consumed counts */ function _checkMerkleAndUpdate(Claim storage claim, address creatorContractAddress, uint256 claimIndex, uint32 mintIndex, bytes32[] memory merkleProof) private { // Merkle mint bytes32 leaf = keccak256(abi.encodePacked(msg.sender, mintIndex)); require(MerkleProof.verify(merkleProof, claim.merkleRoot, leaf), "Could not verify merkle proof"); // Check if mintIndex has been minted uint256 claimMintIndex = mintIndex >> 8; uint256 claimMintTracking = _claimMintIndices[creatorContractAddress][claimIndex][claimMintIndex]; uint256 mintBitmask = 1 << (mintIndex & MINT_INDEX_BITMASK); require(mintBitmask & claimMintTracking == 0, "Already minted"); _claimMintIndices[creatorContractAddress][claimIndex][claimMintIndex] = claimMintTracking | mintBitmask; } /** * See {ICreatorExtensionTokenURI-tokenURI}. */ function tokenURI(address creatorContractAddress, uint256 tokenId) external override view returns(string memory uri) { TokenClaim memory tokenClaim = _tokenClaims[creatorContractAddress][tokenId]; require(tokenClaim.claimIndex > 0, "Token does not exist"); Claim memory claim = _claims[creatorContractAddress][tokenClaim.claimIndex]; string memory prefix = ""; if (claim.storageProtocol == StorageProtocol.ARWEAVE) { prefix = ARWEAVE_PREFIX; } else if (claim.storageProtocol == StorageProtocol.IPFS) { prefix = IPFS_PREFIX; } uri = string(abi.encodePacked(prefix, claim.location)); // Depending on params, we may want to append a suffix to location if (!claim.identical) { uri = string(abi.encodePacked(uri, "/", uint256(tokenClaim.mintOrder).toString())); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz /** * Lazy Claim interface */ interface IERC721LazyClaim { enum StorageProtocol { INVALID, NONE, ARWEAVE, IPFS } struct ClaimParameters { uint32 totalMax; uint32 walletMax; uint48 startDate; uint48 endDate; StorageProtocol storageProtocol; bool identical; bytes32 merkleRoot; string location; } struct Claim { uint32 total; uint32 totalMax; uint32 walletMax; uint48 startDate; uint48 endDate; StorageProtocol storageProtocol; bool identical; bytes32 merkleRoot; string location; } event ClaimInitialized(address indexed creatorContract, uint224 indexed claimIndex, address initializer); event ClaimMint(address indexed creatorContract, uint256 indexed claimIndex); event ClaimMintBatch(address indexed creatorContract, uint256 indexed claimIndex, uint16 mintCount); /** * @notice initialize a new claim, emit initialize event, and return the newly created index * @param creatorContractAddress the creator contract the claim will mint tokens for * @param claimParameters the parameters which will affect the minting behavior of the claim * @return the index of the newly created claim */ function initializeClaim(address creatorContractAddress, ClaimParameters calldata claimParameters) external returns(uint256); /** * @notice update an existing claim at claimIndex * @param creatorContractAddress the creator contract corresponding to the claim * @param claimIndex the index of the claim in the list of creatorContractAddress' _claims * @param claimParameters the parameters which will affect the minting behavior of the claim */ function updateClaim(address creatorContractAddress, uint256 claimIndex, ClaimParameters calldata claimParameters) external; /** * @notice get the number of _claims initialized for a given creator contract * @param creatorContractAddress the address of the creator contract * @return the number of _claims initialized for this creator contract */ function getClaimCount(address creatorContractAddress) external view returns(uint256); /** * @notice get a claim corresponding to a creator contract and index * @param creatorContractAddress the address of the creator contract * @param claimIndex the index of the claim * @return the claim object */ function getClaim(address creatorContractAddress, uint256 claimIndex) external view returns(Claim memory); /** * @notice check if a mint index has been consumed or not (only for merkle claims) * * @param creatorContractAddress the address of the creator contract for the claim * @param claimIndex the index of the claim * @param mintIndex the mint index of the claim * @return whether or not the mint index was consumed */ function checkMintIndex(address creatorContractAddress, uint256 claimIndex, uint32 mintIndex) external view returns(bool); /** * @notice check if multiple mint indices has been consumed or not (only for merkle claims) * * @param creatorContractAddress the address of the creator contract for the claim * @param claimIndex the index of the claim * @param mintIndices the mint index of the claim * @return whether or not the mint index was consumed */ function checkMintIndices(address creatorContractAddress, uint256 claimIndex, uint32[] calldata mintIndices) external view returns(bool[] memory); /** * @notice get mints made for a wallet (only for non-merkle claims with walletMax) * * @param minter the address of the minting address * @param creatorContractAddress the address of the creator contract for the claim * @param claimIndex the index of the claim * @return how many mints the minter has made */ function getTotalMints(address minter, address creatorContractAddress, uint256 claimIndex) external view returns(uint32); /** * @notice allow a wallet to lazily claim a token according to parameters * @param creatorContractAddress the creator contract address * @param claimIndex the index of the claim for which we will mint * @param mintIndex the mint index (only needed for merkle claims) * @param merkleProof if the claim has a merkleRoot, verifying merkleProof ensures that address + minterValue was used to construct it (only needed for merkle claims) */ function mint(address creatorContractAddress, uint256 claimIndex, uint32 mintIndex, bytes32[] calldata merkleProof) external; /** * @notice allow a wallet to lazily claim a token according to parameters * @param creatorContractAddress the creator contract address * @param claimIndex the index of the claim for which we will mint * @param mintCount the number of claims to mint * @param mintIndices the mint index (only needed for merkle claims) * @param merkleProofs if the claim has a merkleRoot, verifying merkleProof ensures that address + minterValue was used to construct it (only needed for merkle claims) */ function mintBatch(address creatorContractAddress, uint256 claimIndex, uint16 mintCount, uint32[] calldata mintIndices, bytes32[][] calldata merkleProofs) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Implement this if you want your extension to have overloadable URI's */ interface ICreatorExtensionTokenURI is IERC165 { /** * Get the uri for a given creator/tokenId */ function tokenURI(address creator, uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IAdminControl.sol"; abstract contract AdminControl is Ownable, IAdminControl, ERC165 { using EnumerableSet for EnumerableSet.AddressSet; // Track registered admins EnumerableSet.AddressSet private _admins; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IAdminControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Only allows approved admins to call the specified function */ modifier adminRequired() { require(owner() == msg.sender || _admins.contains(msg.sender), "AdminControl: Must be owner or admin"); _; } /** * @dev See {IAdminControl-getAdmins}. */ function getAdmins() external view override returns (address[] memory admins) { admins = new address[](_admins.length()); for (uint i = 0; i < _admins.length(); i++) { admins[i] = _admins.at(i); } return admins; } /** * @dev See {IAdminControl-approveAdmin}. */ function approveAdmin(address admin) external override onlyOwner { if (!_admins.contains(admin)) { emit AdminApproved(admin, msg.sender); _admins.add(admin); } } /** * @dev See {IAdminControl-revokeAdmin}. */ function revokeAdmin(address admin) external override onlyOwner { if (_admins.contains(admin)) { emit AdminRevoked(admin, msg.sender); _admins.remove(admin); } } /** * @dev See {IAdminControl-isAdmin}. */ function isAdmin(address admin) public override view returns (bool) { return (owner() == admin || _admins.contains(admin)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "./ICreatorCore.sol"; /** * @dev Core ERC721 creator interface */ interface IERC721CreatorCore is ICreatorCore { /** * @dev mint a token with no extension. Can only be called by an admin. * Returns tokenId minted */ function mintBase(address to) external returns (uint256); /** * @dev mint a token with no extension. Can only be called by an admin. * Returns tokenId minted */ function mintBase(address to, string calldata uri) external returns (uint256); /** * @dev batch mint a token with no extension. Can only be called by an admin. * Returns tokenId minted */ function mintBaseBatch(address to, uint16 count) external returns (uint256[] memory); /** * @dev batch mint a token with no extension. Can only be called by an admin. * Returns tokenId minted */ function mintBaseBatch(address to, string[] calldata uris) external returns (uint256[] memory); /** * @dev mint a token. Can only be called by a registered extension. * Returns tokenId minted */ function mintExtension(address to) external returns (uint256); /** * @dev mint a token. Can only be called by a registered extension. * Returns tokenId minted */ function mintExtension(address to, string calldata uri) external returns (uint256); /** * @dev batch mint a token. Can only be called by a registered extension. * Returns tokenIds minted */ function mintExtensionBatch(address to, uint16 count) external returns (uint256[] memory); /** * @dev batch mint a token. Can only be called by a registered extension. * Returns tokenId minted */ function mintExtensionBatch(address to, string[] calldata uris) external returns (uint256[] memory); /** * @dev burn a token. Can only be called by token owner or approved address. * On burn, calls back to the registered extension's onBurn method */ function burn(uint256 tokenId) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Interface for admin control */ interface IAdminControl is IERC165 { event AdminApproved(address indexed account, address indexed sender); event AdminRevoked(address indexed account, address indexed sender); /** * @dev gets address of all admins */ function getAdmins() external view returns (address[] memory); /** * @dev add an admin. Can only be called by contract owner. */ function approveAdmin(address admin) external; /** * @dev remove an admin. Can only be called by contract owner. */ function revokeAdmin(address admin) external; /** * @dev checks whether or not given address is an admin * Returns True if they are */ function isAdmin(address admin) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Core creator interface */ interface ICreatorCore is IERC165 { event ExtensionRegistered(address indexed extension, address indexed sender); event ExtensionUnregistered(address indexed extension, address indexed sender); event ExtensionBlacklisted(address indexed extension, address indexed sender); event MintPermissionsUpdated(address indexed extension, address indexed permissions, address indexed sender); event RoyaltiesUpdated(uint256 indexed tokenId, address payable[] receivers, uint256[] basisPoints); event DefaultRoyaltiesUpdated(address payable[] receivers, uint256[] basisPoints); event ExtensionRoyaltiesUpdated(address indexed extension, address payable[] receivers, uint256[] basisPoints); event ExtensionApproveTransferUpdated(address indexed extension, bool enabled); /** * @dev gets address of all extensions */ function getExtensions() external view returns (address[] memory); /** * @dev add an extension. Can only be called by contract owner or admin. * extension address must point to a contract implementing ICreatorExtension. * Returns True if newly added, False if already added. */ function registerExtension(address extension, string calldata baseURI) external; /** * @dev add an extension. Can only be called by contract owner or admin. * extension address must point to a contract implementing ICreatorExtension. * Returns True if newly added, False if already added. */ function registerExtension(address extension, string calldata baseURI, bool baseURIIdentical) external; /** * @dev add an extension. Can only be called by contract owner or admin. * Returns True if removed, False if already removed. */ function unregisterExtension(address extension) external; /** * @dev blacklist an extension. Can only be called by contract owner or admin. * This function will destroy all ability to reference the metadata of any tokens created * by the specified extension. It will also unregister the extension if needed. * Returns True if removed, False if already removed. */ function blacklistExtension(address extension) external; /** * @dev set the baseTokenURI of an extension. Can only be called by extension. */ function setBaseTokenURIExtension(string calldata uri) external; /** * @dev set the baseTokenURI of an extension. Can only be called by extension. * For tokens with no uri configured, tokenURI will return "uri+tokenId" */ function setBaseTokenURIExtension(string calldata uri, bool identical) external; /** * @dev set the common prefix of an extension. Can only be called by extension. * If configured, and a token has a uri set, tokenURI will return "prefixURI+tokenURI" * Useful if you want to use ipfs/arweave */ function setTokenURIPrefixExtension(string calldata prefix) external; /** * @dev set the tokenURI of a token extension. Can only be called by extension that minted token. */ function setTokenURIExtension(uint256 tokenId, string calldata uri) external; /** * @dev set the tokenURI of a token extension for multiple tokens. Can only be called by extension that minted token. */ function setTokenURIExtension(uint256[] memory tokenId, string[] calldata uri) external; /** * @dev set the baseTokenURI for tokens with no extension. Can only be called by owner/admin. * For tokens with no uri configured, tokenURI will return "uri+tokenId" */ function setBaseTokenURI(string calldata uri) external; /** * @dev set the common prefix for tokens with no extension. Can only be called by owner/admin. * If configured, and a token has a uri set, tokenURI will return "prefixURI+tokenURI" * Useful if you want to use ipfs/arweave */ function setTokenURIPrefix(string calldata prefix) external; /** * @dev set the tokenURI of a token with no extension. Can only be called by owner/admin. */ function setTokenURI(uint256 tokenId, string calldata uri) external; /** * @dev set the tokenURI of multiple tokens with no extension. Can only be called by owner/admin. */ function setTokenURI(uint256[] memory tokenIds, string[] calldata uris) external; /** * @dev set a permissions contract for an extension. Used to control minting. */ function setMintPermissions(address extension, address permissions) external; /** * @dev Configure so transfers of tokens created by the caller (must be extension) gets approval * from the extension before transferring */ function setApproveTransferExtension(bool enabled) external; /** * @dev get the extension of a given token */ function tokenExtension(uint256 tokenId) external view returns (address); /** * @dev Set default royalties */ function setRoyalties(address payable[] calldata receivers, uint256[] calldata basisPoints) external; /** * @dev Set royalties of a token */ function setRoyalties(uint256 tokenId, address payable[] calldata receivers, uint256[] calldata basisPoints) external; /** * @dev Set royalties of an extension */ function setRoyaltiesExtension(address extension, address payable[] calldata receivers, uint256[] calldata basisPoints) external; /** * @dev Get royalites of a token. Returns list of receivers and basisPoints */ function getRoyalties(uint256 tokenId) external view returns (address payable[] memory, uint256[] memory); // Royalty support for various other standards function getFeeRecipients(uint256 tokenId) external view returns (address payable[] memory); function getFeeBps(uint256 tokenId) external view returns (uint[] memory); function getFees(uint256 tokenId) external view returns (address payable[] memory, uint256[] memory); function royaltyInfo(uint256 tokenId, uint256 value) external view returns (address, uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"creatorContract","type":"address"},{"indexed":true,"internalType":"uint224","name":"claimIndex","type":"uint224"},{"indexed":false,"internalType":"address","name":"initializer","type":"address"}],"name":"ClaimInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"creatorContract","type":"address"},{"indexed":true,"internalType":"uint256","name":"claimIndex","type":"uint256"}],"name":"ClaimMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"creatorContract","type":"address"},{"indexed":true,"internalType":"uint256","name":"claimIndex","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"mintCount","type":"uint16"}],"name":"ClaimMintBatch","type":"event"},{"inputs":[{"internalType":"address","name":"creatorContractAddress","type":"address"},{"internalType":"uint256","name":"claimIndex","type":"uint256"},{"internalType":"uint32","name":"mintIndex","type":"uint32"}],"name":"checkMintIndex","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"creatorContractAddress","type":"address"},{"internalType":"uint256","name":"claimIndex","type":"uint256"},{"internalType":"uint32[]","name":"mintIndices","type":"uint32[]"}],"name":"checkMintIndices","outputs":[{"internalType":"bool[]","name":"minted","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"creatorContractAddress","type":"address"},{"internalType":"uint256","name":"claimIndex","type":"uint256"}],"name":"getClaim","outputs":[{"components":[{"internalType":"uint32","name":"total","type":"uint32"},{"internalType":"uint32","name":"totalMax","type":"uint32"},{"internalType":"uint32","name":"walletMax","type":"uint32"},{"internalType":"uint48","name":"startDate","type":"uint48"},{"internalType":"uint48","name":"endDate","type":"uint48"},{"internalType":"enum IERC721LazyClaim.StorageProtocol","name":"storageProtocol","type":"uint8"},{"internalType":"bool","name":"identical","type":"bool"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"string","name":"location","type":"string"}],"internalType":"struct IERC721LazyClaim.Claim","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"creatorContractAddress","type":"address"}],"name":"getClaimCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"address","name":"creatorContractAddress","type":"address"},{"internalType":"uint256","name":"claimIndex","type":"uint256"}],"name":"getTotalMints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"creatorContractAddress","type":"address"},{"components":[{"internalType":"uint32","name":"totalMax","type":"uint32"},{"internalType":"uint32","name":"walletMax","type":"uint32"},{"internalType":"uint48","name":"startDate","type":"uint48"},{"internalType":"uint48","name":"endDate","type":"uint48"},{"internalType":"enum IERC721LazyClaim.StorageProtocol","name":"storageProtocol","type":"uint8"},{"internalType":"bool","name":"identical","type":"bool"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"string","name":"location","type":"string"}],"internalType":"struct IERC721LazyClaim.ClaimParameters","name":"claimParameters","type":"tuple"}],"name":"initializeClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"creatorContractAddress","type":"address"},{"internalType":"uint256","name":"claimIndex","type":"uint256"},{"internalType":"uint32","name":"mintIndex","type":"uint32"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"creatorContractAddress","type":"address"},{"internalType":"uint256","name":"claimIndex","type":"uint256"},{"internalType":"uint16","name":"mintCount","type":"uint16"},{"internalType":"uint32[]","name":"mintIndices","type":"uint32[]"},{"internalType":"bytes32[][]","name":"merkleProofs","type":"bytes32[][]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"creatorContractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"creatorContractAddress","type":"address"},{"internalType":"uint256","name":"claimIndex","type":"uint256"},{"components":[{"internalType":"uint32","name":"totalMax","type":"uint32"},{"internalType":"uint32","name":"walletMax","type":"uint32"},{"internalType":"uint48","name":"startDate","type":"uint48"},{"internalType":"uint48","name":"endDate","type":"uint48"},{"internalType":"enum IERC721LazyClaim.StorageProtocol","name":"storageProtocol","type":"uint8"},{"internalType":"bool","name":"identical","type":"bool"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"string","name":"location","type":"string"}],"internalType":"struct IERC721LazyClaim.ClaimParameters","name":"claimParameters","type":"tuple"}],"name":"updateClaim","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50600160005561306e806100256000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c806342f3bef411610081578063d5fdfe871161005b578063d5fdfe87146101ad578063e9dc6375146101df578063f8a6137b146101ff57600080fd5b806342f3bef41461015f578063bbf2a8c614610187578063cda085361461019a57600080fd5b80630f79ab39116100b25780630f79ab39146101175780631831a643146101375780633512da331461014c57600080fd5b806301ffc9a7146100ce578063037b79db146100f6575b600080fd5b6100e16100dc366004612724565b61021f565b60405190151581526020015b60405180910390f35b61010961010436600461278a565b6102bc565b6040519081526020016100ed565b61012a6101253660046127d8565b6108d3565b6040516100ed9190612896565b61014a610145366004612949565b610b14565b005b61014a61015a3660046129ec565b61120a565b61017261016d366004612a90565b611832565b60405163ffffffff90911681526020016100ed565b61014a610195366004612ae0565b611973565b6100e16101a8366004612b4f565b611e00565b6101096101bb366004612b8b565b6001600160a01b03166000908152600160205260409020546001600160e01b031690565b6101f26101ed3660046127d8565b611f22565b6040516100ed9190612ba6565b61021261020d366004612bb9565b612260565b6040516100ed9190612c13565b60006001600160e01b031982167f38dbd06a00000000000000000000000000000000000000000000000000000000148061028257506001600160e01b031982167fe9dc637500000000000000000000000000000000000000000000000000000000145b806102b657506001600160e01b031982167f01ffc9a700000000000000000000000000000000000000000000000000000000145b92915050565b604051630935e01b60e21b8152336004820152600090839081906001600160a01b038216906324d7806c90602401602060405180830381865afa158015610307573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032b9190612c6a565b6103905760405162461bcd60e51b815260206004820152602b60248201527f57616c6c6574206973206e6f7420616e2061646d696e6973747261746f72206660448201526a1bdc8818dbdb9d1c9858dd60aa1b60648201526084015b60405180910390fd5b60006103a260a0860160808701612c87565b60038111156103b3576103b3612802565b036104265760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420696e697469616c697a65207769746820696e76616c6964207360448201527f746f726167652070726f746f636f6c00000000000000000000000000000000006064820152608401610387565b6104366080850160608601612ca8565b65ffffffffffff16158061047757506104556080850160608601612ca8565b65ffffffffffff1661046d6060860160408701612ca8565b65ffffffffffff16105b6104e95760405162461bcd60e51b815260206004820152603660248201527f43616e6e6f74206861766520737461727444617465206772656174657220746860448201527f616e206f7220657175616c20746f20656e6444617465000000000000000000006064820152608401610387565b60c0840135158061050d57506105056040850160208601612cd0565b63ffffffff16155b61057f5760405162461bcd60e51b815260206004820152603160248201527f43616e6e6f742070726f7669646520626f7468206d696e747350657257616c6c60448201527f657420616e64206d65726b6c65526f6f740000000000000000000000000000006064820152608401610387565b6001600160a01b038516600090815260016020526040812080546001600160e01b0316916105ac83612d01565b82546101009290920a6001600160e01b038181021990931691831602179091556001600160a01b03871660009081526001602090815260408083205481516101208101909252928152919092169250908181019061060c90880188612cd0565b63ffffffff16815260200186602001602081019061062a9190612cd0565b63ffffffff1681526020016106456060880160408901612ca8565b65ffffffffffff1681526020016106626080880160608901612ca8565b65ffffffffffff16815260200161067f60a0880160808901612c87565b600381111561069057610690612802565b81526020016106a560c0880160a08901612d27565b1515815260c087013560208201526040016106c360e0880188612d44565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509390945250506001600160a01b03891681526002602090815260408083206001600160e01b03871684528252918290208451815492860151938601516060870151608088015165ffffffffffff908116600160901b027fffffffffffffffff000000000000ffffffffffffffffffffffffffffffffffff91909216600160601b0271ffffffffffff0000000000000000000000001963ffffffff948516600160401b021671ffffffffffffffffffff0000000000000000199885166401000000000267ffffffffffffffff199098169490951693909317959095179590951691909117179182168317815560a085015190935091839160ff60c01b199091167fffffffffffffff00000000000000ffffffffffffffffffffffffffffffffffff90911617600160c01b83600381111561082e5761082e612802565b021790555060c08201518154901515600160c81b0260ff60c81b1990911617815560e08201516001820155610100820151805161087591600284019160209091019061268b565b50506040513381526001600160e01b03831691506001600160a01b038816907fcf76e1beb8dcf887c917933e1d0970eafadb9a69b82cfd5f44740a0dce6f45a69060200160405180910390a36001600160e01b031695945050505050565b610920604080516101208101825260008082526020820181905291810182905260608101829052608081018290529060a08201908152600060208201819052604082015260609081015290565b60006001600160a01b0384166000908152600260209081526040808320868452909152902054600160c01b900460ff16600381111561096157610961612802565b036109a65760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b6044820152606401610387565b6001600160a01b0383166000908152600260209081526040808320858452825291829020825161012081018452815463ffffffff80821683526401000000008204811694830194909452600160401b81049093169381019390935265ffffffffffff600160601b830481166060850152600160901b83041660808401529060a083019060ff600160c01b909104166003811115610a4557610a45612802565b6003811115610a5657610a56612802565b81528154600160c81b900460ff161515602082015260018201546040820152600282018054606090920191610a8a90612d8b565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab690612d8b565b8015610b035780601f10610ad857610100808354040283529160200191610b03565b820191906000526020600020905b815481529060010190602001808311610ae657829003601f168201915b505050505081525050905092915050565b604051630935e01b60e21b8152336004820152839081906001600160a01b038216906324d7806c90602401602060405180830381865afa158015610b5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b809190612c6a565b610be05760405162461bcd60e51b815260206004820152602b60248201527f57616c6c6574206973206e6f7420616e2061646d696e6973747261746f72206660448201526a1bdc8818dbdb9d1c9858dd60aa1b6064820152608401610387565b60006001600160a01b0386166000908152600260209081526040808320888452909152902054600160c01b900460ff166003811115610c2157610c21612802565b03610c665760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b6044820152606401610387565b6000610c7860a0850160808601612c87565b6003811115610c8957610c89612802565b03610cfc5760405162461bcd60e51b815260206004820152602360248201527f43616e6e6f742073657420696e76616c69642073746f726167652070726f746f60448201527f636f6c00000000000000000000000000000000000000000000000000000000006064820152608401610387565b6001600160a01b0385166000908152600260209081526040808320878452909152902054640100000000900463ffffffff161580610d7d5750610d426020840184612cd0565b6001600160a01b038616600090815260026020908152604080832088845290915290205463ffffffff91821664010000000090910490911611155b610dc95760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420646563726561736520746f74616c4d617800000000000000006044820152606401610387565b6001600160a01b0385166000908152600260209081526040808320878452909152902054600160401b900463ffffffff161580610e4b5750610e116040840160208501612cd0565b6001600160a01b038616600090815260026020908152604080832088845290915290205463ffffffff918216600160401b90910490911611155b610e975760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f742064656372656173652077616c6c65744d6178000000000000006044820152606401610387565b610ea76080840160608501612ca8565b65ffffffffffff161580610ee85750610ec66080840160608501612ca8565b65ffffffffffff16610ede6060850160408601612ca8565b65ffffffffffff16105b610f5a5760405162461bcd60e51b815260206004820152603660248201527f43616e6e6f74206861766520737461727444617465206772656174657220746860448201527f616e206f7220657175616c20746f20656e6444617465000000000000000000006064820152608401610387565b60408051610120810182526001600160a01b03871660009081526002602090815283822088835281529290205463ffffffff1681529080820190610fa090860186612cd0565b63ffffffff168152602001846020016020810190610fbe9190612cd0565b63ffffffff168152602001610fd96060860160408701612ca8565b65ffffffffffff168152602001610ff66080860160608701612ca8565b65ffffffffffff16815260200161101360a0860160808701612c87565b600381111561102457611024612802565b815260200161103960c0860160a08701612d27565b1515815260c0850135602082015260400161105760e0860186612d44565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509390945250506001600160a01b03881681526002602090815260408083208984528252918290208451815492860151938601516060870151608088015165ffffffffffff908116600160901b027fffffffffffffffff000000000000ffffffffffffffffffffffffffffffffffff91909216600160601b0271ffffffffffff0000000000000000000000001963ffffffff948516600160401b021671ffffffffffffffffffff0000000000000000199885166401000000000267ffffffffffffffff199098169490951693909317959095179590951691909117179182168317815560a085015190935091839160ff60c01b199091167fffffffffffffff00000000000000ffffffffffffffffffffffffffffffffffff90911617600160c01b8360038111156111b9576111b9612802565b021790555060c08201518154901515600160c81b0260ff60c81b1990911617815560e08201516001820155610100820151805161120091600284019160209091019061268b565b5050505050505050565b6001600160a01b03871660009081526002602090815260408083208984529091528120908154600160c01b900460ff16600381111561124b5761124b612802565b036112905760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b6044820152606401610387565b8054600160601b900465ffffffffffff1615806112bd5750805442600160601b90910465ffffffffffff16105b6113095760405162461bcd60e51b815260206004820152601d60248201527f5472616e73616374696f6e206265666f726520737461727420646174650000006044820152606401610387565b8054600160901b900465ffffffffffff1615806113375750805442600160901b90910465ffffffffffff1610155b6113835760405162461bcd60e51b815260206004820152601a60248201527f5472616e73616374696f6e20616674657220656e6420646174650000000000006044820152606401610387565b8054640100000000900463ffffffff1615806113c55750805463ffffffff64010000000082048116916113bc9161ffff8a169116612dbf565b63ffffffff1611155b6114375760405162461bcd60e51b815260206004820152602160248201527f546f6f206d616e792072657175657374656420666f72207468697320636c616960448201527f6d000000000000000000000000000000000000000000000000000000000000006064820152608401610387565b805460009061144d9063ffffffff166001612dbf565b825463ffffffff19811661ffff8a1663ffffffff9283160182161784556001840154911691501561158e5761ffff87168514801561148e575061ffff871683145b6114da5760405162461bcd60e51b815260206004820152600d60248201527f496e76616c696420696e707574000000000000000000000000000000000000006044820152606401610387565b60005b8761ffff168110156115885760008787838181106114fd576114fd612de7565b90506020020160208101906115129190612cd0565b9050600086868481811061152857611528612de7565b905060200281019061153a9190612dfd565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092935061157e92508791508e90508d858561231b565b50506001016114dd565b50611698565b8154600160401b900463ffffffff16156116985781546001600160a01b038a1660009081526003602090815260408083208c84528252808320338452909152902054600160401b90910463ffffffff16906115ee9061ffff8a1690612e47565b11156116625760405162461bcd60e51b815260206004820152602260248201527f546f6f206d616e792072657175657374656420666f7220746869732077616c6c60448201527f65740000000000000000000000000000000000000000000000000000000000006064820152608401610387565b6001600160a01b03891660009081526003602090815260408083208b845282528083203384529091529020805461ffff89160190555b6040517fe00aab4b00000000000000000000000000000000000000000000000000000000815233600482015261ffff881660248201526000906001600160a01b038b169063e00aab4b906044016000604051808303816000875af1158015611704573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261172c9190810190612e75565b905060005b8861ffff168110156117e15760405180604001604052808b6001600160e01b0316815260200182856117639190612e47565b63ffffffff1690526001600160a01b038c166000908152600560205260408120845190919085908590811061179a5761179a612de7565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b03909216919091179055600101611731565b5060405161ffff8916815289906001600160a01b038c16907f74f5d3254dfa39a7b1217a27d5d9b3e061eafe11720eca1cf499da2dc1eb12599060200160405180910390a350505050505050505050565b6001600160a01b03821660009081526002602090815260408083208484529091528120818154600160c01b900460ff16600381111561187357611873612802565b036118b85760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b6044820152606401610387565b8054600160401b900463ffffffff1660000361193c5760405162461bcd60e51b815260206004820152603660248201527f43616e206f6e6c7920726574726965766520666f72206e6f6e2d6d65726b6c6560448201527f20636c61696d7320776974682077616c6c65744d6178000000000000000000006064820152608401610387565b50506001600160a01b0380831660009081526003602090815260408083208584528252808320938716835292905220549392505050565b6001600160a01b03851660009081526002602090815260408083208784529091528120908154600160c01b900460ff1660038111156119b4576119b4612802565b036119f95760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b6044820152606401610387565b8054600160601b900465ffffffffffff161580611a265750805442600160601b90910465ffffffffffff16105b611a725760405162461bcd60e51b815260206004820152601d60248201527f5472616e73616374696f6e206265666f726520737461727420646174650000006044820152606401610387565b8054600160901b900465ffffffffffff161580611aa05750805442600160901b90910465ffffffffffff1610155b611aec5760405162461bcd60e51b815260206004820152601a60248201527f5472616e73616374696f6e20616674657220656e6420646174650000000000006044820152606401610387565b8054640100000000900463ffffffff161580611b185750805463ffffffff640100000000820481169116105b611b8a5760405162461bcd60e51b815260206004820152602c60248201527f4d6178696d756d20746f6b656e7320616c7265616479206d696e74656420666f60448201527f72207468697320636c61696d00000000000000000000000000000000000000006064820152608401610387565b600181015415611bd957611bd48187878787878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061231b92505050565b611ccf565b8054600160401b900463ffffffff1615611ccf5780546001600160a01b03871660009081526003602090815260408083208984528252808320338452909152902054600160401b90910463ffffffff1611611c9c5760405162461bcd60e51b815260206004820152602d60248201527f4d6178696d756d20746f6b656e7320616c7265616479206d696e74656420666f60448201527f7220746869732077616c6c6574000000000000000000000000000000000000006064820152608401610387565b6001600160a01b038616600090815260036020908152604080832088845282528083203384529091529020805460010190555b805463ffffffff8082166001011663ffffffff199091161781556040517f2928ca580000000000000000000000000000000000000000000000000000000081523360048201526000906001600160a01b03881690632928ca58906024016020604051808303816000875af1158015611d4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d6f9190612f33565b6040805180820182526001600160e01b03808a168252855463ffffffff90811660208085019182526001600160a01b038e1660008181526005835287812089825290925286822095519251909316600160e01b0291909316179092559151929350889290917f5d404f369772cfab2b65717fca9bc2077efeab89a0dbec036bf0c13783154eb191a350505050505050565b6001600160a01b03831660009081526002602090815260408083208584529091528120818154600160c01b900460ff166003811115611e4157611e41612802565b03611e865760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b6044820152606401610387565b8060010154600003611eda5760405162461bcd60e51b815260206004820152601c60248201527f43616e206f6e6c7920636865636b206d65726b6c6520636c61696d73000000006044820152606401610387565b50506001600160a01b0383166000908152600460209081526040808320858452825280832062ffffff600886901c168452909152902054600160ff83161b1615159392505050565b6001600160a01b03821660009081526005602090815260408083208484528252918290208251808401909352546001600160e01b038116808452600160e01b90910463ffffffff169183019190915260609190611fc15760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20646f6573206e6f742065786973740000000000000000000000006044820152606401610387565b6001600160a01b038416600090815260026020908152604080832084516001600160e01b031684528252808320815161012081018352815463ffffffff80821683526401000000008204811695830195909552600160401b81049094169281019290925265ffffffffffff600160601b840481166060840152600160901b8404166080830152909160a083019060ff600160c01b90910416600381111561206a5761206a612802565b600381111561207b5761207b612802565b81528154600160c81b900460ff1615156020820152600182015460408201526002820180546060909201916120af90612d8b565b80601f01602080910402602001604051908101604052809291908181526020018280546120db90612d8b565b80156121285780601f106120fd57610100808354040283529160200191612128565b820191906000526020600020905b81548152906001019060200180831161210b57829003601f168201915b505050919092525050604080516020810190915260008152919250600290508260a00151600381111561215d5761215d612802565b0361219c575060408051808201909152601481527f68747470733a2f2f617277656176652e6e65742f00000000000000000000000060208201526121ef565b60038260a0015160038111156121b4576121b4612802565b036121ef575060408051808201909152600781527f697066733a2f2f0000000000000000000000000000000000000000000000000060208201525b610100820151604051612206918391602001612f4c565b60405160208183030381529060405293508160c001516122575783612234846020015163ffffffff1661248c565b604051602001612245929190612f72565b60405160208183030381529060405293505b50505092915050565b60608167ffffffffffffffff81111561227b5761227b612e5f565b6040519080825280602002602001820160405280156122a4578160200160208202803683370190505b50905060005b82811015612312576122de86868686858181106122c9576122c9612de7565b90506020020160208101906101a89190612cd0565b8282815181106122f0576122f0612de7565b911515602092830291909101909101528061230a81612fca565b9150506122aa565b50949350505050565b6040516bffffffffffffffffffffffff193360601b1660208201526001600160e01b031960e084901b166034820152600090603801604051602081830303815290604052805190602001209050612377828760010154836125c9565b6123c35760405162461bcd60e51b815260206004820152601d60248201527f436f756c64206e6f7420766572696679206d65726b6c652070726f6f660000006044820152606401610387565b6001600160a01b0385166000908152600460209081526040808320878452825280832062ffffff600888901c16808552925290912054600160ff86161b808216156124505760405162461bcd60e51b815260206004820152600e60248201527f416c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610387565b6001600160a01b039097166000908152600460209081526040808320988352978152878220938252929092529490209390941790925550505050565b6060816000036124cf57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156124f957806124e381612fca565b91506124f29050600a83612ff9565b91506124d3565b60008167ffffffffffffffff81111561251457612514612e5f565b6040519080825280601f01601f19166020018201604052801561253e576020820181803683370190505b5090505b84156125c15761255360018361300d565b9150612560600a86613024565b61256b906030612e47565b60f81b81838151811061258057612580612de7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506125ba600a86612ff9565b9450612542565b949350505050565b6000826125d685846125df565b14949350505050565b600081815b845181101561268357600085828151811061260157612601612de7565b60200260200101519050808311612643576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612670565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061267b81612fca565b9150506125e4565b509392505050565b82805461269790612d8b565b90600052602060002090601f0160209004810192826126b957600085556126ff565b82601f106126d257805160ff19168380011785556126ff565b828001600101855582156126ff579182015b828111156126ff5782518255916020019190600101906126e4565b5061270b92915061270f565b5090565b5b8082111561270b5760008155600101612710565b60006020828403121561273657600080fd5b81356001600160e01b03198116811461274e57600080fd5b9392505050565b80356001600160a01b038116811461276c57600080fd5b919050565b6000610100828403121561278457600080fd5b50919050565b6000806040838503121561279d57600080fd5b6127a683612755565b9150602083013567ffffffffffffffff8111156127c257600080fd5b6127ce85828601612771565b9150509250929050565b600080604083850312156127eb57600080fd5b6127f483612755565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b6004811061283657634e487b7160e01b600052602160045260246000fd5b9052565b60005b8381101561285557818101518382015260200161283d565b83811115612864576000848401525b50505050565b6000815180845261288281602086016020860161283a565b601f01601f19169290920160200192915050565b602081526128ad60208201835163ffffffff169052565b600060208301516128c6604084018263ffffffff169052565b50604083015163ffffffff8116606084015250606083015165ffffffffffff8116608084015250608083015165ffffffffffff811660a08401525060a083015161291360c0840182612818565b5060c083015180151560e08401525060e083015161010083810191909152830151610120808401526125c161014084018261286a565b60008060006060848603121561295e57600080fd5b61296784612755565b925060208401359150604084013567ffffffffffffffff81111561298a57600080fd5b61299686828701612771565b9150509250925092565b60008083601f8401126129b257600080fd5b50813567ffffffffffffffff8111156129ca57600080fd5b6020830191508360208260051b85010111156129e557600080fd5b9250929050565b600080600080600080600060a0888a031215612a0757600080fd5b612a1088612755565b965060208801359550604088013561ffff81168114612a2e57600080fd5b9450606088013567ffffffffffffffff80821115612a4b57600080fd5b612a578b838c016129a0565b909650945060808a0135915080821115612a7057600080fd5b50612a7d8a828b016129a0565b989b979a50959850939692959293505050565b600080600060608486031215612aa557600080fd5b612aae84612755565b9250612abc60208501612755565b9150604084013590509250925092565b803563ffffffff8116811461276c57600080fd5b600080600080600060808688031215612af857600080fd5b612b0186612755565b945060208601359350612b1660408701612acc565b9250606086013567ffffffffffffffff811115612b3257600080fd5b612b3e888289016129a0565b969995985093965092949392505050565b600080600060608486031215612b6457600080fd5b612b6d84612755565b925060208401359150612b8260408501612acc565b90509250925092565b600060208284031215612b9d57600080fd5b61274e82612755565b60208152600061274e602083018461286a565b60008060008060608587031215612bcf57600080fd5b612bd885612755565b935060208501359250604085013567ffffffffffffffff811115612bfb57600080fd5b612c07878288016129a0565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b81811015612c4d578351151583529284019291840191600101612c2f565b50909695505050505050565b8015158114612c6757600080fd5b50565b600060208284031215612c7c57600080fd5b815161274e81612c59565b600060208284031215612c9957600080fd5b81356004811061274e57600080fd5b600060208284031215612cba57600080fd5b813565ffffffffffff8116811461274e57600080fd5b600060208284031215612ce257600080fd5b61274e82612acc565b634e487b7160e01b600052601160045260246000fd5b60006001600160e01b03808316818103612d1d57612d1d612ceb565b6001019392505050565b600060208284031215612d3957600080fd5b813561274e81612c59565b6000808335601e19843603018112612d5b57600080fd5b83018035915067ffffffffffffffff821115612d7657600080fd5b6020019150368190038213156129e557600080fd5b600181811c90821680612d9f57607f821691505b60208210810361278457634e487b7160e01b600052602260045260246000fd5b600063ffffffff808316818516808303821115612dde57612dde612ceb565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112612e1457600080fd5b83018035915067ffffffffffffffff821115612e2f57600080fd5b6020019150600581901b36038213156129e557600080fd5b60008219821115612e5a57612e5a612ceb565b500190565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215612e8857600080fd5b825167ffffffffffffffff80821115612ea057600080fd5b818501915085601f830112612eb457600080fd5b815181811115612ec657612ec6612e5f565b8060051b604051601f19603f83011681018181108582111715612eeb57612eeb612e5f565b604052918252848201925083810185019188831115612f0957600080fd5b938501935b82851015612f2757845184529385019392850192612f0e565b98975050505050505050565b600060208284031215612f4557600080fd5b5051919050565b60008351612f5e81846020880161283a565b835190830190612dde81836020880161283a565b60008351612f8481846020880161283a565b7f2f000000000000000000000000000000000000000000000000000000000000009083019081528351612fbe81600184016020880161283a565b01600101949350505050565b600060018201612fdc57612fdc612ceb565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261300857613008612fe3565b500490565b60008282101561301f5761301f612ceb565b500390565b60008261303357613033612fe3565b50069056fea264697066735822122036a9685f79261920cebda45a8dbb9bdb76ddd5b19b4fd52c3d0e88fffbcd500c64736f6c634300080e0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100c95760003560e01c806342f3bef411610081578063d5fdfe871161005b578063d5fdfe87146101ad578063e9dc6375146101df578063f8a6137b146101ff57600080fd5b806342f3bef41461015f578063bbf2a8c614610187578063cda085361461019a57600080fd5b80630f79ab39116100b25780630f79ab39146101175780631831a643146101375780633512da331461014c57600080fd5b806301ffc9a7146100ce578063037b79db146100f6575b600080fd5b6100e16100dc366004612724565b61021f565b60405190151581526020015b60405180910390f35b61010961010436600461278a565b6102bc565b6040519081526020016100ed565b61012a6101253660046127d8565b6108d3565b6040516100ed9190612896565b61014a610145366004612949565b610b14565b005b61014a61015a3660046129ec565b61120a565b61017261016d366004612a90565b611832565b60405163ffffffff90911681526020016100ed565b61014a610195366004612ae0565b611973565b6100e16101a8366004612b4f565b611e00565b6101096101bb366004612b8b565b6001600160a01b03166000908152600160205260409020546001600160e01b031690565b6101f26101ed3660046127d8565b611f22565b6040516100ed9190612ba6565b61021261020d366004612bb9565b612260565b6040516100ed9190612c13565b60006001600160e01b031982167f38dbd06a00000000000000000000000000000000000000000000000000000000148061028257506001600160e01b031982167fe9dc637500000000000000000000000000000000000000000000000000000000145b806102b657506001600160e01b031982167f01ffc9a700000000000000000000000000000000000000000000000000000000145b92915050565b604051630935e01b60e21b8152336004820152600090839081906001600160a01b038216906324d7806c90602401602060405180830381865afa158015610307573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032b9190612c6a565b6103905760405162461bcd60e51b815260206004820152602b60248201527f57616c6c6574206973206e6f7420616e2061646d696e6973747261746f72206660448201526a1bdc8818dbdb9d1c9858dd60aa1b60648201526084015b60405180910390fd5b60006103a260a0860160808701612c87565b60038111156103b3576103b3612802565b036104265760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420696e697469616c697a65207769746820696e76616c6964207360448201527f746f726167652070726f746f636f6c00000000000000000000000000000000006064820152608401610387565b6104366080850160608601612ca8565b65ffffffffffff16158061047757506104556080850160608601612ca8565b65ffffffffffff1661046d6060860160408701612ca8565b65ffffffffffff16105b6104e95760405162461bcd60e51b815260206004820152603660248201527f43616e6e6f74206861766520737461727444617465206772656174657220746860448201527f616e206f7220657175616c20746f20656e6444617465000000000000000000006064820152608401610387565b60c0840135158061050d57506105056040850160208601612cd0565b63ffffffff16155b61057f5760405162461bcd60e51b815260206004820152603160248201527f43616e6e6f742070726f7669646520626f7468206d696e747350657257616c6c60448201527f657420616e64206d65726b6c65526f6f740000000000000000000000000000006064820152608401610387565b6001600160a01b038516600090815260016020526040812080546001600160e01b0316916105ac83612d01565b82546101009290920a6001600160e01b038181021990931691831602179091556001600160a01b03871660009081526001602090815260408083205481516101208101909252928152919092169250908181019061060c90880188612cd0565b63ffffffff16815260200186602001602081019061062a9190612cd0565b63ffffffff1681526020016106456060880160408901612ca8565b65ffffffffffff1681526020016106626080880160608901612ca8565b65ffffffffffff16815260200161067f60a0880160808901612c87565b600381111561069057610690612802565b81526020016106a560c0880160a08901612d27565b1515815260c087013560208201526040016106c360e0880188612d44565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509390945250506001600160a01b03891681526002602090815260408083206001600160e01b03871684528252918290208451815492860151938601516060870151608088015165ffffffffffff908116600160901b027fffffffffffffffff000000000000ffffffffffffffffffffffffffffffffffff91909216600160601b0271ffffffffffff0000000000000000000000001963ffffffff948516600160401b021671ffffffffffffffffffff0000000000000000199885166401000000000267ffffffffffffffff199098169490951693909317959095179590951691909117179182168317815560a085015190935091839160ff60c01b199091167fffffffffffffff00000000000000ffffffffffffffffffffffffffffffffffff90911617600160c01b83600381111561082e5761082e612802565b021790555060c08201518154901515600160c81b0260ff60c81b1990911617815560e08201516001820155610100820151805161087591600284019160209091019061268b565b50506040513381526001600160e01b03831691506001600160a01b038816907fcf76e1beb8dcf887c917933e1d0970eafadb9a69b82cfd5f44740a0dce6f45a69060200160405180910390a36001600160e01b031695945050505050565b610920604080516101208101825260008082526020820181905291810182905260608101829052608081018290529060a08201908152600060208201819052604082015260609081015290565b60006001600160a01b0384166000908152600260209081526040808320868452909152902054600160c01b900460ff16600381111561096157610961612802565b036109a65760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b6044820152606401610387565b6001600160a01b0383166000908152600260209081526040808320858452825291829020825161012081018452815463ffffffff80821683526401000000008204811694830194909452600160401b81049093169381019390935265ffffffffffff600160601b830481166060850152600160901b83041660808401529060a083019060ff600160c01b909104166003811115610a4557610a45612802565b6003811115610a5657610a56612802565b81528154600160c81b900460ff161515602082015260018201546040820152600282018054606090920191610a8a90612d8b565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab690612d8b565b8015610b035780601f10610ad857610100808354040283529160200191610b03565b820191906000526020600020905b815481529060010190602001808311610ae657829003601f168201915b505050505081525050905092915050565b604051630935e01b60e21b8152336004820152839081906001600160a01b038216906324d7806c90602401602060405180830381865afa158015610b5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b809190612c6a565b610be05760405162461bcd60e51b815260206004820152602b60248201527f57616c6c6574206973206e6f7420616e2061646d696e6973747261746f72206660448201526a1bdc8818dbdb9d1c9858dd60aa1b6064820152608401610387565b60006001600160a01b0386166000908152600260209081526040808320888452909152902054600160c01b900460ff166003811115610c2157610c21612802565b03610c665760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b6044820152606401610387565b6000610c7860a0850160808601612c87565b6003811115610c8957610c89612802565b03610cfc5760405162461bcd60e51b815260206004820152602360248201527f43616e6e6f742073657420696e76616c69642073746f726167652070726f746f60448201527f636f6c00000000000000000000000000000000000000000000000000000000006064820152608401610387565b6001600160a01b0385166000908152600260209081526040808320878452909152902054640100000000900463ffffffff161580610d7d5750610d426020840184612cd0565b6001600160a01b038616600090815260026020908152604080832088845290915290205463ffffffff91821664010000000090910490911611155b610dc95760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420646563726561736520746f74616c4d617800000000000000006044820152606401610387565b6001600160a01b0385166000908152600260209081526040808320878452909152902054600160401b900463ffffffff161580610e4b5750610e116040840160208501612cd0565b6001600160a01b038616600090815260026020908152604080832088845290915290205463ffffffff918216600160401b90910490911611155b610e975760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f742064656372656173652077616c6c65744d6178000000000000006044820152606401610387565b610ea76080840160608501612ca8565b65ffffffffffff161580610ee85750610ec66080840160608501612ca8565b65ffffffffffff16610ede6060850160408601612ca8565b65ffffffffffff16105b610f5a5760405162461bcd60e51b815260206004820152603660248201527f43616e6e6f74206861766520737461727444617465206772656174657220746860448201527f616e206f7220657175616c20746f20656e6444617465000000000000000000006064820152608401610387565b60408051610120810182526001600160a01b03871660009081526002602090815283822088835281529290205463ffffffff1681529080820190610fa090860186612cd0565b63ffffffff168152602001846020016020810190610fbe9190612cd0565b63ffffffff168152602001610fd96060860160408701612ca8565b65ffffffffffff168152602001610ff66080860160608701612ca8565b65ffffffffffff16815260200161101360a0860160808701612c87565b600381111561102457611024612802565b815260200161103960c0860160a08701612d27565b1515815260c0850135602082015260400161105760e0860186612d44565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509390945250506001600160a01b03881681526002602090815260408083208984528252918290208451815492860151938601516060870151608088015165ffffffffffff908116600160901b027fffffffffffffffff000000000000ffffffffffffffffffffffffffffffffffff91909216600160601b0271ffffffffffff0000000000000000000000001963ffffffff948516600160401b021671ffffffffffffffffffff0000000000000000199885166401000000000267ffffffffffffffff199098169490951693909317959095179590951691909117179182168317815560a085015190935091839160ff60c01b199091167fffffffffffffff00000000000000ffffffffffffffffffffffffffffffffffff90911617600160c01b8360038111156111b9576111b9612802565b021790555060c08201518154901515600160c81b0260ff60c81b1990911617815560e08201516001820155610100820151805161120091600284019160209091019061268b565b5050505050505050565b6001600160a01b03871660009081526002602090815260408083208984529091528120908154600160c01b900460ff16600381111561124b5761124b612802565b036112905760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b6044820152606401610387565b8054600160601b900465ffffffffffff1615806112bd5750805442600160601b90910465ffffffffffff16105b6113095760405162461bcd60e51b815260206004820152601d60248201527f5472616e73616374696f6e206265666f726520737461727420646174650000006044820152606401610387565b8054600160901b900465ffffffffffff1615806113375750805442600160901b90910465ffffffffffff1610155b6113835760405162461bcd60e51b815260206004820152601a60248201527f5472616e73616374696f6e20616674657220656e6420646174650000000000006044820152606401610387565b8054640100000000900463ffffffff1615806113c55750805463ffffffff64010000000082048116916113bc9161ffff8a169116612dbf565b63ffffffff1611155b6114375760405162461bcd60e51b815260206004820152602160248201527f546f6f206d616e792072657175657374656420666f72207468697320636c616960448201527f6d000000000000000000000000000000000000000000000000000000000000006064820152608401610387565b805460009061144d9063ffffffff166001612dbf565b825463ffffffff19811661ffff8a1663ffffffff9283160182161784556001840154911691501561158e5761ffff87168514801561148e575061ffff871683145b6114da5760405162461bcd60e51b815260206004820152600d60248201527f496e76616c696420696e707574000000000000000000000000000000000000006044820152606401610387565b60005b8761ffff168110156115885760008787838181106114fd576114fd612de7565b90506020020160208101906115129190612cd0565b9050600086868481811061152857611528612de7565b905060200281019061153a9190612dfd565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092935061157e92508791508e90508d858561231b565b50506001016114dd565b50611698565b8154600160401b900463ffffffff16156116985781546001600160a01b038a1660009081526003602090815260408083208c84528252808320338452909152902054600160401b90910463ffffffff16906115ee9061ffff8a1690612e47565b11156116625760405162461bcd60e51b815260206004820152602260248201527f546f6f206d616e792072657175657374656420666f7220746869732077616c6c60448201527f65740000000000000000000000000000000000000000000000000000000000006064820152608401610387565b6001600160a01b03891660009081526003602090815260408083208b845282528083203384529091529020805461ffff89160190555b6040517fe00aab4b00000000000000000000000000000000000000000000000000000000815233600482015261ffff881660248201526000906001600160a01b038b169063e00aab4b906044016000604051808303816000875af1158015611704573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261172c9190810190612e75565b905060005b8861ffff168110156117e15760405180604001604052808b6001600160e01b0316815260200182856117639190612e47565b63ffffffff1690526001600160a01b038c166000908152600560205260408120845190919085908590811061179a5761179a612de7565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b03909216919091179055600101611731565b5060405161ffff8916815289906001600160a01b038c16907f74f5d3254dfa39a7b1217a27d5d9b3e061eafe11720eca1cf499da2dc1eb12599060200160405180910390a350505050505050505050565b6001600160a01b03821660009081526002602090815260408083208484529091528120818154600160c01b900460ff16600381111561187357611873612802565b036118b85760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b6044820152606401610387565b8054600160401b900463ffffffff1660000361193c5760405162461bcd60e51b815260206004820152603660248201527f43616e206f6e6c7920726574726965766520666f72206e6f6e2d6d65726b6c6560448201527f20636c61696d7320776974682077616c6c65744d6178000000000000000000006064820152608401610387565b50506001600160a01b0380831660009081526003602090815260408083208584528252808320938716835292905220549392505050565b6001600160a01b03851660009081526002602090815260408083208784529091528120908154600160c01b900460ff1660038111156119b4576119b4612802565b036119f95760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b6044820152606401610387565b8054600160601b900465ffffffffffff161580611a265750805442600160601b90910465ffffffffffff16105b611a725760405162461bcd60e51b815260206004820152601d60248201527f5472616e73616374696f6e206265666f726520737461727420646174650000006044820152606401610387565b8054600160901b900465ffffffffffff161580611aa05750805442600160901b90910465ffffffffffff1610155b611aec5760405162461bcd60e51b815260206004820152601a60248201527f5472616e73616374696f6e20616674657220656e6420646174650000000000006044820152606401610387565b8054640100000000900463ffffffff161580611b185750805463ffffffff640100000000820481169116105b611b8a5760405162461bcd60e51b815260206004820152602c60248201527f4d6178696d756d20746f6b656e7320616c7265616479206d696e74656420666f60448201527f72207468697320636c61696d00000000000000000000000000000000000000006064820152608401610387565b600181015415611bd957611bd48187878787878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061231b92505050565b611ccf565b8054600160401b900463ffffffff1615611ccf5780546001600160a01b03871660009081526003602090815260408083208984528252808320338452909152902054600160401b90910463ffffffff1611611c9c5760405162461bcd60e51b815260206004820152602d60248201527f4d6178696d756d20746f6b656e7320616c7265616479206d696e74656420666f60448201527f7220746869732077616c6c6574000000000000000000000000000000000000006064820152608401610387565b6001600160a01b038616600090815260036020908152604080832088845282528083203384529091529020805460010190555b805463ffffffff8082166001011663ffffffff199091161781556040517f2928ca580000000000000000000000000000000000000000000000000000000081523360048201526000906001600160a01b03881690632928ca58906024016020604051808303816000875af1158015611d4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d6f9190612f33565b6040805180820182526001600160e01b03808a168252855463ffffffff90811660208085019182526001600160a01b038e1660008181526005835287812089825290925286822095519251909316600160e01b0291909316179092559151929350889290917f5d404f369772cfab2b65717fca9bc2077efeab89a0dbec036bf0c13783154eb191a350505050505050565b6001600160a01b03831660009081526002602090815260408083208584529091528120818154600160c01b900460ff166003811115611e4157611e41612802565b03611e865760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b6044820152606401610387565b8060010154600003611eda5760405162461bcd60e51b815260206004820152601c60248201527f43616e206f6e6c7920636865636b206d65726b6c6520636c61696d73000000006044820152606401610387565b50506001600160a01b0383166000908152600460209081526040808320858452825280832062ffffff600886901c168452909152902054600160ff83161b1615159392505050565b6001600160a01b03821660009081526005602090815260408083208484528252918290208251808401909352546001600160e01b038116808452600160e01b90910463ffffffff169183019190915260609190611fc15760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20646f6573206e6f742065786973740000000000000000000000006044820152606401610387565b6001600160a01b038416600090815260026020908152604080832084516001600160e01b031684528252808320815161012081018352815463ffffffff80821683526401000000008204811695830195909552600160401b81049094169281019290925265ffffffffffff600160601b840481166060840152600160901b8404166080830152909160a083019060ff600160c01b90910416600381111561206a5761206a612802565b600381111561207b5761207b612802565b81528154600160c81b900460ff1615156020820152600182015460408201526002820180546060909201916120af90612d8b565b80601f01602080910402602001604051908101604052809291908181526020018280546120db90612d8b565b80156121285780601f106120fd57610100808354040283529160200191612128565b820191906000526020600020905b81548152906001019060200180831161210b57829003601f168201915b505050919092525050604080516020810190915260008152919250600290508260a00151600381111561215d5761215d612802565b0361219c575060408051808201909152601481527f68747470733a2f2f617277656176652e6e65742f00000000000000000000000060208201526121ef565b60038260a0015160038111156121b4576121b4612802565b036121ef575060408051808201909152600781527f697066733a2f2f0000000000000000000000000000000000000000000000000060208201525b610100820151604051612206918391602001612f4c565b60405160208183030381529060405293508160c001516122575783612234846020015163ffffffff1661248c565b604051602001612245929190612f72565b60405160208183030381529060405293505b50505092915050565b60608167ffffffffffffffff81111561227b5761227b612e5f565b6040519080825280602002602001820160405280156122a4578160200160208202803683370190505b50905060005b82811015612312576122de86868686858181106122c9576122c9612de7565b90506020020160208101906101a89190612cd0565b8282815181106122f0576122f0612de7565b911515602092830291909101909101528061230a81612fca565b9150506122aa565b50949350505050565b6040516bffffffffffffffffffffffff193360601b1660208201526001600160e01b031960e084901b166034820152600090603801604051602081830303815290604052805190602001209050612377828760010154836125c9565b6123c35760405162461bcd60e51b815260206004820152601d60248201527f436f756c64206e6f7420766572696679206d65726b6c652070726f6f660000006044820152606401610387565b6001600160a01b0385166000908152600460209081526040808320878452825280832062ffffff600888901c16808552925290912054600160ff86161b808216156124505760405162461bcd60e51b815260206004820152600e60248201527f416c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610387565b6001600160a01b039097166000908152600460209081526040808320988352978152878220938252929092529490209390941790925550505050565b6060816000036124cf57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156124f957806124e381612fca565b91506124f29050600a83612ff9565b91506124d3565b60008167ffffffffffffffff81111561251457612514612e5f565b6040519080825280601f01601f19166020018201604052801561253e576020820181803683370190505b5090505b84156125c15761255360018361300d565b9150612560600a86613024565b61256b906030612e47565b60f81b81838151811061258057612580612de7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506125ba600a86612ff9565b9450612542565b949350505050565b6000826125d685846125df565b14949350505050565b600081815b845181101561268357600085828151811061260157612601612de7565b60200260200101519050808311612643576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612670565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061267b81612fca565b9150506125e4565b509392505050565b82805461269790612d8b565b90600052602060002090601f0160209004810192826126b957600085556126ff565b82601f106126d257805160ff19168380011785556126ff565b828001600101855582156126ff579182015b828111156126ff5782518255916020019190600101906126e4565b5061270b92915061270f565b5090565b5b8082111561270b5760008155600101612710565b60006020828403121561273657600080fd5b81356001600160e01b03198116811461274e57600080fd5b9392505050565b80356001600160a01b038116811461276c57600080fd5b919050565b6000610100828403121561278457600080fd5b50919050565b6000806040838503121561279d57600080fd5b6127a683612755565b9150602083013567ffffffffffffffff8111156127c257600080fd5b6127ce85828601612771565b9150509250929050565b600080604083850312156127eb57600080fd5b6127f483612755565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b6004811061283657634e487b7160e01b600052602160045260246000fd5b9052565b60005b8381101561285557818101518382015260200161283d565b83811115612864576000848401525b50505050565b6000815180845261288281602086016020860161283a565b601f01601f19169290920160200192915050565b602081526128ad60208201835163ffffffff169052565b600060208301516128c6604084018263ffffffff169052565b50604083015163ffffffff8116606084015250606083015165ffffffffffff8116608084015250608083015165ffffffffffff811660a08401525060a083015161291360c0840182612818565b5060c083015180151560e08401525060e083015161010083810191909152830151610120808401526125c161014084018261286a565b60008060006060848603121561295e57600080fd5b61296784612755565b925060208401359150604084013567ffffffffffffffff81111561298a57600080fd5b61299686828701612771565b9150509250925092565b60008083601f8401126129b257600080fd5b50813567ffffffffffffffff8111156129ca57600080fd5b6020830191508360208260051b85010111156129e557600080fd5b9250929050565b600080600080600080600060a0888a031215612a0757600080fd5b612a1088612755565b965060208801359550604088013561ffff81168114612a2e57600080fd5b9450606088013567ffffffffffffffff80821115612a4b57600080fd5b612a578b838c016129a0565b909650945060808a0135915080821115612a7057600080fd5b50612a7d8a828b016129a0565b989b979a50959850939692959293505050565b600080600060608486031215612aa557600080fd5b612aae84612755565b9250612abc60208501612755565b9150604084013590509250925092565b803563ffffffff8116811461276c57600080fd5b600080600080600060808688031215612af857600080fd5b612b0186612755565b945060208601359350612b1660408701612acc565b9250606086013567ffffffffffffffff811115612b3257600080fd5b612b3e888289016129a0565b969995985093965092949392505050565b600080600060608486031215612b6457600080fd5b612b6d84612755565b925060208401359150612b8260408501612acc565b90509250925092565b600060208284031215612b9d57600080fd5b61274e82612755565b60208152600061274e602083018461286a565b60008060008060608587031215612bcf57600080fd5b612bd885612755565b935060208501359250604085013567ffffffffffffffff811115612bfb57600080fd5b612c07878288016129a0565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b81811015612c4d578351151583529284019291840191600101612c2f565b50909695505050505050565b8015158114612c6757600080fd5b50565b600060208284031215612c7c57600080fd5b815161274e81612c59565b600060208284031215612c9957600080fd5b81356004811061274e57600080fd5b600060208284031215612cba57600080fd5b813565ffffffffffff8116811461274e57600080fd5b600060208284031215612ce257600080fd5b61274e82612acc565b634e487b7160e01b600052601160045260246000fd5b60006001600160e01b03808316818103612d1d57612d1d612ceb565b6001019392505050565b600060208284031215612d3957600080fd5b813561274e81612c59565b6000808335601e19843603018112612d5b57600080fd5b83018035915067ffffffffffffffff821115612d7657600080fd5b6020019150368190038213156129e557600080fd5b600181811c90821680612d9f57607f821691505b60208210810361278457634e487b7160e01b600052602260045260246000fd5b600063ffffffff808316818516808303821115612dde57612dde612ceb565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112612e1457600080fd5b83018035915067ffffffffffffffff821115612e2f57600080fd5b6020019150600581901b36038213156129e557600080fd5b60008219821115612e5a57612e5a612ceb565b500190565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215612e8857600080fd5b825167ffffffffffffffff80821115612ea057600080fd5b818501915085601f830112612eb457600080fd5b815181811115612ec657612ec6612e5f565b8060051b604051601f19603f83011681018181108582111715612eeb57612eeb612e5f565b604052918252848201925083810185019188831115612f0957600080fd5b938501935b82851015612f2757845184529385019392850192612f0e565b98975050505050505050565b600060208284031215612f4557600080fd5b5051919050565b60008351612f5e81846020880161283a565b835190830190612dde81836020880161283a565b60008351612f8481846020880161283a565b7f2f000000000000000000000000000000000000000000000000000000000000009083019081528351612fbe81600184016020880161283a565b01600101949350505050565b600060018201612fdc57612fdc612ceb565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261300857613008612fe3565b500490565b60008282101561301f5761301f612ceb565b500390565b60008261303357613033612fe3565b50069056fea264697066735822122036a9685f79261920cebda45a8dbb9bdb76ddd5b19b4fd52c3d0e88fffbcd500c64736f6c634300080e0033
Loading...
Loading
Loading...
Loading
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.