Overview
TokenID
201
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CoverNFT
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.8.18; import "../../interfaces/ICoverNFT.sol"; import "../../interfaces/ICoverNFTDescriptor.sol"; /// @dev Based on Solmate https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol contract CoverNFT is ICoverNFT { string public name; string public symbol; mapping(uint => address) internal _ownerOf; mapping(address => uint) internal _balanceOf; mapping(uint => address) public getApproved; mapping(address => mapping(address => bool)) public isApprovedForAll; uint96 internal _totalSupply; address public operator; address public nftDescriptor; modifier onlyOperator { if (msg.sender != operator) revert NotOperator(); _; } constructor( string memory _name, string memory _symbol, address _operator, address _nftDescriptor ) { name = _name; symbol = _symbol; operator = _operator; nftDescriptor = _nftDescriptor; } // operator functions function changeOperator(address _newOperator) public onlyOperator { if (_newOperator == address(0)) revert InvalidNewOperatorAddress(); operator = _newOperator; } function changeNFTDescriptor(address _newNFTDescriptor) public onlyOperator { if (_newNFTDescriptor == address(0)) revert InvalidNewNFTDescriptorAddress(); nftDescriptor = _newNFTDescriptor; } // minting and supply function mint(address to) external onlyOperator returns (uint id) { if (to == address(0)) revert InvalidRecipient(); // counter overflow is incredibly unrealistic unchecked { id = ++_totalSupply; _balanceOf[to]++; } _ownerOf[id] = to; emit Transfer(address(0), to, id); } function totalSupply() public view returns (uint) { return _totalSupply; } // ERC165 function supportsInterface(bytes4 interfaceId) public pure returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata } // ERC721 function tokenURI(uint id) public view virtual returns (string memory uri) { if (_ownerOf[id] == address(0)) revert NotMinted(); return ICoverNFTDescriptor(nftDescriptor).tokenURI(id); } function ownerOf(uint id) public view returns (address owner) { if ((owner = _ownerOf[id]) == address(0)) revert NotMinted(); } function balanceOf(address owner) public view returns (uint) { if (owner == address(0)) revert NotMinted(); return _balanceOf[owner]; } function approve(address spender, uint id) public { address owner = _ownerOf[id]; if (msg.sender != owner && !isApprovedForAll[owner][msg.sender]) revert NotAuthorized(); getApproved[id] = spender; emit Approval(owner, spender, id); } function setApprovalForAll(address spender, bool approved) public { isApprovedForAll[msg.sender][spender] = approved; emit ApprovalForAll(msg.sender, spender, approved); } /// @dev `ownerOf` and `getApproved` throw if the token doesn't exist as per ERC721 spec /// @dev as a consequence this function will throw as well in that case function isApprovedOrOwner(address spender, uint tokenId) external view returns (bool) { address owner = ownerOf(tokenId); return spender == owner || isApprovedForAll[owner][spender] || spender == getApproved[tokenId]; } function transferFrom(address from, address to, uint id) public { if (from != _ownerOf[id]) revert WrongFrom(); if (to == address(0)) revert InvalidRecipient(); if (msg.sender != from && !isApprovedForAll[from][msg.sender] && msg.sender != getApproved[id]) { revert NotAuthorized(); } // underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow unchecked { _balanceOf[from]--; _balanceOf[to]++; } _ownerOf[id] = to; delete getApproved[id]; emit Transfer(from, to, id); } function safeTransferFrom(address from, address to, uint id) public { transferFrom(from, to, id); if (to.code.length != 0 && ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") != ERC721TokenReceiver.onERC721Received.selector) { revert UnsafeRecipient(); } } function safeTransferFrom( address from, address to, uint id, bytes calldata data ) public { transferFrom(from, to, id); if (to.code.length != 0 && ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) != ERC721TokenReceiver.onERC721Received.selector) { revert UnsafeRecipient(); } } } /// @notice A generic interface for a contract which properly accepts ERC721 tokens. /// @dev Based on (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721TokenReceiver { function onERC721Received(address, address, uint, bytes calldata) external virtual returns (bytes4) { return ERC721TokenReceiver.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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: GPL-3.0-only pragma solidity >=0.5.0; import "@openzeppelin/contracts-v4/token/ERC721/IERC721.sol"; interface ICoverNFT is IERC721 { function isApprovedOrOwner(address spender, uint tokenId) external returns (bool); function mint(address to) external returns (uint tokenId); function changeOperator(address newOperator) external; function totalSupply() external view returns (uint); function name() external view returns (string memory); error NotOperator(); error NotMinted(); error WrongFrom(); error InvalidRecipient(); error InvalidNewOperatorAddress(); error InvalidNewNFTDescriptorAddress(); error NotAuthorized(); error UnsafeRecipient(); error AlreadyMinted(); }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity >=0.5.0; interface ICoverNFTDescriptor { function tokenURI(uint tokenId) external view returns (string memory); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_nftDescriptor","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyMinted","type":"error"},{"inputs":[],"name":"InvalidNewNFTDescriptorAddress","type":"error"},{"inputs":[],"name":"InvalidNewOperatorAddress","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"NotAuthorized","type":"error"},{"inputs":[],"name":"NotMinted","type":"error"},{"inputs":[],"name":"NotOperator","type":"error"},{"inputs":[],"name":"UnsafeRecipient","type":"error"},{"inputs":[],"name":"WrongFrom","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newNFTDescriptor","type":"address"}],"name":"changeNFTDescriptor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOperator","type":"address"}],"name":"changeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isApprovedOrOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftDescriptor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620013463803806200134683398101604081905262000034916200017c565b60006200004285826200029a565b5060016200005184826200029a565b50600680546001600160601b03166c010000000000000000000000006001600160a01b0394851602179055600780546001600160a01b0319169190921617905550620003669050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620000c257600080fd5b81516001600160401b0380821115620000df57620000df6200009a565b604051601f8301601f19908116603f011681019082821181831017156200010a576200010a6200009a565b816040528381526020925086838588010111156200012757600080fd5b600091505b838210156200014b57858201830151818301840152908201906200012c565b600093810190920192909252949350505050565b80516001600160a01b03811681146200017757600080fd5b919050565b600080600080608085870312156200019357600080fd5b84516001600160401b0380821115620001ab57600080fd5b620001b988838901620000b0565b95506020870151915080821115620001d057600080fd5b50620001df87828801620000b0565b935050620001f0604086016200015f565b915062000200606086016200015f565b905092959194509250565b600181811c908216806200022057607f821691505b6020821081036200024157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200029557600081815260208120601f850160051c81016020861015620002705750805b601f850160051c820191505b8181101562000291578281556001016200027c565b5050505b505050565b81516001600160401b03811115620002b657620002b66200009a565b620002ce81620002c784546200020b565b8462000247565b602080601f831160018114620003065760008415620002ed5750858301515b600019600386901b1c1916600185901b17855562000291565b600085815260208120601f198616915b82811015620003375788860151825594840194600190910190840162000316565b5085821015620003565787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610fd080620003766000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063570ca735116100ad5780639d8168eb116100715780639d8168eb14610299578063a22cb465146102ac578063b88d4fde146102bf578063c87b56dd146102d2578063e985e9c5146102e557600080fd5b8063570ca7351461023e5780636352211e146102585780636a6278421461026b57806370a082311461027e57806395d89b411461029157600080fd5b806318160ddd116100f457806318160ddd146101d757806323b872dd146101f257806342842e0e14610205578063430c208114610218578063442675701461022b57600080fd5b806301ffc9a71461013157806306394c9b1461015957806306fdde031461016e578063081812fc14610183578063095ea7b3146101c4575b600080fd5b61014461013f366004610bf6565b610313565b60405190151581526020015b60405180910390f35b61016c610167366004610c31565b610365565b005b6101766103e6565b6040516101509190610c70565b6101ac610191366004610ca3565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610150565b61016c6101d2366004610cbc565b610474565b6006546001600160601b03165b604051908152602001610150565b61016c610200366004610ce6565b61053a565b61016c610213366004610ce6565b6106a8565b610144610226366004610cbc565b610782565b6007546101ac906001600160a01b031681565b6006546101ac90600160601b90046001600160a01b031681565b6101ac610266366004610ca3565b610801565b6101e4610279366004610c31565b61083c565b6101e461028c366004610c31565b610931565b610176610976565b61016c6102a7366004610c31565b610983565b61016c6102ba366004610d22565b6109fe565b61016c6102cd366004610d5e565b610a6a565b6101766102e0366004610ca3565b610b34565b6101446102f3366004610df9565b600560209081526000928352604080842090915290825290205460ff1681565b60006301ffc9a760e01b6001600160e01b03198316148061034457506380ac58cd60e01b6001600160e01b03198316145b8061035f5750635b5e139f60e01b6001600160e01b03198316145b92915050565b600654600160601b90046001600160a01b0316331461039757604051631f0853c160e21b815260040160405180910390fd5b6001600160a01b0381166103be576040516302b9f2c160e21b815260040160405180910390fd5b600680546001600160a01b03909216600160601b026001600160601b03909216919091179055565b600080546103f390610e2c565b80601f016020809104026020016040519081016040528092919081815260200182805461041f90610e2c565b801561046c5780601f106104415761010080835404028352916020019161046c565b820191906000526020600020905b81548152906001019060200180831161044f57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148015906104c057506001600160a01b038116600090815260056020908152604080832033845290915290205460ff16155b156104de5760405163ea8e4eb560e01b815260040160405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b038481169116146105745760405163c6de3f2560e01b815260040160405180910390fd5b6001600160a01b03821661059b57604051634e46966960e11b815260040160405180910390fd5b336001600160a01b038416148015906105d857506001600160a01b038316600090815260056020908152604080832033845290915290205460ff16155b80156105fb57506000818152600460205260409020546001600160a01b03163314155b156106195760405163ea8e4eb560e01b815260040160405180910390fd5b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6106b383838361053a565b6001600160a01b0382163b1580159061075f5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af115801561072e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107529190610e66565b6001600160e01b03191614155b1561077d57604051633da6393160e01b815260040160405180910390fd5b505050565b60008061078e83610801565b9050806001600160a01b0316846001600160a01b031614806107d557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806107f957506000838152600460205260409020546001600160a01b038581169116145b949350505050565b6000818152600260205260409020546001600160a01b03168061083757604051634d5e5fb360e01b815260040160405180910390fd5b919050565b600654600090600160601b90046001600160a01b0316331461087157604051631f0853c160e21b815260040160405180910390fd5b6001600160a01b03821661089857604051634e46966960e11b815260040160405180910390fd5b50600680546bffffffffffffffffffffffff19811660016001600160601b0392831681019092169081179092556001600160a01b038316600081815260036020908152604080832080549095019094558482526002905282812080546001600160a01b0319168317905591518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b60006001600160a01b03821661095a57604051634d5e5fb360e01b815260040160405180910390fd5b506001600160a01b031660009081526003602052604090205490565b600180546103f390610e2c565b600654600160601b90046001600160a01b031633146109b557604051631f0853c160e21b815260040160405180910390fd5b6001600160a01b0381166109dc5760405163edb7f57160e01b815260040160405180910390fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610a7585858561053a565b6001600160a01b0384163b15801590610b0f5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610abf9033908a90899089908990600401610e83565b6020604051808303816000875af1158015610ade573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b029190610e66565b6001600160e01b03191614155b15610b2d57604051633da6393160e01b815260040160405180910390fd5b5050505050565b6000818152600260205260409020546060906001600160a01b0316610b6c57604051634d5e5fb360e01b815260040160405180910390fd5b60075460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa158015610bb5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261035f9190810190610eed565b6001600160e01b031981168114610bf357600080fd5b50565b600060208284031215610c0857600080fd5b8135610c1381610bdd565b9392505050565b80356001600160a01b038116811461083757600080fd5b600060208284031215610c4357600080fd5b610c1382610c1a565b60005b83811015610c67578181015183820152602001610c4f565b50506000910152565b6020815260008251806020840152610c8f816040850160208701610c4c565b601f01601f19169190910160400192915050565b600060208284031215610cb557600080fd5b5035919050565b60008060408385031215610ccf57600080fd5b610cd883610c1a565b946020939093013593505050565b600080600060608486031215610cfb57600080fd5b610d0484610c1a565b9250610d1260208501610c1a565b9150604084013590509250925092565b60008060408385031215610d3557600080fd5b610d3e83610c1a565b915060208301358015158114610d5357600080fd5b809150509250929050565b600080600080600060808688031215610d7657600080fd5b610d7f86610c1a565b9450610d8d60208701610c1a565b935060408601359250606086013567ffffffffffffffff80821115610db157600080fd5b818801915088601f830112610dc557600080fd5b813581811115610dd457600080fd5b896020828501011115610de657600080fd5b9699959850939650602001949392505050565b60008060408385031215610e0c57600080fd5b610e1583610c1a565b9150610e2360208401610c1a565b90509250929050565b600181811c90821680610e4057607f821691505b602082108103610e6057634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215610e7857600080fd5b8151610c1381610bdd565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215610eff57600080fd5b815167ffffffffffffffff80821115610f1757600080fd5b818401915084601f830112610f2b57600080fd5b815181811115610f3d57610f3d610ed7565b604051601f8201601f19908116603f01168101908382118183101715610f6557610f65610ed7565b81604052828152876020848701011115610f7e57600080fd5b610f8f836020830160208801610c4c565b97965050505050505056fea2646970667358221220f10acf3f8f8a31ee3890874c59c78a5ced4d9aa0a04295f659d33db28495b2b464736f6c63430008120033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000cafeac0ff5da0a2777d915531bfa6b29d282ee62000000000000000000000000cafead1e31ac8e4924fc867c2c54fab037458cb900000000000000000000000000000000000000000000000000000000000000174e65787573204d757475616c3a20436f766572204e465400000000000000000000000000000000000000000000000000000000000000000000000000000000094e584d2d434f5645520000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063570ca735116100ad5780639d8168eb116100715780639d8168eb14610299578063a22cb465146102ac578063b88d4fde146102bf578063c87b56dd146102d2578063e985e9c5146102e557600080fd5b8063570ca7351461023e5780636352211e146102585780636a6278421461026b57806370a082311461027e57806395d89b411461029157600080fd5b806318160ddd116100f457806318160ddd146101d757806323b872dd146101f257806342842e0e14610205578063430c208114610218578063442675701461022b57600080fd5b806301ffc9a71461013157806306394c9b1461015957806306fdde031461016e578063081812fc14610183578063095ea7b3146101c4575b600080fd5b61014461013f366004610bf6565b610313565b60405190151581526020015b60405180910390f35b61016c610167366004610c31565b610365565b005b6101766103e6565b6040516101509190610c70565b6101ac610191366004610ca3565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610150565b61016c6101d2366004610cbc565b610474565b6006546001600160601b03165b604051908152602001610150565b61016c610200366004610ce6565b61053a565b61016c610213366004610ce6565b6106a8565b610144610226366004610cbc565b610782565b6007546101ac906001600160a01b031681565b6006546101ac90600160601b90046001600160a01b031681565b6101ac610266366004610ca3565b610801565b6101e4610279366004610c31565b61083c565b6101e461028c366004610c31565b610931565b610176610976565b61016c6102a7366004610c31565b610983565b61016c6102ba366004610d22565b6109fe565b61016c6102cd366004610d5e565b610a6a565b6101766102e0366004610ca3565b610b34565b6101446102f3366004610df9565b600560209081526000928352604080842090915290825290205460ff1681565b60006301ffc9a760e01b6001600160e01b03198316148061034457506380ac58cd60e01b6001600160e01b03198316145b8061035f5750635b5e139f60e01b6001600160e01b03198316145b92915050565b600654600160601b90046001600160a01b0316331461039757604051631f0853c160e21b815260040160405180910390fd5b6001600160a01b0381166103be576040516302b9f2c160e21b815260040160405180910390fd5b600680546001600160a01b03909216600160601b026001600160601b03909216919091179055565b600080546103f390610e2c565b80601f016020809104026020016040519081016040528092919081815260200182805461041f90610e2c565b801561046c5780601f106104415761010080835404028352916020019161046c565b820191906000526020600020905b81548152906001019060200180831161044f57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148015906104c057506001600160a01b038116600090815260056020908152604080832033845290915290205460ff16155b156104de5760405163ea8e4eb560e01b815260040160405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b038481169116146105745760405163c6de3f2560e01b815260040160405180910390fd5b6001600160a01b03821661059b57604051634e46966960e11b815260040160405180910390fd5b336001600160a01b038416148015906105d857506001600160a01b038316600090815260056020908152604080832033845290915290205460ff16155b80156105fb57506000818152600460205260409020546001600160a01b03163314155b156106195760405163ea8e4eb560e01b815260040160405180910390fd5b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6106b383838361053a565b6001600160a01b0382163b1580159061075f5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af115801561072e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107529190610e66565b6001600160e01b03191614155b1561077d57604051633da6393160e01b815260040160405180910390fd5b505050565b60008061078e83610801565b9050806001600160a01b0316846001600160a01b031614806107d557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806107f957506000838152600460205260409020546001600160a01b038581169116145b949350505050565b6000818152600260205260409020546001600160a01b03168061083757604051634d5e5fb360e01b815260040160405180910390fd5b919050565b600654600090600160601b90046001600160a01b0316331461087157604051631f0853c160e21b815260040160405180910390fd5b6001600160a01b03821661089857604051634e46966960e11b815260040160405180910390fd5b50600680546bffffffffffffffffffffffff19811660016001600160601b0392831681019092169081179092556001600160a01b038316600081815260036020908152604080832080549095019094558482526002905282812080546001600160a01b0319168317905591518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b60006001600160a01b03821661095a57604051634d5e5fb360e01b815260040160405180910390fd5b506001600160a01b031660009081526003602052604090205490565b600180546103f390610e2c565b600654600160601b90046001600160a01b031633146109b557604051631f0853c160e21b815260040160405180910390fd5b6001600160a01b0381166109dc5760405163edb7f57160e01b815260040160405180910390fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610a7585858561053a565b6001600160a01b0384163b15801590610b0f5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610abf9033908a90899089908990600401610e83565b6020604051808303816000875af1158015610ade573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b029190610e66565b6001600160e01b03191614155b15610b2d57604051633da6393160e01b815260040160405180910390fd5b5050505050565b6000818152600260205260409020546060906001600160a01b0316610b6c57604051634d5e5fb360e01b815260040160405180910390fd5b60075460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa158015610bb5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261035f9190810190610eed565b6001600160e01b031981168114610bf357600080fd5b50565b600060208284031215610c0857600080fd5b8135610c1381610bdd565b9392505050565b80356001600160a01b038116811461083757600080fd5b600060208284031215610c4357600080fd5b610c1382610c1a565b60005b83811015610c67578181015183820152602001610c4f565b50506000910152565b6020815260008251806020840152610c8f816040850160208701610c4c565b601f01601f19169190910160400192915050565b600060208284031215610cb557600080fd5b5035919050565b60008060408385031215610ccf57600080fd5b610cd883610c1a565b946020939093013593505050565b600080600060608486031215610cfb57600080fd5b610d0484610c1a565b9250610d1260208501610c1a565b9150604084013590509250925092565b60008060408385031215610d3557600080fd5b610d3e83610c1a565b915060208301358015158114610d5357600080fd5b809150509250929050565b600080600080600060808688031215610d7657600080fd5b610d7f86610c1a565b9450610d8d60208701610c1a565b935060408601359250606086013567ffffffffffffffff80821115610db157600080fd5b818801915088601f830112610dc557600080fd5b813581811115610dd457600080fd5b896020828501011115610de657600080fd5b9699959850939650602001949392505050565b60008060408385031215610e0c57600080fd5b610e1583610c1a565b9150610e2360208401610c1a565b90509250929050565b600181811c90821680610e4057607f821691505b602082108103610e6057634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215610e7857600080fd5b8151610c1381610bdd565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215610eff57600080fd5b815167ffffffffffffffff80821115610f1757600080fd5b818401915084601f830112610f2b57600080fd5b815181811115610f3d57610f3d610ed7565b604051601f8201601f19908116603f01168101908382118183101715610f6557610f65610ed7565b81604052828152876020848701011115610f7e57600080fd5b610f8f836020830160208801610c4c565b97965050505050505056fea2646970667358221220f10acf3f8f8a31ee3890874c59c78a5ced4d9aa0a04295f659d33db28495b2b464736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000cafeac0ff5da0a2777d915531bfa6b29d282ee62000000000000000000000000cafead1e31ac8e4924fc867c2c54fab037458cb900000000000000000000000000000000000000000000000000000000000000174e65787573204d757475616c3a20436f766572204e465400000000000000000000000000000000000000000000000000000000000000000000000000000000094e584d2d434f5645520000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Nexus Mutual: Cover NFT
Arg [1] : _symbol (string): NXM-COVER
Arg [2] : _operator (address): 0xcafeac0fF5dA0A2777d915531bfA6B29d282Ee62
Arg [3] : _nftDescriptor (address): 0xcafead1E31Ac8e4924Fc867c2C54FAB037458cb9
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000cafeac0ff5da0a2777d915531bfa6b29d282ee62
Arg [3] : 000000000000000000000000cafead1e31ac8e4924fc867c2c54fab037458cb9
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [5] : 4e65787573204d757475616c3a20436f766572204e4654000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [7] : 4e584d2d434f5645520000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.