ETH Price: $3,405.20 (-1.96%)
Gas: 5 Gwei

Contract

0xa7c5ef8BB138258825E0178858acE6903AF89a94
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw Funds198044392024-05-05 14:17:4774 days ago1714918667IN
0xa7c5ef8B...03AF89a94
0 ETH0.000369936.14753098
Toggle Sale Stat...196259212024-04-10 14:47:5999 days ago1712760479IN
0xa7c5ef8B...03AF89a94
0 ETH0.0009608531.82582681
Reserve NFT196259092024-04-10 14:45:3599 days ago1712760335IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0033478628.24940348
Reserve NFT196258972024-04-10 14:43:1199 days ago1712760191IN
0xa7c5ef8B...03AF89a94
0.03 ETH0.0036383530.70053581
Reserve NFT196258952024-04-10 14:42:4799 days ago1712760167IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0037376731.53541502
Reserve NFT196258862024-04-10 14:40:5999 days ago1712760059IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0034432629.05145732
Reserve NFT196258822024-04-10 14:40:1199 days ago1712760011IN
0xa7c5ef8B...03AF89a94
0.03 ETH0.0034526829.13093532
Reserve NFT196258812024-04-10 14:39:5999 days ago1712759999IN
0xa7c5ef8B...03AF89a94
0.03 ETH0.0035437429.89925139
Reserve NFT196258722024-04-10 14:38:1199 days ago1712759891IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0036137430.48984875
Reserve NFT196258522024-04-10 14:34:1199 days ago1712759651IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0032886227.74955048
Reserve NFT196258472024-04-10 14:33:1199 days ago1712759591IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0034696329.27691099
Reserve NFT196258472024-04-10 14:33:1199 days ago1712759591IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0034808929.36893242
Reserve NFT196258072024-04-10 14:25:1199 days ago1712759111IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0039313133.17253821
Reserve NFT196258042024-04-10 14:24:2399 days ago1712759063IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0038435932.42909467
Reserve NFT196257952024-04-10 14:22:3599 days ago1712758955IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0039306733.167197
Reserve NFT196257912024-04-10 14:21:4799 days ago1712758907IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0037502731.64817311
Reserve NFT196257642024-04-10 14:16:1199 days ago1712758571IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0034663129.24589419
Reserve NFT196257612024-04-10 14:15:3599 days ago1712758535IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.003809132.1413313
Reserve NFT196257532024-04-10 14:13:5999 days ago1712758439IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0036591430.87601719
Reserve NFT196257512024-04-10 14:13:3599 days ago1712758415IN
0xa7c5ef8B...03AF89a94
0.03 ETH0.0037232531.41697426
Reserve NFT196257252024-04-10 14:08:2399 days ago1712758103IN
0xa7c5ef8B...03AF89a94
0.03 ETH0.0039227333.09684412
Reserve NFT196256922024-04-10 14:01:4799 days ago1712757707IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0030548825.77725801
Reserve NFT196256772024-04-10 13:58:4799 days ago1712757527IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0031110226.24830579
Reserve NFT196256762024-04-10 13:58:3599 days ago1712757515IN
0xa7c5ef8B...03AF89a94
0.03 ETH0.0026224322.12591752
Reserve NFT196256732024-04-10 13:57:5999 days ago1712757479IN
0xa7c5ef8B...03AF89a94
0.06 ETH0.0030547425.77347767
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
198044392024-05-05 14:17:4774 days ago1714918667
0xa7c5ef8B...03AF89a94
15 ETH
196186092024-04-09 14:13:59100 days ago1712672039
0xa7c5ef8B...03AF89a94
0.03 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RunaPreSale

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : RunaPreSale.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

