More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 968 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint Subscriber | 21262734 | 46 hrs ago | IN | 0.02 ETH | 0.00053817 | ||||
Mint Subscriber | 20314788 | 134 days ago | IN | 0.02 ETH | 0.00045952 | ||||
Mint Subscriber | 20264069 | 141 days ago | IN | 0.02 ETH | 0.00029193 | ||||
Mint Subscriber | 20084833 | 166 days ago | IN | 0.02 ETH | 0.00071473 | ||||
Mint Subscriber | 19963939 | 183 days ago | IN | 0.02 ETH | 0.00169077 | ||||
Mint Subscriber | 19946176 | 185 days ago | IN | 0.02 ETH | 0.00032601 | ||||
Mint Subscriber | 19895257 | 192 days ago | IN | 0.02 ETH | 0.00024378 | ||||
Mint Subscriber | 19886009 | 194 days ago | IN | 0.02 ETH | 0.00026279 | ||||
Mint Subscriber | 19884860 | 194 days ago | IN | 0.02 ETH | 0.0002926 | ||||
Mint Subscriber | 19867391 | 196 days ago | IN | 0.02 ETH | 0.00046771 | ||||
Mint Subscriber | 19861360 | 197 days ago | IN | 0.02 ETH | 0.00091012 | ||||
Mint Subscriber | 19861354 | 197 days ago | IN | 0.02 ETH | 0.00073766 | ||||
Mint Subscriber | 19859105 | 197 days ago | IN | 0.02 ETH | 0.00026493 | ||||
Mint Subscriber | 19848033 | 199 days ago | IN | 0.02 ETH | 0.00036902 | ||||
Mint Subscriber | 19846285 | 199 days ago | IN | 0.02 ETH | 0.00041191 | ||||
Mint Subscriber | 19843820 | 200 days ago | IN | 0.02 ETH | 0.00041349 | ||||
Mint Subscriber | 19838053 | 200 days ago | IN | 0.02 ETH | 0.00031173 | ||||
Mint Subscriber | 19832539 | 201 days ago | IN | 0.02 ETH | 0.00051271 | ||||
Mint Subscriber | 19796549 | 206 days ago | IN | 0.02 ETH | 0.00055434 | ||||
Mint Subscriber | 19602765 | 233 days ago | IN | 0.02 ETH | 0.00103629 | ||||
Mint Subscriber | 19593878 | 235 days ago | IN | 0.02 ETH | 0.00086263 | ||||
Mint Subscriber | 19383562 | 264 days ago | IN | 0.02 ETH | 0.00529408 | ||||
Mint Subscriber | 19343476 | 270 days ago | IN | 0.02 ETH | 0.00390877 | ||||
Withdraw | 19316138 | 274 days ago | IN | 0 ETH | 0.00170674 | ||||
Set Withdrawal A... | 19316103 | 274 days ago | IN | 0 ETH | 0.00146548 |
Loading...
Loading
Contract Name:
CoinageSubscriber
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; error WithdrawFailed(); contract CoinageSubscriber is Ownable, ERC1155Holder, ReentrancyGuard { using ECDSA for bytes32; IERC1155 private _CoinageAddress; address private _signerAddress; address private _withdrawalAddress; bool public _saleActive; uint256 public _amountToPurchase = 1; uint256 public _price = 0.005 ether; uint256 public subscriberId = 3; constructor( IERC1155 coinageAddress, bool saleActive, address signerAddress ) payable { _CoinageAddress = coinageAddress; _saleActive = saleActive; _signerAddress = signerAddress; } /** * @dev Match Signer * Used to make sure the transaction was signed by our admin wallet */ function matchAddresSigner( bytes32 hash, bytes memory signature ) private view returns (bool) { bytes32 signedHash = keccak256( abi.encodePacked("\x19Ethereum Signed Message:\n32", hash) ); return signedHash.recover(signature) == _signerAddress; } // Mint Function function mintSubscriber( bytes32 hash, bytes memory signature ) external payable { if (!_saleActive) revert("Sale not active"); if (_CoinageAddress.balanceOf(address(this), subscriberId) == 0) { revert("Sold Out"); } if (!matchAddresSigner(hash, signature)) { revert("Signature Error"); } bytes32 msgHash = keccak256( abi.encodePacked(msg.sender, "Minting Subscriber") ); if (hash != msgHash) { revert("Hash Error"); } if (msg.value != _price) revert("Incorrect ETH Sent"); _CoinageAddress.safeTransferFrom( address(this), msg.sender, subscriberId, _amountToPurchase, "" ); } function ownerMint(address to, uint256 amount) external onlyOwner { _CoinageAddress.safeTransferFrom( address(this), to, subscriberId, amount, "" ); } // Set Functions function setWithdrawalAddress( address withdrawalAddress ) external onlyOwner { _withdrawalAddress = withdrawalAddress; } function setSignerWallet(address signerWalletAddress) external onlyOwner { _signerAddress = signerWalletAddress; } function setCoinageContractAddress( IERC1155 coinageContractAddress ) external onlyOwner { _CoinageAddress = coinageContractAddress; } function setSaleActive(bool saleActive) external onlyOwner { _saleActive = saleActive; } function getBalance() public view returns (uint256) { return _CoinageAddress.balanceOf(address(this), subscriberId); } function setPrice(uint256 price) external onlyOwner { _price = price; } /** * @dev * used to be able to offer BOGO deals */ function setAmountToPurchase(uint256 amountToPurchase) external onlyOwner { _amountToPurchase = amountToPurchase; } function withdraw() external onlyOwner nonReentrant { if (_withdrawalAddress == address(0)) { revert("No withdrawal address set"); } (bool success, ) = payable(_withdrawalAddress).call{ value: address(this).balance }(""); if (!success) revert WithdrawFailed(); } }
// 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 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 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 (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 (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/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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/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": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC1155","name":"coinageAddress","type":"address"},{"internalType":"bool","name":"saleActive","type":"bool"},{"internalType":"address","name":"signerAddress","type":"address"}],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"WithdrawFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"_amountToPurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintSubscriber","outputs":[],"stateMutability":"payable","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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountToPurchase","type":"uint256"}],"name":"setAmountToPurchase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"coinageContractAddress","type":"address"}],"name":"setCoinageContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"saleActive","type":"bool"}],"name":"setSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signerWalletAddress","type":"address"}],"name":"setSignerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"withdrawalAddress","type":"address"}],"name":"setWithdrawalAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"subscriberId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260016005556611c37937e08000600655600360075560405162001878380380620018788339810160408190526200003b9162000102565b620000463362000099565b60018055600280546001600160a01b039485166001600160a01b03199182161790915560048054931515600160a01b0260ff60a01b1990941693909317909255600380549190931691161790556200015a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620000ff57600080fd5b50565b6000806000606084860312156200011857600080fd5b83516200012581620000e9565b602085015190935080151581146200013c57600080fd5b60408501519092506200014f81620000e9565b809150509250925092565b61170e806200016a6000396000f3fe60806040526004361061015f5760003560e01c8063715018a6116100c0578063bc82d49411610074578063d5c49e5d11610059578063d5c49e5d146103b1578063f23a6e61146103c4578063f2fde38b1461040957600080fd5b8063bc82d49414610371578063d2039bf31461039157600080fd5b80638da5cb5b116100a55780638da5cb5b146102cb57806391b7f5ed146102f3578063bc197c811461031357600080fd5b8063715018a614610296578063841718a6146102ab57600080fd5b80632a88f192116101175780633ccfd60b116100fc5780633ccfd60b1461024b578063484b973c146102605780634bd8159d1461028057600080fd5b80632a88f192146102145780632c2c852f1461022a57600080fd5b806312065fe01161014857806312065fe0146101bb57806321b8092e146101de578063235b6ea1146101fe57600080fd5b806301ffc9a71461016457806306fba38814610199575b600080fd5b34801561017057600080fd5b5061018461017f366004611324565b610429565b60405190151581526020015b60405180910390f35b3480156101a557600080fd5b506101b96101b4366004611355565b610492565b005b3480156101c757600080fd5b506101d06104f6565b604051908152602001610190565b3480156101ea57600080fd5b506101b96101f9366004611383565b610571565b34801561020a57600080fd5b506101d060065481565b34801561022057600080fd5b506101d060075481565b34801561023657600080fd5b5060045461018490600160a01b900460ff1681565b34801561025757600080fd5b506101b96105fa565b34801561026c57600080fd5b506101b961027b3660046113a0565b610798565b34801561028c57600080fd5b506101d060055481565b3480156102a257600080fd5b506101b961087a565b3480156102b757600080fd5b506101b96102c63660046113cc565b6108e0565b3480156102d757600080fd5b506000546040516001600160a01b039091168152602001610190565b3480156102ff57600080fd5b506101b961030e366004611355565b610973565b34801561031f57600080fd5b5061035861032e366004611525565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b6040516001600160e01b03199091168152602001610190565b34801561037d57600080fd5b506101b961038c366004611383565b6109d2565b34801561039d57600080fd5b506101b96103ac366004611383565b610a5b565b6101b96103bf3660046115d3565b610ae4565b3480156103d057600080fd5b506103586103df36600461161a565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b34801561041557600080fd5b506101b9610424366004611383565b610ddc565b60006001600160e01b031982167f4e2312e000000000000000000000000000000000000000000000000000000000148061048c57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6000546001600160a01b031633146104f15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600555565b600254600754604051627eeac760e11b815230600482015260248101919091526000916001600160a01b03169062fdd58e90604401602060405180830381865afa158015610548573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056c9190611683565b905090565b6000546001600160a01b031633146105cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031633146106545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b600260015414156106a75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104e8565b60026001556004546001600160a01b03166107045760405162461bcd60e51b815260206004820152601960248201527f4e6f207769746864726177616c2061646472657373207365740000000000000060448201526064016104e8565b6004546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610751576040519150601f19603f3d011682016040523d82523d6000602084013e610756565b606091505b5050905080610791576040517f750b219c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060018055565b6000546001600160a01b031633146107f25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b600254600754604051637921219560e11b81523060048201526001600160a01b03858116602483015260448201929092526064810184905260a06084820152600060a482015291169063f242432a9060c401600060405180830381600087803b15801561085e57600080fd5b505af1158015610872573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031633146108d45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b6108de6000610ebe565b565b6000546001600160a01b0316331461093a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b60048054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000546001600160a01b031633146109cd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b600655565b6000546001600160a01b03163314610a2c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610ab55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600454600160a01b900460ff16610b3d5760405162461bcd60e51b815260206004820152600f60248201527f53616c65206e6f7420616374697665000000000000000000000000000000000060448201526064016104e8565b600254600754604051627eeac760e11b815230600482015260248101919091526001600160a01b039091169062fdd58e90604401602060405180830381865afa158015610b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb29190611683565b610bfe5760405162461bcd60e51b815260206004820152600860248201527f536f6c64204f757400000000000000000000000000000000000000000000000060448201526064016104e8565b610c088282610f1b565b610c545760405162461bcd60e51b815260206004820152600f60248201527f5369676e6174757265204572726f72000000000000000000000000000000000060448201526064016104e8565b6040516bffffffffffffffffffffffff193360601b1660208201527f4d696e74696e67205375627363726962657200000000000000000000000000006034820152600090604601604051602081830303815290604052805190602001209050808314610d025760405162461bcd60e51b815260206004820152600a60248201527f48617368204572726f720000000000000000000000000000000000000000000060448201526064016104e8565b6006543414610d535760405162461bcd60e51b815260206004820152601260248201527f496e636f7272656374204554482053656e74000000000000000000000000000060448201526064016104e8565b600254600754600554604051637921219560e11b81523060048201523360248201526044810192909252606482015260a06084820152600060a48201526001600160a01b039091169063f242432a9060c401600060405180830381600087803b158015610dbf57600080fd5b505af1158015610dd3573d6000803e3d6000fd5b50505050505050565b6000546001600160a01b03163314610e365760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b6001600160a01b038116610eb25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104e8565b610ebb81610ebe565b50565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c0160408051601f1981840301815291905280516020909101206003549091506001600160a01b0316610f848285610f96565b6001600160a01b031614949350505050565b6000806000610fa58585610fba565b91509150610fb28161102a565b509392505050565b600080825160411415610ff15760208301516040840151606085015160001a610fe5878285856111e5565b94509450505050611023565b82516040141561101b57602083015160408401516110108683836112d2565b935093505050611023565b506000905060025b9250929050565b600081600481111561103e5761103e61169c565b14156110475750565b600181600481111561105b5761105b61169c565b14156110a95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016104e8565b60028160048111156110bd576110bd61169c565b141561110b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016104e8565b600381600481111561111f5761111f61169c565b14156111785760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016104e8565b600481600481111561118c5761118c61169c565b1415610ebb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016104e8565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561121c57506000905060036112c9565b8460ff16601b1415801561123457508460ff16601c14155b1561124557506000905060046112c9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611299573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166112c2576000600192509250506112c9565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161130860ff86901c601b6116b2565b9050611316878288856111e5565b935093505050935093915050565b60006020828403121561133657600080fd5b81356001600160e01b03198116811461134e57600080fd5b9392505050565b60006020828403121561136757600080fd5b5035919050565b6001600160a01b0381168114610ebb57600080fd5b60006020828403121561139557600080fd5b813561134e8161136e565b600080604083850312156113b357600080fd5b82356113be8161136e565b946020939093013593505050565b6000602082840312156113de57600080fd5b8135801515811461134e57600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561142d5761142d6113ee565b604052919050565b600082601f83011261144657600080fd5b8135602067ffffffffffffffff821115611462576114626113ee565b8160051b611471828201611404565b928352848101820192828101908785111561148b57600080fd5b83870192505b848310156114aa57823582529183019190830190611491565b979650505050505050565b600082601f8301126114c657600080fd5b813567ffffffffffffffff8111156114e0576114e06113ee565b6114f3601f8201601f1916602001611404565b81815284602083860101111561150857600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561153d57600080fd5b85356115488161136e565b945060208601356115588161136e565b9350604086013567ffffffffffffffff8082111561157557600080fd5b61158189838a01611435565b9450606088013591508082111561159757600080fd5b6115a389838a01611435565b935060808801359150808211156115b957600080fd5b506115c6888289016114b5565b9150509295509295909350565b600080604083850312156115e657600080fd5b82359150602083013567ffffffffffffffff81111561160457600080fd5b611610858286016114b5565b9150509250929050565b600080600080600060a0868803121561163257600080fd5b853561163d8161136e565b9450602086013561164d8161136e565b93506040860135925060608601359150608086013567ffffffffffffffff81111561167757600080fd5b6115c6888289016114b5565b60006020828403121561169557600080fd5b5051919050565b634e487b7160e01b600052602160045260246000fd5b600082198211156116d357634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220dc4edfdec65210482c63714c844788a8f736e606c57870431c2e07d930f7b74964736f6c634300080c00330000000000000000000000004776defcf622c60c6419cccc9ee9e9042fadf3f70000000000000000000000000000000000000000000000000000000000000001000000000000000000000000569e2dffdcd7f5f78742e7bf5bcdbf23e0d0fb7f
Deployed Bytecode
0x60806040526004361061015f5760003560e01c8063715018a6116100c0578063bc82d49411610074578063d5c49e5d11610059578063d5c49e5d146103b1578063f23a6e61146103c4578063f2fde38b1461040957600080fd5b8063bc82d49414610371578063d2039bf31461039157600080fd5b80638da5cb5b116100a55780638da5cb5b146102cb57806391b7f5ed146102f3578063bc197c811461031357600080fd5b8063715018a614610296578063841718a6146102ab57600080fd5b80632a88f192116101175780633ccfd60b116100fc5780633ccfd60b1461024b578063484b973c146102605780634bd8159d1461028057600080fd5b80632a88f192146102145780632c2c852f1461022a57600080fd5b806312065fe01161014857806312065fe0146101bb57806321b8092e146101de578063235b6ea1146101fe57600080fd5b806301ffc9a71461016457806306fba38814610199575b600080fd5b34801561017057600080fd5b5061018461017f366004611324565b610429565b60405190151581526020015b60405180910390f35b3480156101a557600080fd5b506101b96101b4366004611355565b610492565b005b3480156101c757600080fd5b506101d06104f6565b604051908152602001610190565b3480156101ea57600080fd5b506101b96101f9366004611383565b610571565b34801561020a57600080fd5b506101d060065481565b34801561022057600080fd5b506101d060075481565b34801561023657600080fd5b5060045461018490600160a01b900460ff1681565b34801561025757600080fd5b506101b96105fa565b34801561026c57600080fd5b506101b961027b3660046113a0565b610798565b34801561028c57600080fd5b506101d060055481565b3480156102a257600080fd5b506101b961087a565b3480156102b757600080fd5b506101b96102c63660046113cc565b6108e0565b3480156102d757600080fd5b506000546040516001600160a01b039091168152602001610190565b3480156102ff57600080fd5b506101b961030e366004611355565b610973565b34801561031f57600080fd5b5061035861032e366004611525565b7fbc197c810000000000000000000000000000000000000000000000000000000095945050505050565b6040516001600160e01b03199091168152602001610190565b34801561037d57600080fd5b506101b961038c366004611383565b6109d2565b34801561039d57600080fd5b506101b96103ac366004611383565b610a5b565b6101b96103bf3660046115d3565b610ae4565b3480156103d057600080fd5b506103586103df36600461161a565b7ff23a6e610000000000000000000000000000000000000000000000000000000095945050505050565b34801561041557600080fd5b506101b9610424366004611383565b610ddc565b60006001600160e01b031982167f4e2312e000000000000000000000000000000000000000000000000000000000148061048c57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6000546001600160a01b031633146104f15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600555565b600254600754604051627eeac760e11b815230600482015260248101919091526000916001600160a01b03169062fdd58e90604401602060405180830381865afa158015610548573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056c9190611683565b905090565b6000546001600160a01b031633146105cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031633146106545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b600260015414156106a75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104e8565b60026001556004546001600160a01b03166107045760405162461bcd60e51b815260206004820152601960248201527f4e6f207769746864726177616c2061646472657373207365740000000000000060448201526064016104e8565b6004546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610751576040519150601f19603f3d011682016040523d82523d6000602084013e610756565b606091505b5050905080610791576040517f750b219c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060018055565b6000546001600160a01b031633146107f25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b600254600754604051637921219560e11b81523060048201526001600160a01b03858116602483015260448201929092526064810184905260a06084820152600060a482015291169063f242432a9060c401600060405180830381600087803b15801561085e57600080fd5b505af1158015610872573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031633146108d45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b6108de6000610ebe565b565b6000546001600160a01b0316331461093a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b60048054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000546001600160a01b031633146109cd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b600655565b6000546001600160a01b03163314610a2c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610ab55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600454600160a01b900460ff16610b3d5760405162461bcd60e51b815260206004820152600f60248201527f53616c65206e6f7420616374697665000000000000000000000000000000000060448201526064016104e8565b600254600754604051627eeac760e11b815230600482015260248101919091526001600160a01b039091169062fdd58e90604401602060405180830381865afa158015610b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb29190611683565b610bfe5760405162461bcd60e51b815260206004820152600860248201527f536f6c64204f757400000000000000000000000000000000000000000000000060448201526064016104e8565b610c088282610f1b565b610c545760405162461bcd60e51b815260206004820152600f60248201527f5369676e6174757265204572726f72000000000000000000000000000000000060448201526064016104e8565b6040516bffffffffffffffffffffffff193360601b1660208201527f4d696e74696e67205375627363726962657200000000000000000000000000006034820152600090604601604051602081830303815290604052805190602001209050808314610d025760405162461bcd60e51b815260206004820152600a60248201527f48617368204572726f720000000000000000000000000000000000000000000060448201526064016104e8565b6006543414610d535760405162461bcd60e51b815260206004820152601260248201527f496e636f7272656374204554482053656e74000000000000000000000000000060448201526064016104e8565b600254600754600554604051637921219560e11b81523060048201523360248201526044810192909252606482015260a06084820152600060a48201526001600160a01b039091169063f242432a9060c401600060405180830381600087803b158015610dbf57600080fd5b505af1158015610dd3573d6000803e3d6000fd5b50505050505050565b6000546001600160a01b03163314610e365760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e8565b6001600160a01b038116610eb25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104e8565b610ebb81610ebe565b50565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c0160408051601f1981840301815291905280516020909101206003549091506001600160a01b0316610f848285610f96565b6001600160a01b031614949350505050565b6000806000610fa58585610fba565b91509150610fb28161102a565b509392505050565b600080825160411415610ff15760208301516040840151606085015160001a610fe5878285856111e5565b94509450505050611023565b82516040141561101b57602083015160408401516110108683836112d2565b935093505050611023565b506000905060025b9250929050565b600081600481111561103e5761103e61169c565b14156110475750565b600181600481111561105b5761105b61169c565b14156110a95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016104e8565b60028160048111156110bd576110bd61169c565b141561110b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016104e8565b600381600481111561111f5761111f61169c565b14156111785760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016104e8565b600481600481111561118c5761118c61169c565b1415610ebb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016104e8565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561121c57506000905060036112c9565b8460ff16601b1415801561123457508460ff16601c14155b1561124557506000905060046112c9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611299573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166112c2576000600192509250506112c9565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161130860ff86901c601b6116b2565b9050611316878288856111e5565b935093505050935093915050565b60006020828403121561133657600080fd5b81356001600160e01b03198116811461134e57600080fd5b9392505050565b60006020828403121561136757600080fd5b5035919050565b6001600160a01b0381168114610ebb57600080fd5b60006020828403121561139557600080fd5b813561134e8161136e565b600080604083850312156113b357600080fd5b82356113be8161136e565b946020939093013593505050565b6000602082840312156113de57600080fd5b8135801515811461134e57600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561142d5761142d6113ee565b604052919050565b600082601f83011261144657600080fd5b8135602067ffffffffffffffff821115611462576114626113ee565b8160051b611471828201611404565b928352848101820192828101908785111561148b57600080fd5b83870192505b848310156114aa57823582529183019190830190611491565b979650505050505050565b600082601f8301126114c657600080fd5b813567ffffffffffffffff8111156114e0576114e06113ee565b6114f3601f8201601f1916602001611404565b81815284602083860101111561150857600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561153d57600080fd5b85356115488161136e565b945060208601356115588161136e565b9350604086013567ffffffffffffffff8082111561157557600080fd5b61158189838a01611435565b9450606088013591508082111561159757600080fd5b6115a389838a01611435565b935060808801359150808211156115b957600080fd5b506115c6888289016114b5565b9150509295509295909350565b600080604083850312156115e657600080fd5b82359150602083013567ffffffffffffffff81111561160457600080fd5b611610858286016114b5565b9150509250929050565b600080600080600060a0868803121561163257600080fd5b853561163d8161136e565b9450602086013561164d8161136e565b93506040860135925060608601359150608086013567ffffffffffffffff81111561167757600080fd5b6115c6888289016114b5565b60006020828403121561169557600080fd5b5051919050565b634e487b7160e01b600052602160045260246000fd5b600082198211156116d357634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220dc4edfdec65210482c63714c844788a8f736e606c57870431c2e07d930f7b74964736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004776defcf622c60c6419cccc9ee9e9042fadf3f70000000000000000000000000000000000000000000000000000000000000001000000000000000000000000569e2dffdcd7f5f78742e7bf5bcdbf23e0d0fb7f
-----Decoded View---------------
Arg [0] : coinageAddress (address): 0x4776DEFcF622c60C6419CCcc9eE9E9042fadf3F7
Arg [1] : saleActive (bool): True
Arg [2] : signerAddress (address): 0x569E2DFfDCd7F5F78742E7BF5bCdBF23e0d0Fb7f
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000004776defcf622c60c6419cccc9ee9e9042fadf3f7
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [2] : 000000000000000000000000569e2dffdcd7f5f78742e7bf5bcdbf23e0d0fb7f
Loading...
Loading
Loading...
Loading
OVERVIEW
The Coinage Subscriber NFT is Coinage's entry-level tier. With the Subscriber NFT, users can unlock early and ad-free access to Coinage videos, as well as the ability to provide input on the project's coverage, guest selection, and more.Loading...
Loading
[ Download: CSV Export ]
[ 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.