ERC-20
NFT
Overview
Max Total Supply
0 UHD
Holders
0
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 0 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ULANDHeroesDapp
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// // ββ ββ ββ βββββ βββ ββ ββββββ ββ ββββββ // ββ ββ ββ ββ ββ ββββ ββ ββ ββ ββ ββ ββ // ββ ββ ββ βββββββ ββ ββ ββ ββ ββ ββ ββ ββ // ββ ββ ββ ββ ββ ββ ββ ββ ββ ββ ββ ββ ββ // ββββββ βββββββ ββ ββ ββ ββββ ββββββ ββ ββ ββββββ // // SPDX-License-Identifier: MIT pragma solidity ^0.8.9; // @title ULAND Heroes dApp / uland.io // @author [email protected] // @whitepaper https://uland.io/Whitepaper.pdf // @url https://heroes.uland.io/ import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; /** * @dev Uland NFT Interface */ interface IULANDHeroesNFT { function mint(address to) external; function mintId(uint256 tokenId, address to) external; } contract ULANDHeroesDapp is Ownable { using ECDSA for bytes32; using SafeMath for uint256; bool public paused = false; mapping(string => bool) public _usedNonces; uint256 public mintCounter; uint256 public mintLimit; uint256 public nextTokenId; // Counter to keep track of the next token ID to use IULANDHeroesNFT public _ulandHeroNFT; address public marketingWallet = 0x3B3E40522ba700a0c2E9030431E5e7fD9af28775; // $ULAND Marketing wallet address public signerAddress; /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!paused,"PAUSED"); _; } constructor(address _ulandHeroesNFTAddress, address _signerAddress, uint256 _nextTokenId) { _ulandHeroNFT = IULANDHeroesNFT(_ulandHeroesNFTAddress); signerAddress = _signerAddress; nextTokenId = _nextTokenId; mintCounter = 0; mintLimit = 3333; } /** * @dev Returns the name of the token. */ function name() public pure returns (string memory) { return "ULAND HEROES DAPP"; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public pure returns (string memory) { return "UHD"; } /** * @dev Mint functions */ function mint( uint256 amount, uint256 validTo, uint8 qty, string memory nonce, bytes32 hash, bytes memory signature ) external payable whenNotPaused { require(!_usedNonces[nonce], "NONCE REUSED"); require(block.timestamp <= validTo, "EXPIRED"); require(msg.value >= amount, "AMOUNT_TOO_LOW"); require(mintCounter+qty <= mintLimit, "MINT EXHAUSTED"); bytes32 _hash = keccak256( abi.encodePacked(amount, validTo, qty, msg.sender, nonce) ); require(_hash == hash, "INVALID HASH"); require(matchSigner(hash, signature) == true, "INVALID SIG"); _usedNonces[nonce] = true; for (uint256 i = 1; i <= qty; i++) { _ulandHeroNFT.mintId(nextTokenId, msg.sender); nextTokenId++; mintCounter++; } emit Mint(msg.sender, nonce, qty); } /** * @dev Pay function */ function pay( uint256 amount, uint256 validTo, string memory nonce, bytes32 hash, bytes memory signature ) external payable whenNotPaused { require(!_usedNonces[nonce], "NONCE REUSED"); require(block.timestamp <= validTo, "EXPIRED"); require(msg.value >= amount, "AMOUNT_TOO_LOW"); bytes32 _hash = keccak256( abi.encodePacked(amount, validTo, msg.sender, nonce) ); require(_hash == hash, "INVALID HASH"); require(matchSigner(hash, signature) == true, "INVALID SIG"); _usedNonces[nonce] = true; emit Pay(msg.sender, nonce, amount); } /** * @dev Validate signature */ function matchSigner(bytes32 hash, bytes memory signature) public view returns (bool) { return signerAddress == hash.toEthSignedMessageHash().recover(signature); } function getCounters() external view virtual returns (uint256,uint256) { return (mintCounter, mintLimit); } /* * onlyOwner functions */ function setSignerAddress(address _signerAddress) public onlyOwner { signerAddress = _signerAddress; } function setNFTAddress(address _nftAddress) public onlyOwner { _ulandHeroNFT = IULANDHeroesNFT(_nftAddress); } function setPause(bool _paused) public onlyOwner { paused = _paused; } function setMarketingWallet(address _marketingWallet) public onlyOwner { marketingWallet = _marketingWallet; } function setNextTokenId(uint256 _nextTokenId) public onlyOwner { nextTokenId = _nextTokenId; } function setCounters(uint256 _mintCounter, uint256 _mintLimit) public onlyOwner { mintCounter = _mintCounter; mintLimit = _mintLimit; } /** * @dev Withdraw funds to treasury */ function treasuryWithdraw() external onlyOwner { payable(owner()).transfer(address(this).balance); } /* * Events */ event Pay(address sender, string trxid, uint256 amount); event Mint(address sender, string trxid, uint8 qty); }
// 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/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 // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// 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); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_ulandHeroesNFTAddress","type":"address"},{"internalType":"address","name":"_signerAddress","type":"address"},{"internalType":"uint256","name":"_nextTokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"string","name":"trxid","type":"string"},{"indexed":false,"internalType":"uint8","name":"qty","type":"uint8"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"string","name":"trxid","type":"string"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Pay","type":"event"},{"inputs":[],"name":"_ulandHeroNFT","outputs":[{"internalType":"contract IULANDHeroesNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"_usedNonces","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCounters","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"matchSigner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"validTo","type":"uint256"},{"internalType":"uint8","name":"qty","type":"uint8"},{"internalType":"string","name":"nonce","type":"string"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"nextTokenId","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"validTo","type":"uint256"},{"internalType":"string","name":"nonce","type":"string"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"pay","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintCounter","type":"uint256"},{"internalType":"uint256","name":"_mintLimit","type":"uint256"}],"name":"setCounters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_marketingWallet","type":"address"}],"name":"setMarketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"}],"name":"setNFTAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nextTokenId","type":"uint256"}],"name":"setNextTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260008060146101000a81548160ff021916908315150217905550733b3e40522ba700a0c2e9030431e5e7fd9af28775600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200008057600080fd5b50604051620028ae380380620028ae8339818101604052810190620000a69190620002da565b620000c6620000ba6200016960201b60201c565b6200017160201b60201c565b82600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806004819055506000600281905550610d0560038190555050505062000336565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000267826200023a565b9050919050565b62000279816200025a565b81146200028557600080fd5b50565b60008151905062000299816200026e565b92915050565b6000819050919050565b620002b4816200029f565b8114620002c057600080fd5b50565b600081519050620002d481620002a9565b92915050565b600080600060608486031215620002f657620002f562000235565b5b6000620003068682870162000288565b9350506020620003198682870162000288565b92505060406200032c86828701620002c3565b9150509250925092565b61256880620003466000396000f3fe60806040526004361061014b5760003560e01c806375794a3c116100b6578063a6ba55c71161006f578063a6ba55c714610418578063bedb86fb14610455578063c388041b1461047e578063d7dfa1641461049a578063dd8d74d8146104c3578063f2fde38b146105005761014b565b806375794a3c1461031857806375f0a8741461034357806383e3500f1461036e5780638da5cb5b1461039757806395d89b41146103c2578063996517cf146103ed5761014b565b80635c975abb116101085780635c975abb1461022d5780635d098b381461025857806369d03738146102815780636abb871f146102aa5780636b82e349146102d6578063715018a6146103015761014b565b8063046dc1661461015057806306fdde031461017957806346aa52ce146101a457806357bca42d146101cf5780635b5b4711146101e65780635b7633d014610202575b600080fd5b34801561015c57600080fd5b5061017760048036038101906101729190611434565b610529565b005b34801561018557600080fd5b5061018e610575565b60405161019b91906114fa565b60405180910390f35b3480156101b057600080fd5b506101b96105b2565b6040516101c69190611535565b60405180910390f35b3480156101db57600080fd5b506101e46105b8565b005b61020060048036038101906101fb91906117c1565b610610565b005b34801561020e57600080fd5b506102176109cc565b6040516102249190611895565b60405180910390f35b34801561023957600080fd5b506102426109f2565b60405161024f91906118cb565b60405180910390f35b34801561026457600080fd5b5061027f600480360381019061027a9190611434565b610a05565b005b34801561028d57600080fd5b506102a860048036038101906102a39190611434565b610a51565b005b3480156102b657600080fd5b506102bf610a9d565b6040516102cd9291906118e6565b60405180910390f35b3480156102e257600080fd5b506102eb610aae565b6040516102f8919061196e565b60405180910390f35b34801561030d57600080fd5b50610316610ad4565b005b34801561032457600080fd5b5061032d610ae8565b60405161033a9190611535565b60405180910390f35b34801561034f57600080fd5b50610358610aee565b6040516103659190611895565b60405180910390f35b34801561037a57600080fd5b5061039560048036038101906103909190611989565b610b14565b005b3480156103a357600080fd5b506103ac610b26565b6040516103b99190611895565b60405180910390f35b3480156103ce57600080fd5b506103d7610b4f565b6040516103e491906114fa565b60405180910390f35b3480156103f957600080fd5b50610402610b8c565b60405161040f9190611535565b60405180910390f35b34801561042457600080fd5b5061043f600480360381019061043a91906119b6565b610b92565b60405161044c91906118cb565b60405180910390f35b34801561046157600080fd5b5061047c60048036038101906104779190611a2b565b610bc8565b005b61049860048036038101906104939190611a58565b610bed565b005b3480156104a657600080fd5b506104c160048036038101906104bc9190611b0b565b610e6b565b005b3480156104cf57600080fd5b506104ea60048036038101906104e59190611b4b565b610e85565b6040516104f791906118cb565b60405180910390f35b34801561050c57600080fd5b5061052760048036038101906105229190611434565b610efa565b005b610531610f7e565b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606040518060400160405280601181526020017f554c414e44204845524f45532044415050000000000000000000000000000000815250905090565b60025481565b6105c0610f7e565b6105c8610b26565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561060d573d6000803e3d6000fd5b50565b600060149054906101000a900460ff1615610660576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065790611bf3565b60405180910390fd5b6001836040516106709190611c4f565b908152602001604051809103902060009054906101000a900460ff16156106cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c390611cb2565b60405180910390fd5b8442111561070f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070690611d1e565b60405180910390fd5b85341015610752576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161074990611d8a565b60405180910390fd5b6003548460ff166002546107669190611dd9565b11156107a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079e90611e7b565b60405180910390fd5b600086868633876040516020016107c2959493929190611f3a565b60405160208183030381529060405280519060200120905082811461081c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081390611fe1565b60405180910390fd5b6001151561082a8484610e85565b15151461086c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108639061204d565b60405180910390fd5b6001808560405161087d9190611c4f565b908152602001604051809103902060006101000a81548160ff0219169083151502179055506000600190505b8560ff16811161098757600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632d01fb0a600454336040518363ffffffff1660e01b815260040161091292919061206d565b600060405180830381600087803b15801561092c57600080fd5b505af1158015610940573d6000803e3d6000fd5b505050506004600081548092919061095790612096565b91905055506002600081548092919061096f90612096565b9190505550808061097f90612096565b9150506108a9565b507fe9e336af62434a364b8156348d35a7c2ebc20af2697036feb0362e8681a4c05f3385876040516109bb939291906120ee565b60405180910390a150505050505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060149054906101000a900460ff1681565b610a0d610f7e565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610a59610f7e565b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080600254600354915091509091565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610adc610f7e565b610ae66000610ffc565b565b60045481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b1c610f7e565b8060048190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606040518060400160405280600381526020017f5548440000000000000000000000000000000000000000000000000000000000815250905090565b60035481565b6001818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b610bd0610f7e565b80600060146101000a81548160ff02191690831515021790555050565b600060149054906101000a900460ff1615610c3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3490611bf3565b60405180910390fd5b600183604051610c4d9190611c4f565b908152602001604051809103902060009054906101000a900460ff1615610ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca090611cb2565b60405180910390fd5b83421115610cec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce390611d1e565b60405180910390fd5b84341015610d2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2690611d8a565b60405180910390fd5b600085853386604051602001610d48949392919061212c565b604051602081830303815290604052805190602001209050828114610da2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9990611fe1565b60405180910390fd5b60011515610db08484610e85565b151514610df2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de99061204d565b60405180910390fd5b60018085604051610e039190611c4f565b908152602001604051809103902060006101000a81548160ff0219169083151502179055507fedb2d488b5a4c501267ba2e720a5ba0d7817100bd7c5687c4a3c8f1e5a20e085338588604051610e5b93929190612176565b60405180910390a1505050505050565b610e73610f7e565b81600281905550806003819055505050565b6000610ea282610e94856110c0565b6110f090919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b610f02610f7e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6990612226565b60405180910390fd5b610f7b81610ffc565b50565b610f86611117565b73ffffffffffffffffffffffffffffffffffffffff16610fa4610b26565b73ffffffffffffffffffffffffffffffffffffffff1614610ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff190612292565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000816040516020016110d3919061231f565b604051602081830303815290604052805190602001209050919050565b60008060006110ff858561111f565b9150915061110c81611171565b819250505092915050565b600033905090565b6000806041835114156111615760008060006020860151925060408601519150606086015160001a9050611155878285856112df565b9450945050505061116a565b60006002915091505b9250929050565b6000600481111561118557611184612345565b5b81600481111561119857611197612345565b5b14156111a3576112dc565b600160048111156111b7576111b6612345565b5b8160048111156111ca576111c9612345565b5b141561120b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611202906123c0565b60405180910390fd5b6002600481111561121f5761121e612345565b5b81600481111561123257611231612345565b5b1415611273576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126a9061242c565b60405180910390fd5b6003600481111561128757611286612345565b5b81600481111561129a57611299612345565b5b14156112db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d2906124be565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561131a5760006003915091506113b9565b60006001878787876040516000815260200160405260405161133f94939291906124ed565b6020604051602081039080840390855afa158015611361573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113b0576000600192509250506113b9565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611401826113d6565b9050919050565b611411816113f6565b811461141c57600080fd5b50565b60008135905061142e81611408565b92915050565b60006020828403121561144a576114496113cc565b5b60006114588482850161141f565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561149b578082015181840152602081019050611480565b838111156114aa576000848401525b50505050565b6000601f19601f8301169050919050565b60006114cc82611461565b6114d6818561146c565b93506114e681856020860161147d565b6114ef816114b0565b840191505092915050565b6000602082019050818103600083015261151481846114c1565b905092915050565b6000819050919050565b61152f8161151c565b82525050565b600060208201905061154a6000830184611526565b92915050565b6115598161151c565b811461156457600080fd5b50565b60008135905061157681611550565b92915050565b600060ff82169050919050565b6115928161157c565b811461159d57600080fd5b50565b6000813590506115af81611589565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6115f7826114b0565b810181811067ffffffffffffffff82111715611616576116156115bf565b5b80604052505050565b60006116296113c2565b905061163582826115ee565b919050565b600067ffffffffffffffff821115611655576116546115bf565b5b61165e826114b0565b9050602081019050919050565b82818337600083830152505050565b600061168d6116888461163a565b61161f565b9050828152602081018484840111156116a9576116a86115ba565b5b6116b484828561166b565b509392505050565b600082601f8301126116d1576116d06115b5565b5b81356116e184826020860161167a565b91505092915050565b6000819050919050565b6116fd816116ea565b811461170857600080fd5b50565b60008135905061171a816116f4565b92915050565b600067ffffffffffffffff82111561173b5761173a6115bf565b5b611744826114b0565b9050602081019050919050565b600061176461175f84611720565b61161f565b9050828152602081018484840111156117805761177f6115ba565b5b61178b84828561166b565b509392505050565b600082601f8301126117a8576117a76115b5565b5b81356117b8848260208601611751565b91505092915050565b60008060008060008060c087890312156117de576117dd6113cc565b5b60006117ec89828a01611567565b96505060206117fd89828a01611567565b955050604061180e89828a016115a0565b945050606087013567ffffffffffffffff81111561182f5761182e6113d1565b5b61183b89828a016116bc565b935050608061184c89828a0161170b565b92505060a087013567ffffffffffffffff81111561186d5761186c6113d1565b5b61187989828a01611793565b9150509295509295509295565b61188f816113f6565b82525050565b60006020820190506118aa6000830184611886565b92915050565b60008115159050919050565b6118c5816118b0565b82525050565b60006020820190506118e060008301846118bc565b92915050565b60006040820190506118fb6000830185611526565b6119086020830184611526565b9392505050565b6000819050919050565b600061193461192f61192a846113d6565b61190f565b6113d6565b9050919050565b600061194682611919565b9050919050565b60006119588261193b565b9050919050565b6119688161194d565b82525050565b6000602082019050611983600083018461195f565b92915050565b60006020828403121561199f5761199e6113cc565b5b60006119ad84828501611567565b91505092915050565b6000602082840312156119cc576119cb6113cc565b5b600082013567ffffffffffffffff8111156119ea576119e96113d1565b5b6119f6848285016116bc565b91505092915050565b611a08816118b0565b8114611a1357600080fd5b50565b600081359050611a25816119ff565b92915050565b600060208284031215611a4157611a406113cc565b5b6000611a4f84828501611a16565b91505092915050565b600080600080600060a08688031215611a7457611a736113cc565b5b6000611a8288828901611567565b9550506020611a9388828901611567565b945050604086013567ffffffffffffffff811115611ab457611ab36113d1565b5b611ac0888289016116bc565b9350506060611ad18882890161170b565b925050608086013567ffffffffffffffff811115611af257611af16113d1565b5b611afe88828901611793565b9150509295509295909350565b60008060408385031215611b2257611b216113cc565b5b6000611b3085828601611567565b9250506020611b4185828601611567565b9150509250929050565b60008060408385031215611b6257611b616113cc565b5b6000611b708582860161170b565b925050602083013567ffffffffffffffff811115611b9157611b906113d1565b5b611b9d85828601611793565b9150509250929050565b7f5041555345440000000000000000000000000000000000000000000000000000600082015250565b6000611bdd60068361146c565b9150611be882611ba7565b602082019050919050565b60006020820190508181036000830152611c0c81611bd0565b9050919050565b600081905092915050565b6000611c2982611461565b611c338185611c13565b9350611c4381856020860161147d565b80840191505092915050565b6000611c5b8284611c1e565b915081905092915050565b7f4e4f4e4345205245555345440000000000000000000000000000000000000000600082015250565b6000611c9c600c8361146c565b9150611ca782611c66565b602082019050919050565b60006020820190508181036000830152611ccb81611c8f565b9050919050565b7f4558504952454400000000000000000000000000000000000000000000000000600082015250565b6000611d0860078361146c565b9150611d1382611cd2565b602082019050919050565b60006020820190508181036000830152611d3781611cfb565b9050919050565b7f414d4f554e545f544f4f5f4c4f57000000000000000000000000000000000000600082015250565b6000611d74600e8361146c565b9150611d7f82611d3e565b602082019050919050565b60006020820190508181036000830152611da381611d67565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611de48261151c565b9150611def8361151c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611e2457611e23611daa565b5b828201905092915050565b7f4d494e5420455848415553544544000000000000000000000000000000000000600082015250565b6000611e65600e8361146c565b9150611e7082611e2f565b602082019050919050565b60006020820190508181036000830152611e9481611e58565b9050919050565b6000819050919050565b611eb6611eb18261151c565b611e9b565b82525050565b60008160f81b9050919050565b6000611ed482611ebc565b9050919050565b611eec611ee78261157c565b611ec9565b82525050565b60008160601b9050919050565b6000611f0a82611ef2565b9050919050565b6000611f1c82611eff565b9050919050565b611f34611f2f826113f6565b611f11565b82525050565b6000611f468288611ea5565b602082019150611f568287611ea5565b602082019150611f668286611edb565b600182019150611f768285611f23565b601482019150611f868284611c1e565b91508190509695505050505050565b7f494e56414c494420484153480000000000000000000000000000000000000000600082015250565b6000611fcb600c8361146c565b9150611fd682611f95565b602082019050919050565b60006020820190508181036000830152611ffa81611fbe565b9050919050565b7f494e56414c494420534947000000000000000000000000000000000000000000600082015250565b6000612037600b8361146c565b915061204282612001565b602082019050919050565b600060208201905081810360008301526120668161202a565b9050919050565b60006040820190506120826000830185611526565b61208f6020830184611886565b9392505050565b60006120a18261151c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156120d4576120d3611daa565b5b600182019050919050565b6120e88161157c565b82525050565b60006060820190506121036000830186611886565b818103602083015261211581856114c1565b905061212460408301846120df565b949350505050565b60006121388287611ea5565b6020820191506121488286611ea5565b6020820191506121588285611f23565b6014820191506121688284611c1e565b915081905095945050505050565b600060608201905061218b6000830186611886565b818103602083015261219d81856114c1565b90506121ac6040830184611526565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061221060268361146c565b915061221b826121b4565b604082019050919050565b6000602082019050818103600083015261223f81612203565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061227c60208361146c565b915061228782612246565b602082019050919050565b600060208201905081810360008301526122ab8161226f565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b60006122e8601c83611c13565b91506122f3826122b2565b601c82019050919050565b6000819050919050565b612319612314826116ea565b6122fe565b82525050565b600061232a826122db565b91506123368284612308565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006123aa60188361146c565b91506123b582612374565b602082019050919050565b600060208201905081810360008301526123d98161239d565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000612416601f8361146c565b9150612421826123e0565b602082019050919050565b6000602082019050818103600083015261244581612409565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006124a860228361146c565b91506124b38261244c565b604082019050919050565b600060208201905081810360008301526124d78161249b565b9050919050565b6124e7816116ea565b82525050565b600060808201905061250260008301876124de565b61250f60208301866120df565b61251c60408301856124de565b61252960608301846124de565b9594505050505056fea264697066735822122056f588ebbc081db359ea444ec8b2894240721d12154ce3e2afb78b7afc51273564736f6c634300080900330000000000000000000000000a6873044d724e7445cd5a49f991e56029ba61cf0000000000000000000000000a6873044d724e7445cd5a49f991e56029ba61cf0000000000000000000000000000000000000000000000000000000000000001
Deployed Bytecode
0x60806040526004361061014b5760003560e01c806375794a3c116100b6578063a6ba55c71161006f578063a6ba55c714610418578063bedb86fb14610455578063c388041b1461047e578063d7dfa1641461049a578063dd8d74d8146104c3578063f2fde38b146105005761014b565b806375794a3c1461031857806375f0a8741461034357806383e3500f1461036e5780638da5cb5b1461039757806395d89b41146103c2578063996517cf146103ed5761014b565b80635c975abb116101085780635c975abb1461022d5780635d098b381461025857806369d03738146102815780636abb871f146102aa5780636b82e349146102d6578063715018a6146103015761014b565b8063046dc1661461015057806306fdde031461017957806346aa52ce146101a457806357bca42d146101cf5780635b5b4711146101e65780635b7633d014610202575b600080fd5b34801561015c57600080fd5b5061017760048036038101906101729190611434565b610529565b005b34801561018557600080fd5b5061018e610575565b60405161019b91906114fa565b60405180910390f35b3480156101b057600080fd5b506101b96105b2565b6040516101c69190611535565b60405180910390f35b3480156101db57600080fd5b506101e46105b8565b005b61020060048036038101906101fb91906117c1565b610610565b005b34801561020e57600080fd5b506102176109cc565b6040516102249190611895565b60405180910390f35b34801561023957600080fd5b506102426109f2565b60405161024f91906118cb565b60405180910390f35b34801561026457600080fd5b5061027f600480360381019061027a9190611434565b610a05565b005b34801561028d57600080fd5b506102a860048036038101906102a39190611434565b610a51565b005b3480156102b657600080fd5b506102bf610a9d565b6040516102cd9291906118e6565b60405180910390f35b3480156102e257600080fd5b506102eb610aae565b6040516102f8919061196e565b60405180910390f35b34801561030d57600080fd5b50610316610ad4565b005b34801561032457600080fd5b5061032d610ae8565b60405161033a9190611535565b60405180910390f35b34801561034f57600080fd5b50610358610aee565b6040516103659190611895565b60405180910390f35b34801561037a57600080fd5b5061039560048036038101906103909190611989565b610b14565b005b3480156103a357600080fd5b506103ac610b26565b6040516103b99190611895565b60405180910390f35b3480156103ce57600080fd5b506103d7610b4f565b6040516103e491906114fa565b60405180910390f35b3480156103f957600080fd5b50610402610b8c565b60405161040f9190611535565b60405180910390f35b34801561042457600080fd5b5061043f600480360381019061043a91906119b6565b610b92565b60405161044c91906118cb565b60405180910390f35b34801561046157600080fd5b5061047c60048036038101906104779190611a2b565b610bc8565b005b61049860048036038101906104939190611a58565b610bed565b005b3480156104a657600080fd5b506104c160048036038101906104bc9190611b0b565b610e6b565b005b3480156104cf57600080fd5b506104ea60048036038101906104e59190611b4b565b610e85565b6040516104f791906118cb565b60405180910390f35b34801561050c57600080fd5b5061052760048036038101906105229190611434565b610efa565b005b610531610f7e565b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606040518060400160405280601181526020017f554c414e44204845524f45532044415050000000000000000000000000000000815250905090565b60025481565b6105c0610f7e565b6105c8610b26565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561060d573d6000803e3d6000fd5b50565b600060149054906101000a900460ff1615610660576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065790611bf3565b60405180910390fd5b6001836040516106709190611c4f565b908152602001604051809103902060009054906101000a900460ff16156106cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c390611cb2565b60405180910390fd5b8442111561070f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070690611d1e565b60405180910390fd5b85341015610752576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161074990611d8a565b60405180910390fd5b6003548460ff166002546107669190611dd9565b11156107a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079e90611e7b565b60405180910390fd5b600086868633876040516020016107c2959493929190611f3a565b60405160208183030381529060405280519060200120905082811461081c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081390611fe1565b60405180910390fd5b6001151561082a8484610e85565b15151461086c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108639061204d565b60405180910390fd5b6001808560405161087d9190611c4f565b908152602001604051809103902060006101000a81548160ff0219169083151502179055506000600190505b8560ff16811161098757600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632d01fb0a600454336040518363ffffffff1660e01b815260040161091292919061206d565b600060405180830381600087803b15801561092c57600080fd5b505af1158015610940573d6000803e3d6000fd5b505050506004600081548092919061095790612096565b91905055506002600081548092919061096f90612096565b9190505550808061097f90612096565b9150506108a9565b507fe9e336af62434a364b8156348d35a7c2ebc20af2697036feb0362e8681a4c05f3385876040516109bb939291906120ee565b60405180910390a150505050505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060149054906101000a900460ff1681565b610a0d610f7e565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610a59610f7e565b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080600254600354915091509091565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610adc610f7e565b610ae66000610ffc565b565b60045481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b1c610f7e565b8060048190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606040518060400160405280600381526020017f5548440000000000000000000000000000000000000000000000000000000000815250905090565b60035481565b6001818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b610bd0610f7e565b80600060146101000a81548160ff02191690831515021790555050565b600060149054906101000a900460ff1615610c3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3490611bf3565b60405180910390fd5b600183604051610c4d9190611c4f565b908152602001604051809103902060009054906101000a900460ff1615610ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca090611cb2565b60405180910390fd5b83421115610cec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce390611d1e565b60405180910390fd5b84341015610d2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2690611d8a565b60405180910390fd5b600085853386604051602001610d48949392919061212c565b604051602081830303815290604052805190602001209050828114610da2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9990611fe1565b60405180910390fd5b60011515610db08484610e85565b151514610df2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de99061204d565b60405180910390fd5b60018085604051610e039190611c4f565b908152602001604051809103902060006101000a81548160ff0219169083151502179055507fedb2d488b5a4c501267ba2e720a5ba0d7817100bd7c5687c4a3c8f1e5a20e085338588604051610e5b93929190612176565b60405180910390a1505050505050565b610e73610f7e565b81600281905550806003819055505050565b6000610ea282610e94856110c0565b6110f090919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b610f02610f7e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6990612226565b60405180910390fd5b610f7b81610ffc565b50565b610f86611117565b73ffffffffffffffffffffffffffffffffffffffff16610fa4610b26565b73ffffffffffffffffffffffffffffffffffffffff1614610ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff190612292565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000816040516020016110d3919061231f565b604051602081830303815290604052805190602001209050919050565b60008060006110ff858561111f565b9150915061110c81611171565b819250505092915050565b600033905090565b6000806041835114156111615760008060006020860151925060408601519150606086015160001a9050611155878285856112df565b9450945050505061116a565b60006002915091505b9250929050565b6000600481111561118557611184612345565b5b81600481111561119857611197612345565b5b14156111a3576112dc565b600160048111156111b7576111b6612345565b5b8160048111156111ca576111c9612345565b5b141561120b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611202906123c0565b60405180910390fd5b6002600481111561121f5761121e612345565b5b81600481111561123257611231612345565b5b1415611273576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126a9061242c565b60405180910390fd5b6003600481111561128757611286612345565b5b81600481111561129a57611299612345565b5b14156112db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d2906124be565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561131a5760006003915091506113b9565b60006001878787876040516000815260200160405260405161133f94939291906124ed565b6020604051602081039080840390855afa158015611361573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113b0576000600192509250506113b9565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611401826113d6565b9050919050565b611411816113f6565b811461141c57600080fd5b50565b60008135905061142e81611408565b92915050565b60006020828403121561144a576114496113cc565b5b60006114588482850161141f565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561149b578082015181840152602081019050611480565b838111156114aa576000848401525b50505050565b6000601f19601f8301169050919050565b60006114cc82611461565b6114d6818561146c565b93506114e681856020860161147d565b6114ef816114b0565b840191505092915050565b6000602082019050818103600083015261151481846114c1565b905092915050565b6000819050919050565b61152f8161151c565b82525050565b600060208201905061154a6000830184611526565b92915050565b6115598161151c565b811461156457600080fd5b50565b60008135905061157681611550565b92915050565b600060ff82169050919050565b6115928161157c565b811461159d57600080fd5b50565b6000813590506115af81611589565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6115f7826114b0565b810181811067ffffffffffffffff82111715611616576116156115bf565b5b80604052505050565b60006116296113c2565b905061163582826115ee565b919050565b600067ffffffffffffffff821115611655576116546115bf565b5b61165e826114b0565b9050602081019050919050565b82818337600083830152505050565b600061168d6116888461163a565b61161f565b9050828152602081018484840111156116a9576116a86115ba565b5b6116b484828561166b565b509392505050565b600082601f8301126116d1576116d06115b5565b5b81356116e184826020860161167a565b91505092915050565b6000819050919050565b6116fd816116ea565b811461170857600080fd5b50565b60008135905061171a816116f4565b92915050565b600067ffffffffffffffff82111561173b5761173a6115bf565b5b611744826114b0565b9050602081019050919050565b600061176461175f84611720565b61161f565b9050828152602081018484840111156117805761177f6115ba565b5b61178b84828561166b565b509392505050565b600082601f8301126117a8576117a76115b5565b5b81356117b8848260208601611751565b91505092915050565b60008060008060008060c087890312156117de576117dd6113cc565b5b60006117ec89828a01611567565b96505060206117fd89828a01611567565b955050604061180e89828a016115a0565b945050606087013567ffffffffffffffff81111561182f5761182e6113d1565b5b61183b89828a016116bc565b935050608061184c89828a0161170b565b92505060a087013567ffffffffffffffff81111561186d5761186c6113d1565b5b61187989828a01611793565b9150509295509295509295565b61188f816113f6565b82525050565b60006020820190506118aa6000830184611886565b92915050565b60008115159050919050565b6118c5816118b0565b82525050565b60006020820190506118e060008301846118bc565b92915050565b60006040820190506118fb6000830185611526565b6119086020830184611526565b9392505050565b6000819050919050565b600061193461192f61192a846113d6565b61190f565b6113d6565b9050919050565b600061194682611919565b9050919050565b60006119588261193b565b9050919050565b6119688161194d565b82525050565b6000602082019050611983600083018461195f565b92915050565b60006020828403121561199f5761199e6113cc565b5b60006119ad84828501611567565b91505092915050565b6000602082840312156119cc576119cb6113cc565b5b600082013567ffffffffffffffff8111156119ea576119e96113d1565b5b6119f6848285016116bc565b91505092915050565b611a08816118b0565b8114611a1357600080fd5b50565b600081359050611a25816119ff565b92915050565b600060208284031215611a4157611a406113cc565b5b6000611a4f84828501611a16565b91505092915050565b600080600080600060a08688031215611a7457611a736113cc565b5b6000611a8288828901611567565b9550506020611a9388828901611567565b945050604086013567ffffffffffffffff811115611ab457611ab36113d1565b5b611ac0888289016116bc565b9350506060611ad18882890161170b565b925050608086013567ffffffffffffffff811115611af257611af16113d1565b5b611afe88828901611793565b9150509295509295909350565b60008060408385031215611b2257611b216113cc565b5b6000611b3085828601611567565b9250506020611b4185828601611567565b9150509250929050565b60008060408385031215611b6257611b616113cc565b5b6000611b708582860161170b565b925050602083013567ffffffffffffffff811115611b9157611b906113d1565b5b611b9d85828601611793565b9150509250929050565b7f5041555345440000000000000000000000000000000000000000000000000000600082015250565b6000611bdd60068361146c565b9150611be882611ba7565b602082019050919050565b60006020820190508181036000830152611c0c81611bd0565b9050919050565b600081905092915050565b6000611c2982611461565b611c338185611c13565b9350611c4381856020860161147d565b80840191505092915050565b6000611c5b8284611c1e565b915081905092915050565b7f4e4f4e4345205245555345440000000000000000000000000000000000000000600082015250565b6000611c9c600c8361146c565b9150611ca782611c66565b602082019050919050565b60006020820190508181036000830152611ccb81611c8f565b9050919050565b7f4558504952454400000000000000000000000000000000000000000000000000600082015250565b6000611d0860078361146c565b9150611d1382611cd2565b602082019050919050565b60006020820190508181036000830152611d3781611cfb565b9050919050565b7f414d4f554e545f544f4f5f4c4f57000000000000000000000000000000000000600082015250565b6000611d74600e8361146c565b9150611d7f82611d3e565b602082019050919050565b60006020820190508181036000830152611da381611d67565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611de48261151c565b9150611def8361151c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611e2457611e23611daa565b5b828201905092915050565b7f4d494e5420455848415553544544000000000000000000000000000000000000600082015250565b6000611e65600e8361146c565b9150611e7082611e2f565b602082019050919050565b60006020820190508181036000830152611e9481611e58565b9050919050565b6000819050919050565b611eb6611eb18261151c565b611e9b565b82525050565b60008160f81b9050919050565b6000611ed482611ebc565b9050919050565b611eec611ee78261157c565b611ec9565b82525050565b60008160601b9050919050565b6000611f0a82611ef2565b9050919050565b6000611f1c82611eff565b9050919050565b611f34611f2f826113f6565b611f11565b82525050565b6000611f468288611ea5565b602082019150611f568287611ea5565b602082019150611f668286611edb565b600182019150611f768285611f23565b601482019150611f868284611c1e565b91508190509695505050505050565b7f494e56414c494420484153480000000000000000000000000000000000000000600082015250565b6000611fcb600c8361146c565b9150611fd682611f95565b602082019050919050565b60006020820190508181036000830152611ffa81611fbe565b9050919050565b7f494e56414c494420534947000000000000000000000000000000000000000000600082015250565b6000612037600b8361146c565b915061204282612001565b602082019050919050565b600060208201905081810360008301526120668161202a565b9050919050565b60006040820190506120826000830185611526565b61208f6020830184611886565b9392505050565b60006120a18261151c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156120d4576120d3611daa565b5b600182019050919050565b6120e88161157c565b82525050565b60006060820190506121036000830186611886565b818103602083015261211581856114c1565b905061212460408301846120df565b949350505050565b60006121388287611ea5565b6020820191506121488286611ea5565b6020820191506121588285611f23565b6014820191506121688284611c1e565b915081905095945050505050565b600060608201905061218b6000830186611886565b818103602083015261219d81856114c1565b90506121ac6040830184611526565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061221060268361146c565b915061221b826121b4565b604082019050919050565b6000602082019050818103600083015261223f81612203565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061227c60208361146c565b915061228782612246565b602082019050919050565b600060208201905081810360008301526122ab8161226f565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b60006122e8601c83611c13565b91506122f3826122b2565b601c82019050919050565b6000819050919050565b612319612314826116ea565b6122fe565b82525050565b600061232a826122db565b91506123368284612308565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006123aa60188361146c565b91506123b582612374565b602082019050919050565b600060208201905081810360008301526123d98161239d565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000612416601f8361146c565b9150612421826123e0565b602082019050919050565b6000602082019050818103600083015261244581612409565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006124a860228361146c565b91506124b38261244c565b604082019050919050565b600060208201905081810360008301526124d78161249b565b9050919050565b6124e7816116ea565b82525050565b600060808201905061250260008301876124de565b61250f60208301866120df565b61251c60408301856124de565b61252960608301846124de565b9594505050505056fea264697066735822122056f588ebbc081db359ea444ec8b2894240721d12154ce3e2afb78b7afc51273564736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000a6873044d724e7445cd5a49f991e56029ba61cf0000000000000000000000000a6873044d724e7445cd5a49f991e56029ba61cf0000000000000000000000000000000000000000000000000000000000000001
-----Decoded View---------------
Arg [0] : _ulandHeroesNFTAddress (address): 0x0a6873044D724e7445cD5A49F991e56029ba61Cf
Arg [1] : _signerAddress (address): 0x0a6873044D724e7445cD5A49F991e56029ba61Cf
Arg [2] : _nextTokenId (uint256): 1
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000a6873044d724e7445cd5a49f991e56029ba61cf
Arg [1] : 0000000000000000000000000a6873044d724e7445cd5a49f991e56029ba61cf
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.