Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 909 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Claim To Clo... | 16186974 | 763 days ago | IN | 0 ETH | 0.00030614 | ||||
Private Claim | 16186941 | 763 days ago | IN | 0 ETH | 0.0016191 | ||||
Private Claim | 16185853 | 763 days ago | IN | 0 ETH | 0.00169686 | ||||
Private Claim | 16183737 | 763 days ago | IN | 0 ETH | 0.00185093 | ||||
Private Claim | 16183736 | 763 days ago | IN | 0 ETH | 0.00187744 | ||||
Private Claim | 16182322 | 763 days ago | IN | 0 ETH | 0.00162044 | ||||
Private Claim | 16181780 | 764 days ago | IN | 0 ETH | 0.00174043 | ||||
Private Claim | 16180953 | 764 days ago | IN | 0 ETH | 0.00175465 | ||||
Private Claim | 16180931 | 764 days ago | IN | 0 ETH | 0.00159141 | ||||
Private Claim | 16180726 | 764 days ago | IN | 0 ETH | 0.0019497 | ||||
Private Claim | 16180464 | 764 days ago | IN | 0 ETH | 0.00162024 | ||||
Private Claim | 16173029 | 765 days ago | IN | 0 ETH | 0.00173238 | ||||
Private Claim | 16171515 | 765 days ago | IN | 0 ETH | 0.00189147 | ||||
Private Claim | 16166500 | 766 days ago | IN | 0 ETH | 0.00174274 | ||||
Private Claim | 16166451 | 766 days ago | IN | 0 ETH | 0.00171155 | ||||
Private Claim | 16164131 | 766 days ago | IN | 0 ETH | 0.00148541 | ||||
Private Claim | 16163083 | 766 days ago | IN | 0 ETH | 0.00176735 | ||||
Private Claim | 16163036 | 766 days ago | IN | 0 ETH | 0.00196921 | ||||
Private Claim | 16161789 | 766 days ago | IN | 0 ETH | 0.00182212 | ||||
Private Claim | 16161783 | 766 days ago | IN | 0 ETH | 0.00183656 | ||||
Private Claim | 16160443 | 767 days ago | IN | 0 ETH | 0.00179487 | ||||
Private Claim | 16158271 | 767 days ago | IN | 0 ETH | 0.0018045 | ||||
Private Claim | 16153925 | 767 days ago | IN | 0 ETH | 0.00177958 | ||||
Private Claim | 16153106 | 768 days ago | IN | 0 ETH | 0.00171133 | ||||
Private Claim | 16151990 | 768 days ago | IN | 0 ETH | 0.00177155 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ASMSceneClaim
Compiler Version
v0.8.14+commit.80d49f37
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.14; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; /// @title ASM Scene & Sounds claim contract /// @author NonFungibleLabs /// @notice Contract allows whitelisted wallets to claim an ASM scenes & sounds NFT /// @dev privateClaim is the primary claim function, which can be called by whitelisted wallets contract ASMSceneClaim is Ownable, ERC1155Holder, ReentrancyGuard { using ECDSA for bytes32; address public contractAddress; // scenes & sounds contract address public signer; uint256 public tokenId; uint256 public saleNonce = 0; mapping(uint256 => mapping(address => bool)) public claimed; mapping(bytes => bool) public usedToken; enum State { Closed, PrivateClaim } State public state; constructor( address _signer, uint256 _tokenId, address _contractAddress ) { signer = _signer; tokenId = _tokenId; contractAddress = _contractAddress; } /// @notice Sale nonce allows contract to be re-used for future claims of other ERC1155 tokens function setSaleNonce(uint256 _saleNonce) external onlyOwner { saleNonce = _saleNonce; } /// @dev Contract address is the ERC1155 contract address from which the token claims/transfers occur function setContractAddress(address _contractAddress) public onlyOwner { contractAddress = _contractAddress; } /// @dev Admin control of contract claim state function setClaimToClosed() public onlyOwner { state = State.Closed; } /// @dev Admin control of contract claim state function setClaimToPrivate() public onlyOwner { state = State.PrivateClaim; } /// @dev Admin control of signer address which verifies whitelist function setSigner(address _signer) public onlyOwner { signer = _signer; } function setTokenId(uint256 _tokenId) public onlyOwner { tokenId = _tokenId; } /* @dev: Hash function for ECDSA * @param: salt and the address to hash it for * @returns: keccak256 hash based on salt, contractaddress and the msg.sender */ function _hash(string calldata salt, address _address) public view returns (bytes32) { return keccak256(abi.encode(salt, address(this), _address)); } /* @dev: Verify whether this hash was signed by the right signer * @param: Keccak256 hash, and the given token * @returns: Returns whether the signer was correct, boolean */ function _verify(bytes32 hash, bytes memory token) public view returns (bool) { return (_recover(hash, token) == signer); } /* @dev: Recovers the hash for the token * @param: hash and token * @returns: A recovered hash */ function _recover(bytes32 hash, bytes memory token) public pure returns (address) { return hash.toEthSignedMessageHash().recover(token); } function privateClaim(string calldata salt, bytes calldata token) external nonReentrant { require(state == State.PrivateClaim, "claim is not active"); require(!claimed[saleNonce][msg.sender], "user has already claimed"); require(msg.sender == tx.origin, "contracts cant mint"); require(!usedToken[token], "already used"); require(_verify(_hash(salt, msg.sender), token), "invalid token"); usedToken[token] = true; claimed[saleNonce][msg.sender] = true; IERC1155(contractAddress).safeTransferFrom( address(this), msg.sender, tokenId, 1, "0x0" ); } /// @dev Emergency withdrawal of ERC1155 tokens from the contract, only callable by admin /// @param _to The address to transfer the token(s) to /// @param _ids The array of token IDs to transfer /// @param _amounts The array of amounts to transfer for the respective token IDs /// @param _contractAddress The address of the ERC1155 contract to transfer from function emergencyWithdrawTokens( address _to, uint256[] memory _ids, uint256[] memory _amounts, address _contractAddress ) public onlyOwner { IERC1155(_contractAddress).safeBatchTransferFrom( address(this), _to, _ids, _amounts, "0x0" ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol) pragma solidity ^0.8.0; import "./ERC1155Receiver.sol"; /** * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens. * * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be * stuck. * * @dev _Available since v3.1._ */ contract ERC1155Holder is ERC1155Receiver { function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol) pragma solidity ^0.8.0; import "../IERC1155Receiver.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
{ "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":"address","name":"_signer","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_contractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"string","name":"salt","type":"string"},{"internalType":"address","name":"_address","type":"address"}],"name":"_hash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"token","type":"bytes"}],"name":"_recover","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"token","type":"bytes"}],"name":"_verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"emergencyWithdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"salt","type":"string"},{"internalType":"bytes","name":"token","type":"bytes"}],"name":"privateClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"setClaimToClosed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setClaimToPrivate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"setContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleNonce","type":"uint256"}],"name":"setSaleNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"setTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"state","outputs":[{"internalType":"enum ASMSceneClaim.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"usedToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405260006005553480156200001657600080fd5b5060405162001675380380620016758339810160408190526200003991620000ed565b620000443362000080565b60018055600380546001600160a01b039485166001600160a01b031991821617909155600492909255600280549190931691161790556200012e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620000e857600080fd5b919050565b6000806000606084860312156200010357600080fd5b6200010e84620000d0565b9250602084015191506200012560408501620000d0565b90509250925092565b611537806200013e6000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063a9c5f188116100c3578063cfa8ba4f1161007c578063cfa8ba4f1461031b578063d93f41001461032e578063ec8ba2d914610341578063f23a6e6114610354578063f2fde38b14610373578063f6b4dfb41461038657600080fd5b8063a9c5f1881461026c578063aacd6f9414610275578063bc197c8114610288578063c19d93fb146102c0578063c929ccf3146102da578063cd9f9b92146102ed57600080fd5b8063477bddaa11610115578063477bddaa1461021d5780636c19e78314610230578063715018a6146102435780638c1f3d641461024b5780638da5cb5b146102535780638fabb9b91461026457600080fd5b806301ffc9a71461015d578063120aa8771461018557806317d70f7c146101b357806320f10950146101ca578063238ac933146101df578063265d3e971461020a575b600080fd5b61017061016b366004610e7e565b610399565b60405190151581526020015b60405180910390f35b610170610193366004610ec4565b600660209081526000928352604080842090915290825290205460ff1681565b6101bc60045481565b60405190815260200161017c565b6101dd6101d8366004610ef0565b6103d0565b005b6003546101f2906001600160a01b031681565b6040516001600160a01b03909116815260200161017c565b6101f2610218366004610fc0565b610408565b6101dd61022b366004611007565b610472565b6101dd61023e366004611007565b6104be565b6101dd61050a565b6101dd610540565b6000546001600160a01b03166101f2565b6101dd610581565b6101bc60055481565b6101dd6102833660046110a2565b6105be565b6102a7610296366004611127565b63bc197c8160e01b95945050505050565b6040516001600160e01b0319909116815260200161017c565b6008546102cd9060ff1681565b60405161017c91906111e7565b6101dd6102e8366004610ef0565b610652565b6101706102fb36600461120f565b805160208183018101805160078252928201919093012091525460ff1681565b610170610329366004610fc0565b610681565b6101dd61033c36600461128e565b6106ab565b6101bc61034f3660046112fa565b6109ed565b6102a761036236600461134e565b63f23a6e6160e01b95945050505050565b6101dd610381366004611007565b610a25565b6002546101f2906001600160a01b031681565b60006001600160e01b03198216630271189760e51b14806103ca57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b031633146104035760405162461bcd60e51b81526004016103fa906113b3565b60405180910390fd5b600555565b600061046b82610465856040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90610ac0565b9392505050565b6000546001600160a01b0316331461049c5760405162461bcd60e51b81526004016103fa906113b3565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104e85760405162461bcd60e51b81526004016103fa906113b3565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146105345760405162461bcd60e51b81526004016103fa906113b3565b61053e6000610ae4565b565b6000546001600160a01b0316331461056a5760405162461bcd60e51b81526004016103fa906113b3565b600880546000919060ff19166001835b0217905550565b6000546001600160a01b031633146105ab5760405162461bcd60e51b81526004016103fa906113b3565b600880546001919060ff1916828061057a565b6000546001600160a01b031633146105e85760405162461bcd60e51b81526004016103fa906113b3565b604051631759616b60e11b81526001600160a01b03821690632eb2c2d69061061a903090889088908890600401611423565b600060405180830381600087803b15801561063457600080fd5b505af1158015610648573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b0316331461067c5760405162461bcd60e51b81526004016103fa906113b3565b600455565b6003546000906001600160a01b031661069a8484610408565b6001600160a01b0316149392505050565b6002600154036106fd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103fa565b6002600190815560085460ff16600181111561071b5761071b6111d1565b1461075e5760405162461bcd60e51b8152602060048201526013602482015272636c61696d206973206e6f742061637469766560681b60448201526064016103fa565b600554600090815260066020908152604080832033845290915290205460ff16156107cb5760405162461bcd60e51b815260206004820152601860248201527f757365722068617320616c726561647920636c61696d6564000000000000000060448201526064016103fa565b3332146108105760405162461bcd60e51b815260206004820152601360248201527218dbdb9d1c9858dd1cc818d85b9d081b5a5b9d606a1b60448201526064016103fa565b60078282604051610822929190611484565b9081526040519081900360200190205460ff16156108715760405162461bcd60e51b815260206004820152600c60248201526b185b1c9958591e481d5cd95960a21b60448201526064016103fa565b6108bb61087f8585336109ed565b83838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061068192505050565b6108f75760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b60448201526064016103fa565b60016007838360405161090b929190611484565b9081526040805160209281900383018120805460ff19908116951515959095179055600554600090815260068452828120338083529452919091208054909316600190811790935560025460048054637921219560e11b8452309184019190915260248301939093526044820192909252606481019290925260a06084830152600360a48301526203078360ec1b60c48301526001600160a01b03169063f242432a9060e401600060405180830381600087803b1580156109cb57600080fd5b505af11580156109df573d6000803e3d6000fd5b505060018055505050505050565b600083833084604051602001610a069493929190611494565b6040516020818303038152906040528051906020012090509392505050565b6000546001600160a01b03163314610a4f5760405162461bcd60e51b81526004016103fa906113b3565b6001600160a01b038116610ab45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103fa565b610abd81610ae4565b50565b6000806000610acf8585610b34565b91509150610adc81610ba2565b509392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808251604103610b6a5760208301516040840151606085015160001a610b5e87828585610d58565b94509450505050610b9b565b8251604003610b935760208301516040840151610b88868383610e45565b935093505050610b9b565b506000905060025b9250929050565b6000816004811115610bb657610bb66111d1565b03610bbe5750565b6001816004811115610bd257610bd26111d1565b03610c1f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016103fa565b6002816004811115610c3357610c336111d1565b03610c805760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016103fa565b6003816004811115610c9457610c946111d1565b03610cec5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016103fa565b6004816004811115610d0057610d006111d1565b03610abd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016103fa565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610d8f5750600090506003610e3c565b8460ff16601b14158015610da757508460ff16601c14155b15610db85750600090506004610e3c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610e0c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610e3557600060019250925050610e3c565b9150600090505b94509492505050565b6000806001600160ff1b03831681610e6260ff86901c601b6114db565b9050610e7087828885610d58565b935093505050935093915050565b600060208284031215610e9057600080fd5b81356001600160e01b03198116811461046b57600080fd5b80356001600160a01b0381168114610ebf57600080fd5b919050565b60008060408385031215610ed757600080fd5b82359150610ee760208401610ea8565b90509250929050565b600060208284031215610f0257600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610f4857610f48610f09565b604052919050565b600082601f830112610f6157600080fd5b813567ffffffffffffffff811115610f7b57610f7b610f09565b610f8e601f8201601f1916602001610f1f565b818152846020838601011115610fa357600080fd5b816020850160208301376000918101602001919091529392505050565b60008060408385031215610fd357600080fd5b82359150602083013567ffffffffffffffff811115610ff157600080fd5b610ffd85828601610f50565b9150509250929050565b60006020828403121561101957600080fd5b61046b82610ea8565b600082601f83011261103357600080fd5b8135602067ffffffffffffffff82111561104f5761104f610f09565b8160051b61105e828201610f1f565b928352848101820192828101908785111561107857600080fd5b83870192505b848310156110975782358252918301919083019061107e565b979650505050505050565b600080600080608085870312156110b857600080fd5b6110c185610ea8565b9350602085013567ffffffffffffffff808211156110de57600080fd5b6110ea88838901611022565b9450604087013591508082111561110057600080fd5b5061110d87828801611022565b92505061111c60608601610ea8565b905092959194509250565b600080600080600060a0868803121561113f57600080fd5b61114886610ea8565b945061115660208701610ea8565b9350604086013567ffffffffffffffff8082111561117357600080fd5b61117f89838a01611022565b9450606088013591508082111561119557600080fd5b6111a189838a01611022565b935060808801359150808211156111b757600080fd5b506111c488828901610f50565b9150509295509295909350565b634e487b7160e01b600052602160045260246000fd5b602081016002831061120957634e487b7160e01b600052602160045260246000fd5b91905290565b60006020828403121561122157600080fd5b813567ffffffffffffffff81111561123857600080fd5b61124484828501610f50565b949350505050565b60008083601f84011261125e57600080fd5b50813567ffffffffffffffff81111561127657600080fd5b602083019150836020828501011115610b9b57600080fd5b600080600080604085870312156112a457600080fd5b843567ffffffffffffffff808211156112bc57600080fd5b6112c88883890161124c565b909650945060208701359150808211156112e157600080fd5b506112ee8782880161124c565b95989497509550505050565b60008060006040848603121561130f57600080fd5b833567ffffffffffffffff81111561132657600080fd5b6113328682870161124c565b9094509250611345905060208501610ea8565b90509250925092565b600080600080600060a0868803121561136657600080fd5b61136f86610ea8565b945061137d60208701610ea8565b93506040860135925060608601359150608086013567ffffffffffffffff8111156113a757600080fd5b6111c488828901610f50565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600081518084526020808501945080840160005b83811015611418578151875295820195908201906001016113fc565b509495945050505050565b6001600160a01b0385811682528416602082015260a06040820181905260009061144f908301856113e8565b828103606084015261146181856113e8565b8381036080850152600381526203078360ec1b6020820152905060408101611097565b8183823760009101908152919050565b6060815283606082015283856080830137600060808583018101919091526001600160a01b039384166020830152919092166040830152601f909201601f19160101919050565b600082198211156114fc57634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220c4d41db0f69c719cd4994432ce307d2ca9fc6593be0dec82013d497cdb7da36564736f6c634300080e0033000000000000000000000000be61ea017b139289e7e2f8bd3561e45ed74dab7b000000000000000000000000000000000000000000000000000000000000005e0000000000000000000000006fad73936527d2a82aea5384d252462941b44042
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101585760003560e01c8063a9c5f188116100c3578063cfa8ba4f1161007c578063cfa8ba4f1461031b578063d93f41001461032e578063ec8ba2d914610341578063f23a6e6114610354578063f2fde38b14610373578063f6b4dfb41461038657600080fd5b8063a9c5f1881461026c578063aacd6f9414610275578063bc197c8114610288578063c19d93fb146102c0578063c929ccf3146102da578063cd9f9b92146102ed57600080fd5b8063477bddaa11610115578063477bddaa1461021d5780636c19e78314610230578063715018a6146102435780638c1f3d641461024b5780638da5cb5b146102535780638fabb9b91461026457600080fd5b806301ffc9a71461015d578063120aa8771461018557806317d70f7c146101b357806320f10950146101ca578063238ac933146101df578063265d3e971461020a575b600080fd5b61017061016b366004610e7e565b610399565b60405190151581526020015b60405180910390f35b610170610193366004610ec4565b600660209081526000928352604080842090915290825290205460ff1681565b6101bc60045481565b60405190815260200161017c565b6101dd6101d8366004610ef0565b6103d0565b005b6003546101f2906001600160a01b031681565b6040516001600160a01b03909116815260200161017c565b6101f2610218366004610fc0565b610408565b6101dd61022b366004611007565b610472565b6101dd61023e366004611007565b6104be565b6101dd61050a565b6101dd610540565b6000546001600160a01b03166101f2565b6101dd610581565b6101bc60055481565b6101dd6102833660046110a2565b6105be565b6102a7610296366004611127565b63bc197c8160e01b95945050505050565b6040516001600160e01b0319909116815260200161017c565b6008546102cd9060ff1681565b60405161017c91906111e7565b6101dd6102e8366004610ef0565b610652565b6101706102fb36600461120f565b805160208183018101805160078252928201919093012091525460ff1681565b610170610329366004610fc0565b610681565b6101dd61033c36600461128e565b6106ab565b6101bc61034f3660046112fa565b6109ed565b6102a761036236600461134e565b63f23a6e6160e01b95945050505050565b6101dd610381366004611007565b610a25565b6002546101f2906001600160a01b031681565b60006001600160e01b03198216630271189760e51b14806103ca57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b031633146104035760405162461bcd60e51b81526004016103fa906113b3565b60405180910390fd5b600555565b600061046b82610465856040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90610ac0565b9392505050565b6000546001600160a01b0316331461049c5760405162461bcd60e51b81526004016103fa906113b3565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104e85760405162461bcd60e51b81526004016103fa906113b3565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146105345760405162461bcd60e51b81526004016103fa906113b3565b61053e6000610ae4565b565b6000546001600160a01b0316331461056a5760405162461bcd60e51b81526004016103fa906113b3565b600880546000919060ff19166001835b0217905550565b6000546001600160a01b031633146105ab5760405162461bcd60e51b81526004016103fa906113b3565b600880546001919060ff1916828061057a565b6000546001600160a01b031633146105e85760405162461bcd60e51b81526004016103fa906113b3565b604051631759616b60e11b81526001600160a01b03821690632eb2c2d69061061a903090889088908890600401611423565b600060405180830381600087803b15801561063457600080fd5b505af1158015610648573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b0316331461067c5760405162461bcd60e51b81526004016103fa906113b3565b600455565b6003546000906001600160a01b031661069a8484610408565b6001600160a01b0316149392505050565b6002600154036106fd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103fa565b6002600190815560085460ff16600181111561071b5761071b6111d1565b1461075e5760405162461bcd60e51b8152602060048201526013602482015272636c61696d206973206e6f742061637469766560681b60448201526064016103fa565b600554600090815260066020908152604080832033845290915290205460ff16156107cb5760405162461bcd60e51b815260206004820152601860248201527f757365722068617320616c726561647920636c61696d6564000000000000000060448201526064016103fa565b3332146108105760405162461bcd60e51b815260206004820152601360248201527218dbdb9d1c9858dd1cc818d85b9d081b5a5b9d606a1b60448201526064016103fa565b60078282604051610822929190611484565b9081526040519081900360200190205460ff16156108715760405162461bcd60e51b815260206004820152600c60248201526b185b1c9958591e481d5cd95960a21b60448201526064016103fa565b6108bb61087f8585336109ed565b83838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061068192505050565b6108f75760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b60448201526064016103fa565b60016007838360405161090b929190611484565b9081526040805160209281900383018120805460ff19908116951515959095179055600554600090815260068452828120338083529452919091208054909316600190811790935560025460048054637921219560e11b8452309184019190915260248301939093526044820192909252606481019290925260a06084830152600360a48301526203078360ec1b60c48301526001600160a01b03169063f242432a9060e401600060405180830381600087803b1580156109cb57600080fd5b505af11580156109df573d6000803e3d6000fd5b505060018055505050505050565b600083833084604051602001610a069493929190611494565b6040516020818303038152906040528051906020012090509392505050565b6000546001600160a01b03163314610a4f5760405162461bcd60e51b81526004016103fa906113b3565b6001600160a01b038116610ab45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103fa565b610abd81610ae4565b50565b6000806000610acf8585610b34565b91509150610adc81610ba2565b509392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808251604103610b6a5760208301516040840151606085015160001a610b5e87828585610d58565b94509450505050610b9b565b8251604003610b935760208301516040840151610b88868383610e45565b935093505050610b9b565b506000905060025b9250929050565b6000816004811115610bb657610bb66111d1565b03610bbe5750565b6001816004811115610bd257610bd26111d1565b03610c1f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016103fa565b6002816004811115610c3357610c336111d1565b03610c805760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016103fa565b6003816004811115610c9457610c946111d1565b03610cec5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016103fa565b6004816004811115610d0057610d006111d1565b03610abd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016103fa565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610d8f5750600090506003610e3c565b8460ff16601b14158015610da757508460ff16601c14155b15610db85750600090506004610e3c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610e0c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610e3557600060019250925050610e3c565b9150600090505b94509492505050565b6000806001600160ff1b03831681610e6260ff86901c601b6114db565b9050610e7087828885610d58565b935093505050935093915050565b600060208284031215610e9057600080fd5b81356001600160e01b03198116811461046b57600080fd5b80356001600160a01b0381168114610ebf57600080fd5b919050565b60008060408385031215610ed757600080fd5b82359150610ee760208401610ea8565b90509250929050565b600060208284031215610f0257600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610f4857610f48610f09565b604052919050565b600082601f830112610f6157600080fd5b813567ffffffffffffffff811115610f7b57610f7b610f09565b610f8e601f8201601f1916602001610f1f565b818152846020838601011115610fa357600080fd5b816020850160208301376000918101602001919091529392505050565b60008060408385031215610fd357600080fd5b82359150602083013567ffffffffffffffff811115610ff157600080fd5b610ffd85828601610f50565b9150509250929050565b60006020828403121561101957600080fd5b61046b82610ea8565b600082601f83011261103357600080fd5b8135602067ffffffffffffffff82111561104f5761104f610f09565b8160051b61105e828201610f1f565b928352848101820192828101908785111561107857600080fd5b83870192505b848310156110975782358252918301919083019061107e565b979650505050505050565b600080600080608085870312156110b857600080fd5b6110c185610ea8565b9350602085013567ffffffffffffffff808211156110de57600080fd5b6110ea88838901611022565b9450604087013591508082111561110057600080fd5b5061110d87828801611022565b92505061111c60608601610ea8565b905092959194509250565b600080600080600060a0868803121561113f57600080fd5b61114886610ea8565b945061115660208701610ea8565b9350604086013567ffffffffffffffff8082111561117357600080fd5b61117f89838a01611022565b9450606088013591508082111561119557600080fd5b6111a189838a01611022565b935060808801359150808211156111b757600080fd5b506111c488828901610f50565b9150509295509295909350565b634e487b7160e01b600052602160045260246000fd5b602081016002831061120957634e487b7160e01b600052602160045260246000fd5b91905290565b60006020828403121561122157600080fd5b813567ffffffffffffffff81111561123857600080fd5b61124484828501610f50565b949350505050565b60008083601f84011261125e57600080fd5b50813567ffffffffffffffff81111561127657600080fd5b602083019150836020828501011115610b9b57600080fd5b600080600080604085870312156112a457600080fd5b843567ffffffffffffffff808211156112bc57600080fd5b6112c88883890161124c565b909650945060208701359150808211156112e157600080fd5b506112ee8782880161124c565b95989497509550505050565b60008060006040848603121561130f57600080fd5b833567ffffffffffffffff81111561132657600080fd5b6113328682870161124c565b9094509250611345905060208501610ea8565b90509250925092565b600080600080600060a0868803121561136657600080fd5b61136f86610ea8565b945061137d60208701610ea8565b93506040860135925060608601359150608086013567ffffffffffffffff8111156113a757600080fd5b6111c488828901610f50565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600081518084526020808501945080840160005b83811015611418578151875295820195908201906001016113fc565b509495945050505050565b6001600160a01b0385811682528416602082015260a06040820181905260009061144f908301856113e8565b828103606084015261146181856113e8565b8381036080850152600381526203078360ec1b6020820152905060408101611097565b8183823760009101908152919050565b6060815283606082015283856080830137600060808583018101919091526001600160a01b039384166020830152919092166040830152601f909201601f19160101919050565b600082198211156114fc57634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220c4d41db0f69c719cd4994432ce307d2ca9fc6593be0dec82013d497cdb7da36564736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000be61ea017b139289e7e2f8bd3561e45ed74dab7b000000000000000000000000000000000000000000000000000000000000005e0000000000000000000000006fad73936527d2a82aea5384d252462941b44042
-----Decoded View---------------
Arg [0] : _signer (address): 0xbE61EA017B139289e7e2F8bd3561e45eD74dAB7B
Arg [1] : _tokenId (uint256): 94
Arg [2] : _contractAddress (address): 0x6faD73936527D2a82AEA5384D252462941B44042
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000be61ea017b139289e7e2f8bd3561e45ed74dab7b
Arg [1] : 000000000000000000000000000000000000000000000000000000000000005e
Arg [2] : 0000000000000000000000006fad73936527d2a82aea5384d252462941b44042
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.