contract RunaPreSale is Ownable, ReentrancyGuard {
    using ECDSA for bytes32;
    uint256 public currentPrice;
    uint256 public totalSupply;
    uint256 public totalReserved;
    address public signer;
    bool public isSaleActive;
    uint16 public constant maxPerCode = 2;

    mapping(bytes => bool) private signatures;
    mapping(bytes32 => uint256) private codeNFTReservations;
    mapping(address => uint256) public addressNFTReservations;

    event SaleStateUpdated(bool indexed isActive);
    event PriceAndSupplySet(uint256 indexed price, uint256 indexed supply);
    event NFTReserved(
        address indexed user,
        uint256 indexed quantity,
        string indexed code
    );
    event FundsWithdrawn(uint256 indexed amount, address indexed to);

    constructor(address _signer) {
        signer = _signer;
        isSaleActive = false;
    }

    function toggleSaleState() public onlyOwner {
        isSaleActive = !isSaleActive;
        emit SaleStateUpdated(isSaleActive);
    }

    function setPriceAndSupply(
        uint256 _price,
        uint256 _supply
    ) public onlyOwner {
        require(!isSaleActive, "Cannot change during active sale");
        currentPrice = _price;
        totalSupply = _supply;
        totalReserved = 0; // Optionally reset totalReserved if starting a new sale phase
        emit PriceAndSupplySet(_price, _supply);
    }

    function reserveNFT(
        string memory code,
        uint256 quantity,
        uint256 _salt,
        bytes32 _msgHash,
        bytes memory _signature
    ) external payable nonReentrant {
        require(isSaleActive, "Sale is not active");
        require(totalReserved < totalSupply, "All NFTs reserved");
        require(msg.value == currentPrice * quantity, "Incorrect ETH amount");
        require(!signatures[_signature], "Contract: Signature already used!");
        require(
            addressNFTReservations[msg.sender] + quantity <= 2,
            "Cannot mint more than two NFTs"
        );

        // Convert string code to bytes32
        bytes32 codeHash = keccak256(abi.encodePacked(code));
        uint256 reservedByCode = codeNFTReservations[codeHash];
        // Ensure valid reservation
        require(
            quantity > 0 && quantity <= maxPerCode - reservedByCode,
            "Invalid quantity or code fully reserved"
        );

        // create msghash with address and a number
        bytes32 msgHash = keccak256(
            abi.encodePacked(msg.sender, code, quantity, _salt)
        );
        bytes32 signedMsgHash = msgHash.toEthSignedMessageHash();

        require(signedMsgHash == _msgHash, "Invalid message hash!");
        require(_msgHash.recover(_signature) == signer, "Invalid signer!");
        signatures[_signature] = true;

        // Update totalReserved and user's reservation count for the code
        totalReserved += quantity;
        codeNFTReservations[codeHash] += quantity;
        addressNFTReservations[msg.sender] += quantity;

        emit NFTReserved(msg.sender, quantity, code);
    }

    function updateSigner(address _signer) public onlyOwner {
        require(_signer != address(0), "Invalid Address");
        require(_signer != signer, "Signer already set");
        signer = _signer;
    }

    function withdrawFunds(address payable _to) public onlyOwner {
        uint256 balance = address(this).balance;
        _to.transfer(balance);
        emit FundsWithdrawn(balance, _to);
    }

    function getReservationByCode(
        string memory code
    ) public view returns (uint256) {
        bytes32 codeHash = keccak256(abi.encodePacked(code));
        return codeNFTReservations[codeHash];
    }
}

