Feature Tip: Add private address tag to any address under My Name Tag !
This nametag was submitted by Kleros Curate.
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 35,086 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint | 20495801 | 128 days ago | IN | 0 ETH | 0.00002491 | ||||
Mint | 19879976 | 214 days ago | IN | 0.01 ETH | 0.00081736 | ||||
Mint | 19825911 | 222 days ago | IN | 0 ETH | 0.00125973 | ||||
Mint | 19825906 | 222 days ago | IN | 0 ETH | 0.00147758 | ||||
Update Claim | 19733483 | 235 days ago | IN | 0 ETH | 0.00145232 | ||||
Mint | 19350651 | 288 days ago | IN | 0.1 ETH | 0.00760921 | ||||
Mint | 19301112 | 295 days ago | IN | 0 ETH | 0.00489674 | ||||
Update Claim | 19222265 | 306 days ago | IN | 0 ETH | 0.00143059 | ||||
Update Claim | 19176844 | 313 days ago | IN | 0 ETH | 0.00204978 | ||||
Mint | 19056657 | 330 days ago | IN | 0.01 ETH | 0.00247752 | ||||
Update Claim | 18920565 | 349 days ago | IN | 0 ETH | 0.00191081 | ||||
Mint | 18911789 | 350 days ago | IN | 0 ETH | 0.00158337 | ||||
Mint | 18897849 | 352 days ago | IN | 0 ETH | 0.00211737 | ||||
Mint | 18895752 | 352 days ago | IN | 0.01 ETH | 0.00251277 | ||||
Mint | 18879800 | 354 days ago | IN | 0 ETH | 0.0056146 | ||||
Update Claim | 18830405 | 361 days ago | IN | 0 ETH | 0.00295572 | ||||
Update Claim | 18694552 | 380 days ago | IN | 0 ETH | 0.00178219 | ||||
Update Claim | 18694419 | 380 days ago | IN | 0 ETH | 0.00207241 | ||||
Update Claim | 18671809 | 384 days ago | IN | 0 ETH | 0.00410708 | ||||
Mint | 18622481 | 390 days ago | IN | 0.11 ETH | 0.00711629 | ||||
Mint | 18596859 | 394 days ago | IN | 0 ETH | 0.00342354 | ||||
Update Claim | 18576961 | 397 days ago | IN | 0 ETH | 0.00151945 | ||||
Update Claim | 18576955 | 397 days ago | IN | 0 ETH | 0.00153203 | ||||
Update Claim | 18522220 | 404 days ago | IN | 0 ETH | 0.00160045 | ||||
Update Claim | 18512827 | 406 days ago | IN | 0 ETH | 0.0014372 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
||||
---|---|---|---|---|---|---|---|
20355396 | 148 days ago | 0 ETH | |||||
20355396 | 148 days ago | 0 ETH | |||||
20355396 | 148 days ago | 0 ETH | |||||
19879976 | 214 days ago | 0.01 ETH | |||||
19879976 | 214 days ago | 0 ETH | |||||
19825911 | 222 days ago | 0 ETH | |||||
19825911 | 222 days ago | 0 ETH | |||||
19825906 | 222 days ago | 0 ETH | |||||
19825906 | 222 days ago | 0 ETH | |||||
19733483 | 235 days ago | 0 ETH | |||||
19350651 | 288 days ago | 0.1 ETH | |||||
19350651 | 288 days ago | 0 ETH | |||||
19301112 | 295 days ago | 0 ETH | |||||
19301112 | 295 days ago | 0 ETH | |||||
19222265 | 306 days ago | 0 ETH | |||||
19176844 | 313 days ago | 0 ETH | |||||
19056657 | 330 days ago | 0.01 ETH | |||||
19056657 | 330 days ago | 0 ETH | |||||
18920565 | 349 days ago | 0 ETH | |||||
18911789 | 350 days ago | 0 ETH | |||||
18911789 | 350 days ago | 0 ETH | |||||
18897849 | 352 days ago | 0 ETH | |||||
18897849 | 352 days ago | 0 ETH | |||||
18895752 | 352 days ago | 0.01 ETH | |||||
18895752 | 352 days ago | 0 ETH |
Loading...
Loading
Contract Name:
ERC721LazyPayableClaim
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 "./IERC721LazyPayableClaim.sol"; /** * @title Lazy Payable Claim * @author manifold.xyz * @notice Lazy payable claim with optional whitelist ERC721 tokens */ contract ERC721LazyPayableClaim is IERC165, IERC721LazyPayableClaim, 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(IERC721LazyPayableClaim).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, cost: claimParameters.cost, paymentReceiver: claimParameters.paymentReceiver }); 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, cost: claimParameters.cost, paymentReceiver: claimParameters.paymentReceiver }); } /** * 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 payable override { Claim storage claim = _claims[creatorContractAddress][claimIndex]; // Safely retrieve the claim require(claim.storageProtocol != StorageProtocol.INVALID, "Claim not initialized"); // Check price require(msg.value == claim.cost, "Must pay more."); // 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); payable(claim.paymentReceiver).transfer(msg.value); emit ClaimMint(creatorContractAddress, claimIndex); } /** * See {IERC721LazyClaim-mintBatch}. */ function mintBatch(address creatorContractAddress, uint256 claimIndex, uint16 mintCount, uint32[] calldata mintIndices, bytes32[][] calldata merkleProofs) external payable override { Claim storage claim = _claims[creatorContractAddress][claimIndex]; // Safely retrieve the claim require(claim.storageProtocol != StorageProtocol.INVALID, "Claim not initialized"); // Check price require(msg.value == claim.cost * mintCount, "Must pay more."); // 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++; } } payable(claim.paymentReceiver).transfer(msg.value); 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 Payable Claim interface */ interface IERC721LazyPayableClaim { enum StorageProtocol { INVALID, NONE, ARWEAVE, IPFS } struct ClaimParameters { uint32 totalMax; uint32 walletMax; uint48 startDate; uint48 endDate; StorageProtocol storageProtocol; bool identical; bytes32 merkleRoot; string location; uint cost; address paymentReceiver; } struct Claim { uint32 total; uint32 totalMax; uint32 walletMax; uint48 startDate; uint48 endDate; StorageProtocol storageProtocol; bool identical; bytes32 merkleRoot; string location; uint cost; address paymentReceiver; } 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 payable; /** * @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 payable; }
// 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 (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 // 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 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 // 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/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 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/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 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 (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" ] } }, "libraries": {} }
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 IERC721LazyPayableClaim.StorageProtocol","name":"storageProtocol","type":"uint8"},{"internalType":"bool","name":"identical","type":"bool"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"string","name":"location","type":"string"},{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"address","name":"paymentReceiver","type":"address"}],"internalType":"struct IERC721LazyPayableClaim.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 IERC721LazyPayableClaim.StorageProtocol","name":"storageProtocol","type":"uint8"},{"internalType":"bool","name":"identical","type":"bool"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"string","name":"location","type":"string"},{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"address","name":"paymentReceiver","type":"address"}],"internalType":"struct IERC721LazyPayableClaim.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":"payable","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":"payable","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 IERC721LazyPayableClaim.StorageProtocol","name":"storageProtocol","type":"uint8"},{"internalType":"bool","name":"identical","type":"bool"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"string","name":"location","type":"string"},{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"address","name":"paymentReceiver","type":"address"}],"internalType":"struct IERC721LazyPayableClaim.ClaimParameters","name":"claimParameters","type":"tuple"}],"name":"updateClaim","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506001600055613354806100256000396000f3fe6080604052600436106100bc5760003560e01c8063bbf2a8c611610074578063d5fdfe871161004e578063d5fdfe87146101ee578063e9dc63751461022d578063f8a6137b1461025a57600080fd5b8063bbf2a8c61461019b578063c95d571d146101ae578063cda08536146101ce57600080fd5b80633512da33116100a55780633512da331461012357806342f3bef4146101385780634773795b1461016d57600080fd5b806301ffc9a7146100c15780630f79ab39146100f6575b600080fd5b3480156100cd57600080fd5b506100e16100dc3660046129be565b610287565b60405190151581526020015b60405180910390f35b34801561010257600080fd5b50610116610111366004612a0b565b610324565b6040516100ed9190612ac9565b610136610131366004612bf5565b61058b565b005b34801561014457600080fd5b50610158610153366004612c99565b610c51565b60405163ffffffff90911681526020016100ed565b34801561017957600080fd5b5061018d610188366004612cee565b610d92565b6040519081526020016100ed565b6101366101a9366004612d50565b611400565b3480156101ba57600080fd5b506101366101c9366004612dbf565b611921565b3480156101da57600080fd5b506100e16101e9366004612e16565b61207e565b3480156101fa57600080fd5b5061018d610209366004612e52565b6001600160a01b03166000908152600160205260409020546001600160e01b031690565b34801561023957600080fd5b5061024d610248366004612a0b565b6121a0565b6040516100ed9190612e6d565b34801561026657600080fd5b5061027a610275366004612e80565b6124fa565b6040516100ed9190612eda565b60006001600160e01b031982167fadbf21b40000000000000000000000000000000000000000000000000000000014806102ea57506001600160e01b031982167fe9dc637500000000000000000000000000000000000000000000000000000000145b8061031e57506001600160e01b031982167f01ffc9a700000000000000000000000000000000000000000000000000000000145b92915050565b60408051610160810182526000808252602080830182905282840182905260608084018390526080840183905260a0840183905260c0840183905260e08401839052610100840152610120830182905261014083018290526001600160a01b038616825260028152838220858352905291822054909190600160c01b900460ff1660038111156103b6576103b6612a35565b036104005760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6001600160a01b0383166000908152600260209081526040808320858452825291829020825161016081018452815463ffffffff80821683526401000000008204811694830194909452600160401b81049093169381019390935265ffffffffffff600160601b830481166060850152600160901b83041660808401529060a083019060ff600160c01b90910416600381111561049f5761049f612a35565b60038111156104b0576104b0612a35565b81528154600160c81b900460ff1615156020820152600182015460408201526002820180546060909201916104e490612f20565b80601f016020809104026020016040519081016040528092919081815260200182805461051090612f20565b801561055d5780601f106105325761010080835404028352916020019161055d565b820191906000526020600020905b81548152906001019060200180831161054057829003601f168201915b5050509183525050600382015460208201526004909101546001600160a01b03166040909101529392505050565b6001600160a01b03871660009081526002602090815260408083208984529091528120908154600160c01b900460ff1660038111156105cc576105cc612a35565b036106115760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b60448201526064016103f7565b8561ffff1681600301546106259190612f6a565b34146106735760405162461bcd60e51b815260206004820152600e60248201527f4d75737420706179206d6f72652e00000000000000000000000000000000000060448201526064016103f7565b8054600160601b900465ffffffffffff1615806106a05750805442600160601b90910465ffffffffffff16105b6106ec5760405162461bcd60e51b815260206004820152601d60248201527f5472616e73616374696f6e206265666f7265207374617274206461746500000060448201526064016103f7565b8054600160901b900465ffffffffffff16158061071a5750805442600160901b90910465ffffffffffff1610155b6107665760405162461bcd60e51b815260206004820152601a60248201527f5472616e73616374696f6e20616674657220656e64206461746500000000000060448201526064016103f7565b8054640100000000900463ffffffff1615806107a85750805463ffffffff640100000000820481169161079f9161ffff8a169116612f89565b63ffffffff1611155b61081a5760405162461bcd60e51b815260206004820152602160248201527f546f6f206d616e792072657175657374656420666f72207468697320636c616960448201527f6d0000000000000000000000000000000000000000000000000000000000000060648201526084016103f7565b80546000906108309063ffffffff166001612f89565b825463ffffffff19811661ffff8a1663ffffffff928316018216178455600184015491169150156109715761ffff871685148015610871575061ffff871683145b6108bd5760405162461bcd60e51b815260206004820152600d60248201527f496e76616c696420696e7075740000000000000000000000000000000000000060448201526064016103f7565b60005b8761ffff1681101561096b5760008787838181106108e0576108e0612fb1565b90506020020160208101906108f59190612fc7565b9050600086868481811061090b5761090b612fb1565b905060200281019061091d9190612fe2565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092935061096192508791508e90508d85856125b5565b50506001016108c0565b50610a7b565b8154600160401b900463ffffffff1615610a7b5781546001600160a01b038a1660009081526003602090815260408083208c84528252808320338452909152902054600160401b90910463ffffffff16906109d19061ffff8a169061302c565b1115610a455760405162461bcd60e51b815260206004820152602260248201527f546f6f206d616e792072657175657374656420666f7220746869732077616c6c60448201527f657400000000000000000000000000000000000000000000000000000000000060648201526084016103f7565b6001600160a01b03891660009081526003602090815260408083208b845282528083203384529091529020805461ffff89160190555b6040517fe00aab4b00000000000000000000000000000000000000000000000000000000815233600482015261ffff881660248201526000906001600160a01b038b169063e00aab4b906044016000604051808303816000875af1158015610ae7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b0f919081019061305a565b905060005b8861ffff16811015610bc45760405180604001604052808b6001600160e01b031681526020018285610b46919061302c565b63ffffffff1690526001600160a01b038c1660009081526005602052604081208451909190859085908110610b7d57610b7d612fb1565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b03909216919091179055600101610b14565b5060048301546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610c00573d6000803e3d6000fd5b5060405161ffff8916815289906001600160a01b038c16907f74f5d3254dfa39a7b1217a27d5d9b3e061eafe11720eca1cf499da2dc1eb12599060200160405180910390a350505050505050505050565b6001600160a01b03821660009081526002602090815260408083208484529091528120818154600160c01b900460ff166003811115610c9257610c92612a35565b03610cd75760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b60448201526064016103f7565b8054600160401b900463ffffffff16600003610d5b5760405162461bcd60e51b815260206004820152603660248201527f43616e206f6e6c7920726574726965766520666f72206e6f6e2d6d65726b6c6560448201527f20636c61696d7320776974682077616c6c65744d61780000000000000000000060648201526084016103f7565b50506001600160a01b0380831660009081526003602090815260408083208584528252808320938716835292905220549392505050565b604051630935e01b60e21b8152336004820152600090839081906001600160a01b038216906324d7806c90602401602060405180830381865afa158015610ddd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e019190613129565b610e615760405162461bcd60e51b815260206004820152602b60248201527f57616c6c6574206973206e6f7420616e2061646d696e6973747261746f72206660448201526a1bdc8818dbdb9d1c9858dd60aa1b60648201526084016103f7565b6000610e7360a0860160808701613146565b6003811115610e8457610e84612a35565b03610ef75760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420696e697469616c697a65207769746820696e76616c6964207360448201527f746f726167652070726f746f636f6c000000000000000000000000000000000060648201526084016103f7565b610f076080850160608601613167565b65ffffffffffff161580610f485750610f266080850160608601613167565b65ffffffffffff16610f3e6060860160408701613167565b65ffffffffffff16105b610fba5760405162461bcd60e51b815260206004820152603660248201527f43616e6e6f74206861766520737461727444617465206772656174657220746860448201527f616e206f7220657175616c20746f20656e64446174650000000000000000000060648201526084016103f7565b60c08401351580610fde5750610fd66040850160208601612fc7565b63ffffffff16155b6110505760405162461bcd60e51b815260206004820152603160248201527f43616e6e6f742070726f7669646520626f7468206d696e747350657257616c6c60448201527f657420616e64206d65726b6c65526f6f7400000000000000000000000000000060648201526084016103f7565b6001600160a01b038516600090815260016020526040812080546001600160e01b03169161107d8361318f565b82546101009290920a6001600160e01b038181021990931691831602179091556001600160a01b0387166000908152600160209081526040808320548151610160810190925292815291909216925090818101906110dd90880188612fc7565b63ffffffff1681526020018660200160208101906110fb9190612fc7565b63ffffffff1681526020016111166060880160408901613167565b65ffffffffffff1681526020016111336080880160608901613167565b65ffffffffffff16815260200161115060a0880160808901613146565b600381111561116157611161612a35565b815260200161117660c0880160a089016131b5565b1515815260c0870135602082015260400161119460e08801886131d2565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050509082525061010087013560208201526040016111eb61014088016101208901612e52565b6001600160a01b03908116909152871660009081526002602090815260408083206001600160e01b03861684528252918290208351815492850151938501516060860151608087015165ffffffffffff908116600160901b027fffffffffffffffff000000000000ffffffffffffffffffffffffffffffffffff91909216600160601b0271ffffffffffff0000000000000000000000001963ffffffff948516600160401b021671ffffffffffffffffffff0000000000000000199885166401000000000267ffffffffffffffff199098169490951693909317959095179590951691909117179182168317815560a084015190929091839160ff60c01b19167fffffffffffffff00000000000000ffffffffffffffffffffffffffffffffffff90911617600160c01b83600381111561132757611327612a35565b021790555060c08201518154901515600160c81b0260ff60c81b1990911617815560e08201516001820155610100820151805161136e916002840191602090910190612925565b506101208201516003820155610140909101516004909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039283161790556040513381526001600160e01b038316918816907fcf76e1beb8dcf887c917933e1d0970eafadb9a69b82cfd5f44740a0dce6f45a69060200160405180910390a36001600160e01b031695945050505050565b6001600160a01b03851660009081526002602090815260408083208784529091528120908154600160c01b900460ff16600381111561144157611441612a35565b036114865760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b60448201526064016103f7565b806003015434146114d95760405162461bcd60e51b815260206004820152600e60248201527f4d75737420706179206d6f72652e00000000000000000000000000000000000060448201526064016103f7565b8054600160601b900465ffffffffffff1615806115065750805442600160601b90910465ffffffffffff16105b6115525760405162461bcd60e51b815260206004820152601d60248201527f5472616e73616374696f6e206265666f7265207374617274206461746500000060448201526064016103f7565b8054600160901b900465ffffffffffff1615806115805750805442600160901b90910465ffffffffffff1610155b6115cc5760405162461bcd60e51b815260206004820152601a60248201527f5472616e73616374696f6e20616674657220656e64206461746500000000000060448201526064016103f7565b8054640100000000900463ffffffff1615806115f85750805463ffffffff640100000000820481169116105b61166a5760405162461bcd60e51b815260206004820152602c60248201527f4d6178696d756d20746f6b656e7320616c7265616479206d696e74656420666f60448201527f72207468697320636c61696d000000000000000000000000000000000000000060648201526084016103f7565b6001810154156116b9576116b4818787878787808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506125b592505050565b6117af565b8054600160401b900463ffffffff16156117af5780546001600160a01b03871660009081526003602090815260408083208984528252808320338452909152902054600160401b90910463ffffffff161161177c5760405162461bcd60e51b815260206004820152602d60248201527f4d6178696d756d20746f6b656e7320616c7265616479206d696e74656420666f60448201527f7220746869732077616c6c65740000000000000000000000000000000000000060648201526084016103f7565b6001600160a01b038616600090815260036020908152604080832088845282528083203384529091529020805460010190555b805463ffffffff8082166001011663ffffffff199091161781556040517f2928ca580000000000000000000000000000000000000000000000000000000081523360048201526000906001600160a01b03881690632928ca58906024016020604051808303816000875af115801561182b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184f9190613219565b6040805180820182526001600160e01b03808a168252855463ffffffff90811660208085019182526001600160a01b03808f1660009081526005835287812089825290925286822095519251909316600160e01b029190931617909255600486015492519394509116913480156108fc0292909190818181858888f193505050501580156118e1573d6000803e3d6000fd5b5060405186906001600160a01b038916907f5d404f369772cfab2b65717fca9bc2077efeab89a0dbec036bf0c13783154eb190600090a350505050505050565b604051630935e01b60e21b8152336004820152839081906001600160a01b038216906324d7806c90602401602060405180830381865afa158015611969573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198d9190613129565b6119ed5760405162461bcd60e51b815260206004820152602b60248201527f57616c6c6574206973206e6f7420616e2061646d696e6973747261746f72206660448201526a1bdc8818dbdb9d1c9858dd60aa1b60648201526084016103f7565b60006001600160a01b0386166000908152600260209081526040808320888452909152902054600160c01b900460ff166003811115611a2e57611a2e612a35565b03611a735760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b60448201526064016103f7565b6000611a8560a0850160808601613146565b6003811115611a9657611a96612a35565b03611b095760405162461bcd60e51b815260206004820152602360248201527f43616e6e6f742073657420696e76616c69642073746f726167652070726f746f60448201527f636f6c000000000000000000000000000000000000000000000000000000000060648201526084016103f7565b6001600160a01b0385166000908152600260209081526040808320878452909152902054640100000000900463ffffffff161580611b8a5750611b4f6020840184612fc7565b6001600160a01b038616600090815260026020908152604080832088845290915290205463ffffffff91821664010000000090910490911611155b611bd65760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420646563726561736520746f74616c4d6178000000000000000060448201526064016103f7565b6001600160a01b0385166000908152600260209081526040808320878452909152902054600160401b900463ffffffff161580611c585750611c1e6040840160208501612fc7565b6001600160a01b038616600090815260026020908152604080832088845290915290205463ffffffff918216600160401b90910490911611155b611ca45760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f742064656372656173652077616c6c65744d61780000000000000060448201526064016103f7565b611cb46080840160608501613167565b65ffffffffffff161580611cf55750611cd36080840160608501613167565b65ffffffffffff16611ceb6060850160408601613167565b65ffffffffffff16105b611d675760405162461bcd60e51b815260206004820152603660248201527f43616e6e6f74206861766520737461727444617465206772656174657220746860448201527f616e206f7220657175616c20746f20656e64446174650000000000000000000060648201526084016103f7565b60408051610160810182526001600160a01b03871660009081526002602090815283822088835281529290205463ffffffff1681529080820190611dad90860186612fc7565b63ffffffff168152602001846020016020810190611dcb9190612fc7565b63ffffffff168152602001611de66060860160408701613167565b65ffffffffffff168152602001611e036080860160608701613167565b65ffffffffffff168152602001611e2060a0860160808701613146565b6003811115611e3157611e31612a35565b8152602001611e4660c0860160a087016131b5565b1515815260c08501356020820152604001611e6460e08601866131d2565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050908252506101008501356020820152604001611ebb61014086016101208701612e52565b6001600160a01b03908116909152861660009081526002602090815260408083208884528252918290208351815492850151938501516060860151608087015165ffffffffffff908116600160901b027fffffffffffffffff000000000000ffffffffffffffffffffffffffffffffffff91909216600160601b0271ffffffffffff0000000000000000000000001963ffffffff948516600160401b021671ffffffffffffffffffff0000000000000000199885166401000000000267ffffffffffffffff199098169490951693909317959095179590951691909117179182168317815560a084015190929091839160ff60c01b19167fffffffffffffff00000000000000ffffffffffffffffffffffffffffffffffff90911617600160c01b836003811115611fee57611fee612a35565b021790555060c08201518154901515600160c81b0260ff60c81b1990911617815560e082015160018201556101008201518051612035916002840191602090910190612925565b506101208201516003820155610140909101516004909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039092169190911790555050505050565b6001600160a01b03831660009081526002602090815260408083208584529091528120818154600160c01b900460ff1660038111156120bf576120bf612a35565b036121045760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b60448201526064016103f7565b80600101546000036121585760405162461bcd60e51b815260206004820152601c60248201527f43616e206f6e6c7920636865636b206d65726b6c6520636c61696d730000000060448201526064016103f7565b50506001600160a01b0383166000908152600460209081526040808320858452825280832062ffffff600886901c168452909152902054600160ff83161b1615159392505050565b6001600160a01b03821660009081526005602090815260408083208484528252918290208251808401909352546001600160e01b038116808452600160e01b90910463ffffffff16918301919091526060919061223f5760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20646f6573206e6f7420657869737400000000000000000000000060448201526064016103f7565b6001600160a01b038416600090815260026020908152604080832084516001600160e01b031684528252808320815161016081018352815463ffffffff80821683526401000000008204811695830195909552600160401b81049094169281019290925265ffffffffffff600160601b840481166060840152600160901b8404166080830152909160a083019060ff600160c01b9091041660038111156122e8576122e8612a35565b60038111156122f9576122f9612a35565b81528154600160c81b900460ff16151560208201526001820154604082015260028201805460609092019161232d90612f20565b80601f016020809104026020016040519081016040528092919081815260200182805461235990612f20565b80156123a65780601f1061237b576101008083540402835291602001916123a6565b820191906000526020600020905b81548152906001019060200180831161238957829003601f168201915b505050918352505060038201546020808301919091526004909201546001600160a01b0316604091820152805191820190526000815290915060028260a0015160038111156123f7576123f7612a35565b03612436575060408051808201909152601481527f68747470733a2f2f617277656176652e6e65742f0000000000000000000000006020820152612489565b60038260a00151600381111561244e5761244e612a35565b03612489575060408051808201909152600781527f697066733a2f2f0000000000000000000000000000000000000000000000000060208201525b6101008201516040516124a0918391602001613232565b60405160208183030381529060405293508160c001516124f157836124ce846020015163ffffffff16612726565b6040516020016124df929190613258565b60405160208183030381529060405293505b50505092915050565b60608167ffffffffffffffff81111561251557612515613044565b60405190808252806020026020018201604052801561253e578160200160208202803683370190505b50905060005b828110156125ac57612578868686868581811061256357612563612fb1565b90506020020160208101906101e99190612fc7565b82828151811061258a5761258a612fb1565b91151560209283029190910190910152806125a4816132b0565b915050612544565b50949350505050565b6040516bffffffffffffffffffffffff193360601b1660208201526001600160e01b031960e084901b16603482015260009060380160405160208183030381529060405280519060200120905061261182876001015483612863565b61265d5760405162461bcd60e51b815260206004820152601d60248201527f436f756c64206e6f7420766572696679206d65726b6c652070726f6f6600000060448201526064016103f7565b6001600160a01b0385166000908152600460209081526040808320878452825280832062ffffff600888901c16808552925290912054600160ff86161b808216156126ea5760405162461bcd60e51b815260206004820152600e60248201527f416c7265616479206d696e74656400000000000000000000000000000000000060448201526064016103f7565b6001600160a01b039097166000908152600460209081526040808320988352978152878220938252929092529490209390941790925550505050565b60608160000361276957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612793578061277d816132b0565b915061278c9050600a836132df565b915061276d565b60008167ffffffffffffffff8111156127ae576127ae613044565b6040519080825280601f01601f1916602001820160405280156127d8576020820181803683370190505b5090505b841561285b576127ed6001836132f3565b91506127fa600a8661330a565b61280590603061302c565b60f81b81838151811061281a5761281a612fb1565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612854600a866132df565b94506127dc565b949350505050565b6000826128708584612879565b14949350505050565b600081815b845181101561291d57600085828151811061289b5761289b612fb1565b602002602001015190508083116128dd57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061290a565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612915816132b0565b91505061287e565b509392505050565b82805461293190612f20565b90600052602060002090601f0160209004810192826129535760008555612999565b82601f1061296c57805160ff1916838001178555612999565b82800160010185558215612999579182015b8281111561299957825182559160200191906001019061297e565b506129a59291506129a9565b5090565b5b808211156129a557600081556001016129aa565b6000602082840312156129d057600080fd5b81356001600160e01b0319811681146129e857600080fd5b9392505050565b80356001600160a01b0381168114612a0657600080fd5b919050565b60008060408385031215612a1e57600080fd5b612a27836129ef565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b60048110612a6957634e487b7160e01b600052602160045260246000fd5b9052565b60005b83811015612a88578181015183820152602001612a70565b83811115612a97576000848401525b50505050565b60008151808452612ab5816020860160208601612a6d565b601f01601f19169290920160200192915050565b60208152612ae060208201835163ffffffff169052565b60006020830151612af9604084018263ffffffff169052565b50604083015163ffffffff8116606084015250606083015165ffffffffffff8116608084015250608083015165ffffffffffff811660a08401525060a0830151612b4660c0840182612a4b565b5060c083015180151560e08401525060e083015161010083810191909152830151610160610120808501829052612b81610180860184612a9d565b9086015161014086810191909152909501516001600160a01b03169301929092525090919050565b60008083601f840112612bbb57600080fd5b50813567ffffffffffffffff811115612bd357600080fd5b6020830191508360208260051b8501011115612bee57600080fd5b9250929050565b600080600080600080600060a0888a031215612c1057600080fd5b612c19886129ef565b965060208801359550604088013561ffff81168114612c3757600080fd5b9450606088013567ffffffffffffffff80821115612c5457600080fd5b612c608b838c01612ba9565b909650945060808a0135915080821115612c7957600080fd5b50612c868a828b01612ba9565b989b979a50959850939692959293505050565b600080600060608486031215612cae57600080fd5b612cb7846129ef565b9250612cc5602085016129ef565b9150604084013590509250925092565b60006101408284031215612ce857600080fd5b50919050565b60008060408385031215612d0157600080fd5b612d0a836129ef565b9150602083013567ffffffffffffffff811115612d2657600080fd5b612d3285828601612cd5565b9150509250929050565b803563ffffffff81168114612a0657600080fd5b600080600080600060808688031215612d6857600080fd5b612d71866129ef565b945060208601359350612d8660408701612d3c565b9250606086013567ffffffffffffffff811115612da257600080fd5b612dae88828901612ba9565b969995985093965092949392505050565b600080600060608486031215612dd457600080fd5b612ddd846129ef565b925060208401359150604084013567ffffffffffffffff811115612e0057600080fd5b612e0c86828701612cd5565b9150509250925092565b600080600060608486031215612e2b57600080fd5b612e34846129ef565b925060208401359150612e4960408501612d3c565b90509250925092565b600060208284031215612e6457600080fd5b6129e8826129ef565b6020815260006129e86020830184612a9d565b60008060008060608587031215612e9657600080fd5b612e9f856129ef565b935060208501359250604085013567ffffffffffffffff811115612ec257600080fd5b612ece87828801612ba9565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b81811015612f14578351151583529284019291840191600101612ef6565b50909695505050505050565b600181811c90821680612f3457607f821691505b602082108103612ce857634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612f8457612f84612f54565b500290565b600063ffffffff808316818516808303821115612fa857612fa8612f54565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612fd957600080fd5b6129e882612d3c565b6000808335601e19843603018112612ff957600080fd5b83018035915067ffffffffffffffff82111561301457600080fd5b6020019150600581901b3603821315612bee57600080fd5b6000821982111561303f5761303f612f54565b500190565b634e487b7160e01b600052604160045260246000fd5b6000602080838503121561306d57600080fd5b825167ffffffffffffffff8082111561308557600080fd5b818501915085601f83011261309957600080fd5b8151818111156130ab576130ab613044565b8060051b604051601f19603f830116810181811085821117156130d0576130d0613044565b6040529182528482019250838101850191888311156130ee57600080fd5b938501935b8285101561310c578451845293850193928501926130f3565b98975050505050505050565b801515811461312657600080fd5b50565b60006020828403121561313b57600080fd5b81516129e881613118565b60006020828403121561315857600080fd5b8135600481106129e857600080fd5b60006020828403121561317957600080fd5b813565ffffffffffff811681146129e857600080fd5b60006001600160e01b038083168181036131ab576131ab612f54565b6001019392505050565b6000602082840312156131c757600080fd5b81356129e881613118565b6000808335601e198436030181126131e957600080fd5b83018035915067ffffffffffffffff82111561320457600080fd5b602001915036819003821315612bee57600080fd5b60006020828403121561322b57600080fd5b5051919050565b60008351613244818460208801612a6d565b835190830190612fa8818360208801612a6d565b6000835161326a818460208801612a6d565b7f2f0000000000000000000000000000000000000000000000000000000000000090830190815283516132a4816001840160208801612a6d565b01600101949350505050565b6000600182016132c2576132c2612f54565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826132ee576132ee6132c9565b500490565b60008282101561330557613305612f54565b500390565b600082613319576133196132c9565b50069056fea26469706673582212209908a966706d66fcf91255208e5fd0b2637d1930e73f03e777a1521c0092327164736f6c634300080e0033
Deployed Bytecode
0x6080604052600436106100bc5760003560e01c8063bbf2a8c611610074578063d5fdfe871161004e578063d5fdfe87146101ee578063e9dc63751461022d578063f8a6137b1461025a57600080fd5b8063bbf2a8c61461019b578063c95d571d146101ae578063cda08536146101ce57600080fd5b80633512da33116100a55780633512da331461012357806342f3bef4146101385780634773795b1461016d57600080fd5b806301ffc9a7146100c15780630f79ab39146100f6575b600080fd5b3480156100cd57600080fd5b506100e16100dc3660046129be565b610287565b60405190151581526020015b60405180910390f35b34801561010257600080fd5b50610116610111366004612a0b565b610324565b6040516100ed9190612ac9565b610136610131366004612bf5565b61058b565b005b34801561014457600080fd5b50610158610153366004612c99565b610c51565b60405163ffffffff90911681526020016100ed565b34801561017957600080fd5b5061018d610188366004612cee565b610d92565b6040519081526020016100ed565b6101366101a9366004612d50565b611400565b3480156101ba57600080fd5b506101366101c9366004612dbf565b611921565b3480156101da57600080fd5b506100e16101e9366004612e16565b61207e565b3480156101fa57600080fd5b5061018d610209366004612e52565b6001600160a01b03166000908152600160205260409020546001600160e01b031690565b34801561023957600080fd5b5061024d610248366004612a0b565b6121a0565b6040516100ed9190612e6d565b34801561026657600080fd5b5061027a610275366004612e80565b6124fa565b6040516100ed9190612eda565b60006001600160e01b031982167fadbf21b40000000000000000000000000000000000000000000000000000000014806102ea57506001600160e01b031982167fe9dc637500000000000000000000000000000000000000000000000000000000145b8061031e57506001600160e01b031982167f01ffc9a700000000000000000000000000000000000000000000000000000000145b92915050565b60408051610160810182526000808252602080830182905282840182905260608084018390526080840183905260a0840183905260c0840183905260e08401839052610100840152610120830182905261014083018290526001600160a01b038616825260028152838220858352905291822054909190600160c01b900460ff1660038111156103b6576103b6612a35565b036104005760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6001600160a01b0383166000908152600260209081526040808320858452825291829020825161016081018452815463ffffffff80821683526401000000008204811694830194909452600160401b81049093169381019390935265ffffffffffff600160601b830481166060850152600160901b83041660808401529060a083019060ff600160c01b90910416600381111561049f5761049f612a35565b60038111156104b0576104b0612a35565b81528154600160c81b900460ff1615156020820152600182015460408201526002820180546060909201916104e490612f20565b80601f016020809104026020016040519081016040528092919081815260200182805461051090612f20565b801561055d5780601f106105325761010080835404028352916020019161055d565b820191906000526020600020905b81548152906001019060200180831161054057829003601f168201915b5050509183525050600382015460208201526004909101546001600160a01b03166040909101529392505050565b6001600160a01b03871660009081526002602090815260408083208984529091528120908154600160c01b900460ff1660038111156105cc576105cc612a35565b036106115760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b60448201526064016103f7565b8561ffff1681600301546106259190612f6a565b34146106735760405162461bcd60e51b815260206004820152600e60248201527f4d75737420706179206d6f72652e00000000000000000000000000000000000060448201526064016103f7565b8054600160601b900465ffffffffffff1615806106a05750805442600160601b90910465ffffffffffff16105b6106ec5760405162461bcd60e51b815260206004820152601d60248201527f5472616e73616374696f6e206265666f7265207374617274206461746500000060448201526064016103f7565b8054600160901b900465ffffffffffff16158061071a5750805442600160901b90910465ffffffffffff1610155b6107665760405162461bcd60e51b815260206004820152601a60248201527f5472616e73616374696f6e20616674657220656e64206461746500000000000060448201526064016103f7565b8054640100000000900463ffffffff1615806107a85750805463ffffffff640100000000820481169161079f9161ffff8a169116612f89565b63ffffffff1611155b61081a5760405162461bcd60e51b815260206004820152602160248201527f546f6f206d616e792072657175657374656420666f72207468697320636c616960448201527f6d0000000000000000000000000000000000000000000000000000000000000060648201526084016103f7565b80546000906108309063ffffffff166001612f89565b825463ffffffff19811661ffff8a1663ffffffff928316018216178455600184015491169150156109715761ffff871685148015610871575061ffff871683145b6108bd5760405162461bcd60e51b815260206004820152600d60248201527f496e76616c696420696e7075740000000000000000000000000000000000000060448201526064016103f7565b60005b8761ffff1681101561096b5760008787838181106108e0576108e0612fb1565b90506020020160208101906108f59190612fc7565b9050600086868481811061090b5761090b612fb1565b905060200281019061091d9190612fe2565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092935061096192508791508e90508d85856125b5565b50506001016108c0565b50610a7b565b8154600160401b900463ffffffff1615610a7b5781546001600160a01b038a1660009081526003602090815260408083208c84528252808320338452909152902054600160401b90910463ffffffff16906109d19061ffff8a169061302c565b1115610a455760405162461bcd60e51b815260206004820152602260248201527f546f6f206d616e792072657175657374656420666f7220746869732077616c6c60448201527f657400000000000000000000000000000000000000000000000000000000000060648201526084016103f7565b6001600160a01b03891660009081526003602090815260408083208b845282528083203384529091529020805461ffff89160190555b6040517fe00aab4b00000000000000000000000000000000000000000000000000000000815233600482015261ffff881660248201526000906001600160a01b038b169063e00aab4b906044016000604051808303816000875af1158015610ae7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b0f919081019061305a565b905060005b8861ffff16811015610bc45760405180604001604052808b6001600160e01b031681526020018285610b46919061302c565b63ffffffff1690526001600160a01b038c1660009081526005602052604081208451909190859085908110610b7d57610b7d612fb1565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b03909216919091179055600101610b14565b5060048301546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610c00573d6000803e3d6000fd5b5060405161ffff8916815289906001600160a01b038c16907f74f5d3254dfa39a7b1217a27d5d9b3e061eafe11720eca1cf499da2dc1eb12599060200160405180910390a350505050505050505050565b6001600160a01b03821660009081526002602090815260408083208484529091528120818154600160c01b900460ff166003811115610c9257610c92612a35565b03610cd75760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b60448201526064016103f7565b8054600160401b900463ffffffff16600003610d5b5760405162461bcd60e51b815260206004820152603660248201527f43616e206f6e6c7920726574726965766520666f72206e6f6e2d6d65726b6c6560448201527f20636c61696d7320776974682077616c6c65744d61780000000000000000000060648201526084016103f7565b50506001600160a01b0380831660009081526003602090815260408083208584528252808320938716835292905220549392505050565b604051630935e01b60e21b8152336004820152600090839081906001600160a01b038216906324d7806c90602401602060405180830381865afa158015610ddd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e019190613129565b610e615760405162461bcd60e51b815260206004820152602b60248201527f57616c6c6574206973206e6f7420616e2061646d696e6973747261746f72206660448201526a1bdc8818dbdb9d1c9858dd60aa1b60648201526084016103f7565b6000610e7360a0860160808701613146565b6003811115610e8457610e84612a35565b03610ef75760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420696e697469616c697a65207769746820696e76616c6964207360448201527f746f726167652070726f746f636f6c000000000000000000000000000000000060648201526084016103f7565b610f076080850160608601613167565b65ffffffffffff161580610f485750610f266080850160608601613167565b65ffffffffffff16610f3e6060860160408701613167565b65ffffffffffff16105b610fba5760405162461bcd60e51b815260206004820152603660248201527f43616e6e6f74206861766520737461727444617465206772656174657220746860448201527f616e206f7220657175616c20746f20656e64446174650000000000000000000060648201526084016103f7565b60c08401351580610fde5750610fd66040850160208601612fc7565b63ffffffff16155b6110505760405162461bcd60e51b815260206004820152603160248201527f43616e6e6f742070726f7669646520626f7468206d696e747350657257616c6c60448201527f657420616e64206d65726b6c65526f6f7400000000000000000000000000000060648201526084016103f7565b6001600160a01b038516600090815260016020526040812080546001600160e01b03169161107d8361318f565b82546101009290920a6001600160e01b038181021990931691831602179091556001600160a01b0387166000908152600160209081526040808320548151610160810190925292815291909216925090818101906110dd90880188612fc7565b63ffffffff1681526020018660200160208101906110fb9190612fc7565b63ffffffff1681526020016111166060880160408901613167565b65ffffffffffff1681526020016111336080880160608901613167565b65ffffffffffff16815260200161115060a0880160808901613146565b600381111561116157611161612a35565b815260200161117660c0880160a089016131b5565b1515815260c0870135602082015260400161119460e08801886131d2565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050509082525061010087013560208201526040016111eb61014088016101208901612e52565b6001600160a01b03908116909152871660009081526002602090815260408083206001600160e01b03861684528252918290208351815492850151938501516060860151608087015165ffffffffffff908116600160901b027fffffffffffffffff000000000000ffffffffffffffffffffffffffffffffffff91909216600160601b0271ffffffffffff0000000000000000000000001963ffffffff948516600160401b021671ffffffffffffffffffff0000000000000000199885166401000000000267ffffffffffffffff199098169490951693909317959095179590951691909117179182168317815560a084015190929091839160ff60c01b19167fffffffffffffff00000000000000ffffffffffffffffffffffffffffffffffff90911617600160c01b83600381111561132757611327612a35565b021790555060c08201518154901515600160c81b0260ff60c81b1990911617815560e08201516001820155610100820151805161136e916002840191602090910190612925565b506101208201516003820155610140909101516004909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039283161790556040513381526001600160e01b038316918816907fcf76e1beb8dcf887c917933e1d0970eafadb9a69b82cfd5f44740a0dce6f45a69060200160405180910390a36001600160e01b031695945050505050565b6001600160a01b03851660009081526002602090815260408083208784529091528120908154600160c01b900460ff16600381111561144157611441612a35565b036114865760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b60448201526064016103f7565b806003015434146114d95760405162461bcd60e51b815260206004820152600e60248201527f4d75737420706179206d6f72652e00000000000000000000000000000000000060448201526064016103f7565b8054600160601b900465ffffffffffff1615806115065750805442600160601b90910465ffffffffffff16105b6115525760405162461bcd60e51b815260206004820152601d60248201527f5472616e73616374696f6e206265666f7265207374617274206461746500000060448201526064016103f7565b8054600160901b900465ffffffffffff1615806115805750805442600160901b90910465ffffffffffff1610155b6115cc5760405162461bcd60e51b815260206004820152601a60248201527f5472616e73616374696f6e20616674657220656e64206461746500000000000060448201526064016103f7565b8054640100000000900463ffffffff1615806115f85750805463ffffffff640100000000820481169116105b61166a5760405162461bcd60e51b815260206004820152602c60248201527f4d6178696d756d20746f6b656e7320616c7265616479206d696e74656420666f60448201527f72207468697320636c61696d000000000000000000000000000000000000000060648201526084016103f7565b6001810154156116b9576116b4818787878787808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506125b592505050565b6117af565b8054600160401b900463ffffffff16156117af5780546001600160a01b03871660009081526003602090815260408083208984528252808320338452909152902054600160401b90910463ffffffff161161177c5760405162461bcd60e51b815260206004820152602d60248201527f4d6178696d756d20746f6b656e7320616c7265616479206d696e74656420666f60448201527f7220746869732077616c6c65740000000000000000000000000000000000000060648201526084016103f7565b6001600160a01b038616600090815260036020908152604080832088845282528083203384529091529020805460010190555b805463ffffffff8082166001011663ffffffff199091161781556040517f2928ca580000000000000000000000000000000000000000000000000000000081523360048201526000906001600160a01b03881690632928ca58906024016020604051808303816000875af115801561182b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184f9190613219565b6040805180820182526001600160e01b03808a168252855463ffffffff90811660208085019182526001600160a01b03808f1660009081526005835287812089825290925286822095519251909316600160e01b029190931617909255600486015492519394509116913480156108fc0292909190818181858888f193505050501580156118e1573d6000803e3d6000fd5b5060405186906001600160a01b038916907f5d404f369772cfab2b65717fca9bc2077efeab89a0dbec036bf0c13783154eb190600090a350505050505050565b604051630935e01b60e21b8152336004820152839081906001600160a01b038216906324d7806c90602401602060405180830381865afa158015611969573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198d9190613129565b6119ed5760405162461bcd60e51b815260206004820152602b60248201527f57616c6c6574206973206e6f7420616e2061646d696e6973747261746f72206660448201526a1bdc8818dbdb9d1c9858dd60aa1b60648201526084016103f7565b60006001600160a01b0386166000908152600260209081526040808320888452909152902054600160c01b900460ff166003811115611a2e57611a2e612a35565b03611a735760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b60448201526064016103f7565b6000611a8560a0850160808601613146565b6003811115611a9657611a96612a35565b03611b095760405162461bcd60e51b815260206004820152602360248201527f43616e6e6f742073657420696e76616c69642073746f726167652070726f746f60448201527f636f6c000000000000000000000000000000000000000000000000000000000060648201526084016103f7565b6001600160a01b0385166000908152600260209081526040808320878452909152902054640100000000900463ffffffff161580611b8a5750611b4f6020840184612fc7565b6001600160a01b038616600090815260026020908152604080832088845290915290205463ffffffff91821664010000000090910490911611155b611bd65760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420646563726561736520746f74616c4d6178000000000000000060448201526064016103f7565b6001600160a01b0385166000908152600260209081526040808320878452909152902054600160401b900463ffffffff161580611c585750611c1e6040840160208501612fc7565b6001600160a01b038616600090815260026020908152604080832088845290915290205463ffffffff918216600160401b90910490911611155b611ca45760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f742064656372656173652077616c6c65744d61780000000000000060448201526064016103f7565b611cb46080840160608501613167565b65ffffffffffff161580611cf55750611cd36080840160608501613167565b65ffffffffffff16611ceb6060850160408601613167565b65ffffffffffff16105b611d675760405162461bcd60e51b815260206004820152603660248201527f43616e6e6f74206861766520737461727444617465206772656174657220746860448201527f616e206f7220657175616c20746f20656e64446174650000000000000000000060648201526084016103f7565b60408051610160810182526001600160a01b03871660009081526002602090815283822088835281529290205463ffffffff1681529080820190611dad90860186612fc7565b63ffffffff168152602001846020016020810190611dcb9190612fc7565b63ffffffff168152602001611de66060860160408701613167565b65ffffffffffff168152602001611e036080860160608701613167565b65ffffffffffff168152602001611e2060a0860160808701613146565b6003811115611e3157611e31612a35565b8152602001611e4660c0860160a087016131b5565b1515815260c08501356020820152604001611e6460e08601866131d2565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050908252506101008501356020820152604001611ebb61014086016101208701612e52565b6001600160a01b03908116909152861660009081526002602090815260408083208884528252918290208351815492850151938501516060860151608087015165ffffffffffff908116600160901b027fffffffffffffffff000000000000ffffffffffffffffffffffffffffffffffff91909216600160601b0271ffffffffffff0000000000000000000000001963ffffffff948516600160401b021671ffffffffffffffffffff0000000000000000199885166401000000000267ffffffffffffffff199098169490951693909317959095179590951691909117179182168317815560a084015190929091839160ff60c01b19167fffffffffffffff00000000000000ffffffffffffffffffffffffffffffffffff90911617600160c01b836003811115611fee57611fee612a35565b021790555060c08201518154901515600160c81b0260ff60c81b1990911617815560e082015160018201556101008201518051612035916002840191602090910190612925565b506101208201516003820155610140909101516004909101805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039092169190911790555050505050565b6001600160a01b03831660009081526002602090815260408083208584529091528120818154600160c01b900460ff1660038111156120bf576120bf612a35565b036121045760405162461bcd60e51b815260206004820152601560248201527410db185a5b481b9bdd081a5b9a5d1a585b1a5e9959605a1b60448201526064016103f7565b80600101546000036121585760405162461bcd60e51b815260206004820152601c60248201527f43616e206f6e6c7920636865636b206d65726b6c6520636c61696d730000000060448201526064016103f7565b50506001600160a01b0383166000908152600460209081526040808320858452825280832062ffffff600886901c168452909152902054600160ff83161b1615159392505050565b6001600160a01b03821660009081526005602090815260408083208484528252918290208251808401909352546001600160e01b038116808452600160e01b90910463ffffffff16918301919091526060919061223f5760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20646f6573206e6f7420657869737400000000000000000000000060448201526064016103f7565b6001600160a01b038416600090815260026020908152604080832084516001600160e01b031684528252808320815161016081018352815463ffffffff80821683526401000000008204811695830195909552600160401b81049094169281019290925265ffffffffffff600160601b840481166060840152600160901b8404166080830152909160a083019060ff600160c01b9091041660038111156122e8576122e8612a35565b60038111156122f9576122f9612a35565b81528154600160c81b900460ff16151560208201526001820154604082015260028201805460609092019161232d90612f20565b80601f016020809104026020016040519081016040528092919081815260200182805461235990612f20565b80156123a65780601f1061237b576101008083540402835291602001916123a6565b820191906000526020600020905b81548152906001019060200180831161238957829003601f168201915b505050918352505060038201546020808301919091526004909201546001600160a01b0316604091820152805191820190526000815290915060028260a0015160038111156123f7576123f7612a35565b03612436575060408051808201909152601481527f68747470733a2f2f617277656176652e6e65742f0000000000000000000000006020820152612489565b60038260a00151600381111561244e5761244e612a35565b03612489575060408051808201909152600781527f697066733a2f2f0000000000000000000000000000000000000000000000000060208201525b6101008201516040516124a0918391602001613232565b60405160208183030381529060405293508160c001516124f157836124ce846020015163ffffffff16612726565b6040516020016124df929190613258565b60405160208183030381529060405293505b50505092915050565b60608167ffffffffffffffff81111561251557612515613044565b60405190808252806020026020018201604052801561253e578160200160208202803683370190505b50905060005b828110156125ac57612578868686868581811061256357612563612fb1565b90506020020160208101906101e99190612fc7565b82828151811061258a5761258a612fb1565b91151560209283029190910190910152806125a4816132b0565b915050612544565b50949350505050565b6040516bffffffffffffffffffffffff193360601b1660208201526001600160e01b031960e084901b16603482015260009060380160405160208183030381529060405280519060200120905061261182876001015483612863565b61265d5760405162461bcd60e51b815260206004820152601d60248201527f436f756c64206e6f7420766572696679206d65726b6c652070726f6f6600000060448201526064016103f7565b6001600160a01b0385166000908152600460209081526040808320878452825280832062ffffff600888901c16808552925290912054600160ff86161b808216156126ea5760405162461bcd60e51b815260206004820152600e60248201527f416c7265616479206d696e74656400000000000000000000000000000000000060448201526064016103f7565b6001600160a01b039097166000908152600460209081526040808320988352978152878220938252929092529490209390941790925550505050565b60608160000361276957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612793578061277d816132b0565b915061278c9050600a836132df565b915061276d565b60008167ffffffffffffffff8111156127ae576127ae613044565b6040519080825280601f01601f1916602001820160405280156127d8576020820181803683370190505b5090505b841561285b576127ed6001836132f3565b91506127fa600a8661330a565b61280590603061302c565b60f81b81838151811061281a5761281a612fb1565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612854600a866132df565b94506127dc565b949350505050565b6000826128708584612879565b14949350505050565b600081815b845181101561291d57600085828151811061289b5761289b612fb1565b602002602001015190508083116128dd57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061290a565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612915816132b0565b91505061287e565b509392505050565b82805461293190612f20565b90600052602060002090601f0160209004810192826129535760008555612999565b82601f1061296c57805160ff1916838001178555612999565b82800160010185558215612999579182015b8281111561299957825182559160200191906001019061297e565b506129a59291506129a9565b5090565b5b808211156129a557600081556001016129aa565b6000602082840312156129d057600080fd5b81356001600160e01b0319811681146129e857600080fd5b9392505050565b80356001600160a01b0381168114612a0657600080fd5b919050565b60008060408385031215612a1e57600080fd5b612a27836129ef565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b60048110612a6957634e487b7160e01b600052602160045260246000fd5b9052565b60005b83811015612a88578181015183820152602001612a70565b83811115612a97576000848401525b50505050565b60008151808452612ab5816020860160208601612a6d565b601f01601f19169290920160200192915050565b60208152612ae060208201835163ffffffff169052565b60006020830151612af9604084018263ffffffff169052565b50604083015163ffffffff8116606084015250606083015165ffffffffffff8116608084015250608083015165ffffffffffff811660a08401525060a0830151612b4660c0840182612a4b565b5060c083015180151560e08401525060e083015161010083810191909152830151610160610120808501829052612b81610180860184612a9d565b9086015161014086810191909152909501516001600160a01b03169301929092525090919050565b60008083601f840112612bbb57600080fd5b50813567ffffffffffffffff811115612bd357600080fd5b6020830191508360208260051b8501011115612bee57600080fd5b9250929050565b600080600080600080600060a0888a031215612c1057600080fd5b612c19886129ef565b965060208801359550604088013561ffff81168114612c3757600080fd5b9450606088013567ffffffffffffffff80821115612c5457600080fd5b612c608b838c01612ba9565b909650945060808a0135915080821115612c7957600080fd5b50612c868a828b01612ba9565b989b979a50959850939692959293505050565b600080600060608486031215612cae57600080fd5b612cb7846129ef565b9250612cc5602085016129ef565b9150604084013590509250925092565b60006101408284031215612ce857600080fd5b50919050565b60008060408385031215612d0157600080fd5b612d0a836129ef565b9150602083013567ffffffffffffffff811115612d2657600080fd5b612d3285828601612cd5565b9150509250929050565b803563ffffffff81168114612a0657600080fd5b600080600080600060808688031215612d6857600080fd5b612d71866129ef565b945060208601359350612d8660408701612d3c565b9250606086013567ffffffffffffffff811115612da257600080fd5b612dae88828901612ba9565b969995985093965092949392505050565b600080600060608486031215612dd457600080fd5b612ddd846129ef565b925060208401359150604084013567ffffffffffffffff811115612e0057600080fd5b612e0c86828701612cd5565b9150509250925092565b600080600060608486031215612e2b57600080fd5b612e34846129ef565b925060208401359150612e4960408501612d3c565b90509250925092565b600060208284031215612e6457600080fd5b6129e8826129ef565b6020815260006129e86020830184612a9d565b60008060008060608587031215612e9657600080fd5b612e9f856129ef565b935060208501359250604085013567ffffffffffffffff811115612ec257600080fd5b612ece87828801612ba9565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b81811015612f14578351151583529284019291840191600101612ef6565b50909695505050505050565b600181811c90821680612f3457607f821691505b602082108103612ce857634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612f8457612f84612f54565b500290565b600063ffffffff808316818516808303821115612fa857612fa8612f54565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612fd957600080fd5b6129e882612d3c565b6000808335601e19843603018112612ff957600080fd5b83018035915067ffffffffffffffff82111561301457600080fd5b6020019150600581901b3603821315612bee57600080fd5b6000821982111561303f5761303f612f54565b500190565b634e487b7160e01b600052604160045260246000fd5b6000602080838503121561306d57600080fd5b825167ffffffffffffffff8082111561308557600080fd5b818501915085601f83011261309957600080fd5b8151818111156130ab576130ab613044565b8060051b604051601f19603f830116810181811085821117156130d0576130d0613044565b6040529182528482019250838101850191888311156130ee57600080fd5b938501935b8285101561310c578451845293850193928501926130f3565b98975050505050505050565b801515811461312657600080fd5b50565b60006020828403121561313b57600080fd5b81516129e881613118565b60006020828403121561315857600080fd5b8135600481106129e857600080fd5b60006020828403121561317957600080fd5b813565ffffffffffff811681146129e857600080fd5b60006001600160e01b038083168181036131ab576131ab612f54565b6001019392505050565b6000602082840312156131c757600080fd5b81356129e881613118565b6000808335601e198436030181126131e957600080fd5b83018035915067ffffffffffffffff82111561320457600080fd5b602001915036819003821315612bee57600080fd5b60006020828403121561322b57600080fd5b5051919050565b60008351613244818460208801612a6d565b835190830190612fa8818360208801612a6d565b6000835161326a818460208801612a6d565b7f2f0000000000000000000000000000000000000000000000000000000000000090830190815283516132a4816001840160208801612a6d565b01600101949350505050565b6000600182016132c2576132c2612f54565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826132ee576132ee6132c9565b500490565b60008282101561330557613305612f54565b500390565b600082613319576133196132c9565b50069056fea26469706673582212209908a966706d66fcf91255208e5fd0b2637d1930e73f03e777a1521c0092327164736f6c634300080e0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
POL | 100.00% | $0.610538 | 0.008 | $0.004884 |
Loading...
Loading
[ 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.