ERC-721
Overview
Max Total Supply
0 PCS
Holders
19
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 PCSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PunkChecks
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; import {ERC20} from "solmate/tokens/ERC20.sol"; import {ERC721} from "solmate/tokens/ERC721.sol"; import {ERC1155} from "solmate/tokens/ERC1155.sol"; import {Owned} from "solmate/auth/Owned.sol"; import {SafeTransferLib} from "solmate/utils/SafeTransferLib.sol"; import {DefaultOperatorFilterer} from "operator-filter-registry/DefaultOperatorFilterer.sol"; import {ICryptoPunks} from "./ICryptoPunks.sol"; import {IDelegationRegistry} from "./IDelegationRegistry.sol"; error TokenDoesNotExist(); error MaxSupplyReached(); error WrongEtherAmount(); error InvalidVersion(); error NoEthBalance(); error NoCoinBalance(); error MintNotOpen(); error MintNotOpenForVersion(); /// @author flatmap.eth /// @author snjolfur.eth contract PunkChecks is DefaultOperatorFilterer, ERC721, Owned { uint256 public price = 0.0069 ether; address constant PUNKS_V1_ADDRESS = address(0x6Ba6f2207e343923BA692e5Cae646Fb0F566DB8D); address constant PUNKS_V2_ADDRESS = address(0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB); address constant PUNKS_V1_WRAPPER_ADDRESS = address(0x282BDD42f4eb70e7A9D9F40c8fEA0825B7f68C5D); address constant PUNKS_V2_WRAPPER_ADDRESS = address(0xb7F7F6C52F2e2fdb1963Eab30438024864c313F6); address constant DELEGATE_CASH_ADDRESS = address(0x00000000000076A84feF008CDAbe6409d2FE638B); address public renderingContractAddress; address public vaultAddress; string contractUri = "https://punkchecks.xyz/api/contractURI"; mapping(uint256 => uint256) public typeByPunkId; uint256 private mintType; /// Mint types for PunkChecks, i.e. which CryptoPunks holders are allowed to mint uint256 private constant OPEN = 0; uint256 private constant V1_HOLDERS = 1; uint256 private constant V2_HOLDERS = 2; uint256 private constant HOLDERS_OF_BOTH = 3; uint256 private constant HOLDERS = 4; uint256 private constant CLOSED = 5; constructor(address _renderingContractAddress, address _vaultAddress, address _owner) ERC721("PunkChecks", "PCS") Owned(_owner) { renderingContractAddress = _renderingContractAddress; vaultAddress = _vaultAddress; mintType = 5; } /** * @notice Mint a PunkCheck * @param punkId The ID of the CryptoPunk to mint PunkChecks for * @param vaultV1 The address where the CryptoPunks v1 is held if using a delegate wallet * @param vaultV2 The address where the CryptoPunks v2 is held if using a delegate wallet * @param v The version of PunkChecks to mint, 1 if holding only a v1 Punk, 2 if holding only a v2 Punk, 3 if holding both, 4 if holding none */ function mint(uint256 punkId, address vaultV1, address vaultV2, uint256 v) external payable { if (mintType == CLOSED) revert MintNotOpen(); if (msg.value != price) revert WrongEtherAmount(); if (v < 1 || v > 4) revert InvalidVersion(); if (mintType == V1_HOLDERS && v != 1 && v != 3) revert MintNotOpenForVersion(); if (mintType == V2_HOLDERS && v != 2 && v != 3) revert MintNotOpenForVersion(); if (mintType == HOLDERS_OF_BOTH && v != 3) revert MintNotOpenForVersion(); if (mintType == HOLDERS && v == 4) revert MintNotOpenForVersion(); if (v == 1 || v == 3) { _verifyOwnership(punkId, vaultV1, PUNKS_V1_ADDRESS, PUNKS_V1_WRAPPER_ADDRESS); } if (v == 2 || v == 3) { _verifyOwnership(punkId, vaultV2, PUNKS_V2_ADDRESS, PUNKS_V2_WRAPPER_ADDRESS); } _mint(msg.sender, punkId); typeByPunkId[punkId] = v; } /** * @dev Verify that msg.sender is either the owner or a delegatee of the specified CryptoPunk * @param punkId The ID of the CryptoPunk to verify ownership of * @param vault The address where the CryptoPunk is held if using a delegate wallet * @param punksAddress The address of the CryptoPunks contract * @param wrapperAddress The address of the CryptoPunks wrapper contract */ function _verifyOwnership(uint256 punkId, address vault, address punksAddress, address wrapperAddress) internal view { address requester = msg.sender; address owner = ICryptoPunks(punksAddress).punkIndexToAddress(punkId); address contractAddress = punksAddress; if (owner == wrapperAddress) { owner = ERC721(wrapperAddress).ownerOf(punkId); contractAddress = wrapperAddress; } if (vault != address(0)) { bool isDelegateValid = IDelegationRegistry(DELEGATE_CASH_ADDRESS).checkDelegateForToken( msg.sender, vault, contractAddress, punkId ); require(isDelegateValid, "Punk not delegated"); requester = vault; } require(owner == requester, "Punk not owned"); } /** * @notice Get a json string with the metadata for a PunkCheck * @dev This is delegated to the PunkChecksRenderer contract * @param tokenId The ID of the PunkCheck to get the metadata for */ function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_ownerOf[tokenId] != address(0), "NOT_MINTED"); if (renderingContractAddress == address(0)) { return ""; } IPunkChecksRenderer renderer = IPunkChecksRenderer(renderingContractAddress); return renderer.tokenURI(tokenId, typeByPunkId[tokenId]); } // Contract URI so OpenSea picks up the collection automatically function contractURI() public view returns (string memory) { return contractUri; } /** * @notice Withdraw any ether held by the contract to vault address */ function withdrawEther() external onlyOwner { if (address(this).balance == 0) revert NoEthBalance(); SafeTransferLib.safeTransferETH(vaultAddress, address(this).balance); } /** * @notice Withdraw an ERC721 held by the contract to vault address * @param nftAddress The address of the ERC721 contract * @param tokenId The ID of the token to withdraw */ function withdraw721(address nftAddress, uint256 tokenId) external onlyOwner { ERC721 nft = ERC721(nftAddress); if (nft.ownerOf(tokenId) != address(this)) revert NoCoinBalance(); nft.safeTransferFrom(address(this), vaultAddress, tokenId); } /** * @notice Withdraw an ERC1155 held by the contract to vault address * @param nftAddress The address of the ERC1155 contract * @param tokenId The ID of the token to withdraw */ function withdraw1155(address nftAddress, uint256 tokenId) external onlyOwner { ERC1155 nft = ERC1155(nftAddress); uint256 balance = nft.balanceOf(address(this), tokenId); if (balance == 0) revert NoCoinBalance(); nft.safeTransferFrom(address(this), vaultAddress, tokenId, balance, ""); } /** * @notice Withdraw an ERC20 held by the contract to vault address * @param tokenAddress The address of the ERC20 contract */ function withdrawCoins(address tokenAddress) external onlyOwner { ERC20 token = ERC20(tokenAddress); uint256 balance = token.balanceOf(address(this)); if (balance == 0) revert NoCoinBalance(); SafeTransferLib.safeTransferFrom(token, address(this), vaultAddress, balance); } /** * @notice Change who is allowed to mint */ function setEnabledMintType(uint256 enabledMintType) public onlyOwner { mintType = enabledMintType; } /** * @notice Change the mint price */ function setPrice(uint256 _price) public onlyOwner { price = _price; } /// Operator Filter overrides function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function setRenderingContractAddress(address _renderingContractAddress) public onlyOwner { renderingContractAddress = _renderingContractAddress; } function setVaultAddress(address _vaultAddress) public onlyOwner { vaultAddress = _vaultAddress; } function setContractURI(string memory _contractUri) public onlyOwner { contractUri = _contractUri; } } abstract contract IPunkChecksRenderer { function tokenURI(uint256 punkId, uint256 t) public view virtual returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Simple single owner authorization mixin. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol) abstract contract Owned { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event OwnershipTransferred(address indexed user, address indexed newOwner); /*////////////////////////////////////////////////////////////// OWNERSHIP STORAGE //////////////////////////////////////////////////////////////*/ address public owner; modifier onlyOwner() virtual { require(msg.sender == owner, "UNAUTHORIZED"); _; } /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(address _owner) { owner = _owner; emit OwnershipTransferred(address(0), _owner); } /*////////////////////////////////////////////////////////////// OWNERSHIP LOGIC //////////////////////////////////////////////////////////////*/ function transferOwnership(address newOwner) public virtual onlyOwner { owner = newOwner; emit OwnershipTransferred(msg.sender, newOwner); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Minimalist and gas efficient standard ERC1155 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC1155.sol) abstract contract ERC1155 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event TransferSingle( address indexed operator, address indexed from, address indexed to, uint256 id, uint256 amount ); event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] amounts ); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); event URI(string value, uint256 indexed id); /*////////////////////////////////////////////////////////////// ERC1155 STORAGE //////////////////////////////////////////////////////////////*/ mapping(address => mapping(uint256 => uint256)) public balanceOf; mapping(address => mapping(address => bool)) public isApprovedForAll; /*////////////////////////////////////////////////////////////// METADATA LOGIC //////////////////////////////////////////////////////////////*/ function uri(uint256 id) public view virtual returns (string memory); /*////////////////////////////////////////////////////////////// ERC1155 LOGIC //////////////////////////////////////////////////////////////*/ function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) public virtual { require(msg.sender == from || isApprovedForAll[from][msg.sender], "NOT_AUTHORIZED"); balanceOf[from][id] -= amount; balanceOf[to][id] += amount; emit TransferSingle(msg.sender, from, to, id, amount); require( to.code.length == 0 ? to != address(0) : ERC1155TokenReceiver(to).onERC1155Received(msg.sender, from, id, amount, data) == ERC1155TokenReceiver.onERC1155Received.selector, "UNSAFE_RECIPIENT" ); } function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) public virtual { require(ids.length == amounts.length, "LENGTH_MISMATCH"); require(msg.sender == from || isApprovedForAll[from][msg.sender], "NOT_AUTHORIZED"); // Storing these outside the loop saves ~15 gas per iteration. uint256 id; uint256 amount; for (uint256 i = 0; i < ids.length; ) { id = ids[i]; amount = amounts[i]; balanceOf[from][id] -= amount; balanceOf[to][id] += amount; // An array can't have a total length // larger than the max uint256 value. unchecked { ++i; } } emit TransferBatch(msg.sender, from, to, ids, amounts); require( to.code.length == 0 ? to != address(0) : ERC1155TokenReceiver(to).onERC1155BatchReceived(msg.sender, from, ids, amounts, data) == ERC1155TokenReceiver.onERC1155BatchReceived.selector, "UNSAFE_RECIPIENT" ); } function balanceOfBatch(address[] calldata owners, uint256[] calldata ids) public view virtual returns (uint256[] memory balances) { require(owners.length == ids.length, "LENGTH_MISMATCH"); balances = new uint256[](owners.length); // Unchecked because the only math done is incrementing // the array index counter which cannot possibly overflow. unchecked { for (uint256 i = 0; i < owners.length; ++i) { balances[i] = balanceOf[owners[i]][ids[i]]; } } } /*////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0xd9b67a26 || // ERC165 Interface ID for ERC1155 interfaceId == 0x0e89341c; // ERC165 Interface ID for ERC1155MetadataURI } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { balanceOf[to][id] += amount; emit TransferSingle(msg.sender, address(0), to, id, amount); require( to.code.length == 0 ? to != address(0) : ERC1155TokenReceiver(to).onERC1155Received(msg.sender, address(0), id, amount, data) == ERC1155TokenReceiver.onERC1155Received.selector, "UNSAFE_RECIPIENT" ); } function _batchMint( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { uint256 idsLength = ids.length; // Saves MLOADs. require(idsLength == amounts.length, "LENGTH_MISMATCH"); for (uint256 i = 0; i < idsLength; ) { balanceOf[to][ids[i]] += amounts[i]; // An array can't have a total length // larger than the max uint256 value. unchecked { ++i; } } emit TransferBatch(msg.sender, address(0), to, ids, amounts); require( to.code.length == 0 ? to != address(0) : ERC1155TokenReceiver(to).onERC1155BatchReceived(msg.sender, address(0), ids, amounts, data) == ERC1155TokenReceiver.onERC1155BatchReceived.selector, "UNSAFE_RECIPIENT" ); } function _batchBurn( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { uint256 idsLength = ids.length; // Saves MLOADs. require(idsLength == amounts.length, "LENGTH_MISMATCH"); for (uint256 i = 0; i < idsLength; ) { balanceOf[from][ids[i]] -= amounts[i]; // An array can't have a total length // larger than the max uint256 value. unchecked { ++i; } } emit TransferBatch(msg.sender, from, address(0), ids, amounts); } function _burn( address from, uint256 id, uint256 amount ) internal virtual { balanceOf[from][id] -= amount; emit TransferSingle(msg.sender, from, address(0), id, amount); } } /// @notice A generic interface for a contract which properly accepts ERC1155 tokens. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC1155.sol) abstract contract ERC1155TokenReceiver { function onERC1155Received( address, address, uint256, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC1155TokenReceiver.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] calldata, uint256[] calldata, bytes calldata ) external virtual returns (bytes4) { return ERC1155TokenReceiver.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /*////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) public virtual returns (bool) { balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual returns (bool) { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ), owner, spender, value, nonces[owner]++, deadline ) ) ) ), v, r, s ); require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER"); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern, minimalist, and gas efficient ERC-721 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 indexed id); event Approval(address indexed owner, address indexed spender, uint256 indexed id); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /*////////////////////////////////////////////////////////////// METADATA STORAGE/LOGIC //////////////////////////////////////////////////////////////*/ string public name; string public symbol; function tokenURI(uint256 id) public view virtual returns (string memory); /*////////////////////////////////////////////////////////////// ERC721 BALANCE/OWNER STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) internal _ownerOf; mapping(address => uint256) internal _balanceOf; function ownerOf(uint256 id) public view virtual returns (address owner) { require((owner = _ownerOf[id]) != address(0), "NOT_MINTED"); } function balanceOf(address owner) public view virtual returns (uint256) { require(owner != address(0), "ZERO_ADDRESS"); return _balanceOf[owner]; } /*////////////////////////////////////////////////////////////// ERC721 APPROVAL STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) public getApproved; mapping(address => mapping(address => bool)) public isApprovedForAll; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } /*////////////////////////////////////////////////////////////// ERC721 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 id) public virtual { address owner = _ownerOf[id]; require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED"); getApproved[id] = spender; emit Approval(owner, spender, id); } function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function transferFrom( address from, address to, uint256 id ) public virtual { require(from == _ownerOf[id], "WRONG_FROM"); require(to != address(0), "INVALID_RECIPIENT"); require( msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id], "NOT_AUTHORIZED" ); // 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, uint256 id ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function safeTransferFrom( address from, address to, uint256 id, bytes calldata data ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } /*////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 id) internal virtual { require(to != address(0), "INVALID_RECIPIENT"); require(_ownerOf[id] == address(0), "ALREADY_MINTED"); // Counter overflow is incredibly unrealistic. unchecked { _balanceOf[to]++; } _ownerOf[id] = to; emit Transfer(address(0), to, id); } function _burn(uint256 id) internal virtual { address owner = _ownerOf[id]; require(owner != address(0), "NOT_MINTED"); // Ownership check above ensures no underflow. unchecked { _balanceOf[owner]--; } delete _ownerOf[id]; delete getApproved[id]; emit Transfer(owner, address(0), id); } /*////////////////////////////////////////////////////////////// INTERNAL SAFE MINT LOGIC //////////////////////////////////////////////////////////////*/ function _safeMint(address to, uint256 id) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function _safeMint( address to, uint256 id, bytes memory data ) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } } /// @notice A generic interface for a contract which properly accepts ERC721 tokens. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721TokenReceiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721TokenReceiver.onERC721Received.selector; } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; import {ERC20} from "../tokens/ERC20.sol"; /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol) /// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer. /// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller. library SafeTransferLib { /*////////////////////////////////////////////////////////////// ETH OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferETH(address to, uint256 amount) internal { bool success; /// @solidity memory-safe-assembly assembly { // Transfer the ETH and store if it succeeded or not. success := call(gas(), to, amount, 0, 0, 0, 0) } require(success, "ETH_TRANSFER_FAILED"); } /*////////////////////////////////////////////////////////////// ERC20 OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferFrom( ERC20 token, address from, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument. mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 100, 0, 32) ) } require(success, "TRANSFER_FROM_FAILED"); } function safeTransfer( ERC20 token, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "TRANSFER_FAILED"); } function safeApprove( ERC20 token, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "APPROVE_FAILED"); } }
pragma solidity ^0.8.13; abstract contract ICryptoPunks { function punkIndexToAddress(uint256 id) external view virtual returns (address); }
// SPDX-License-Identifier: CC0-1.0 pragma solidity ^0.8.17; /** * @title An immutable registry contract to be deployed as a standalone primitive * @dev See EIP-5639, new project launches can read previous cold wallet -> hot wallet delegations * from here and integrate those permissions into their flow */ interface IDelegationRegistry { /** * @notice Returns true if the address is delegated to act on your behalf for a specific token, the token's contract or an entire vault * @param delegate The hotwallet to act on your behalf * @param contract_ The address for the contract you're delegating * @param tokenId The token id for the token you're delegating * @param vault The cold wallet who issued the delegation */ function checkDelegateForToken(address delegate, address vault, address contract_, uint256 tokenId) external view returns (bool); }
{ "remappings": [ "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/operator-filter-registry/lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts-upgradeable/=lib/operator-filter-registry/lib/openzeppelin-contracts-upgradeable/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "openzeppelin/=lib/openzeppelin-contracts/contracts/", "operator-filter-registry/=lib/operator-filter-registry/src/", "solmate/=lib/solmate/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_renderingContractAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidVersion","type":"error"},{"inputs":[],"name":"MintNotOpen","type":"error"},{"inputs":[],"name":"MintNotOpenForVersion","type":"error"},{"inputs":[],"name":"NoCoinBalance","type":"error"},{"inputs":[],"name":"NoEthBalance","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"WrongEtherAmount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","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":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"uint256","name":"punkId","type":"uint256"},{"internalType":"address","name":"vaultV1","type":"address"},{"internalType":"address","name":"vaultV2","type":"address"},{"internalType":"uint256","name":"v","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderingContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractUri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"enabledMintType","type":"uint256"}],"name":"setEnabledMintType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_renderingContractAddress","type":"address"}],"name":"setRenderingContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vaultAddress","type":"address"}],"name":"setVaultAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"typeByPunkId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdraw1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdraw721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"withdrawCoins","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6618838370f3400060075560e06040526026608081815290620025f360a039600a906200002d908262000343565b503480156200003b57600080fd5b5060405162002619380380620026198339810160408190526200005e916200042c565b604080518082018252600a81526950756e6b436865636b7360b01b6020808301919091528251808401909352600383526250435360e81b908301528291733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b15620001f75780156200014557604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200012657600080fd5b505af11580156200013b573d6000803e3d6000fd5b50505050620001f7565b6001600160a01b03821615620001965760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200010b565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001dd57600080fd5b505af1158015620001f2573d6000803e3d6000fd5b505050505b506000905062000208838262000343565b50600162000217828262000343565b5050600680546001600160a01b0319166001600160a01b0384169081179091556040519091506000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050600880546001600160a01b039384166001600160a01b031991821617909155600980549290931691161790556005600c5562000476565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002c957607f821691505b602082108103620002ea57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200033e57600081815260208120601f850160051c81016020861015620003195750805b601f850160051c820191505b818110156200033a5782815560010162000325565b5050505b505050565b81516001600160401b038111156200035f576200035f6200029e565b6200037781620003708454620002b4565b84620002f0565b602080601f831160018114620003af5760008415620003965750858301515b600019600386901b1c1916600185901b1785556200033a565b600085815260208120601f198616915b82811015620003e057888601518255948401946001909101908401620003bf565b5085821015620003ff5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80516001600160a01b03811681146200042757600080fd5b919050565b6000806000606084860312156200044257600080fd5b6200044d846200040f565b92506200045d602085016200040f565b91506200046d604085016200040f565b90509250925092565b61216d80620004866000396000f3fe6080604052600436106101d85760003560e01c806385535cc511610102578063b88d4fde11610095578063e8a3d48511610064578063e8a3d48514610574578063e985e9c514610589578063f07a380e146105c4578063f2fde38b146105e457600080fd5b8063b88d4fde146104f4578063c074f41214610514578063c87b56dd14610534578063c9a3bc861461055457600080fd5b806395d89b41116100d157806395d89b4114610489578063a035b1fe1461049e578063a22cb465146104b4578063b34c5e1f146104d457600080fd5b806385535cc5146104095780638da5cb5b1461042957806391b7f5ed14610449578063938e3d7b1461046957600080fd5b806341f434341161017a5780635ffbdf10116101495780635ffbdf10146103945780636352211e146103b457806370a08231146103d45780637362377b146103f457600080fd5b806341f43434146102f757806342842e0e14610319578063430bf08a146103395780635bfd1cfe1461035957600080fd5b8063081812fc116101b6578063081812fc14610249578063095ea7b31461029757806312b40a9f146102b757806323b872dd146102d757600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063074ee44614610234575b600080fd5b3480156101e957600080fd5b506101fd6101f8366004611b1f565b610604565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b50610227610656565b6040516102099190611b60565b610247610242366004611ba8565b6106e4565b005b34801561025557600080fd5b5061027f610264366004611bf0565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610209565b3480156102a357600080fd5b506102476102b2366004611c09565b6108e4565b3480156102c357600080fd5b506102476102d2366004611c35565b6108fd565b3480156102e357600080fd5b506102476102f2366004611c52565b610952565b34801561030357600080fd5b5061027f6daaeb6d7670e522a718067333cd4e81565b34801561032557600080fd5b50610247610334366004611c52565b61097d565b34801561034557600080fd5b5060095461027f906001600160a01b031681565b34801561036557600080fd5b50610386610374366004611bf0565b600b6020526000908152604090205481565b604051908152602001610209565b3480156103a057600080fd5b506102476103af366004611c35565b6109a2565b3480156103c057600080fd5b5061027f6103cf366004611bf0565b610a76565b3480156103e057600080fd5b506103866103ef366004611c35565b610acd565b34801561040057600080fd5b50610247610b30565b34801561041557600080fd5b50610247610424366004611c35565b610b93565b34801561043557600080fd5b5060065461027f906001600160a01b031681565b34801561045557600080fd5b50610247610464366004611bf0565b610bdf565b34801561047557600080fd5b50610247610484366004611d02565b610c0e565b34801561049557600080fd5b50610227610c48565b3480156104aa57600080fd5b5061038660075481565b3480156104c057600080fd5b506102476104cf366004611d90565b610c55565b3480156104e057600080fd5b506102476104ef366004611c09565b610c69565b34801561050057600080fd5b5061024761050f366004611dc9565b610daf565b34801561052057600080fd5b5060085461027f906001600160a01b031681565b34801561054057600080fd5b5061022761054f366004611bf0565b610dde565b34801561056057600080fd5b5061024761056f366004611bf0565b610eed565b34801561058057600080fd5b50610227610f1c565b34801561059557600080fd5b506101fd6105a4366004611e68565b600560209081526000928352604080842090915290825290205460ff1681565b3480156105d057600080fd5b506102476105df366004611c09565b610fae565b3480156105f057600080fd5b506102476105ff366004611c35565b6110dd565b60006301ffc9a760e01b6001600160e01b03198316148061063557506380ac58cd60e01b6001600160e01b03198316145b806106505750635b5e139f60e01b6001600160e01b03198316145b92915050565b6000805461066390611e96565b80601f016020809104026020016040519081016040528092919081815260200182805461068f90611e96565b80156106dc5780601f106106b1576101008083540402835291602001916106dc565b820191906000526020600020905b8154815290600101906020018083116106bf57829003601f168201915b505050505081565b6005600c54036107075760405163951b974f60e01b815260040160405180910390fd5b6007543414610729576040516331fc877f60e01b815260040160405180910390fd5b60018110806107385750600481115b156107565760405163a9146eeb60e01b815260040160405180910390fd5b6001600c54148015610769575080600114155b8015610776575080600314155b156107945760405163151d556960e21b815260040160405180910390fd5b6002600c541480156107a7575080600214155b80156107b4575080600314155b156107d25760405163151d556960e21b815260040160405180910390fd5b6003600c541480156107e5575080600314155b156108035760405163151d556960e21b815260040160405180910390fd5b6004600c541480156108155750806004145b156108335760405163151d556960e21b815260040160405180910390fd5b80600114806108425750806003145b1561087b5761087b8484736ba6f2207e343923ba692e5cae646fb0f566db8d73282bdd42f4eb70e7a9d9f40c8fea0825b7f68c5d611153565b806002148061088a5750806003145b156108c3576108c3848373b47e3cd837ddf8e4c57f05d70ab865de6e193bbb73b7f7f6c52f2e2fdb1963eab30438024864c313f6611153565b6108cd338561137e565b6000938452600b6020526040909320929092555050565b816108ee81611489565b6108f88383611545565b505050565b6006546001600160a01b031633146109305760405162461bcd60e51b815260040161092790611ed0565b60405180910390fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b038116331461096c5761096c33611489565b610977848484611627565b50505050565b826001600160a01b03811633146109975761099733611489565b6109778484846117ee565b6006546001600160a01b031633146109cc5760405162461bcd60e51b815260040161092790611ed0565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610a15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a399190611ef6565b905080600003610a5c5760405163235d56a560e11b815260040160405180910390fd5b6009546108f890839030906001600160a01b0316846118e1565b6000818152600260205260409020546001600160a01b031680610ac85760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610927565b919050565b60006001600160a01b038216610b145760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610927565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610b5a5760405162461bcd60e51b815260040161092790611ed0565b47600003610b7b5760405163150111e760e31b815260040160405180910390fd5b600954610b91906001600160a01b03164761196b565b565b6006546001600160a01b03163314610bbd5760405162461bcd60e51b815260040161092790611ed0565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b03163314610c095760405162461bcd60e51b815260040161092790611ed0565b600755565b6006546001600160a01b03163314610c385760405162461bcd60e51b815260040161092790611ed0565b600a610c448282611f55565b5050565b6001805461066390611e96565b81610c5f81611489565b6108f883836119bc565b6006546001600160a01b03163314610c935760405162461bcd60e51b815260040161092790611ed0565b604051627eeac760e11b81523060048201526024810182905282906000906001600160a01b0383169062fdd58e90604401602060405180830381865afa158015610ce1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d059190611ef6565b905080600003610d285760405163235d56a560e11b815260040160405180910390fd5b600954604051637921219560e11b81523060048201526001600160a01b039182166024820152604481018590526064810183905260a06084820152600060a48201529083169063f242432a9060c401600060405180830381600087803b158015610d9157600080fd5b505af1158015610da5573d6000803e3d6000fd5b5050505050505050565b846001600160a01b0381163314610dc957610dc933611489565b610dd68686868686611a28565b505050505050565b6000818152600260205260409020546060906001600160a01b0316610e325760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610927565b6008546001600160a01b0316610e5657505060408051602081019091526000815290565b6008546000838152600b6020526040908190205490516392cb829d60e01b81526001600160a01b039092169182916392cb829d91610ea1918791600401918252602082015260400190565b600060405180830381865afa158015610ebe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ee69190810190612015565b9392505050565b6006546001600160a01b03163314610f175760405162461bcd60e51b815260040161092790611ed0565b600c55565b6060600a8054610f2b90611e96565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5790611e96565b8015610fa45780601f10610f7957610100808354040283529160200191610fa4565b820191906000526020600020905b815481529060010190602001808311610f8757829003601f168201915b5050505050905090565b6006546001600160a01b03163314610fd85760405162461bcd60e51b815260040161092790611ed0565b6040516331a9108f60e11b815260048101829052829030906001600160a01b03831690636352211e90602401602060405180830381865afa158015611021573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611045919061208c565b6001600160a01b03161461106c5760405163235d56a560e11b815260040160405180910390fd5b600954604051632142170760e11b81523060048201526001600160a01b03918216602482015260448101849052908216906342842e0e90606401600060405180830381600087803b1580156110c057600080fd5b505af11580156110d4573d6000803e3d6000fd5b50505050505050565b6006546001600160a01b031633146111075760405162461bcd60e51b815260040161092790611ed0565b600680546001600160a01b0319166001600160a01b03831690811790915560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350565b604051630b02f02d60e31b81526004810185905233906000906001600160a01b03851690635817816890602401602060405180830381865afa15801561119d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c1919061208c565b9050836001600160a01b0380851690831603611246576040516331a9108f60e11b8152600481018890526001600160a01b03851690636352211e90602401602060405180830381865afa15801561121c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611240919061208c565b91508390505b6001600160a01b0386161561132c57604051631574d39f60e31b81523360048201526001600160a01b03808816602483015282166044820152606481018890526000906d76a84fef008cdabe6409d2fe638b9063aba69cf890608401602060405180830381865afa1580156112bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e391906120a9565b9050806113275760405162461bcd60e51b8152602060048201526012602482015271141d5b9ac81b9bdd0819195b1959d85d195960721b6044820152606401610927565b869350505b826001600160a01b0316826001600160a01b0316146110d45760405162461bcd60e51b815260206004820152600e60248201526d141d5b9ac81b9bdd081bdddb995960921b6044820152606401610927565b6001600160a01b0382166113c85760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610927565b6000818152600260205260409020546001600160a01b03161561141e5760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610927565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6daaeb6d7670e522a718067333cd4e3b1561154257604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156114f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151a91906120a9565b61154257604051633b79c77360e21b81526001600160a01b0382166004820152602401610927565b50565b6000818152600260205260409020546001600160a01b03163381148061158e57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6115cb5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610927565b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b0384811691161461167d5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610927565b6001600160a01b0382166116c75760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610927565b336001600160a01b038416148061170157506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b8061172257506000818152600460205260409020546001600160a01b031633145b61175f5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610927565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6117f9838383610952565b6001600160a01b0382163b15806118a25750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015611872573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189691906120c6565b6001600160e01b031916145b6108f85760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610927565b60006040516323b872dd60e01b81528460048201528360248201528260448201526020600060648360008a5af13d15601f3d11600160005114161716915050806119645760405162461bcd60e51b81526020600482015260146024820152731514905394d1915497d19493d357d1905253115160621b6044820152606401610927565b5050505050565b600080600080600085875af19050806108f85760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b6044820152606401610927565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611a33858585610952565b6001600160a01b0384163b1580611aca5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290611a7b9033908a908990899089906004016120e3565b6020604051808303816000875af1158015611a9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611abe91906120c6565b6001600160e01b031916145b6119645760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610927565b6001600160e01b03198116811461154257600080fd5b600060208284031215611b3157600080fd5b8135610ee681611b09565b60005b83811015611b57578181015183820152602001611b3f565b50506000910152565b6020815260008251806020840152611b7f816040850160208701611b3c565b601f01601f19169190910160400192915050565b6001600160a01b038116811461154257600080fd5b60008060008060808587031215611bbe57600080fd5b843593506020850135611bd081611b93565b92506040850135611be081611b93565b9396929550929360600135925050565b600060208284031215611c0257600080fd5b5035919050565b60008060408385031215611c1c57600080fd5b8235611c2781611b93565b946020939093013593505050565b600060208284031215611c4757600080fd5b8135610ee681611b93565b600080600060608486031215611c6757600080fd5b8335611c7281611b93565b92506020840135611c8281611b93565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611cd257611cd2611c93565b604052919050565b600067ffffffffffffffff821115611cf457611cf4611c93565b50601f01601f191660200190565b600060208284031215611d1457600080fd5b813567ffffffffffffffff811115611d2b57600080fd5b8201601f81018413611d3c57600080fd5b8035611d4f611d4a82611cda565b611ca9565b818152856020838501011115611d6457600080fd5b81602084016020830137600091810160200191909152949350505050565b801515811461154257600080fd5b60008060408385031215611da357600080fd5b8235611dae81611b93565b91506020830135611dbe81611d82565b809150509250929050565b600080600080600060808688031215611de157600080fd5b8535611dec81611b93565b94506020860135611dfc81611b93565b935060408601359250606086013567ffffffffffffffff80821115611e2057600080fd5b818801915088601f830112611e3457600080fd5b813581811115611e4357600080fd5b896020828501011115611e5557600080fd5b9699959850939650602001949392505050565b60008060408385031215611e7b57600080fd5b8235611e8681611b93565b91506020830135611dbe81611b93565b600181811c90821680611eaa57607f821691505b602082108103611eca57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b600060208284031215611f0857600080fd5b5051919050565b601f8211156108f857600081815260208120601f850160051c81016020861015611f365750805b601f850160051c820191505b81811015610dd657828155600101611f42565b815167ffffffffffffffff811115611f6f57611f6f611c93565b611f8381611f7d8454611e96565b84611f0f565b602080601f831160018114611fb85760008415611fa05750858301515b600019600386901b1c1916600185901b178555610dd6565b600085815260208120601f198616915b82811015611fe757888601518255948401946001909101908401611fc8565b50858210156120055787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561202757600080fd5b815167ffffffffffffffff81111561203e57600080fd5b8201601f8101841361204f57600080fd5b805161205d611d4a82611cda565b81815285602083850101111561207257600080fd5b612083826020830160208601611b3c565b95945050505050565b60006020828403121561209e57600080fd5b8151610ee681611b93565b6000602082840312156120bb57600080fd5b8151610ee681611d82565b6000602082840312156120d857600080fd5b8151610ee681611b09565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f8501168301019050969550505050505056fea26469706673582212207b74a16b73320a4196861cfc090549fecaa8029ad24ff08f24017c95c714d93b64736f6c6343000811003368747470733a2f2f70756e6b636865636b732e78797a2f6170692f636f6e7472616374555249000000000000000000000000e32319e9ed1303c5941eed1fa0064f1139f8aa000000000000000000000000005fedbae0982ce300e4fdb31d03450be2cdd040070000000000000000000000005fedbae0982ce300e4fdb31d03450be2cdd04007
Deployed Bytecode
0x6080604052600436106101d85760003560e01c806385535cc511610102578063b88d4fde11610095578063e8a3d48511610064578063e8a3d48514610574578063e985e9c514610589578063f07a380e146105c4578063f2fde38b146105e457600080fd5b8063b88d4fde146104f4578063c074f41214610514578063c87b56dd14610534578063c9a3bc861461055457600080fd5b806395d89b41116100d157806395d89b4114610489578063a035b1fe1461049e578063a22cb465146104b4578063b34c5e1f146104d457600080fd5b806385535cc5146104095780638da5cb5b1461042957806391b7f5ed14610449578063938e3d7b1461046957600080fd5b806341f434341161017a5780635ffbdf10116101495780635ffbdf10146103945780636352211e146103b457806370a08231146103d45780637362377b146103f457600080fd5b806341f43434146102f757806342842e0e14610319578063430bf08a146103395780635bfd1cfe1461035957600080fd5b8063081812fc116101b6578063081812fc14610249578063095ea7b31461029757806312b40a9f146102b757806323b872dd146102d757600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063074ee44614610234575b600080fd5b3480156101e957600080fd5b506101fd6101f8366004611b1f565b610604565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b50610227610656565b6040516102099190611b60565b610247610242366004611ba8565b6106e4565b005b34801561025557600080fd5b5061027f610264366004611bf0565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610209565b3480156102a357600080fd5b506102476102b2366004611c09565b6108e4565b3480156102c357600080fd5b506102476102d2366004611c35565b6108fd565b3480156102e357600080fd5b506102476102f2366004611c52565b610952565b34801561030357600080fd5b5061027f6daaeb6d7670e522a718067333cd4e81565b34801561032557600080fd5b50610247610334366004611c52565b61097d565b34801561034557600080fd5b5060095461027f906001600160a01b031681565b34801561036557600080fd5b50610386610374366004611bf0565b600b6020526000908152604090205481565b604051908152602001610209565b3480156103a057600080fd5b506102476103af366004611c35565b6109a2565b3480156103c057600080fd5b5061027f6103cf366004611bf0565b610a76565b3480156103e057600080fd5b506103866103ef366004611c35565b610acd565b34801561040057600080fd5b50610247610b30565b34801561041557600080fd5b50610247610424366004611c35565b610b93565b34801561043557600080fd5b5060065461027f906001600160a01b031681565b34801561045557600080fd5b50610247610464366004611bf0565b610bdf565b34801561047557600080fd5b50610247610484366004611d02565b610c0e565b34801561049557600080fd5b50610227610c48565b3480156104aa57600080fd5b5061038660075481565b3480156104c057600080fd5b506102476104cf366004611d90565b610c55565b3480156104e057600080fd5b506102476104ef366004611c09565b610c69565b34801561050057600080fd5b5061024761050f366004611dc9565b610daf565b34801561052057600080fd5b5060085461027f906001600160a01b031681565b34801561054057600080fd5b5061022761054f366004611bf0565b610dde565b34801561056057600080fd5b5061024761056f366004611bf0565b610eed565b34801561058057600080fd5b50610227610f1c565b34801561059557600080fd5b506101fd6105a4366004611e68565b600560209081526000928352604080842090915290825290205460ff1681565b3480156105d057600080fd5b506102476105df366004611c09565b610fae565b3480156105f057600080fd5b506102476105ff366004611c35565b6110dd565b60006301ffc9a760e01b6001600160e01b03198316148061063557506380ac58cd60e01b6001600160e01b03198316145b806106505750635b5e139f60e01b6001600160e01b03198316145b92915050565b6000805461066390611e96565b80601f016020809104026020016040519081016040528092919081815260200182805461068f90611e96565b80156106dc5780601f106106b1576101008083540402835291602001916106dc565b820191906000526020600020905b8154815290600101906020018083116106bf57829003601f168201915b505050505081565b6005600c54036107075760405163951b974f60e01b815260040160405180910390fd5b6007543414610729576040516331fc877f60e01b815260040160405180910390fd5b60018110806107385750600481115b156107565760405163a9146eeb60e01b815260040160405180910390fd5b6001600c54148015610769575080600114155b8015610776575080600314155b156107945760405163151d556960e21b815260040160405180910390fd5b6002600c541480156107a7575080600214155b80156107b4575080600314155b156107d25760405163151d556960e21b815260040160405180910390fd5b6003600c541480156107e5575080600314155b156108035760405163151d556960e21b815260040160405180910390fd5b6004600c541480156108155750806004145b156108335760405163151d556960e21b815260040160405180910390fd5b80600114806108425750806003145b1561087b5761087b8484736ba6f2207e343923ba692e5cae646fb0f566db8d73282bdd42f4eb70e7a9d9f40c8fea0825b7f68c5d611153565b806002148061088a5750806003145b156108c3576108c3848373b47e3cd837ddf8e4c57f05d70ab865de6e193bbb73b7f7f6c52f2e2fdb1963eab30438024864c313f6611153565b6108cd338561137e565b6000938452600b6020526040909320929092555050565b816108ee81611489565b6108f88383611545565b505050565b6006546001600160a01b031633146109305760405162461bcd60e51b815260040161092790611ed0565b60405180910390fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b038116331461096c5761096c33611489565b610977848484611627565b50505050565b826001600160a01b03811633146109975761099733611489565b6109778484846117ee565b6006546001600160a01b031633146109cc5760405162461bcd60e51b815260040161092790611ed0565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610a15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a399190611ef6565b905080600003610a5c5760405163235d56a560e11b815260040160405180910390fd5b6009546108f890839030906001600160a01b0316846118e1565b6000818152600260205260409020546001600160a01b031680610ac85760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610927565b919050565b60006001600160a01b038216610b145760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610927565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610b5a5760405162461bcd60e51b815260040161092790611ed0565b47600003610b7b5760405163150111e760e31b815260040160405180910390fd5b600954610b91906001600160a01b03164761196b565b565b6006546001600160a01b03163314610bbd5760405162461bcd60e51b815260040161092790611ed0565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b03163314610c095760405162461bcd60e51b815260040161092790611ed0565b600755565b6006546001600160a01b03163314610c385760405162461bcd60e51b815260040161092790611ed0565b600a610c448282611f55565b5050565b6001805461066390611e96565b81610c5f81611489565b6108f883836119bc565b6006546001600160a01b03163314610c935760405162461bcd60e51b815260040161092790611ed0565b604051627eeac760e11b81523060048201526024810182905282906000906001600160a01b0383169062fdd58e90604401602060405180830381865afa158015610ce1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d059190611ef6565b905080600003610d285760405163235d56a560e11b815260040160405180910390fd5b600954604051637921219560e11b81523060048201526001600160a01b039182166024820152604481018590526064810183905260a06084820152600060a48201529083169063f242432a9060c401600060405180830381600087803b158015610d9157600080fd5b505af1158015610da5573d6000803e3d6000fd5b5050505050505050565b846001600160a01b0381163314610dc957610dc933611489565b610dd68686868686611a28565b505050505050565b6000818152600260205260409020546060906001600160a01b0316610e325760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610927565b6008546001600160a01b0316610e5657505060408051602081019091526000815290565b6008546000838152600b6020526040908190205490516392cb829d60e01b81526001600160a01b039092169182916392cb829d91610ea1918791600401918252602082015260400190565b600060405180830381865afa158015610ebe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ee69190810190612015565b9392505050565b6006546001600160a01b03163314610f175760405162461bcd60e51b815260040161092790611ed0565b600c55565b6060600a8054610f2b90611e96565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5790611e96565b8015610fa45780601f10610f7957610100808354040283529160200191610fa4565b820191906000526020600020905b815481529060010190602001808311610f8757829003601f168201915b5050505050905090565b6006546001600160a01b03163314610fd85760405162461bcd60e51b815260040161092790611ed0565b6040516331a9108f60e11b815260048101829052829030906001600160a01b03831690636352211e90602401602060405180830381865afa158015611021573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611045919061208c565b6001600160a01b03161461106c5760405163235d56a560e11b815260040160405180910390fd5b600954604051632142170760e11b81523060048201526001600160a01b03918216602482015260448101849052908216906342842e0e90606401600060405180830381600087803b1580156110c057600080fd5b505af11580156110d4573d6000803e3d6000fd5b50505050505050565b6006546001600160a01b031633146111075760405162461bcd60e51b815260040161092790611ed0565b600680546001600160a01b0319166001600160a01b03831690811790915560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350565b604051630b02f02d60e31b81526004810185905233906000906001600160a01b03851690635817816890602401602060405180830381865afa15801561119d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c1919061208c565b9050836001600160a01b0380851690831603611246576040516331a9108f60e11b8152600481018890526001600160a01b03851690636352211e90602401602060405180830381865afa15801561121c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611240919061208c565b91508390505b6001600160a01b0386161561132c57604051631574d39f60e31b81523360048201526001600160a01b03808816602483015282166044820152606481018890526000906d76a84fef008cdabe6409d2fe638b9063aba69cf890608401602060405180830381865afa1580156112bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e391906120a9565b9050806113275760405162461bcd60e51b8152602060048201526012602482015271141d5b9ac81b9bdd0819195b1959d85d195960721b6044820152606401610927565b869350505b826001600160a01b0316826001600160a01b0316146110d45760405162461bcd60e51b815260206004820152600e60248201526d141d5b9ac81b9bdd081bdddb995960921b6044820152606401610927565b6001600160a01b0382166113c85760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610927565b6000818152600260205260409020546001600160a01b03161561141e5760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610927565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6daaeb6d7670e522a718067333cd4e3b1561154257604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156114f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151a91906120a9565b61154257604051633b79c77360e21b81526001600160a01b0382166004820152602401610927565b50565b6000818152600260205260409020546001600160a01b03163381148061158e57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6115cb5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610927565b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b0384811691161461167d5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610927565b6001600160a01b0382166116c75760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610927565b336001600160a01b038416148061170157506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b8061172257506000818152600460205260409020546001600160a01b031633145b61175f5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610927565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6117f9838383610952565b6001600160a01b0382163b15806118a25750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015611872573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189691906120c6565b6001600160e01b031916145b6108f85760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610927565b60006040516323b872dd60e01b81528460048201528360248201528260448201526020600060648360008a5af13d15601f3d11600160005114161716915050806119645760405162461bcd60e51b81526020600482015260146024820152731514905394d1915497d19493d357d1905253115160621b6044820152606401610927565b5050505050565b600080600080600085875af19050806108f85760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b6044820152606401610927565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611a33858585610952565b6001600160a01b0384163b1580611aca5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290611a7b9033908a908990899089906004016120e3565b6020604051808303816000875af1158015611a9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611abe91906120c6565b6001600160e01b031916145b6119645760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610927565b6001600160e01b03198116811461154257600080fd5b600060208284031215611b3157600080fd5b8135610ee681611b09565b60005b83811015611b57578181015183820152602001611b3f565b50506000910152565b6020815260008251806020840152611b7f816040850160208701611b3c565b601f01601f19169190910160400192915050565b6001600160a01b038116811461154257600080fd5b60008060008060808587031215611bbe57600080fd5b843593506020850135611bd081611b93565b92506040850135611be081611b93565b9396929550929360600135925050565b600060208284031215611c0257600080fd5b5035919050565b60008060408385031215611c1c57600080fd5b8235611c2781611b93565b946020939093013593505050565b600060208284031215611c4757600080fd5b8135610ee681611b93565b600080600060608486031215611c6757600080fd5b8335611c7281611b93565b92506020840135611c8281611b93565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611cd257611cd2611c93565b604052919050565b600067ffffffffffffffff821115611cf457611cf4611c93565b50601f01601f191660200190565b600060208284031215611d1457600080fd5b813567ffffffffffffffff811115611d2b57600080fd5b8201601f81018413611d3c57600080fd5b8035611d4f611d4a82611cda565b611ca9565b818152856020838501011115611d6457600080fd5b81602084016020830137600091810160200191909152949350505050565b801515811461154257600080fd5b60008060408385031215611da357600080fd5b8235611dae81611b93565b91506020830135611dbe81611d82565b809150509250929050565b600080600080600060808688031215611de157600080fd5b8535611dec81611b93565b94506020860135611dfc81611b93565b935060408601359250606086013567ffffffffffffffff80821115611e2057600080fd5b818801915088601f830112611e3457600080fd5b813581811115611e4357600080fd5b896020828501011115611e5557600080fd5b9699959850939650602001949392505050565b60008060408385031215611e7b57600080fd5b8235611e8681611b93565b91506020830135611dbe81611b93565b600181811c90821680611eaa57607f821691505b602082108103611eca57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b600060208284031215611f0857600080fd5b5051919050565b601f8211156108f857600081815260208120601f850160051c81016020861015611f365750805b601f850160051c820191505b81811015610dd657828155600101611f42565b815167ffffffffffffffff811115611f6f57611f6f611c93565b611f8381611f7d8454611e96565b84611f0f565b602080601f831160018114611fb85760008415611fa05750858301515b600019600386901b1c1916600185901b178555610dd6565b600085815260208120601f198616915b82811015611fe757888601518255948401946001909101908401611fc8565b50858210156120055787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561202757600080fd5b815167ffffffffffffffff81111561203e57600080fd5b8201601f8101841361204f57600080fd5b805161205d611d4a82611cda565b81815285602083850101111561207257600080fd5b612083826020830160208601611b3c565b95945050505050565b60006020828403121561209e57600080fd5b8151610ee681611b93565b6000602082840312156120bb57600080fd5b8151610ee681611d82565b6000602082840312156120d857600080fd5b8151610ee681611b09565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f8501168301019050969550505050505056fea26469706673582212207b74a16b73320a4196861cfc090549fecaa8029ad24ff08f24017c95c714d93b64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e32319e9ed1303c5941eed1fa0064f1139f8aa000000000000000000000000005fedbae0982ce300e4fdb31d03450be2cdd040070000000000000000000000005fedbae0982ce300e4fdb31d03450be2cdd04007
-----Decoded View---------------
Arg [0] : _renderingContractAddress (address): 0xe32319e9Ed1303c5941eeD1Fa0064F1139f8aA00
Arg [1] : _vaultAddress (address): 0x5FEdBaE0982ce300e4fdb31D03450be2CDD04007
Arg [2] : _owner (address): 0x5FEdBaE0982ce300e4fdb31D03450be2CDD04007
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000e32319e9ed1303c5941eed1fa0064f1139f8aa00
Arg [1] : 0000000000000000000000005fedbae0982ce300e4fdb31d03450be2cdd04007
Arg [2] : 0000000000000000000000005fedbae0982ce300e4fdb31d03450be2cdd04007
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.