Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
Latest 25 from a total of 374 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 20125396 | 222 days ago | IN | 0 ETH | 0.00011236 | ||||
Signature Mint | 19587000 | 297 days ago | IN | 0 ETH | 0.00033259 | ||||
Mint | 19586270 | 298 days ago | IN | 0.0099 ETH | 0.00171648 | ||||
Signature Mint | 19509260 | 308 days ago | IN | 0 ETH | 0.00348565 | ||||
Mint | 19509012 | 308 days ago | IN | 0.0099 ETH | 0.00184411 | ||||
Mint | 19508571 | 308 days ago | IN | 0.0495 ETH | 0.00461079 | ||||
Signature Mint | 19507123 | 309 days ago | IN | 0 ETH | 0.00416027 | ||||
Mint | 19499914 | 310 days ago | IN | 0.0495 ETH | 0.00464609 | ||||
Signature Mint | 19499904 | 310 days ago | IN | 0 ETH | 0.00866053 | ||||
Mint | 19499884 | 310 days ago | IN | 0.0495 ETH | 0.00454478 | ||||
Mint | 19499820 | 310 days ago | IN | 0.099 ETH | 0.00762496 | ||||
Mint | 19499803 | 310 days ago | IN | 0.099 ETH | 0.00798218 | ||||
Mint | 19499798 | 310 days ago | IN | 0.099 ETH | 0.00843493 | ||||
Signature Mint | 19491625 | 311 days ago | IN | 0 ETH | 0.00728021 | ||||
Signature Mint | 19481516 | 312 days ago | IN | 0 ETH | 0.00978212 | ||||
Signature Mint | 19474765 | 313 days ago | IN | 0 ETH | 0.00755512 | ||||
Mint | 19470475 | 314 days ago | IN | 0.0099 ETH | 0.00832467 | ||||
Mint | 19470451 | 314 days ago | IN | 0.0099 ETH | 0.00995051 | ||||
Mint | 19470449 | 314 days ago | IN | 0.0099 ETH | 0.01126896 | ||||
Mint | 19470444 | 314 days ago | IN | 0.0099 ETH | 0.01261757 | ||||
Mint | 19466066 | 314 days ago | IN | 0.0297 ETH | 0.00469368 | ||||
Mint | 19465870 | 314 days ago | IN | 0.0594 ETH | 0.00830744 | ||||
Mint | 19465341 | 315 days ago | IN | 0.0099 ETH | 0.00437066 | ||||
Mint | 19464765 | 315 days ago | IN | 0.099 ETH | 0.01168716 | ||||
Signature Mint | 19464655 | 315 days ago | IN | 0 ETH | 0.01679622 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
20125396 | 222 days ago | 9.3951 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
StuffDigitalMinter
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import {IERC1155Mintable} from "./interfaces/IERC1155Mintable.sol"; import {AccessProtected} from "./libraries/AccessProtected.sol"; import {LimitPerWallet} from "./libraries/LimitPerWallet.sol"; import {Payable} from "./libraries/Payable.sol"; import {RandomGenerator} from "./libraries/RandomGenerator.sol"; import {SignatureProtected} from "./libraries/SignatureProtected.sol"; import {TimeProtected} from "./libraries/TimeProtected.sol"; contract StuffDigitalMinter is AccessProtected, LimitPerWallet, Payable, RandomGenerator, SignatureProtected, TimeProtected { uint256 public constant BASIS_POINTS = 10_000; IERC1155Mintable public erc1155Contract; uint256 public fromDate; uint256 public toDate; uint256 public price; uint256 public maxPerTx = 10; uint256[] public availableTokens; constructor(address _erc1155Address, address _signerAddress) SignatureProtected(_signerAddress) { erc1155Contract = IERC1155Mintable(_erc1155Address); } function setFromAndToDates(uint256 _fromDate, uint256 _toDate) external onlyOwner { fromDate = _fromDate; toDate = _toDate; } function setMaxPerTx(uint256 _maxPerTx) external onlyOwner { maxPerTx = _maxPerTx; } function setPrice(uint256 _price) external onlyOwner { price = _price; } function setAvailableTokens(uint256[] memory _availableTokens) external onlyOwner { uint256 total; for (uint256 i; i < _availableTokens.length; i++) { total += _availableTokens[i]; } require(total == BASIS_POINTS, "StuffDigitalMinter: The given rarity for the tokens must add up to 100%"); availableTokens = _availableTokens; } function mint(uint256 _amount) external payable onlyUser { require(_amount <= maxPerTx, "StuffDigitalMinter: amount to mint is too high"); isMintOpen(fromDate, toDate); checkSentEther(_amount * price); _mint(_amount); } function signatureMint( uint256 _amount, uint256 _pricePerToken, uint256 _fromDate, uint256 _toDate, uint256 _maxPerWallet, bytes calldata _signature ) external payable onlyUser { validateSignature(abi.encodePacked(_amount, _pricePerToken, _fromDate, _toDate, _maxPerWallet), _signature); isMintOpen(_fromDate, _toDate); _amount = getAvailableForWallet(_amount, _maxPerWallet); checkSentEther(_amount * _pricePerToken); _mint(_amount); } function _mint(uint256 _amount) internal { uint256[] memory amountsPerToken = new uint256[](availableTokens.length); uint256 diffCount = 0; for (uint256 i; i < _amount; i++) { uint256 tokenId = getRandomTokenId(i); if (amountsPerToken[tokenId] == 0) { diffCount++; } amountsPerToken[tokenId]++; } uint256[] memory ids = new uint256[](diffCount); uint256[] memory amounts = new uint256[](diffCount); uint256 found = 0; for (uint256 i; i < amountsPerToken.length; i++) { if (amountsPerToken[i] == 0) { continue; } ids[found] = i; amounts[found] = amountsPerToken[i]; found++; } erc1155Contract.mint(msg.sender, ids, amounts); } function getRandomTokenId(uint256 _randomVariable) internal view returns (uint256) { uint256 random = getRandomNumber(BASIS_POINTS - 1, _randomVariable) + 1; uint256 total; for (uint256 i; i < availableTokens.length; i++) { total += availableTokens[i]; if (random <= total) { return i; } } revert("Invalid random value generated"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 (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.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 // Deprecated in v4.8 } 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"); } } /** * @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) { 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. /// @solidity memory-safe-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 { 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 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 (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // @author: NFT Studios pragma solidity ^0.8.18; interface IERC1155Mintable { function mint( address _to, uint256[] memory _ids, uint256[] memory _amounts ) external; }
// SPDX-License-Identifier: MIT // @author: NFT Studios pragma solidity ^0.8.18; abstract contract AccessProtected { modifier onlyUser() { require( tx.origin == msg.sender, "Access Protected: The caller is another contract" ); _; } }
// SPDX-License-Identifier: MIT // @author: NFT Studios pragma solidity ^0.8.18; abstract contract LimitPerWallet { mapping(address => uint256) public mintsPerWallet; /** * @dev Checks if the given wallet address can mint more tokens. * If the desired amount to be minted exceeds the amount of tokens left allowed to be minted by the given address * it will return the maximum amount of tokens that address can mint. * * If the given address can not mint more tokens it will revert the transaction. */ function getAvailableForWallet( uint256 _amount, uint256 _maxPerWallet ) internal returns (uint256) { // If maxPerWallet is 0 it means that there is no limit per wallet. if (_maxPerWallet == 0) { return _amount; } if (mintsPerWallet[msg.sender] + _amount > _maxPerWallet) { _amount = _maxPerWallet - mintsPerWallet[msg.sender]; } require( _amount > 0, "LimitPerWallet: The caller address can not mint more tokens" ); mintsPerWallet[msg.sender] += _amount; return _amount; } }
// SPDX-License-Identifier: MIT // @author: NFT Studios pragma solidity ^0.8.18; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; abstract contract Payable is Ownable { function checkSentEther(uint256 _totalPrice) internal { require( msg.value >= _totalPrice, "Payable: Not enough Ether provided to mint" ); if (msg.value > _totalPrice) { payable(msg.sender).transfer(msg.value - _totalPrice); } } function withdraw(address _recipient) external onlyOwner { (bool success, ) = address(_recipient).call{ value: address(this).balance }(""); require(success, "Payable: Transfer failed"); } }
// SPDX-License-Identifier: MIT // @author: NFT Studios pragma solidity ^0.8.18; abstract contract RandomGenerator { /** * @dev Generates a pseudo-random number. */ function getRandomNumber( uint256 _upper, uint256 _variable // This value should change in between calls to this function within the same block to avoid generating the same number. ) internal view returns (uint256) { uint256 random = uint256( keccak256( abi.encodePacked( _variable, blockhash(block.number - 1), block.coinbase, block.prevrandao, msg.sender ) ) ); return (random % _upper); } }
// SPDX-License-Identifier: MIT // @author: NFT Studios pragma solidity ^0.8.18; import "@openzeppelin/contracts/access/Ownable.sol"; import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; abstract contract SignatureProtected is Ownable { address public signerAddress; constructor(address _signerAddress) { signerAddress = _signerAddress; } function setSignerAddress(address _signerAddress) external onlyOwner { signerAddress = _signerAddress; } function validateSignature( bytes memory packedParams, bytes calldata signature ) internal view { require( ECDSA.recover(generateHash(packedParams), signature) == signerAddress, "SignatureProtected: Invalid signature for the caller" ); } function generateHash( bytes memory packedParams ) private view returns (bytes32) { bytes32 _hash = keccak256( bytes.concat( abi.encodePacked(address(this), msg.sender), packedParams ) ); bytes memory result = abi.encodePacked( "\x19Ethereum Signed Message:\n32", _hash ); return keccak256(result); } }
// SPDX-License-Identifier: MIT // @author: NFT Studios pragma solidity ^0.8.18; abstract contract TimeProtected { function isMintOpen( uint256 _fromTimestamp, uint256 _toTimestamp ) internal view { require( block.timestamp >= _fromTimestamp, "TimeProtected: Mint is not open" ); require( block.timestamp <= _toTimestamp, "TimeProtected: Mint window is closed" ); } }
{ "evmVersion": "paris", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_erc1155Address","type":"address"},{"internalType":"address","name":"_signerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"BASIS_POINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"availableTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc1155Contract","outputs":[{"internalType":"contract IERC1155Mintable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fromDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintsPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_availableTokens","type":"uint256[]"}],"name":"setAvailableTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromDate","type":"uint256"},{"internalType":"uint256","name":"_toDate","type":"uint256"}],"name":"setFromAndToDates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerTx","type":"uint256"}],"name":"setMaxPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_pricePerToken","type":"uint256"},{"internalType":"uint256","name":"_fromDate","type":"uint256"},{"internalType":"uint256","name":"_toDate","type":"uint256"},{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"signatureMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600a6007553480156200001657600080fd5b5060405162001797380380620017978339810160408190526200003991620000eb565b8062000045336200007c565b600280546001600160a01b039283166001600160a01b03199182161790915560038054949092169316929092179091555062000123565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b0381168114620000e657600080fd5b919050565b60008060408385031215620000ff57600080fd5b6200010a83620000ce565b91506200011a60208401620000ce565b90509250929050565b61166480620001336000396000f3fe60806040526004361061011f5760003560e01c806391b7f5ed116100a0578063ad64d06811610064578063ad64d068146102f9578063c6f6f21614610319578063e1f1c4a714610339578063f2fde38b1461034f578063f968adbe1461036f57600080fd5b806391b7f5ed1461027a57806391ffa8f21461029a578063a035b1fe146102ba578063a0712d68146102d0578063a944b7a6146102e357600080fd5b80635b7633d0116100e75780635b7633d0146101d9578063715018a6146102115780637a564970146102265780637a8eac98146102465780638da5cb5b1461025c57600080fd5b8063046dc166146101245780631a0f1b11146101465780634307c4b2146101595780634d0df5fc1461017957806351cff8d9146101b9575b600080fd5b34801561013057600080fd5b5061014461013f366004611282565b610385565b005b6101446101543660046112b2565b6103af565b34801561016557600080fd5b5061014461017436600461136b565b610454565b34801561018557600080fd5b506101a6610194366004611282565b60006020819052908152604090205481565b6040519081526020015b60405180910390f35b3480156101c557600080fd5b506101446101d4366004611282565b610542565b3480156101e557600080fd5b506002546101f9906001600160a01b031681565b6040516001600160a01b0390911681526020016101b0565b34801561021d57600080fd5b506101446105f1565b34801561023257600080fd5b506003546101f9906001600160a01b031681565b34801561025257600080fd5b506101a660055481565b34801561026857600080fd5b506001546001600160a01b03166101f9565b34801561028657600080fd5b50610144610295366004611429565b610605565b3480156102a657600080fd5b506101446102b5366004611442565b610612565b3480156102c657600080fd5b506101a660065481565b6101446102de366004611429565b610625565b3480156102ef57600080fd5b506101a660045481565b34801561030557600080fd5b506101a6610314366004611429565b6106d8565b34801561032557600080fd5b50610144610334366004611429565b6106f9565b34801561034557600080fd5b506101a661271081565b34801561035b57600080fd5b5061014461036a366004611282565b610706565b34801561037b57600080fd5b506101a660075481565b61038d61077c565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b3233146103d75760405162461bcd60e51b81526004016103ce90611464565b60405180910390fd5b6040805160208101899052908101879052606081018690526080810185905260a0810184905261041a9060c00160405160208183030381529060405283836107d6565b610424858561089d565b61042e8784610949565b965061044261043d87896114ca565b610a3e565b61044b87610adf565b50505050505050565b61045c61077c565b6000805b82518110156104a25782818151811061047b5761047b6114e1565b60200260200101518261048e91906114f7565b91508061049a8161150a565b915050610460565b50612710811461052a5760405162461bcd60e51b815260206004820152604760248201527f53747566664469676974616c4d696e7465723a2054686520676976656e20726160448201527f7269747920666f722074686520746f6b656e73206d7573742061646420757020606482015266746f203130302560c81b608482015260a4016103ce565b815161053d906008906020850190611222565b505050565b61054a61077c565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610597576040519150601f19603f3d011682016040523d82523d6000602084013e61059c565b606091505b50509050806105ed5760405162461bcd60e51b815260206004820152601860248201527f50617961626c653a205472616e73666572206661696c6564000000000000000060448201526064016103ce565b5050565b6105f961077c565b6106036000610d52565b565b61060d61077c565b600655565b61061a61077c565b600491909155600555565b3233146106445760405162461bcd60e51b81526004016103ce90611464565b6007548111156106ad5760405162461bcd60e51b815260206004820152602e60248201527f53747566664469676974616c4d696e7465723a20616d6f756e7420746f206d6960448201526d0dce840d2e640e8dede40d0d2ced60931b60648201526084016103ce565b6106bb60045460055461089d565b6106cc6006548261043d91906114ca565b6106d581610adf565b50565b600881815481106106e857600080fd5b600091825260209091200154905081565b61070161077c565b600755565b61070e61077c565b6001600160a01b0381166107735760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103ce565b6106d581610d52565b6001546001600160a01b031633146106035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103ce565b6002546001600160a01b031661082a6107ee85610da4565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610e6992505050565b6001600160a01b03161461053d5760405162461bcd60e51b815260206004820152603460248201527f5369676e617475726550726f7465637465643a20496e76616c6964207369676e60448201527330ba3ab932903337b9103a34329031b0b63632b960611b60648201526084016103ce565b814210156108ed5760405162461bcd60e51b815260206004820152601f60248201527f54696d6550726f7465637465643a204d696e74206973206e6f74206f70656e0060448201526064016103ce565b804211156105ed5760405162461bcd60e51b8152602060048201526024808201527f54696d6550726f7465637465643a204d696e742077696e646f7720697320636c6044820152631bdcd95960e21b60648201526084016103ce565b60008160000361095a575081610a38565b3360009081526020819052604090205482906109779085906114f7565b111561099a57336000908152602081905260409020546109979083611523565b92505b60008311610a105760405162461bcd60e51b815260206004820152603b60248201527f4c696d697450657257616c6c65743a205468652063616c6c657220616464726560448201527f73732063616e206e6f74206d696e74206d6f726520746f6b656e73000000000060648201526084016103ce565b3360009081526020819052604081208054859290610a2f9084906114f7565b90915550839150505b92915050565b80341015610aa15760405162461bcd60e51b815260206004820152602a60248201527f50617961626c653a204e6f7420656e6f7567682045746865722070726f7669646044820152691959081d1bc81b5a5b9d60b21b60648201526084016103ce565b803411156106d557336108fc610ab78334611523565b6040518115909202916000818181858888f193505050501580156105ed573d6000803e3d6000fd5b60085460009067ffffffffffffffff811115610afd57610afd611355565b604051908082528060200260200182016040528015610b26578160200160208202803683370190505b5090506000805b83811015610baf576000610b4082610e8d565b9050838181518110610b5457610b546114e1565b6020026020010151600003610b715782610b6d8161150a565b9350505b838181518110610b8357610b836114e1565b602002602001018051809190610b989061150a565b905250819050610ba78161150a565b915050610b2d565b5060008167ffffffffffffffff811115610bcb57610bcb611355565b604051908082528060200260200182016040528015610bf4578160200160208202803683370190505b50905060008267ffffffffffffffff811115610c1257610c12611355565b604051908082528060200260200182016040528015610c3b578160200160208202803683370190505b5090506000805b8551811015610ce357858181518110610c5d57610c5d6114e1565b602002602001015160000315610cd15780848381518110610c8057610c806114e1565b602002602001018181525050858181518110610c9e57610c9e6114e1565b6020026020010151838381518110610cb857610cb86114e1565b602090810291909101015281610ccd8161150a565b9250505b80610cdb8161150a565b915050610c42565b50600354604051634b93bab560e11b81526001600160a01b0390911690639727756a90610d1890339087908790600401611571565b600060405180830381600087803b158015610d3257600080fd5b505af1158015610d46573d6000803e3d6000fd5b50505050505050505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516bffffffffffffffffffffffff1930606090811b8216602084015233901b166034820152600090819060480160408051601f1981840301815290829052610df29185906020016115e1565b604051602081830303815290604052805190602001209050600081604051602001610e4991907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f198184030181529190528051602090910120949350505050565b6000806000610e788585610f56565b91509150610e8581610f9b565b509392505050565b600080610ea6610ea06001612710611523565b846110e5565b610eb19060016114f7565b90506000805b600854811015610f0d5760088181548110610ed457610ed46114e1565b906000526020600020015482610eea91906114f7565b9150818311610efb57949350505050565b80610f058161150a565b915050610eb7565b5060405162461bcd60e51b815260206004820152601e60248201527f496e76616c69642072616e646f6d2076616c75652067656e657261746564000060448201526064016103ce565b6000808251604103610f8c5760208301516040840151606085015160001a610f808782858561115e565b94509450505050610f94565b506000905060025b9250929050565b6000816004811115610faf57610faf6115f6565b03610fb75750565b6001816004811115610fcb57610fcb6115f6565b036110185760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016103ce565b600281600481111561102c5761102c6115f6565b036110795760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016103ce565b600381600481111561108d5761108d6115f6565b036106d55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016103ce565b600080826110f4600143611523565b6040805160208101939093529040908201526bffffffffffffffffffffffff1941606090811b82168184015244607484015233901b16609482015260a80160408051601f1981840301815291905280516020909101209050611156848261160c565b949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156111955750600090506003611219565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156111e9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661121257600060019250925050611219565b9150600090505b94509492505050565b82805482825590600052602060002090810192821561125d579160200282015b8281111561125d578251825591602001919060010190611242565b5061126992915061126d565b5090565b5b80821115611269576000815560010161126e565b60006020828403121561129457600080fd5b81356001600160a01b03811681146112ab57600080fd5b9392505050565b600080600080600080600060c0888a0312156112cd57600080fd5b873596506020880135955060408801359450606088013593506080880135925060a088013567ffffffffffffffff8082111561130857600080fd5b818a0191508a601f83011261131c57600080fd5b81358181111561132b57600080fd5b8b602082850101111561133d57600080fd5b60208301945080935050505092959891949750929550565b634e487b7160e01b600052604160045260246000fd5b6000602080838503121561137e57600080fd5b823567ffffffffffffffff8082111561139657600080fd5b818501915085601f8301126113aa57600080fd5b8135818111156113bc576113bc611355565b8060051b604051601f19603f830116810181811085821117156113e1576113e1611355565b6040529182528482019250838101850191888311156113ff57600080fd5b938501935b8285101561141d57843584529385019392850192611404565b98975050505050505050565b60006020828403121561143b57600080fd5b5035919050565b6000806040838503121561145557600080fd5b50508035926020909101359150565b60208082526030908201527f4163636573732050726f7465637465643a205468652063616c6c65722069732060408201526f185b9bdd1a195c8818dbdb9d1c9858dd60821b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610a3857610a386114b4565b634e487b7160e01b600052603260045260246000fd5b80820180821115610a3857610a386114b4565b60006001820161151c5761151c6114b4565b5060010190565b81810381811115610a3857610a386114b4565b600081518084526020808501945080840160005b838110156115665781518752958201959082019060010161154a565b509495945050505050565b6001600160a01b038416815260606020820181905260009061159590830185611536565b82810360408401526115a78185611536565b9695505050505050565b6000815160005b818110156115d257602081850181015186830152016115b8565b50600093019283525090919050565b60006111566115f083866115b1565b846115b1565b634e487b7160e01b600052602160045260246000fd5b60008261162957634e487b7160e01b600052601260045260246000fd5b50069056fea264697066735822122032236e72f9d38c010a6b2825b0b11ef33d3df17048a455a6a8298daa05f8b8c464736f6c63430008120033000000000000000000000000fa297f8a132811b5ed682bed0be035520db7f89b000000000000000000000000859b00074befc8bede1f47e82ef240a85205ce59
Deployed Bytecode
0x60806040526004361061011f5760003560e01c806391b7f5ed116100a0578063ad64d06811610064578063ad64d068146102f9578063c6f6f21614610319578063e1f1c4a714610339578063f2fde38b1461034f578063f968adbe1461036f57600080fd5b806391b7f5ed1461027a57806391ffa8f21461029a578063a035b1fe146102ba578063a0712d68146102d0578063a944b7a6146102e357600080fd5b80635b7633d0116100e75780635b7633d0146101d9578063715018a6146102115780637a564970146102265780637a8eac98146102465780638da5cb5b1461025c57600080fd5b8063046dc166146101245780631a0f1b11146101465780634307c4b2146101595780634d0df5fc1461017957806351cff8d9146101b9575b600080fd5b34801561013057600080fd5b5061014461013f366004611282565b610385565b005b6101446101543660046112b2565b6103af565b34801561016557600080fd5b5061014461017436600461136b565b610454565b34801561018557600080fd5b506101a6610194366004611282565b60006020819052908152604090205481565b6040519081526020015b60405180910390f35b3480156101c557600080fd5b506101446101d4366004611282565b610542565b3480156101e557600080fd5b506002546101f9906001600160a01b031681565b6040516001600160a01b0390911681526020016101b0565b34801561021d57600080fd5b506101446105f1565b34801561023257600080fd5b506003546101f9906001600160a01b031681565b34801561025257600080fd5b506101a660055481565b34801561026857600080fd5b506001546001600160a01b03166101f9565b34801561028657600080fd5b50610144610295366004611429565b610605565b3480156102a657600080fd5b506101446102b5366004611442565b610612565b3480156102c657600080fd5b506101a660065481565b6101446102de366004611429565b610625565b3480156102ef57600080fd5b506101a660045481565b34801561030557600080fd5b506101a6610314366004611429565b6106d8565b34801561032557600080fd5b50610144610334366004611429565b6106f9565b34801561034557600080fd5b506101a661271081565b34801561035b57600080fd5b5061014461036a366004611282565b610706565b34801561037b57600080fd5b506101a660075481565b61038d61077c565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b3233146103d75760405162461bcd60e51b81526004016103ce90611464565b60405180910390fd5b6040805160208101899052908101879052606081018690526080810185905260a0810184905261041a9060c00160405160208183030381529060405283836107d6565b610424858561089d565b61042e8784610949565b965061044261043d87896114ca565b610a3e565b61044b87610adf565b50505050505050565b61045c61077c565b6000805b82518110156104a25782818151811061047b5761047b6114e1565b60200260200101518261048e91906114f7565b91508061049a8161150a565b915050610460565b50612710811461052a5760405162461bcd60e51b815260206004820152604760248201527f53747566664469676974616c4d696e7465723a2054686520676976656e20726160448201527f7269747920666f722074686520746f6b656e73206d7573742061646420757020606482015266746f203130302560c81b608482015260a4016103ce565b815161053d906008906020850190611222565b505050565b61054a61077c565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610597576040519150601f19603f3d011682016040523d82523d6000602084013e61059c565b606091505b50509050806105ed5760405162461bcd60e51b815260206004820152601860248201527f50617961626c653a205472616e73666572206661696c6564000000000000000060448201526064016103ce565b5050565b6105f961077c565b6106036000610d52565b565b61060d61077c565b600655565b61061a61077c565b600491909155600555565b3233146106445760405162461bcd60e51b81526004016103ce90611464565b6007548111156106ad5760405162461bcd60e51b815260206004820152602e60248201527f53747566664469676974616c4d696e7465723a20616d6f756e7420746f206d6960448201526d0dce840d2e640e8dede40d0d2ced60931b60648201526084016103ce565b6106bb60045460055461089d565b6106cc6006548261043d91906114ca565b6106d581610adf565b50565b600881815481106106e857600080fd5b600091825260209091200154905081565b61070161077c565b600755565b61070e61077c565b6001600160a01b0381166107735760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103ce565b6106d581610d52565b6001546001600160a01b031633146106035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103ce565b6002546001600160a01b031661082a6107ee85610da4565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610e6992505050565b6001600160a01b03161461053d5760405162461bcd60e51b815260206004820152603460248201527f5369676e617475726550726f7465637465643a20496e76616c6964207369676e60448201527330ba3ab932903337b9103a34329031b0b63632b960611b60648201526084016103ce565b814210156108ed5760405162461bcd60e51b815260206004820152601f60248201527f54696d6550726f7465637465643a204d696e74206973206e6f74206f70656e0060448201526064016103ce565b804211156105ed5760405162461bcd60e51b8152602060048201526024808201527f54696d6550726f7465637465643a204d696e742077696e646f7720697320636c6044820152631bdcd95960e21b60648201526084016103ce565b60008160000361095a575081610a38565b3360009081526020819052604090205482906109779085906114f7565b111561099a57336000908152602081905260409020546109979083611523565b92505b60008311610a105760405162461bcd60e51b815260206004820152603b60248201527f4c696d697450657257616c6c65743a205468652063616c6c657220616464726560448201527f73732063616e206e6f74206d696e74206d6f726520746f6b656e73000000000060648201526084016103ce565b3360009081526020819052604081208054859290610a2f9084906114f7565b90915550839150505b92915050565b80341015610aa15760405162461bcd60e51b815260206004820152602a60248201527f50617961626c653a204e6f7420656e6f7567682045746865722070726f7669646044820152691959081d1bc81b5a5b9d60b21b60648201526084016103ce565b803411156106d557336108fc610ab78334611523565b6040518115909202916000818181858888f193505050501580156105ed573d6000803e3d6000fd5b60085460009067ffffffffffffffff811115610afd57610afd611355565b604051908082528060200260200182016040528015610b26578160200160208202803683370190505b5090506000805b83811015610baf576000610b4082610e8d565b9050838181518110610b5457610b546114e1565b6020026020010151600003610b715782610b6d8161150a565b9350505b838181518110610b8357610b836114e1565b602002602001018051809190610b989061150a565b905250819050610ba78161150a565b915050610b2d565b5060008167ffffffffffffffff811115610bcb57610bcb611355565b604051908082528060200260200182016040528015610bf4578160200160208202803683370190505b50905060008267ffffffffffffffff811115610c1257610c12611355565b604051908082528060200260200182016040528015610c3b578160200160208202803683370190505b5090506000805b8551811015610ce357858181518110610c5d57610c5d6114e1565b602002602001015160000315610cd15780848381518110610c8057610c806114e1565b602002602001018181525050858181518110610c9e57610c9e6114e1565b6020026020010151838381518110610cb857610cb86114e1565b602090810291909101015281610ccd8161150a565b9250505b80610cdb8161150a565b915050610c42565b50600354604051634b93bab560e11b81526001600160a01b0390911690639727756a90610d1890339087908790600401611571565b600060405180830381600087803b158015610d3257600080fd5b505af1158015610d46573d6000803e3d6000fd5b50505050505050505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516bffffffffffffffffffffffff1930606090811b8216602084015233901b166034820152600090819060480160408051601f1981840301815290829052610df29185906020016115e1565b604051602081830303815290604052805190602001209050600081604051602001610e4991907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f198184030181529190528051602090910120949350505050565b6000806000610e788585610f56565b91509150610e8581610f9b565b509392505050565b600080610ea6610ea06001612710611523565b846110e5565b610eb19060016114f7565b90506000805b600854811015610f0d5760088181548110610ed457610ed46114e1565b906000526020600020015482610eea91906114f7565b9150818311610efb57949350505050565b80610f058161150a565b915050610eb7565b5060405162461bcd60e51b815260206004820152601e60248201527f496e76616c69642072616e646f6d2076616c75652067656e657261746564000060448201526064016103ce565b6000808251604103610f8c5760208301516040840151606085015160001a610f808782858561115e565b94509450505050610f94565b506000905060025b9250929050565b6000816004811115610faf57610faf6115f6565b03610fb75750565b6001816004811115610fcb57610fcb6115f6565b036110185760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016103ce565b600281600481111561102c5761102c6115f6565b036110795760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016103ce565b600381600481111561108d5761108d6115f6565b036106d55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016103ce565b600080826110f4600143611523565b6040805160208101939093529040908201526bffffffffffffffffffffffff1941606090811b82168184015244607484015233901b16609482015260a80160408051601f1981840301815291905280516020909101209050611156848261160c565b949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156111955750600090506003611219565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156111e9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661121257600060019250925050611219565b9150600090505b94509492505050565b82805482825590600052602060002090810192821561125d579160200282015b8281111561125d578251825591602001919060010190611242565b5061126992915061126d565b5090565b5b80821115611269576000815560010161126e565b60006020828403121561129457600080fd5b81356001600160a01b03811681146112ab57600080fd5b9392505050565b600080600080600080600060c0888a0312156112cd57600080fd5b873596506020880135955060408801359450606088013593506080880135925060a088013567ffffffffffffffff8082111561130857600080fd5b818a0191508a601f83011261131c57600080fd5b81358181111561132b57600080fd5b8b602082850101111561133d57600080fd5b60208301945080935050505092959891949750929550565b634e487b7160e01b600052604160045260246000fd5b6000602080838503121561137e57600080fd5b823567ffffffffffffffff8082111561139657600080fd5b818501915085601f8301126113aa57600080fd5b8135818111156113bc576113bc611355565b8060051b604051601f19603f830116810181811085821117156113e1576113e1611355565b6040529182528482019250838101850191888311156113ff57600080fd5b938501935b8285101561141d57843584529385019392850192611404565b98975050505050505050565b60006020828403121561143b57600080fd5b5035919050565b6000806040838503121561145557600080fd5b50508035926020909101359150565b60208082526030908201527f4163636573732050726f7465637465643a205468652063616c6c65722069732060408201526f185b9bdd1a195c8818dbdb9d1c9858dd60821b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610a3857610a386114b4565b634e487b7160e01b600052603260045260246000fd5b80820180821115610a3857610a386114b4565b60006001820161151c5761151c6114b4565b5060010190565b81810381811115610a3857610a386114b4565b600081518084526020808501945080840160005b838110156115665781518752958201959082019060010161154a565b509495945050505050565b6001600160a01b038416815260606020820181905260009061159590830185611536565b82810360408401526115a78185611536565b9695505050505050565b6000815160005b818110156115d257602081850181015186830152016115b8565b50600093019283525090919050565b60006111566115f083866115b1565b846115b1565b634e487b7160e01b600052602160045260246000fd5b60008261162957634e487b7160e01b600052601260045260246000fd5b50069056fea264697066735822122032236e72f9d38c010a6b2825b0b11ef33d3df17048a455a6a8298daa05f8b8c464736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fa297f8a132811b5ed682bed0be035520db7f89b000000000000000000000000859b00074befc8bede1f47e82ef240a85205ce59
-----Decoded View---------------
Arg [0] : _erc1155Address (address): 0xfA297F8a132811b5ED682Bed0bE035520DB7F89b
Arg [1] : _signerAddress (address): 0x859B00074BEFc8beDe1F47e82EF240A85205CE59
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000fa297f8a132811b5ed682bed0be035520db7f89b
Arg [1] : 000000000000000000000000859b00074befc8bede1f47e82ef240a85205ce59
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.