Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 107 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Mint | 16038524 | 1204 days ago | IN | 0 ETH | 0.00246215 | ||||
| Mint | 16036611 | 1204 days ago | IN | 0 ETH | 0.00280776 | ||||
| Mint | 16035947 | 1204 days ago | IN | 0 ETH | 0.00278962 | ||||
| Mint | 16034734 | 1204 days ago | IN | 0 ETH | 0.00385617 | ||||
| Mint | 16029404 | 1205 days ago | IN | 0 ETH | 0.00251455 | ||||
| Mint | 16022900 | 1206 days ago | IN | 0 ETH | 0.00226956 | ||||
| Mint | 16016167 | 1207 days ago | IN | 0 ETH | 0.00241019 | ||||
| Mint | 16015600 | 1207 days ago | IN | 0 ETH | 0.00270044 | ||||
| Mint | 16013617 | 1207 days ago | IN | 0 ETH | 0.0062105 | ||||
| Mint | 16010505 | 1208 days ago | IN | 0 ETH | 0.0037923 | ||||
| Mint | 16005103 | 1209 days ago | IN | 0 ETH | 0.00346561 | ||||
| Mint | 16000056 | 1209 days ago | IN | 0 ETH | 0.0028933 | ||||
| Mint | 15995363 | 1210 days ago | IN | 0 ETH | 0.00321916 | ||||
| Mint | 15994152 | 1210 days ago | IN | 0 ETH | 0.00329525 | ||||
| Mint | 15993700 | 1210 days ago | IN | 0 ETH | 0.0029014 | ||||
| Mint | 15993145 | 1210 days ago | IN | 0 ETH | 0.00036818 | ||||
| Mint | 15993144 | 1210 days ago | IN | 0 ETH | 0.00682057 | ||||
| Mint | 15993053 | 1210 days ago | IN | 0 ETH | 0.00312742 | ||||
| Mint | 15992855 | 1210 days ago | IN | 0 ETH | 0.00311813 | ||||
| Mint | 15992844 | 1210 days ago | IN | 0 ETH | 0.00297219 | ||||
| Mint | 15992435 | 1210 days ago | IN | 0 ETH | 0.00045823 | ||||
| Mint | 15992435 | 1210 days ago | IN | 0 ETH | 0.00364392 | ||||
| Mint | 15992318 | 1210 days ago | IN | 0 ETH | 0.00750764 | ||||
| Mint | 15991745 | 1210 days ago | IN | 0 ETH | 0.00517702 | ||||
| Mint | 15991530 | 1210 days ago | IN | 0 ETH | 0.03264 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MetaMartianNFTMinter
Compiler Version
v0.8.1+commit.df193b15
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IMRC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
contract MetaMartianNFTMinter is Ownable {
using Counters for Counters.Counter;
Counters.Counter private _tokenIds;
using ECDSA for bytes32;
event Claim(
uint256 txId,
address indexed user
);
struct TX {
uint256 txId;
address wallet;
}
mapping(uint256 => TX) public txs;
mapping(address => uint256[]) public userMints;
address public signer;
bool public mintEnabled = true;
IMRC721 public nftContract;
constructor(
address nftContractAddress,
address _signer
){
nftContract = IMRC721(nftContractAddress);
signer = _signer;
_tokenIds.increment();
}
function mint(
uint256 txId,
uint256[] memory ids,
bytes calldata sig
) public {
require(mintEnabled, "!enabled");
address user = msg.sender;
require(txs[txId].wallet == address(0), 'Already Minted');
bytes32 hash = keccak256(abi.encodePacked(msg.sender, txId, ids));
hash = hash.toEthSignedMessageHash();
address sigSigner = hash.recover(sig);
require(sigSigner == signer, "!sig");
txs[txId] = TX({
txId: txId,
wallet: user
});
userMints[user].push(txId);
_mint(user, ids);
emit Claim(txId, user);
}
function _mint(address _to, uint256[] memory ids) private{
for(uint i = 0; i < ids.length; i++){
nftContract.mint(_to, ids[i]);
}
}
function updateMintEnable(bool enable) public onlyOwner {
mintEnabled = enable;
}
function updateSigner(address _signer) public onlyOwner {
signer = _signer;
}
function updateNftContrcat(IMRC721 _newAddress) public onlyOwner {
nftContract = IMRC721(_newAddress);
}
function getUserTxs(address _user) public view returns (
uint256[] memory ids
){
ids = new uint256[](userMints[_user].length);
for(uint i = 0; i < ids.length; i++) {
ids[i] = userMints[_user][i];
}
}
// allows the owner to withdraw tokens
function ownerWithdraw(uint256 amount, address _to, address _tokenAddr) public onlyOwner{
require(_to != address(0));
if(_tokenAddr == address(0)){
payable(_to).transfer(amount);
}else{
IERC20(_tokenAddr).transfer(_to, amount);
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
interface IMRC721 is IERC721{
function mint(address to, uint256 id) external;
function burn(uint256 tokenId) external;
function tokensOfOwner(address _owner) external view returns(uint256[] memory);
function totalSupply() external view returns (uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (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/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}// 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 (last updated v4.6.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}{
"remappings": [],
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "istanbul",
"libraries": {},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"nftContractAddress","type":"address"},{"internalType":"address","name":"_signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"txId","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"Claim","type":"event"},{"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":"address","name":"_user","type":"address"}],"name":"getUserTxs","outputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"txId","type":"uint256"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftContract","outputs":[{"internalType":"contract IMRC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"address","name":"_tokenAddr","type":"address"}],"name":"ownerWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"txs","outputs":[{"internalType":"uint256","name":"txId","type":"uint256"},{"internalType":"address","name":"wallet","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"enable","type":"bool"}],"name":"updateMintEnable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMRC721","name":"_newAddress","type":"address"}],"name":"updateNftContrcat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"updateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60806040526004805460ff60a01b1916600160a01b1790553480156200002457600080fd5b50604051620013ce380380620013ce833981016040819052620000479162000127565b6200005b62000055620000ad565b620000b1565b600580546001600160a01b03199081166001600160a01b038581169190911790925560048054909116918316919091179055620000a5600162000101602090811b6200087017901c565b50506200015e565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80546001019055565b80516001600160a01b03811681146200012257600080fd5b919050565b600080604083850312156200013a578182fd5b62000145836200010a565b915062000155602084016200010a565b90509250929050565b611260806200016e6000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063c1afd4aa1161008c578063d123973011610066578063d1239730146101be578063d56d229d146101d3578063f2fde38b146101db578063f5715d56146101ee576100ea565b8063c1afd4aa1461016b578063cd0a5b651461017e578063cd49618c1461019e576100ea565b8063715018a6116100c8578063715018a6146101355780638da5cb5b1461013d57806395c1d91914610145578063a7ecd37e14610158576100ea565b8063238ac933146100ef5780635f8a4c671461010d57806362beaba514610122575b600080fd5b6100f761020f565b6040516101049190610f19565b60405180910390f35b61012061011b366004610d64565b61021e565b005b610120610130366004610cc6565b61034a565b6101206103ab565b6100f76103f6565b610120610153366004610da5565b610405565b610120610166366004610cc6565b6105cf565b610120610179366004610d14565b610630565b61019161018c366004610cc6565b61068d565b6040516101049190610f46565b6101b16101ac366004610ce9565b61078d565b6040516101049190611188565b6101c66107be565b6040516101049190610f8a565b6100f76107ce565b6101206101e9366004610cc6565b6107dd565b6102016101fc366004610d4c565b61084e565b604051610104929190611191565b6004546001600160a01b031681565b610226610879565b6001600160a01b03166102376103f6565b6001600160a01b0316146102665760405162461bcd60e51b815260040161025d90611131565b60405180910390fd5b6001600160a01b03821661027957600080fd5b6001600160a01b0381166102c3576040516001600160a01b0383169084156108fc029085906000818181858888f193505050501580156102bd573d6000803e3d6000fd5b50610345565b60405163a9059cbb60e01b81526001600160a01b0382169063a9059cbb906102f19085908790600401610f2d565b602060405180830381600087803b15801561030b57600080fd5b505af115801561031f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103439190610d30565b505b505050565b610352610879565b6001600160a01b03166103636103f6565b6001600160a01b0316146103895760405162461bcd60e51b815260040161025d90611131565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6103b3610879565b6001600160a01b03166103c46103f6565b6001600160a01b0316146103ea5760405162461bcd60e51b815260040161025d90611131565b6103f4600061087d565b565b6000546001600160a01b031690565b600454600160a01b900460ff1661042e5760405162461bcd60e51b815260040161025d90611166565b60008481526002602052604090206001015433906001600160a01b0316156104685760405162461bcd60e51b815260040161025d90611109565b600033868660405160200161047f93929190610e94565b6040516020818303038152906040528051906020012090506104a0816108cd565b905060006104e685858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506108fd9050565b6004549091506001600160a01b038083169116146105165760405162461bcd60e51b815260040161025d906110a9565b6040805180820182528881526001600160a01b03858116602080840182815260008d815260028352868120955186559051600195860180546001600160a01b03191691909516179093559082526003815292812080549283018155815291909120018790556105858387610921565b826001600160a01b03167f35538759d80c1fd7bb450a0d05601db5a99fa8b5d073a07c847a9fd61029b107886040516105be9190611188565b60405180910390a250505050505050565b6105d7610879565b6001600160a01b03166105e86103f6565b6001600160a01b03161461060e5760405162461bcd60e51b815260040161025d90611131565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b610638610879565b6001600160a01b03166106496103f6565b6001600160a01b03161461066f5760405162461bcd60e51b815260040161025d90611131565b60048054911515600160a01b0260ff60a01b19909216919091179055565b6001600160a01b03811660009081526003602052604090205460609067ffffffffffffffff8111156106cf57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156106f8578160200160208202803683370190505b50905060005b8151811015610787576001600160a01b038316600090815260036020526040902080548290811061073f57634e487b7160e01b600052603260045260246000fd5b906000526020600020015482828151811061076a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061077f816111c0565b9150506106fe565b50919050565b600360205281600052604060002081815481106107a957600080fd5b90600052602060002001600091509150505481565b600454600160a01b900460ff1681565b6005546001600160a01b031681565b6107e5610879565b6001600160a01b03166107f66103f6565b6001600160a01b03161461081c5760405162461bcd60e51b815260040161025d90611131565b6001600160a01b0381166108425760405162461bcd60e51b815260040161025d90611021565b61084b8161087d565b50565b600260205260009081526040902080546001909101546001600160a01b031682565b80546001019055565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000816040516020016108e09190610ee8565b604051602081830303815290604052805190602001209050919050565b600080600061090c85856109d0565b9150915061091981610a40565b509392505050565b60005b81518110156103455760055482516001600160a01b03909116906340c10f1990859085908590811061096657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b815260040161098b929190610f2d565b600060405180830381600087803b1580156109a557600080fd5b505af11580156109b9573d6000803e3d6000fd5b5050505080806109c8906111c0565b915050610924565b600080825160411415610a075760208301516040840151606085015160001a6109fb87828585610b6d565b94509450505050610a39565b825160401415610a315760208301516040840151610a26868383610c4d565b935093505050610a39565b506000905060025b9250929050565b6000816004811115610a6257634e487b7160e01b600052602160045260246000fd5b1415610a6d5761084b565b6001816004811115610a8f57634e487b7160e01b600052602160045260246000fd5b1415610aad5760405162461bcd60e51b815260040161025d90610fb3565b6002816004811115610acf57634e487b7160e01b600052602160045260246000fd5b1415610aed5760405162461bcd60e51b815260040161025d90610fea565b6003816004811115610b0f57634e487b7160e01b600052602160045260246000fd5b1415610b2d5760405162461bcd60e51b815260040161025d90611067565b6004816004811115610b4f57634e487b7160e01b600052602160045260246000fd5b141561084b5760405162461bcd60e51b815260040161025d906110c7565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610ba45750600090506003610c44565b8460ff16601b14158015610bbc57508460ff16601c14155b15610bcd5750600090506004610c44565b600060018787878760405160008152602001604052604051610bf29493929190610f95565b6020604051602081039080840390855afa158015610c14573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c3d57600060019250925050610c44565b9150600090505b94509492505050565b6000806001600160ff1b03831681610c6a60ff86901c601b6111a8565b9050610c7887828885610b6d565b935093505050935093915050565b60008083601f840112610c97578182fd5b50813567ffffffffffffffff811115610cae578182fd5b602083019150836020828501011115610a3957600080fd5b600060208284031215610cd7578081fd5b8135610ce281611207565b9392505050565b60008060408385031215610cfb578081fd5b8235610d0681611207565b946020939093013593505050565b600060208284031215610d25578081fd5b8135610ce28161121c565b600060208284031215610d41578081fd5b8151610ce28161121c565b600060208284031215610d5d578081fd5b5035919050565b600080600060608486031215610d78578081fd5b833592506020840135610d8a81611207565b91506040840135610d9a81611207565b809150509250925092565b60008060008060608587031215610dba578081fd5b8435935060208086013567ffffffffffffffff80821115610dd9578384fd5b818801915088601f830112610dec578384fd5b813581811115610dfe57610dfe6111f1565b838102604051601f19603f83011681018181108582111715610e2257610e226111f1565b60405282815285810185870183870188018e1015610e3e578889fd5b8896505b84871015610e60578035825260019690960195908701908701610e42565b509098505050506040880135925080831115610e7a578384fd5b5050610e8887828801610c86565b95989497509550505050565b60006bffffffffffffffffffffffff198560601b1682528360148301526034820183516020808601845b83811015610eda57815185529382019390820190600101610ebe565b509298975050505050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b81811015610f7e57835183529284019291840191600101610f62565b50909695505050505050565b901515815260200190565b93845260ff9290921660208401526040830152606082015260800190565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b6020808252600490820152632173696760e01b604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b6020808252600e908201526d105b1c9958591e48135a5b9d195960921b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526008908201526708595b98589b195960c21b604082015260600190565b90815260200190565b9182526001600160a01b0316602082015260400190565b600082198211156111bb576111bb6111db565b500190565b60006000198214156111d4576111d46111db565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461084b57600080fd5b801515811461084b57600080fdfea2646970667358221220ae8344127d3ae06a30b8ee876b21e0243ced89371a3e366308c319dff359051f64736f6c634300080100330000000000000000000000002e1cd4902bf8deab33ea7117b1b4ba46c83f41380000000000000000000000007e9e166eec3affe3bd2b1175849f73d6eb53bafe
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063c1afd4aa1161008c578063d123973011610066578063d1239730146101be578063d56d229d146101d3578063f2fde38b146101db578063f5715d56146101ee576100ea565b8063c1afd4aa1461016b578063cd0a5b651461017e578063cd49618c1461019e576100ea565b8063715018a6116100c8578063715018a6146101355780638da5cb5b1461013d57806395c1d91914610145578063a7ecd37e14610158576100ea565b8063238ac933146100ef5780635f8a4c671461010d57806362beaba514610122575b600080fd5b6100f761020f565b6040516101049190610f19565b60405180910390f35b61012061011b366004610d64565b61021e565b005b610120610130366004610cc6565b61034a565b6101206103ab565b6100f76103f6565b610120610153366004610da5565b610405565b610120610166366004610cc6565b6105cf565b610120610179366004610d14565b610630565b61019161018c366004610cc6565b61068d565b6040516101049190610f46565b6101b16101ac366004610ce9565b61078d565b6040516101049190611188565b6101c66107be565b6040516101049190610f8a565b6100f76107ce565b6101206101e9366004610cc6565b6107dd565b6102016101fc366004610d4c565b61084e565b604051610104929190611191565b6004546001600160a01b031681565b610226610879565b6001600160a01b03166102376103f6565b6001600160a01b0316146102665760405162461bcd60e51b815260040161025d90611131565b60405180910390fd5b6001600160a01b03821661027957600080fd5b6001600160a01b0381166102c3576040516001600160a01b0383169084156108fc029085906000818181858888f193505050501580156102bd573d6000803e3d6000fd5b50610345565b60405163a9059cbb60e01b81526001600160a01b0382169063a9059cbb906102f19085908790600401610f2d565b602060405180830381600087803b15801561030b57600080fd5b505af115801561031f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103439190610d30565b505b505050565b610352610879565b6001600160a01b03166103636103f6565b6001600160a01b0316146103895760405162461bcd60e51b815260040161025d90611131565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6103b3610879565b6001600160a01b03166103c46103f6565b6001600160a01b0316146103ea5760405162461bcd60e51b815260040161025d90611131565b6103f4600061087d565b565b6000546001600160a01b031690565b600454600160a01b900460ff1661042e5760405162461bcd60e51b815260040161025d90611166565b60008481526002602052604090206001015433906001600160a01b0316156104685760405162461bcd60e51b815260040161025d90611109565b600033868660405160200161047f93929190610e94565b6040516020818303038152906040528051906020012090506104a0816108cd565b905060006104e685858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506108fd9050565b6004549091506001600160a01b038083169116146105165760405162461bcd60e51b815260040161025d906110a9565b6040805180820182528881526001600160a01b03858116602080840182815260008d815260028352868120955186559051600195860180546001600160a01b03191691909516179093559082526003815292812080549283018155815291909120018790556105858387610921565b826001600160a01b03167f35538759d80c1fd7bb450a0d05601db5a99fa8b5d073a07c847a9fd61029b107886040516105be9190611188565b60405180910390a250505050505050565b6105d7610879565b6001600160a01b03166105e86103f6565b6001600160a01b03161461060e5760405162461bcd60e51b815260040161025d90611131565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b610638610879565b6001600160a01b03166106496103f6565b6001600160a01b03161461066f5760405162461bcd60e51b815260040161025d90611131565b60048054911515600160a01b0260ff60a01b19909216919091179055565b6001600160a01b03811660009081526003602052604090205460609067ffffffffffffffff8111156106cf57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156106f8578160200160208202803683370190505b50905060005b8151811015610787576001600160a01b038316600090815260036020526040902080548290811061073f57634e487b7160e01b600052603260045260246000fd5b906000526020600020015482828151811061076a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061077f816111c0565b9150506106fe565b50919050565b600360205281600052604060002081815481106107a957600080fd5b90600052602060002001600091509150505481565b600454600160a01b900460ff1681565b6005546001600160a01b031681565b6107e5610879565b6001600160a01b03166107f66103f6565b6001600160a01b03161461081c5760405162461bcd60e51b815260040161025d90611131565b6001600160a01b0381166108425760405162461bcd60e51b815260040161025d90611021565b61084b8161087d565b50565b600260205260009081526040902080546001909101546001600160a01b031682565b80546001019055565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000816040516020016108e09190610ee8565b604051602081830303815290604052805190602001209050919050565b600080600061090c85856109d0565b9150915061091981610a40565b509392505050565b60005b81518110156103455760055482516001600160a01b03909116906340c10f1990859085908590811061096657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b815260040161098b929190610f2d565b600060405180830381600087803b1580156109a557600080fd5b505af11580156109b9573d6000803e3d6000fd5b5050505080806109c8906111c0565b915050610924565b600080825160411415610a075760208301516040840151606085015160001a6109fb87828585610b6d565b94509450505050610a39565b825160401415610a315760208301516040840151610a26868383610c4d565b935093505050610a39565b506000905060025b9250929050565b6000816004811115610a6257634e487b7160e01b600052602160045260246000fd5b1415610a6d5761084b565b6001816004811115610a8f57634e487b7160e01b600052602160045260246000fd5b1415610aad5760405162461bcd60e51b815260040161025d90610fb3565b6002816004811115610acf57634e487b7160e01b600052602160045260246000fd5b1415610aed5760405162461bcd60e51b815260040161025d90610fea565b6003816004811115610b0f57634e487b7160e01b600052602160045260246000fd5b1415610b2d5760405162461bcd60e51b815260040161025d90611067565b6004816004811115610b4f57634e487b7160e01b600052602160045260246000fd5b141561084b5760405162461bcd60e51b815260040161025d906110c7565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610ba45750600090506003610c44565b8460ff16601b14158015610bbc57508460ff16601c14155b15610bcd5750600090506004610c44565b600060018787878760405160008152602001604052604051610bf29493929190610f95565b6020604051602081039080840390855afa158015610c14573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c3d57600060019250925050610c44565b9150600090505b94509492505050565b6000806001600160ff1b03831681610c6a60ff86901c601b6111a8565b9050610c7887828885610b6d565b935093505050935093915050565b60008083601f840112610c97578182fd5b50813567ffffffffffffffff811115610cae578182fd5b602083019150836020828501011115610a3957600080fd5b600060208284031215610cd7578081fd5b8135610ce281611207565b9392505050565b60008060408385031215610cfb578081fd5b8235610d0681611207565b946020939093013593505050565b600060208284031215610d25578081fd5b8135610ce28161121c565b600060208284031215610d41578081fd5b8151610ce28161121c565b600060208284031215610d5d578081fd5b5035919050565b600080600060608486031215610d78578081fd5b833592506020840135610d8a81611207565b91506040840135610d9a81611207565b809150509250925092565b60008060008060608587031215610dba578081fd5b8435935060208086013567ffffffffffffffff80821115610dd9578384fd5b818801915088601f830112610dec578384fd5b813581811115610dfe57610dfe6111f1565b838102604051601f19603f83011681018181108582111715610e2257610e226111f1565b60405282815285810185870183870188018e1015610e3e578889fd5b8896505b84871015610e60578035825260019690960195908701908701610e42565b509098505050506040880135925080831115610e7a578384fd5b5050610e8887828801610c86565b95989497509550505050565b60006bffffffffffffffffffffffff198560601b1682528360148301526034820183516020808601845b83811015610eda57815185529382019390820190600101610ebe565b509298975050505050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b81811015610f7e57835183529284019291840191600101610f62565b50909695505050505050565b901515815260200190565b93845260ff9290921660208401526040830152606082015260800190565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b6020808252600490820152632173696760e01b604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b6020808252600e908201526d105b1c9958591e48135a5b9d195960921b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526008908201526708595b98589b195960c21b604082015260600190565b90815260200190565b9182526001600160a01b0316602082015260400190565b600082198211156111bb576111bb6111db565b500190565b60006000198214156111d4576111d46111db565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461084b57600080fd5b801515811461084b57600080fdfea2646970667358221220ae8344127d3ae06a30b8ee876b21e0243ced89371a3e366308c319dff359051f64736f6c63430008010033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002e1cd4902bf8deab33ea7117b1b4ba46c83f41380000000000000000000000007e9e166eec3affe3bd2b1175849f73d6eb53bafe
-----Decoded View---------------
Arg [0] : nftContractAddress (address): 0x2E1Cd4902bF8DEAb33ea7117b1B4ba46C83F4138
Arg [1] : _signer (address): 0x7E9e166eEC3AFFe3BD2b1175849f73D6Eb53bAfE
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000002e1cd4902bf8deab33ea7117b1b4ba46c83f4138
Arg [1] : 0000000000000000000000007e9e166eec3affe3bd2b1175849f73d6eb53bafe
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.