ETH Price: $2,945.46 (-5.61%)
Gas: 9 Gwei

Contract

0x759C3611afb939609b4f48158256370C44ed60b4
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Transfer Ownersh...156701482022-10-03 20:56:11640 days ago1664830571IN
Non-Fungible Films: Minter
0 ETH0.0004446615.31200638
Mint Whitelist150272812022-06-26 4:47:31740 days ago1656218851IN
Non-Fungible Films: Minter
0 ETH0.0005013616.11487892
Mint Whitelist150272812022-06-26 4:47:31740 days ago1656218851IN
Non-Fungible Films: Minter
0 ETH0.0005013616.11487892
Mint149524232022-06-12 21:42:09753 days ago1655070129IN
Non-Fungible Films: Minter
0 ETH0.0010103829.73735154
Mint149469582022-06-11 23:17:19754 days ago1654989439IN
Non-Fungible Films: Minter
0 ETH0.00431248126.9236685
Mint Whitelist149468202022-06-11 22:42:18754 days ago1654987338IN
Non-Fungible Films: Minter
0 ETH0.0007096222.8264399
Mint149460202022-06-11 19:34:40754 days ago1654976080IN
Non-Fungible Films: Minter
0 ETH0.0014122141.56388681
Mint149456042022-06-11 17:55:57754 days ago1654970157IN
Non-Fungible Films: Minter
0 ETH0.0014047341.3436212
Mint149456032022-06-11 17:55:45754 days ago1654970145IN
Non-Fungible Films: Minter
0 ETH0.0014230641.88316622
Mint149456032022-06-11 17:55:45754 days ago1654970145IN
Non-Fungible Films: Minter
0 ETH0.0014230641.88316622
Mint149456032022-06-11 17:55:45754 days ago1654970145IN
Non-Fungible Films: Minter
0 ETH0.0014230641.88316622
Mint149456032022-06-11 17:55:45754 days ago1654970145IN
Non-Fungible Films: Minter
0 ETH0.0014230641.88316622
Mint149456032022-06-11 17:55:45754 days ago1654970145IN
Non-Fungible Films: Minter
0 ETH0.0014230641.88316622
Mint149444342022-06-11 13:11:05755 days ago1654953065IN
Non-Fungible Films: Minter
0 ETH0.0010836331.89309592
Mint149419722022-06-11 3:03:29755 days ago1654916609IN
Non-Fungible Films: Minter
0 ETH0.0010840231.90455468
Mint149412912022-06-11 0:05:48755 days ago1654905948IN
Non-Fungible Films: Minter
0 ETH0.0028791284.73757701
Mint Whitelist149409912022-06-10 22:54:01755 days ago1654901641IN
Non-Fungible Films: Minter
0 ETH0.0008087525.99495725
Mint149409402022-06-10 22:41:53755 days ago1654900913IN
Non-Fungible Films: Minter
0 ETH0.00638767188
Mint Whitelist149409392022-06-10 22:41:35755 days ago1654900895IN
Non-Fungible Films: Minter
0 ETH0.0008760728.15876921
Mint Whitelist149409322022-06-10 22:40:48755 days ago1654900848IN
Non-Fungible Films: Minter
0 ETH0.0009295529.90087835
Mint149408552022-06-10 22:21:28755 days ago1654899688IN
Non-Fungible Films: Minter
0 ETH0.0012231736
Mint Whitelist149408542022-06-10 22:21:27755 days ago1654899687IN
Non-Fungible Films: Minter
0 ETH0.0011688137.58250037
Mint149408422022-06-10 22:19:10755 days ago1654899550IN
Non-Fungible Films: Minter
0 ETH0.0019389257.06584879
Mint149408262022-06-10 22:15:15755 days ago1654899315IN
Non-Fungible Films: Minter
0 ETH0.0015289645
Mint149408172022-06-10 22:13:08755 days ago1654899188IN
Non-Fungible Films: Minter
0 ETH0.0016289547.94290464
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NonFungibleFilmsCastAndCrewPassMinter

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : NonFungibleFilmsCastAndCrewPassMinter.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./INonFungibleFilmsCastAndCrewPassToken.sol";
import "@openzeppelin/contracts/utils/Address.sol"; 