File 2 of 8 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 message) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32")
            mstore(0x1c, hash)
            message := keccak256(0x00, 0x3c)
        }
    }

    /**
     * @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 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

File 3 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 4 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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);
    }
}

File 5 of 8 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.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 `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @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);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 6 of 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 7 of 8 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 8 of 8 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 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 256, 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 << 3) < value ? 1 : 0);
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"FundsWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":true,"internalType":"string","name":"code","type":"string"}],"name":"NFTReserved","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":true,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"PriceAndSupplySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"isActive","type":"bool"}],"name":"SaleStateUpdated","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressNFTReservations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"code","type":"string"}],"name":"getReservationByCode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerCode","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"code","type":"string"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"_salt","type":"uint256"},{"internalType":"bytes32","name":"_msgHash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"reserveNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setPriceAndSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","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":"_signer","type":"address"}],"name":"updateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002425380380620024258339818101604052810190620000379190620001f7565b620000576200004b620000c160201b60201c565b620000c960201b60201c565b6001808190555080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600560146101000a81548160ff0219169083151502179055505062000229565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001bf8262000192565b9050919050565b620001d181620001b2565b8114620001dd57600080fd5b50565b600081519050620001f181620001c6565b92915050565b60006020828403121562000210576200020f6200018d565b5b60006200022084828501620001e0565b91505092915050565b6121ec80620002396000396000f3fe6080604052600436106100f35760003560e01c8063715018a61161008a578063a7ecd37e11610059578063a7ecd37e146102f9578063c71b0e1c14610322578063daaeec861461034d578063f2fde38b14610364576100f3565b8063715018a61461024f5780638da5cb5b1461026657806392568b11146102915780639d1b464a146102ce576100f3565b8063352c35b3116100c6578063352c35b3146101b4578063564566a8146101df57806368742da61461020a5780636e0dab0d14610233576100f3565b806307c168f3146100f857806318160ddd14610135578063238ac9331461016057806323bc8cf41461018b575b600080fd5b34801561010457600080fd5b5061011f600480360381019061011a91906112cf565b61038d565b60405161012c9190611331565b60405180910390f35b34801561014157600080fd5b5061014a6103d5565b6040516101579190611331565b60405180910390f35b34801561016c57600080fd5b506101756103db565b604051610182919061138d565b60405180910390f35b34801561019757600080fd5b506101b260048036038101906101ad91906113d4565b610401565b005b3480156101c057600080fd5b506101c96104a1565b6040516101d69190611431565b60405180910390f35b3480156101eb57600080fd5b506101f46104a6565b6040516102019190611467565b60405180910390f35b34801561021657600080fd5b50610231600480360381019061022c91906114c0565b6104b9565b005b61024d600480360381019061024891906115c4565b610555565b005b34801561025b57600080fd5b50610264610a3c565b005b34801561027257600080fd5b5061027b610a50565b604051610288919061138d565b60405180910390f35b34801561029d57600080fd5b506102b860048036038101906102b391906116a3565b610a79565b6040516102c59190611331565b60405180910390f35b3480156102da57600080fd5b506102e3610a91565b6040516102f09190611331565b60405180910390f35b34801561030557600080fd5b50610320600480360381019061031b91906116a3565b610a97565b005b34801561032e57600080fd5b50610337610be2565b6040516103449190611331565b60405180910390f35b34801561035957600080fd5b50610362610be8565b005b34801561037057600080fd5b5061038b600480360381019061038691906116a3565b610c5a565b005b600080826040516020016103a19190611741565b6040516020818303038152906040528051906020012090506007600082815260200190815260200160002054915050919050565b60035481565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610409610cdd565b600560149054906101000a900460ff1615610459576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610450906117b5565b60405180910390fd5b8160028190555080600381905550600060048190555080827f4e77aed669acf2dafb1845059a1596bc23b84fb6195807841abb4b22c6b9808a60405160405180910390a35050565b600281565b600560149054906101000a900460ff1681565b6104c1610cdd565b60004790508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561050c573d6000803e3d6000fd5b508173ffffffffffffffffffffffffffffffffffffffff16817f6141b54b56b8a52a8c6f5cd2a857f6117b18ffbf4d46bd3106f300a839cbf5ea60405160405180910390a35050565b61055d610d5b565b600560149054906101000a900460ff166105ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a390611821565b60405180910390fd5b600354600454106105f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105e99061188d565b60405180910390fd5b8360025461060091906118dc565b3414610641576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106389061196a565b60405180910390fd5b60068160405161065191906119d1565b908152602001604051809103902060009054906101000a900460ff16156106ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a490611a5a565b60405180910390fd5b600284600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546106fa9190611a7a565b111561073b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073290611afa565b60405180910390fd5b60008560405160200161074e9190611741565b60405160208183030381529060405280519060200120905060006007600083815260200190815260200160002054905060008611801561079e575080600261ffff1661079a9190611b1a565b8611155b6107dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d490611bc0565b60405180910390fd5b6000338888886040516020016107f69493929190611c49565b604051602081830303815290604052805190602001209050600061081982610daa565b905085811461085d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085490611cdf565b60405180910390fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108a98688610de090919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16146108ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f690611d4b565b60405180910390fd5b600160068660405161091191906119d1565b908152602001604051809103902060006101000a81548160ff02191690831515021790555087600460008282546109489190611a7a565b92505081905550876007600086815260200190815260200160002060008282546109729190611a7a565b9250508190555087600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109c89190611a7a565b92505081905550886040516109dd9190611741565b6040518091039020883373ffffffffffffffffffffffffffffffffffffffff167f5a3c92b7a559aa67b568e9705334cfd0394b8b18e9fe795cc9858b338b6c583e60405160405180910390a450505050610a35610e07565b5050505050565b610a44610cdd565b610a4e6000610e10565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60086020528060005260406000206000915090505481565b60025481565b610a9f610cdd565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0590611db7565b60405180910390fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9590611e23565b60405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60045481565b610bf0610cdd565b600560149054906101000a900460ff1615600560146101000a81548160ff021916908315150217905550600560149054906101000a900460ff1615157f1fc466dae96e61aa16f284bedd01e08ffd4c11b154893b64fb405c13544eb49f60405160405180910390a2565b610c62610cdd565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610cd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc890611eb5565b60405180910390fd5b610cda81610e10565b50565b610ce5610ed4565b73ffffffffffffffffffffffffffffffffffffffff16610d03610a50565b73ffffffffffffffffffffffffffffffffffffffff1614610d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5090611f21565b60405180910390fd5b565b600260015403610da0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9790611f8d565b60405180910390fd5b6002600181905550565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b6000806000610def8585610edc565b91509150610dfc81610f2d565b819250505092915050565b60018081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000806041835103610f1d5760008060006020860151925060408601519150606086015160001a9050610f1187828585611093565b94509450505050610f26565b60006002915091505b9250929050565b60006004811115610f4157610f40611fad565b5b816004811115610f5457610f53611fad565b5b03156110905760016004811115610f6e57610f6d611fad565b5b816004811115610f8157610f80611fad565b5b03610fc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb890612028565b60405180910390fd5b60026004811115610fd557610fd4611fad565b5b816004811115610fe857610fe7611fad565b5b03611028576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101f90612094565b60405180910390fd5b6003600481111561103c5761103b611fad565b5b81600481111561104f5761104e611fad565b5b0361108f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108690612126565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156110ce57600060039150915061116c565b6000600187878787604051600081526020016040526040516110f39493929190612171565b6020604051602081039080840390855afa158015611115573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111635760006001925092505061116c565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6111dc82611193565b810181811067ffffffffffffffff821117156111fb576111fa6111a4565b5b80604052505050565b600061120e611175565b905061121a82826111d3565b919050565b600067ffffffffffffffff82111561123a576112396111a4565b5b61124382611193565b9050602081019050919050565b82818337600083830152505050565b600061127261126d8461121f565b611204565b90508281526020810184848401111561128e5761128d61118e565b5b611299848285611250565b509392505050565b600082601f8301126112b6576112b5611189565b5b81356112c684826020860161125f565b91505092915050565b6000602082840312156112e5576112e461117f565b5b600082013567ffffffffffffffff81111561130357611302611184565b5b61130f848285016112a1565b91505092915050565b6000819050919050565b61132b81611318565b82525050565b60006020820190506113466000830184611322565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006113778261134c565b9050919050565b6113878161136c565b82525050565b60006020820190506113a2600083018461137e565b92915050565b6113b181611318565b81146113bc57600080fd5b50565b6000813590506113ce816113a8565b92915050565b600080604083850312156113eb576113ea61117f565b5b60006113f9858286016113bf565b925050602061140a858286016113bf565b9150509250929050565b600061ffff82169050919050565b61142b81611414565b82525050565b60006020820190506114466000830184611422565b92915050565b60008115159050919050565b6114618161144c565b82525050565b600060208201905061147c6000830184611458565b92915050565b600061148d8261134c565b9050919050565b61149d81611482565b81146114a857600080fd5b50565b6000813590506114ba81611494565b92915050565b6000602082840312156114d6576114d561117f565b5b60006114e4848285016114ab565b91505092915050565b6000819050919050565b611500816114ed565b811461150b57600080fd5b50565b60008135905061151d816114f7565b92915050565b600067ffffffffffffffff82111561153e5761153d6111a4565b5b61154782611193565b9050602081019050919050565b600061156761156284611523565b611204565b9050828152602081018484840111156115835761158261118e565b5b61158e848285611250565b509392505050565b600082601f8301126115ab576115aa611189565b5b81356115bb848260208601611554565b91505092915050565b600080600080600060a086880312156115e0576115df61117f565b5b600086013567ffffffffffffffff8111156115fe576115fd611184565b5b61160a888289016112a1565b955050602061161b888289016113bf565b945050604061162c888289016113bf565b935050606061163d8882890161150e565b925050608086013567ffffffffffffffff81111561165e5761165d611184565b5b61166a88828901611596565b9150509295509295909350565b6116808161136c565b811461168b57600080fd5b50565b60008135905061169d81611677565b92915050565b6000602082840312156116b9576116b861117f565b5b60006116c78482850161168e565b91505092915050565b600081519050919050565b600081905092915050565b60005b838110156117045780820151818401526020810190506116e9565b60008484015250505050565b600061171b826116d0565b61172581856116db565b93506117358185602086016116e6565b80840191505092915050565b600061174d8284611710565b915081905092915050565b600082825260208201905092915050565b7f43616e6e6f74206368616e676520647572696e67206163746976652073616c65600082015250565b600061179f602083611758565b91506117aa82611769565b602082019050919050565b600060208201905081810360008301526117ce81611792565b9050919050565b7f53616c65206973206e6f74206163746976650000000000000000000000000000600082015250565b600061180b601283611758565b9150611816826117d5565b602082019050919050565b6000602082019050818103600083015261183a816117fe565b9050919050565b7f416c6c204e465473207265736572766564000000000000000000000000000000600082015250565b6000611877601183611758565b915061188282611841565b602082019050919050565b600060208201905081810360008301526118a68161186a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006118e782611318565b91506118f283611318565b925082820261190081611318565b91508282048414831517611917576119166118ad565b5b5092915050565b7f496e636f72726563742045544820616d6f756e74000000000000000000000000600082015250565b6000611954601483611758565b915061195f8261191e565b602082019050919050565b6000602082019050818103600083015261198381611947565b9050919050565b600081519050919050565b600081905092915050565b60006119ab8261198a565b6119b58185611995565b93506119c58185602086016116e6565b80840191505092915050565b60006119dd82846119a0565b915081905092915050565b7f436f6e74726163743a205369676e617475726520616c7265616479207573656460008201527f2100000000000000000000000000000000000000000000000000000000000000602082015250565b6000611a44602183611758565b9150611a4f826119e8565b604082019050919050565b60006020820190508181036000830152611a7381611a37565b9050919050565b6000611a8582611318565b9150611a9083611318565b9250828201905080821115611aa857611aa76118ad565b5b92915050565b7f43616e6e6f74206d696e74206d6f7265207468616e2074776f204e4654730000600082015250565b6000611ae4601e83611758565b9150611aef82611aae565b602082019050919050565b60006020820190508181036000830152611b1381611ad7565b9050919050565b6000611b2582611318565b9150611b3083611318565b9250828203905081811115611b4857611b476118ad565b5b92915050565b7f496e76616c6964207175616e74697479206f7220636f64652066756c6c79207260008201527f6573657276656400000000000000000000000000000000000000000000000000602082015250565b6000611baa602783611758565b9150611bb582611b4e565b604082019050919050565b60006020820190508181036000830152611bd981611b9d565b9050919050565b60008160601b9050919050565b6000611bf882611be0565b9050919050565b6000611c0a82611bed565b9050919050565b611c22611c1d8261136c565b611bff565b82525050565b6000819050919050565b611c43611c3e82611318565b611c28565b82525050565b6000611c558287611c11565b601482019150611c658286611710565b9150611c718285611c32565b602082019150611c818284611c32565b60208201915081905095945050505050565b7f496e76616c6964206d6573736167652068617368210000000000000000000000600082015250565b6000611cc9601583611758565b9150611cd482611c93565b602082019050919050565b60006020820190508181036000830152611cf881611cbc565b9050919050565b7f496e76616c6964207369676e6572210000000000000000000000000000000000600082015250565b6000611d35600f83611758565b9150611d4082611cff565b602082019050919050565b60006020820190508181036000830152611d6481611d28565b9050919050565b7f496e76616c696420416464726573730000000000000000000000000000000000600082015250565b6000611da1600f83611758565b9150611dac82611d6b565b602082019050919050565b60006020820190508181036000830152611dd081611d94565b9050919050565b7f5369676e657220616c7265616479207365740000000000000000000000000000600082015250565b6000611e0d601283611758565b9150611e1882611dd7565b602082019050919050565b60006020820190508181036000830152611e3c81611e00565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611e9f602683611758565b9150611eaa82611e43565b604082019050919050565b60006020820190508181036000830152611ece81611e92565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611f0b602083611758565b9150611f1682611ed5565b602082019050919050565b60006020820190508181036000830152611f3a81611efe565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611f77601f83611758565b9150611f8282611f41565b602082019050919050565b60006020820190508181036000830152611fa681611f6a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000612012601883611758565b915061201d82611fdc565b602082019050919050565b6000602082019050818103600083015261204181612005565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b600061207e601f83611758565b915061208982612048565b602082019050919050565b600060208201905081810360008301526120ad81612071565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000612110602283611758565b915061211b826120b4565b604082019050919050565b6000602082019050818103600083015261213f81612103565b9050919050565b61214f816114ed565b82525050565b600060ff82169050919050565b61216b81612155565b82525050565b60006080820190506121866000830187612146565b6121936020830186612162565b6121a06040830185612146565b6121ad6060830184612146565b9594505050505056fea2646970667358221220029d0f0381ebe9e37df9fe4a4a1cf8fe67c9a156da688d9efa163c8dc8c4bb9764736f6c6343000813003300000000000000000000000060676eb6a621c154fc8d9660219a8bd5062c1925

Deployed Bytecode

0x6080604052600436106100f35760003560e01c8063715018a61161008a578063a7ecd37e11610059578063a7ecd37e146102f9578063c71b0e1c14610322578063daaeec861461034d578063f2fde38b14610364576100f3565b8063715018a61461024f5780638da5cb5b1461026657806392568b11146102915780639d1b464a146102ce576100f3565b8063352c35b3116100c6578063352c35b3146101b4578063564566a8146101df57806368742da61461020a5780636e0dab0d14610233576100f3565b806307c168f3146100f857806318160ddd14610135578063238ac9331461016057806323bc8cf41461018b575b600080fd5b34801561010457600080fd5b5061011f600480360381019061011a91906112cf565b61038d565b60405161012c9190611331565b60405180910390f35b34801561014157600080fd5b5061014a6103d5565b6040516101579190611331565b60405180910390f35b34801561016c57600080fd5b506101756103db565b604051610182919061138d565b60405180910390f35b34801561019757600080fd5b506101b260048036038101906101ad91906113d4565b610401565b005b3480156101c057600080fd5b506101c96104a1565b6040516101d69190611431565b60405180910390f35b3480156101eb57600080fd5b506101f46104a6565b6040516102019190611467565b60405180910390f35b34801561021657600080fd5b50610231600480360381019061022c91906114c0565b6104b9565b005b61024d600480360381019061024891906115c4565b610555565b005b34801561025b57600080fd5b50610264610a3c565b005b34801561027257600080fd5b5061027b610a50565b604051610288919061138d565b60405180910390f35b34801561029d57600080fd5b506102b860048036038101906102b391906116a3565b610a79565b6040516102c59190611331565b60405180910390f35b3480156102da57600080fd5b506102e3610a91565b6040516102f09190611331565b60405180910390f35b34801561030557600080fd5b50610320600480360381019061031b91906116a3565b610a97565b005b34801561032e57600080fd5b50610337610be2565b6040516103449190611331565b60405180910390f35b34801561035957600080fd5b50610362610be8565b005b34801561037057600080fd5b5061038b600480360381019061038691906116a3565b610c5a565b005b600080826040516020016103a19190611741565b6040516020818303038152906040528051906020012090506007600082815260200190815260200160002054915050919050565b60035481565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610409610cdd565b600560149054906101000a900460ff1615610459576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610450906117b5565b60405180910390fd5b8160028190555080600381905550600060048190555080827f4e77aed669acf2dafb1845059a1596bc23b84fb6195807841abb4b22c6b9808a60405160405180910390a35050565b600281565b600560149054906101000a900460ff1681565b6104c1610cdd565b60004790508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561050c573d6000803e3d6000fd5b508173ffffffffffffffffffffffffffffffffffffffff16817f6141b54b56b8a52a8c6f5cd2a857f6117b18ffbf4d46bd3106f300a839cbf5ea60405160405180910390a35050565b61055d610d5b565b600560149054906101000a900460ff166105ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a390611821565b60405180910390fd5b600354600454106105f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105e99061188d565b60405180910390fd5b8360025461060091906118dc565b3414610641576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106389061196a565b60405180910390fd5b60068160405161065191906119d1565b908152602001604051809103902060009054906101000a900460ff16156106ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a490611a5a565b60405180910390fd5b600284600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546106fa9190611a7a565b111561073b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073290611afa565b60405180910390fd5b60008560405160200161074e9190611741565b60405160208183030381529060405280519060200120905060006007600083815260200190815260200160002054905060008611801561079e575080600261ffff1661079a9190611b1a565b8611155b6107dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d490611bc0565b60405180910390fd5b6000338888886040516020016107f69493929190611c49565b604051602081830303815290604052805190602001209050600061081982610daa565b905085811461085d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085490611cdf565b60405180910390fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108a98688610de090919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16146108ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f690611d4b565b60405180910390fd5b600160068660405161091191906119d1565b908152602001604051809103902060006101000a81548160ff02191690831515021790555087600460008282546109489190611a7a565b92505081905550876007600086815260200190815260200160002060008282546109729190611a7a565b9250508190555087600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109c89190611a7a565b92505081905550886040516109dd9190611741565b6040518091039020883373ffffffffffffffffffffffffffffffffffffffff167f5a3c92b7a559aa67b568e9705334cfd0394b8b18e9fe795cc9858b338b6c583e60405160405180910390a450505050610a35610e07565b5050505050565b610a44610cdd565b610a4e6000610e10565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60086020528060005260406000206000915090505481565b60025481565b610a9f610cdd565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0590611db7565b60405180910390fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9590611e23565b60405180910390fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60045481565b610bf0610cdd565b600560149054906101000a900460ff1615600560146101000a81548160ff021916908315150217905550600560149054906101000a900460ff1615157f1fc466dae96e61aa16f284bedd01e08ffd4c11b154893b64fb405c13544eb49f60405160405180910390a2565b610c62610cdd565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610cd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc890611eb5565b60405180910390fd5b610cda81610e10565b50565b610ce5610ed4565b73ffffffffffffffffffffffffffffffffffffffff16610d03610a50565b73ffffffffffffffffffffffffffffffffffffffff1614610d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5090611f21565b60405180910390fd5b565b600260015403610da0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9790611f8d565b60405180910390fd5b6002600181905550565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b6000806000610def8585610edc565b91509150610dfc81610f2d565b819250505092915050565b60018081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000806041835103610f1d5760008060006020860151925060408601519150606086015160001a9050610f1187828585611093565b94509450505050610f26565b60006002915091505b9250929050565b60006004811115610f4157610f40611fad565b5b816004811115610f5457610f53611fad565b5b03156110905760016004811115610f6e57610f6d611fad565b5b816004811115610f8157610f80611fad565b5b03610fc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb890612028565b60405180910390fd5b60026004811115610fd557610fd4611fad565b5b816004811115610fe857610fe7611fad565b5b03611028576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101f90612094565b60405180910390fd5b6003600481111561103c5761103b611fad565b5b81600481111561104f5761104e611fad565b5b0361108f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108690612126565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156110ce57600060039150915061116c565b6000600187878787604051600081526020016040526040516110f39493929190612171565b6020604051602081039080840390855afa158015611115573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111635760006001925092505061116c565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6111dc82611193565b810181811067ffffffffffffffff821117156111fb576111fa6111a4565b5b80604052505050565b600061120e611175565b905061121a82826111d3565b919050565b600067ffffffffffffffff82111561123a576112396111a4565b5b61124382611193565b9050602081019050919050565b82818337600083830152505050565b600061127261126d8461121f565b611204565b90508281526020810184848401111561128e5761128d61118e565b5b611299848285611250565b509392505050565b600082601f8301126112b6576112b5611189565b5b81356112c684826020860161125f565b91505092915050565b6000602082840312156112e5576112e461117f565b5b600082013567ffffffffffffffff81111561130357611302611184565b5b61130f848285016112a1565b91505092915050565b6000819050919050565b61132b81611318565b82525050565b60006020820190506113466000830184611322565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006113778261134c565b9050919050565b6113878161136c565b82525050565b60006020820190506113a2600083018461137e565b92915050565b6113b181611318565b81146113bc57600080fd5b50565b6000813590506113ce816113a8565b92915050565b600080604083850312156113eb576113ea61117f565b5b60006113f9858286016113bf565b925050602061140a858286016113bf565b9150509250929050565b600061ffff82169050919050565b61142b81611414565b82525050565b60006020820190506114466000830184611422565b92915050565b60008115159050919050565b6114618161144c565b82525050565b600060208201905061147c6000830184611458565b92915050565b600061148d8261134c565b9050919050565b61149d81611482565b81146114a857600080fd5b50565b6000813590506114ba81611494565b92915050565b6000602082840312156114d6576114d561117f565b5b60006114e4848285016114ab565b91505092915050565b6000819050919050565b611500816114ed565b811461150b57600080fd5b50565b60008135905061151d816114f7565b92915050565b600067ffffffffffffffff82111561153e5761153d6111a4565b5b61154782611193565b9050602081019050919050565b600061156761156284611523565b611204565b9050828152602081018484840111156115835761158261118e565b5b61158e848285611250565b509392505050565b600082601f8301126115ab576115aa611189565b5b81356115bb848260208601611554565b91505092915050565b600080600080600060a086880312156115e0576115df61117f565b5b600086013567ffffffffffffffff8111156115fe576115fd611184565b5b61160a888289016112a1565b955050602061161b888289016113bf565b945050604061162c888289016113bf565b935050606061163d8882890161150e565b925050608086013567ffffffffffffffff81111561165e5761165d611184565b5b61166a88828901611596565b9150509295509295909350565b6116808161136c565b811461168b57600080fd5b50565b60008135905061169d81611677565b92915050565b6000602082840312156116b9576116b861117f565b5b60006116c78482850161168e565b91505092915050565b600081519050919050565b600081905092915050565b60005b838110156117045780820151818401526020810190506116e9565b60008484015250505050565b600061171b826116d0565b61172581856116db565b93506117358185602086016116e6565b80840191505092915050565b600061174d8284611710565b915081905092915050565b600082825260208201905092915050565b7f43616e6e6f74206368616e676520647572696e67206163746976652073616c65600082015250565b600061179f602083611758565b91506117aa82611769565b602082019050919050565b600060208201905081810360008301526117ce81611792565b9050919050565b7f53616c65206973206e6f74206163746976650000000000000000000000000000600082015250565b600061180b601283611758565b9150611816826117d5565b602082019050919050565b6000602082019050818103600083015261183a816117fe565b9050919050565b7f416c6c204e465473207265736572766564000000000000000000000000000000600082015250565b6000611877601183611758565b915061188282611841565b602082019050919050565b600060208201905081810360008301526118a68161186a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006118e782611318565b91506118f283611318565b925082820261190081611318565b91508282048414831517611917576119166118ad565b5b5092915050565b7f496e636f72726563742045544820616d6f756e74000000000000000000000000600082015250565b6000611954601483611758565b915061195f8261191e565b602082019050919050565b6000602082019050818103600083015261198381611947565b9050919050565b600081519050919050565b600081905092915050565b60006119ab8261198a565b6119b58185611995565b93506119c58185602086016116e6565b80840191505092915050565b60006119dd82846119a0565b915081905092915050565b7f436f6e74726163743a205369676e617475726520616c7265616479207573656460008201527f2100000000000000000000000000000000000000000000000000000000000000602082015250565b6000611a44602183611758565b9150611a4f826119e8565b604082019050919050565b60006020820190508181036000830152611a7381611a37565b9050919050565b6000611a8582611318565b9150611a9083611318565b9250828201905080821115611aa857611aa76118ad565b5b92915050565b7f43616e6e6f74206d696e74206d6f7265207468616e2074776f204e4654730000600082015250565b6000611ae4601e83611758565b9150611aef82611aae565b602082019050919050565b60006020820190508181036000830152611b1381611ad7565b9050919050565b6000611b2582611318565b9150611b3083611318565b9250828203905081811115611b4857611b476118ad565b5b92915050565b7f496e76616c6964207175616e74697479206f7220636f64652066756c6c79207260008201527f6573657276656400000000000000000000000000000000000000000000000000602082015250565b6000611baa602783611758565b9150611bb582611b4e565b604082019050919050565b60006020820190508181036000830152611bd981611b9d565b9050919050565b60008160601b9050919050565b6000611bf882611be0565b9050919050565b6000611c0a82611bed565b9050919050565b611c22611c1d8261136c565b611bff565b82525050565b6000819050919050565b611c43611c3e82611318565b611c28565b82525050565b6000611c558287611c11565b601482019150611c658286611710565b9150611c718285611c32565b602082019150611c818284611c32565b60208201915081905095945050505050565b7f496e76616c6964206d6573736167652068617368210000000000000000000000600082015250565b6000611cc9601583611758565b9150611cd482611c93565b602082019050919050565b60006020820190508181036000830152611cf881611cbc565b9050919050565b7f496e76616c6964207369676e6572210000000000000000000000000000000000600082015250565b6000611d35600f83611758565b9150611d4082611cff565b602082019050919050565b60006020820190508181036000830152611d6481611d28565b9050919050565b7f496e76616c696420416464726573730000000000000000000000000000000000600082015250565b6000611da1600f83611758565b9150611dac82611d6b565b602082019050919050565b60006020820190508181036000830152611dd081611d94565b9050919050565b7f5369676e657220616c7265616479207365740000000000000000000000000000600082015250565b6000611e0d601283611758565b9150611e1882611dd7565b602082019050919050565b60006020820190508181036000830152611e3c81611e00565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611e9f602683611758565b9150611eaa82611e43565b604082019050919050565b60006020820190508181036000830152611ece81611e92565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611f0b602083611758565b9150611f1682611ed5565b602082019050919050565b60006020820190508181036000830152611f3a81611efe565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611f77601f83611758565b9150611f8282611f41565b602082019050919050565b60006020820190508181036000830152611fa681611f6a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000612012601883611758565b915061201d82611fdc565b602082019050919050565b6000602082019050818103600083015261204181612005565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b600061207e601f83611758565b915061208982612048565b602082019050919050565b600060208201905081810360008301526120ad81612071565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000612110602283611758565b915061211b826120b4565b604082019050919050565b6000602082019050818103600083015261213f81612103565b9050919050565b61214f816114ed565b82525050565b600060ff82169050919050565b61216b81612155565b82525050565b60006080820190506121866000830187612146565b6121936020830186612162565b6121a06040830185612146565b6121ad6060830184612146565b9594505050505056fea2646970667358221220029d0f0381ebe9e37df9fe4a4a1cf8fe67c9a156da688d9efa163c8dc8c4bb9764736f6c63430008130033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000060676eb6a621c154fc8d9660219a8bd5062c1925

-----Decoded View---------------
Arg [0] : _signer (address): 0x60676Eb6A621c154fC8d9660219A8bd5062C1925

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000060676eb6a621c154fc8d9660219a8bd5062c1925


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.