contract NonFungibleFilmsCastAndCrewPassMinter is Ownable, ReentrancyGuard {

    // ======== Supply =========
    uint256 public maxTokens;
    uint256 public constant MAX_MINTS_PER_TRANSACTION = 1;

    // ======== Sale Status =========
    bool public whitelistSaleIsActive = false;
    bool public publicSaleIsActive = false;

    // ======== Claim Tracking =========
    mapping(address => uint256) public whitelistClaimed;

    // ======== Whitelist Validation =========
    bytes32 public whitelistMerkleRoot;

    // ======== External Storage Contract =========
    INonFungibleFilmsCastAndCrewPassToken public immutable token;

    // ======== Constructor =========
    constructor(address contractAddress,
                uint256 tokenSupply) {
        token = INonFungibleFilmsCastAndCrewPassToken(contractAddress);
        maxTokens = tokenSupply;
    }

    // ======== Modifier Checks =========
    modifier isWhitelistMerkleRootSet() {
        require(whitelistMerkleRoot != 0, "Whitelist merkle root not set!");
        _;
    }

    modifier isValidMerkleProof(address _address, bytes32[] calldata merkleProof, uint256 quantity) {
        require(
            MerkleProof.verify(
                merkleProof, 
                whitelistMerkleRoot, 
                keccak256(abi.encodePacked(keccak256(abi.encodePacked(_address, quantity)))
                )
            ), 
            "Address is not on whitelist!");
        _;
    }
    
    modifier isSupplyAvailable(uint256 numberOfTokens) {
        uint256 supply = token.tokenCount();
        require(supply + numberOfTokens <= maxTokens, "Exceeds max token supply!");
        _;
    }
    
    modifier isWhitelistSaleActive() {
        require(whitelistSaleIsActive, "Whitelist sale is not active!");
        require(!publicSaleIsActive, "Public sale is active!");
        _;
    }
    
    modifier isPublicSaleActive() {
        require(!whitelistSaleIsActive, "Whitelist sale is active!");
        require(publicSaleIsActive, "Public sale is not active!");
        _;
    }
    
    modifier isWhitelistSpotsRemaining(uint amount) {
        require(whitelistClaimed[msg.sender] < amount, "No more whitelist mints remaining!");
        _;
    }

    // ======== Mint Functions =========
    /// @notice Allows a whitelisted user to mint 
    /// @param merkleProof The merkle proof to check whitelist access
    /// @param requested The amount of tokens user wants to mint in this transaction
    /// @param quantityAllowed The amount of tokens user is able to mint, checks against the merkleroot
    function mintWhitelist(bytes32[] calldata merkleProof, uint requested, uint quantityAllowed) public
        isWhitelistSaleActive()
        isWhitelistMerkleRootSet()
        isValidMerkleProof(msg.sender, merkleProof, quantityAllowed) 
        isSupplyAvailable(requested) 
        isWhitelistSpotsRemaining(quantityAllowed)
        nonReentrant {            
            token.mint(requested, msg.sender);
            whitelistClaimed[msg.sender] += requested;
    }

    /// @notice Allows any user to mint one token per transaction
    function mint() public
        isPublicSaleActive()
        isSupplyAvailable(MAX_MINTS_PER_TRANSACTION) 
        nonReentrant {      
            require(msg.sender == tx.origin, "Mint: not allowed from contract");
            token.mint(MAX_MINTS_PER_TRANSACTION, msg.sender);
    }

    /// @notice Allows the dev team to mint tokens
    /// @param _to The address where minted tokens should be sent
    /// @param _reserveAmount the amount of tokens to mint
    function mintTeamTokens(address _to, uint256 _reserveAmount) public 
        onlyOwner 
        isSupplyAvailable(_reserveAmount) {
            token.mint(_reserveAmount, _to);
    }

    // ======== Whitelisting =========
    /// @notice Allows the dev team to set the merkle root used for whitelist
    /// @param merkleRoot The merkle root generated offchain
    function setWhitelistMerkleRoot(bytes32 merkleRoot) external onlyOwner {
        whitelistMerkleRoot = merkleRoot;
    }

    /// @notice Function to check if a user is whitelisted
    /// @param _address The address to check
    /// @param  merkleProof The merkle proof generated offchain
    /// @param  quantityAllowed The number of tokens a user thinks they can mint
    function isWhitelisted(address _address, bytes32[] calldata merkleProof, uint quantityAllowed) external view
        isValidMerkleProof(_address, merkleProof, quantityAllowed) 
        returns (bool) {            
            return true;
    }

    /// @notice Function to check the number of tokens a user has minted
    /// @param _address The address to check
    function isWhitelistClaimed(address _address) external view returns (uint) {
        return whitelistClaimed[_address];
    }

    // ======== State Management =========
    /// @notice Function to flip sale status
    function flipWhitelistSaleStatus() public onlyOwner {
        whitelistSaleIsActive = !whitelistSaleIsActive;
    }

    function flipPublicSaleStatus() public onlyOwner {
        publicSaleIsActive = !publicSaleIsActive;
    }
 
    // ======== Token Supply Management=========
    /// @notice Function to adjust max token supply
    /// @param newMaxTokenSupply The new token supply
    function adjustTokenSupply(uint256 newMaxTokenSupply) external onlyOwner {
        require(newMaxTokenSupply >= token.tokenCount(), "New token supply must be greater than or equal to token count!");
        require(maxTokens > newMaxTokenSupply, "Max token supply can only be decreased!");
        maxTokens = newMaxTokenSupply;
    }
}

File 2 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 7 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 4 of 7 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 5 of 7 : INonFungibleFilmsCastAndCrewPassToken.sol
// Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721
// SPDX-License-Identifier: MIT
/// @title Interface for NonFungibleHeroesComicToken

pragma solidity ^0.8.13;

abstract contract INonFungibleFilmsCastAndCrewPassToken {

    function setProvenanceHash(string memory _provenanceHash) virtual external;

    function mint(uint256 _count, address _recipient) virtual external;

    function setBaseURI(string memory baseURI) virtual external;

    function updateMinter(address _minter) virtual external;

    function lockMinter() virtual external;

    function tokenCount() virtual external returns (uint256);
}

File 6 of 7 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 7 of 7 : Context.sol
// 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"MAX_MINTS_PER_TRANSACTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxTokenSupply","type":"uint256"}],"name":"adjustTokenSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPublicSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipWhitelistSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isWhitelistClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"quantityAllowed","type":"uint256"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_reserveAmount","type":"uint256"}],"name":"mintTeamTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"requested","type":"uint256"},{"internalType":"uint256","name":"quantityAllowed","type":"uint256"}],"name":"mintWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract INonFungibleFilmsCastAndCrewPassToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60a06040526000600360006101000a81548160ff0219169083151502179055506000600360016101000a81548160ff0219169083151502179055503480156200004757600080fd5b50604051620024a4380380620024a483398181016040528101906200006d919062000248565b6200008d62000081620000d760201b60201c565b620000df60201b60201c565b600180819055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508060028190555050506200028f565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001d582620001a8565b9050919050565b620001e781620001c8565b8114620001f357600080fd5b50565b6000815190506200020781620001dc565b92915050565b6000819050919050565b62000222816200020d565b81146200022e57600080fd5b50565b600081519050620002428162000217565b92915050565b60008060408385031215620002625762000261620001a3565b5b60006200027285828601620001f6565b9250506020620002858582860162000231565b9150509250929050565b6080516121c8620002dc60003960008181610407015281816105a501528181610806015281816109b801528181610bd601528181610cb901528181610fbe015261132201526121c86000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c8063a371a062116100ad578063bd32fb6611610071578063bd32fb6614610298578063db4bec44146102b4578063e8315742146102e4578063f2fde38b14610302578063fc0c546a1461031e57610121565b8063a371a06214610206578063a48b34c914610236578063aa98e0c614610254578063ac621b0f14610272578063b5b781c51461028e57610121565b80634da3cc4a116100f45780634da3cc4a146101885780635057afb414610192578063715018a6146101ae5780638521b8e3146101b85780638da5cb5b146101e857610121565b80630fcf2e751461012657806310b5454d146101445780631249c58b146101625780632ef2b9e01461016c575b600080fd5b61012e61033c565b60405161013b91906114ce565b60405180910390f35b61014c61034f565b60405161015991906114ce565b60405180910390f35b61016a610362565b005b6101866004803603810190610181919061158e565b61063c565b005b610190610aad565b005b6101ac60048036038101906101a79190611660565b610b55565b005b6101b6610d4a565b005b6101d260048036038101906101cd91906116a0565b610dd2565b6040516101df91906116dc565b60405180910390f35b6101f0610e1b565b6040516101fd9190611706565b60405180910390f35b610220600480360381019061021b9190611721565b610e44565b60405161022d91906114ce565b60405180910390f35b61023e610f35565b60405161024b91906116dc565b60405180910390f35b61025c610f3a565b60405161026991906117ae565b60405180910390f35b61028c600480360381019061028791906117c9565b610f40565b005b6102966110dd565b005b6102b260048036038101906102ad9190611822565b611185565b005b6102ce60048036038101906102c991906116a0565b61120b565b6040516102db91906116dc565b60405180910390f35b6102ec611223565b6040516102f991906116dc565b60405180910390f35b61031c600480360381019061031791906116a0565b611229565b005b610326611320565b60405161033391906118ae565b60405180910390f35b600360019054906101000a900460ff1681565b600360009054906101000a900460ff1681565b600360009054906101000a900460ff16156103b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a990611926565b60405180910390fd5b600360019054906101000a900460ff16610401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f890611992565b60405180910390fd5b600160007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16639f181b5e6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610472573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049691906119c7565b905060025482826104a79190611a23565b11156104e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104df90611ac5565b60405180910390fd5b60026001540361052d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052490611b31565b60405180910390fd5b60026001819055503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146105a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059a90611b9d565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166394bf804d6001336040518363ffffffff1660e01b81526004016105ff929190611bbd565b600060405180830381600087803b15801561061957600080fd5b505af115801561062d573d6000803e3d6000fd5b50505050600180819055505050565b600360009054906101000a900460ff1661068b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068290611c32565b60405180910390fd5b600360019054906101000a900460ff16156106db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d290611c9e565b60405180910390fd5b6000801b60055403610722576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071990611d0a565b60405180910390fd5b338484836107c2838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506005548684604051602001610781929190611d93565b604051602081830303815290604052805190602001206040516020016107a79190611de0565b60405160208183030381529060405280519060200120611344565b610801576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f890611e47565b60405180910390fd5b8560007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16639f181b5e6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610871573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089591906119c7565b905060025482826108a69190611a23565b11156108e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108de90611ac5565b60405180910390fd5b8680600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410610969576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096090611ed9565b60405180910390fd5b6002600154036109ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a590611b31565b60405180910390fd5b60026001819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166394bf804d8a336040518363ffffffff1660e01b8152600401610a11929190611bbd565b600060405180830381600087803b158015610a2b57600080fd5b505af1158015610a3f573d6000803e3d6000fd5b5050505088600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a929190611a23565b92505081905550600180819055505050505050505050505050565b610ab561135b565b73ffffffffffffffffffffffffffffffffffffffff16610ad3610e1b565b73ffffffffffffffffffffffffffffffffffffffff1614610b29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2090611f45565b60405180910390fd5b600360009054906101000a900460ff1615600360006101000a81548160ff021916908315150217905550565b610b5d61135b565b73ffffffffffffffffffffffffffffffffffffffff16610b7b610e1b565b73ffffffffffffffffffffffffffffffffffffffff1614610bd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc890611f45565b60405180910390fd5b8060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16639f181b5e6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610c41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6591906119c7565b90506002548282610c769190611a23565b1115610cb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cae90611ac5565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166394bf804d84866040518363ffffffff1660e01b8152600401610d12929190611bbd565b600060405180830381600087803b158015610d2c57600080fd5b505af1158015610d40573d6000803e3d6000fd5b5050505050505050565b610d5261135b565b73ffffffffffffffffffffffffffffffffffffffff16610d70610e1b565b73ffffffffffffffffffffffffffffffffffffffff1614610dc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbd90611f45565b60405180910390fd5b610dd06000611363565b565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600084848484610ee6838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506005548684604051602001610ea5929190611d93565b60405160208183030381529060405280519060200120604051602001610ecb9190611de0565b60405160208183030381529060405280519060200120611344565b610f25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1c90611e47565b60405180910390fd5b6001945050505050949350505050565b600181565b60055481565b610f4861135b565b73ffffffffffffffffffffffffffffffffffffffff16610f66610e1b565b73ffffffffffffffffffffffffffffffffffffffff1614610fbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb390611f45565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16639f181b5e6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611029573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104d91906119c7565b81101561108f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108690611fd7565b60405180910390fd5b80600254116110d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ca90612069565b60405180910390fd5b8060028190555050565b6110e561135b565b73ffffffffffffffffffffffffffffffffffffffff16611103610e1b565b73ffffffffffffffffffffffffffffffffffffffff1614611159576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115090611f45565b60405180910390fd5b600360019054906101000a900460ff1615600360016101000a81548160ff021916908315150217905550565b61118d61135b565b73ffffffffffffffffffffffffffffffffffffffff166111ab610e1b565b73ffffffffffffffffffffffffffffffffffffffff1614611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f890611f45565b60405180910390fd5b8060058190555050565b60046020528060005260406000206000915090505481565b60025481565b61123161135b565b73ffffffffffffffffffffffffffffffffffffffff1661124f610e1b565b73ffffffffffffffffffffffffffffffffffffffff16146112a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129c90611f45565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611314576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130b906120fb565b60405180910390fd5b61131d81611363565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000826113518584611427565b1490509392505050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008082905060005b845181101561149157600085828151811061144e5761144d61211b565b5b6020026020010151905080831161147057611469838261149c565b925061147d565b61147a818461149c565b92505b5080806114899061214a565b915050611430565b508091505092915050565b600082600052816020526040600020905092915050565b60008115159050919050565b6114c8816114b3565b82525050565b60006020820190506114e360008301846114bf565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112611518576115176114f3565b5b8235905067ffffffffffffffff811115611535576115346114f8565b5b602083019150836020820283011115611551576115506114fd565b5b9250929050565b6000819050919050565b61156b81611558565b811461157657600080fd5b50565b60008135905061158881611562565b92915050565b600080600080606085870312156115a8576115a76114e9565b5b600085013567ffffffffffffffff8111156115c6576115c56114ee565b5b6115d287828801611502565b945094505060206115e587828801611579565b92505060406115f687828801611579565b91505092959194509250565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061162d82611602565b9050919050565b61163d81611622565b811461164857600080fd5b50565b60008135905061165a81611634565b92915050565b60008060408385031215611677576116766114e9565b5b60006116858582860161164b565b925050602061169685828601611579565b9150509250929050565b6000602082840312156116b6576116b56114e9565b5b60006116c48482850161164b565b91505092915050565b6116d681611558565b82525050565b60006020820190506116f160008301846116cd565b92915050565b61170081611622565b82525050565b600060208201905061171b60008301846116f7565b92915050565b6000806000806060858703121561173b5761173a6114e9565b5b60006117498782880161164b565b945050602085013567ffffffffffffffff81111561176a576117696114ee565b5b61177687828801611502565b9350935050604061178987828801611579565b91505092959194509250565b6000819050919050565b6117a881611795565b82525050565b60006020820190506117c3600083018461179f565b92915050565b6000602082840312156117df576117de6114e9565b5b60006117ed84828501611579565b91505092915050565b6117ff81611795565b811461180a57600080fd5b50565b60008135905061181c816117f6565b92915050565b600060208284031215611838576118376114e9565b5b60006118468482850161180d565b91505092915050565b6000819050919050565b600061187461186f61186a84611602565b61184f565b611602565b9050919050565b600061188682611859565b9050919050565b60006118988261187b565b9050919050565b6118a88161188d565b82525050565b60006020820190506118c3600083018461189f565b92915050565b600082825260208201905092915050565b7f57686974656c6973742073616c65206973206163746976652100000000000000600082015250565b60006119106019836118c9565b915061191b826118da565b602082019050919050565b6000602082019050818103600083015261193f81611903565b9050919050565b7f5075626c69632073616c65206973206e6f742061637469766521000000000000600082015250565b600061197c601a836118c9565b915061198782611946565b602082019050919050565b600060208201905081810360008301526119ab8161196f565b9050919050565b6000815190506119c181611562565b92915050565b6000602082840312156119dd576119dc6114e9565b5b60006119eb848285016119b2565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611a2e82611558565b9150611a3983611558565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611a6e57611a6d6119f4565b5b828201905092915050565b7f45786365656473206d617820746f6b656e20737570706c792100000000000000600082015250565b6000611aaf6019836118c9565b9150611aba82611a79565b602082019050919050565b60006020820190508181036000830152611ade81611aa2565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611b1b601f836118c9565b9150611b2682611ae5565b602082019050919050565b60006020820190508181036000830152611b4a81611b0e565b9050919050565b7f4d696e743a206e6f7420616c6c6f7765642066726f6d20636f6e747261637400600082015250565b6000611b87601f836118c9565b9150611b9282611b51565b602082019050919050565b60006020820190508181036000830152611bb681611b7a565b9050919050565b6000604082019050611bd260008301856116cd565b611bdf60208301846116f7565b9392505050565b7f57686974656c6973742073616c65206973206e6f742061637469766521000000600082015250565b6000611c1c601d836118c9565b9150611c2782611be6565b602082019050919050565b60006020820190508181036000830152611c4b81611c0f565b9050919050565b7f5075626c69632073616c65206973206163746976652100000000000000000000600082015250565b6000611c886016836118c9565b9150611c9382611c52565b602082019050919050565b60006020820190508181036000830152611cb781611c7b565b9050919050565b7f57686974656c697374206d65726b6c6520726f6f74206e6f7420736574210000600082015250565b6000611cf4601e836118c9565b9150611cff82611cbe565b602082019050919050565b60006020820190508181036000830152611d2381611ce7565b9050919050565b60008160601b9050919050565b6000611d4282611d2a565b9050919050565b6000611d5482611d37565b9050919050565b611d6c611d6782611622565b611d49565b82525050565b6000819050919050565b611d8d611d8882611558565b611d72565b82525050565b6000611d9f8285611d5b565b601482019150611daf8284611d7c565b6020820191508190509392505050565b6000819050919050565b611dda611dd582611795565b611dbf565b82525050565b6000611dec8284611dc9565b60208201915081905092915050565b7f41646472657373206973206e6f74206f6e2077686974656c6973742100000000600082015250565b6000611e31601c836118c9565b9150611e3c82611dfb565b602082019050919050565b60006020820190508181036000830152611e6081611e24565b9050919050565b7f4e6f206d6f72652077686974656c697374206d696e74732072656d61696e696e60008201527f6721000000000000000000000000000000000000000000000000000000000000602082015250565b6000611ec36022836118c9565b9150611ece82611e67565b604082019050919050565b60006020820190508181036000830152611ef281611eb6565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611f2f6020836118c9565b9150611f3a82611ef9565b602082019050919050565b60006020820190508181036000830152611f5e81611f22565b9050919050565b7f4e657720746f6b656e20737570706c79206d757374206265206772656174657260008201527f207468616e206f7220657175616c20746f20746f6b656e20636f756e74210000602082015250565b6000611fc1603e836118c9565b9150611fcc82611f65565b604082019050919050565b60006020820190508181036000830152611ff081611fb4565b9050919050565b7f4d617820746f6b656e20737570706c792063616e206f6e6c792062652064656360008201527f7265617365642100000000000000000000000000000000000000000000000000602082015250565b60006120536027836118c9565b915061205e82611ff7565b604082019050919050565b6000602082019050818103600083015261208281612046565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006120e56026836118c9565b91506120f082612089565b604082019050919050565b60006020820190508181036000830152612114816120d8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061215582611558565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612187576121866119f4565b5b60018201905091905056fea2646970667358221220d2045c0cf95f78f3715c6184e4ea9ab7270d5791388f64dc79f33fd04295776764736f6c634300080d0033000000000000000000000000532e5efded726c6dde5228f35d805f531c14b0eb00000000000000000000000000000000000000000000000000000000000015b3

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101215760003560e01c8063a371a062116100ad578063bd32fb6611610071578063bd32fb6614610298578063db4bec44146102b4578063e8315742146102e4578063f2fde38b14610302578063fc0c546a1461031e57610121565b8063a371a06214610206578063a48b34c914610236578063aa98e0c614610254578063ac621b0f14610272578063b5b781c51461028e57610121565b80634da3cc4a116100f45780634da3cc4a146101885780635057afb414610192578063715018a6146101ae5780638521b8e3146101b85780638da5cb5b146101e857610121565b80630fcf2e751461012657806310b5454d146101445780631249c58b146101625780632ef2b9e01461016c575b600080fd5b61012e61033c565b60405161013b91906114ce565b60405180910390f35b61014c61034f565b60405161015991906114ce565b60405180910390f35b61016a610362565b005b6101866004803603810190610181919061158e565b61063c565b005b610190610aad565b005b6101ac60048036038101906101a79190611660565b610b55565b005b6101b6610d4a565b005b6101d260048036038101906101cd91906116a0565b610dd2565b6040516101df91906116dc565b60405180910390f35b6101f0610e1b565b6040516101fd9190611706565b60405180910390f35b610220600480360381019061021b9190611721565b610e44565b60405161022d91906114ce565b60405180910390f35b61023e610f35565b60405161024b91906116dc565b60405180910390f35b61025c610f3a565b60405161026991906117ae565b60405180910390f35b61028c600480360381019061028791906117c9565b610f40565b005b6102966110dd565b005b6102b260048036038101906102ad9190611822565b611185565b005b6102ce60048036038101906102c991906116a0565b61120b565b6040516102db91906116dc565b60405180910390f35b6102ec611223565b6040516102f991906116dc565b60405180910390f35b61031c600480360381019061031791906116a0565b611229565b005b610326611320565b60405161033391906118ae565b60405180910390f35b600360019054906101000a900460ff1681565b600360009054906101000a900460ff1681565b600360009054906101000a900460ff16156103b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a990611926565b60405180910390fd5b600360019054906101000a900460ff16610401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f890611992565b60405180910390fd5b600160007f000000000000000000000000532e5efded726c6dde5228f35d805f531c14b0eb73ffffffffffffffffffffffffffffffffffffffff16639f181b5e6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610472573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049691906119c7565b905060025482826104a79190611a23565b11156104e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104df90611ac5565b60405180910390fd5b60026001540361052d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052490611b31565b60405180910390fd5b60026001819055503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146105a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059a90611b9d565b60405180910390fd5b7f000000000000000000000000532e5efded726c6dde5228f35d805f531c14b0eb73ffffffffffffffffffffffffffffffffffffffff166394bf804d6001336040518363ffffffff1660e01b81526004016105ff929190611bbd565b600060405180830381600087803b15801561061957600080fd5b505af115801561062d573d6000803e3d6000fd5b50505050600180819055505050565b600360009054906101000a900460ff1661068b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068290611c32565b60405180910390fd5b600360019054906101000a900460ff16156106db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d290611c9e565b60405180910390fd5b6000801b60055403610722576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071990611d0a565b60405180910390fd5b338484836107c2838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506005548684604051602001610781929190611d93565b604051602081830303815290604052805190602001206040516020016107a79190611de0565b60405160208183030381529060405280519060200120611344565b610801576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f890611e47565b60405180910390fd5b8560007f000000000000000000000000532e5efded726c6dde5228f35d805f531c14b0eb73ffffffffffffffffffffffffffffffffffffffff16639f181b5e6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610871573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089591906119c7565b905060025482826108a69190611a23565b11156108e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108de90611ac5565b60405180910390fd5b8680600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410610969576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096090611ed9565b60405180910390fd5b6002600154036109ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a590611b31565b60405180910390fd5b60026001819055507f000000000000000000000000532e5efded726c6dde5228f35d805f531c14b0eb73ffffffffffffffffffffffffffffffffffffffff166394bf804d8a336040518363ffffffff1660e01b8152600401610a11929190611bbd565b600060405180830381600087803b158015610a2b57600080fd5b505af1158015610a3f573d6000803e3d6000fd5b5050505088600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a929190611a23565b92505081905550600180819055505050505050505050505050565b610ab561135b565b73ffffffffffffffffffffffffffffffffffffffff16610ad3610e1b565b73ffffffffffffffffffffffffffffffffffffffff1614610b29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2090611f45565b60405180910390fd5b600360009054906101000a900460ff1615600360006101000a81548160ff021916908315150217905550565b610b5d61135b565b73ffffffffffffffffffffffffffffffffffffffff16610b7b610e1b565b73ffffffffffffffffffffffffffffffffffffffff1614610bd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc890611f45565b60405180910390fd5b8060007f000000000000000000000000532e5efded726c6dde5228f35d805f531c14b0eb73ffffffffffffffffffffffffffffffffffffffff16639f181b5e6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610c41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6591906119c7565b90506002548282610c769190611a23565b1115610cb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cae90611ac5565b60405180910390fd5b7f000000000000000000000000532e5efded726c6dde5228f35d805f531c14b0eb73ffffffffffffffffffffffffffffffffffffffff166394bf804d84866040518363ffffffff1660e01b8152600401610d12929190611bbd565b600060405180830381600087803b158015610d2c57600080fd5b505af1158015610d40573d6000803e3d6000fd5b5050505050505050565b610d5261135b565b73ffffffffffffffffffffffffffffffffffffffff16610d70610e1b565b73ffffffffffffffffffffffffffffffffffffffff1614610dc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbd90611f45565b60405180910390fd5b610dd06000611363565b565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600084848484610ee6838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506005548684604051602001610ea5929190611d93565b60405160208183030381529060405280519060200120604051602001610ecb9190611de0565b60405160208183030381529060405280519060200120611344565b610f25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1c90611e47565b60405180910390fd5b6001945050505050949350505050565b600181565b60055481565b610f4861135b565b73ffffffffffffffffffffffffffffffffffffffff16610f66610e1b565b73ffffffffffffffffffffffffffffffffffffffff1614610fbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb390611f45565b60405180910390fd5b7f000000000000000000000000532e5efded726c6dde5228f35d805f531c14b0eb73ffffffffffffffffffffffffffffffffffffffff16639f181b5e6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611029573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104d91906119c7565b81101561108f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108690611fd7565b60405180910390fd5b80600254116110d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ca90612069565b60405180910390fd5b8060028190555050565b6110e561135b565b73ffffffffffffffffffffffffffffffffffffffff16611103610e1b565b73ffffffffffffffffffffffffffffffffffffffff1614611159576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115090611f45565b60405180910390fd5b600360019054906101000a900460ff1615600360016101000a81548160ff021916908315150217905550565b61118d61135b565b73ffffffffffffffffffffffffffffffffffffffff166111ab610e1b565b73ffffffffffffffffffffffffffffffffffffffff1614611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f890611f45565b60405180910390fd5b8060058190555050565b60046020528060005260406000206000915090505481565b60025481565b61123161135b565b73ffffffffffffffffffffffffffffffffffffffff1661124f610e1b565b73ffffffffffffffffffffffffffffffffffffffff16146112a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129c90611f45565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611314576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130b906120fb565b60405180910390fd5b61131d81611363565b50565b7f000000000000000000000000532e5efded726c6dde5228f35d805f531c14b0eb81565b6000826113518584611427565b1490509392505050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008082905060005b845181101561149157600085828151811061144e5761144d61211b565b5b6020026020010151905080831161147057611469838261149c565b925061147d565b61147a818461149c565b92505b5080806114899061214a565b915050611430565b508091505092915050565b600082600052816020526040600020905092915050565b60008115159050919050565b6114c8816114b3565b82525050565b60006020820190506114e360008301846114bf565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112611518576115176114f3565b5b8235905067ffffffffffffffff811115611535576115346114f8565b5b602083019150836020820283011115611551576115506114fd565b5b9250929050565b6000819050919050565b61156b81611558565b811461157657600080fd5b50565b60008135905061158881611562565b92915050565b600080600080606085870312156115a8576115a76114e9565b5b600085013567ffffffffffffffff8111156115c6576115c56114ee565b5b6115d287828801611502565b945094505060206115e587828801611579565b92505060406115f687828801611579565b91505092959194509250565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061162d82611602565b9050919050565b61163d81611622565b811461164857600080fd5b50565b60008135905061165a81611634565b92915050565b60008060408385031215611677576116766114e9565b5b60006116858582860161164b565b925050602061169685828601611579565b9150509250929050565b6000602082840312156116b6576116b56114e9565b5b60006116c48482850161164b565b91505092915050565b6116d681611558565b82525050565b60006020820190506116f160008301846116cd565b92915050565b61170081611622565b82525050565b600060208201905061171b60008301846116f7565b92915050565b6000806000806060858703121561173b5761173a6114e9565b5b60006117498782880161164b565b945050602085013567ffffffffffffffff81111561176a576117696114ee565b5b61177687828801611502565b9350935050604061178987828801611579565b91505092959194509250565b6000819050919050565b6117a881611795565b82525050565b60006020820190506117c3600083018461179f565b92915050565b6000602082840312156117df576117de6114e9565b5b60006117ed84828501611579565b91505092915050565b6117ff81611795565b811461180a57600080fd5b50565b60008135905061181c816117f6565b92915050565b600060208284031215611838576118376114e9565b5b60006118468482850161180d565b91505092915050565b6000819050919050565b600061187461186f61186a84611602565b61184f565b611602565b9050919050565b600061188682611859565b9050919050565b60006118988261187b565b9050919050565b6118a88161188d565b82525050565b60006020820190506118c3600083018461189f565b92915050565b600082825260208201905092915050565b7f57686974656c6973742073616c65206973206163746976652100000000000000600082015250565b60006119106019836118c9565b915061191b826118da565b602082019050919050565b6000602082019050818103600083015261193f81611903565b9050919050565b7f5075626c69632073616c65206973206e6f742061637469766521000000000000600082015250565b600061197c601a836118c9565b915061198782611946565b602082019050919050565b600060208201905081810360008301526119ab8161196f565b9050919050565b6000815190506119c181611562565b92915050565b6000602082840312156119dd576119dc6114e9565b5b60006119eb848285016119b2565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611a2e82611558565b9150611a3983611558565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611a6e57611a6d6119f4565b5b828201905092915050565b7f45786365656473206d617820746f6b656e20737570706c792100000000000000600082015250565b6000611aaf6019836118c9565b9150611aba82611a79565b602082019050919050565b60006020820190508181036000830152611ade81611aa2565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611b1b601f836118c9565b9150611b2682611ae5565b602082019050919050565b60006020820190508181036000830152611b4a81611b0e565b9050919050565b7f4d696e743a206e6f7420616c6c6f7765642066726f6d20636f6e747261637400600082015250565b6000611b87601f836118c9565b9150611b9282611b51565b602082019050919050565b60006020820190508181036000830152611bb681611b7a565b9050919050565b6000604082019050611bd260008301856116cd565b611bdf60208301846116f7565b9392505050565b7f57686974656c6973742073616c65206973206e6f742061637469766521000000600082015250565b6000611c1c601d836118c9565b9150611c2782611be6565b602082019050919050565b60006020820190508181036000830152611c4b81611c0f565b9050919050565b7f5075626c69632073616c65206973206163746976652100000000000000000000600082015250565b6000611c886016836118c9565b9150611c9382611c52565b602082019050919050565b60006020820190508181036000830152611cb781611c7b565b9050919050565b7f57686974656c697374206d65726b6c6520726f6f74206e6f7420736574210000600082015250565b6000611cf4601e836118c9565b9150611cff82611cbe565b602082019050919050565b60006020820190508181036000830152611d2381611ce7565b9050919050565b60008160601b9050919050565b6000611d4282611d2a565b9050919050565b6000611d5482611d37565b9050919050565b611d6c611d6782611622565b611d49565b82525050565b6000819050919050565b611d8d611d8882611558565b611d72565b82525050565b6000611d9f8285611d5b565b601482019150611daf8284611d7c565b6020820191508190509392505050565b6000819050919050565b611dda611dd582611795565b611dbf565b82525050565b6000611dec8284611dc9565b60208201915081905092915050565b7f41646472657373206973206e6f74206f6e2077686974656c6973742100000000600082015250565b6000611e31601c836118c9565b9150611e3c82611dfb565b602082019050919050565b60006020820190508181036000830152611e6081611e24565b9050919050565b7f4e6f206d6f72652077686974656c697374206d696e74732072656d61696e696e60008201527f6721000000000000000000000000000000000000000000000000000000000000602082015250565b6000611ec36022836118c9565b9150611ece82611e67565b604082019050919050565b60006020820190508181036000830152611ef281611eb6565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611f2f6020836118c9565b9150611f3a82611ef9565b602082019050919050565b60006020820190508181036000830152611f5e81611f22565b9050919050565b7f4e657720746f6b656e20737570706c79206d757374206265206772656174657260008201527f207468616e206f7220657175616c20746f20746f6b656e20636f756e74210000602082015250565b6000611fc1603e836118c9565b9150611fcc82611f65565b604082019050919050565b60006020820190508181036000830152611ff081611fb4565b9050919050565b7f4d617820746f6b656e20737570706c792063616e206f6e6c792062652064656360008201527f7265617365642100000000000000000000000000000000000000000000000000602082015250565b60006120536027836118c9565b915061205e82611ff7565b604082019050919050565b6000602082019050818103600083015261208281612046565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006120e56026836118c9565b91506120f082612089565b604082019050919050565b60006020820190508181036000830152612114816120d8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061215582611558565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612187576121866119f4565b5b60018201905091905056fea2646970667358221220d2045c0cf95f78f3715c6184e4ea9ab7270d5791388f64dc79f33fd04295776764736f6c634300080d0033

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

000000000000000000000000532e5efded726c6dde5228f35d805f531c14b0eb00000000000000000000000000000000000000000000000000000000000015b3

-----Decoded View---------------
Arg [0] : contractAddress (address): 0x532e5EFdeD726C6dDe5228f35d805f531c14B0eB
Arg [1] : tokenSupply (uint256): 5555

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000532e5efded726c6dde5228f35d805f531c14b0eb
Arg [1] : 00000000000000000000000000000000000000000000000000000000000015b3


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  ]

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.