ETH Price: $3,073.89 (-6.63%)
Gas: 9 Gwei

Contract

0xc1520C2369e459260D214843EB4425DA6b890c2E
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Create Prepay193492112024-03-02 18:15:35124 days ago1709403335IN
0xc1520C23...A6b890c2E
0.168 ETH0.0027732749.82257404
Create Prepay193455632024-03-02 6:01:59124 days ago1709359319IN
0xc1520C23...A6b890c2E
0.126 ETH0.0026097846.88547195
Create Prepay187593722023-12-11 0:25:11206 days ago1702254311IN
0xc1520C23...A6b890c2E
0.042 ETH0.0010699819.22248272
Create Prepay186795672023-11-29 20:11:23218 days ago1701288683IN
0xc1520C23...A6b890c2E
0.168 ETH0.0021000137.72731888
User Mint Comple...186781502023-11-29 15:26:23218 days ago1701271583IN
0xc1520C23...A6b890c2E
0 ETH0.0012274449.6339428
Create Prepay186779282023-11-29 14:40:23218 days ago1701268823IN
0xc1520C23...A6b890c2E
0.042 ETH0.0024462443.96643965
Create Prepay186779092023-11-29 14:36:35218 days ago1701268595IN
0xc1520C23...A6b890c2E
0.042 ETH0.0024921944.77297296
Create Prepay186776882023-11-29 13:52:11218 days ago1701265931IN
0xc1520C23...A6b890c2E
0.042 ETH0.0017584531.59113163
Create Prepay186765042023-11-29 9:54:11218 days ago1701251651IN
0xc1520C23...A6b890c2E
0.042 ETH0.0017491931.43146384
Create Prepay186762742023-11-29 9:07:59218 days ago1701248879IN
0xc1520C23...A6b890c2E
0.042 ETH0.0018426333.10342297
Create Prepay186758732023-11-29 7:47:35218 days ago1701244055IN
0xc1520C23...A6b890c2E
0.042 ETH0.0017407831.27358203
Create Prepay186755102023-11-29 6:34:47218 days ago1701239687IN
0xc1520C23...A6b890c2E
0.042 ETH0.001696430.47628386
Create Prepay186746542023-11-29 3:41:23218 days ago1701229283IN
0xc1520C23...A6b890c2E
0.042 ETH0.0018147332.60221631
Create Prepay186731902023-11-28 22:46:23219 days ago1701211583IN
0xc1520C23...A6b890c2E
0.168 ETH0.0022997241.31509199
Create Prepay186731852023-11-28 22:45:23219 days ago1701211523IN
0xc1520C23...A6b890c2E
0.042 ETH0.0021976339.48107565
Create Prepay186727242023-11-28 21:12:11219 days ago1701205931IN
0xc1520C23...A6b890c2E
0.042 ETH0.0030951155.60452091
Create Prepay186724852023-11-28 20:24:23219 days ago1701203063IN
0xc1520C23...A6b890c2E
0.462 ETH0.0036178364.99527721
Create Prepay186722862023-11-28 19:44:35219 days ago1701200675IN
0xc1520C23...A6b890c2E
0.084 ETH0.0029046852.18348144
Create Prepay186717842023-11-28 18:03:35219 days ago1701194615IN
0xc1520C23...A6b890c2E
0.042 ETH0.0033411560.0246715
Create Prepay186702082023-11-28 12:45:35219 days ago1701175535IN
0xc1520C23...A6b890c2E
0.042 ETH0.0015569327.97081313
Create Prepay186687252023-11-28 7:46:35219 days ago1701157595IN
0xc1520C23...A6b890c2E
0.042 ETH0.0014975426.9037893
Create Prepay186673792023-11-28 3:14:47219 days ago1701141287IN
0xc1520C23...A6b890c2E
0.042 ETH0.0022109639.72055783
Create Prepay186664202023-11-28 0:01:59219 days ago1701129719IN
0xc1520C23...A6b890c2E
0.042 ETH0.0020143236.18791866
Create Prepay186655232023-11-27 21:01:35220 days ago1701118895IN
0xc1520C23...A6b890c2E
0.042 ETH0.0018414633.08246797
Create Prepay186652602023-11-27 20:08:47220 days ago1701115727IN
0xc1520C23...A6b890c2E
0.084 ETH0.0017930832.21325187
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
193492112024-03-02 18:15:35124 days ago1709403335
0xc1520C23...A6b890c2E
0.168 ETH
193455632024-03-02 6:01:59124 days ago1709359319
0xc1520C23...A6b890c2E
0.126 ETH
187593722023-12-11 0:25:11206 days ago1702254311
0xc1520C23...A6b890c2E
0.042 ETH
186795672023-11-29 20:11:23218 days ago1701288683
0xc1520C23...A6b890c2E
0.168 ETH
186779282023-11-29 14:40:23218 days ago1701268823
0xc1520C23...A6b890c2E
0.042 ETH
186779092023-11-29 14:36:35218 days ago1701268595
0xc1520C23...A6b890c2E
0.042 ETH
186776882023-11-29 13:52:11218 days ago1701265931
0xc1520C23...A6b890c2E
0.042 ETH
186765042023-11-29 9:54:11218 days ago1701251651
0xc1520C23...A6b890c2E
0.042 ETH
186762742023-11-29 9:07:59218 days ago1701248879
0xc1520C23...A6b890c2E
0.042 ETH
186758732023-11-29 7:47:35218 days ago1701244055
0xc1520C23...A6b890c2E
0.042 ETH
186755102023-11-29 6:34:47218 days ago1701239687
0xc1520C23...A6b890c2E
0.042 ETH
186746542023-11-29 3:41:23218 days ago1701229283
0xc1520C23...A6b890c2E
0.042 ETH
186731902023-11-28 22:46:23219 days ago1701211583
0xc1520C23...A6b890c2E
0.168 ETH
186731852023-11-28 22:45:23219 days ago1701211523
0xc1520C23...A6b890c2E
0.042 ETH
186727242023-11-28 21:12:11219 days ago1701205931
0xc1520C23...A6b890c2E
0.042 ETH
186724852023-11-28 20:24:23219 days ago1701203063
0xc1520C23...A6b890c2E
0.462 ETH
186722862023-11-28 19:44:35219 days ago1701200675
0xc1520C23...A6b890c2E
0.084 ETH
186717842023-11-28 18:03:35219 days ago1701194615
0xc1520C23...A6b890c2E
0.042 ETH
186702082023-11-28 12:45:35219 days ago1701175535
0xc1520C23...A6b890c2E
0.042 ETH
186687252023-11-28 7:46:35219 days ago1701157595
0xc1520C23...A6b890c2E
0.042 ETH
186673792023-11-28 3:14:47219 days ago1701141287
0xc1520C23...A6b890c2E
0.042 ETH
186664202023-11-28 0:01:59219 days ago1701129719
0xc1520C23...A6b890c2E
0.042 ETH
186655232023-11-27 21:01:35220 days ago1701118895
0xc1520C23...A6b890c2E
0.042 ETH
186652602023-11-27 20:08:47220 days ago1701115727
0xc1520C23...A6b890c2E
0.084 ETH
186646802023-11-27 18:10:59220 days ago1701108659
0xc1520C23...A6b890c2E
0.042 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ClickCreatePrepay

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : ClickCreatePrepay.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import "openzeppelin-contracts/contracts/access/Ownable.sol";
import "openzeppelin-contracts/contracts/token/ERC1155/IERC1155.sol";

contract ClickCreatePrepay is Ownable {
    
    error NoErroneousPayments();
    error IncorrectPrePayAmount();
    error TooFewMints();
    error NoPassOwned();
    error PaymentFailed();

    event MintDone(uint256 timestamp);
    event PrepayPriceChanged(uint256 oldPrepayPrice, uint256 newPrepayPrice, uint256 timestamp);
    event PrepayCreated(address indexed prepayUser, uint256 indexed prepayAmount, address indexed passContract, uint256 passTokenId, uint256 prepayPrice, uint256 timestamp);

    address payable public prepayBeneficiary;
    uint256 public prepayPrice;
    uint256 public prepayMinMints = 1;

    IERC1155 public passContract;
    uint256 public passTokenId;

    constructor(address _prepayBeneficiary, uint256 _prepayPrice, address _passContract, uint256 _passTokenId) {
        prepayBeneficiary = payable(_prepayBeneficiary);
        prepayPrice = _prepayPrice;
        passContract = IERC1155(_passContract);
        passTokenId = _passTokenId;
    }

    function createPrepay(address prepayUser, uint256 prepayAmount) external payable {
        if (prepayAmount < prepayMinMints) {
            revert TooFewMints();
        }
        if (msg.value != prepayPrice * prepayAmount || msg.value == 0) {
            revert IncorrectPrePayAmount();
        }
        if (passContract.balanceOf(prepayUser, passTokenId) == 0) {
            revert NoPassOwned();
        }

        (bool success, ) = prepayBeneficiary.call{value: msg.value}("");
        if (!success) {
            revert PaymentFailed();
        }

        emit PrepayCreated(prepayUser, prepayAmount, address(passContract), passTokenId, prepayPrice, block.timestamp);
    }

    function userMintComplete(uint256 timestamp) external onlyOwner {
        emit MintDone(timestamp);
    }

    receive() external payable {
        revert NoErroneousPayments();
    }

    fallback() external payable {
        revert NoErroneousPayments();
    }

    function getInfo(address user) external view returns (
      uint256 balance,
      bool hasPass,
      address _prepayBeneficiary,
      uint256 _prepayPrice,
      uint256 _prepayMinMints,
      address _owner
    ) {
        balance = user.balance;
        hasPass = passContract.balanceOf(user, passTokenId) > 0;
        _prepayBeneficiary = prepayBeneficiary;
        _prepayPrice = prepayPrice;
        _prepayMinMints = prepayMinMints;
        _owner = owner();
    }

    function setPrepayBeneficiary(address payable _prepayBeneficiary) public onlyOwner {
        prepayBeneficiary = _prepayBeneficiary;
    }

    function setPrepayPrice(uint256 _prepayPrice) public onlyOwner {
        prepayPrice = _prepayPrice;
        emit PrepayPriceChanged(prepayPrice, _prepayPrice, block.timestamp);
    }

    function setPrepayMinMints(uint256 _prepayMinMints) public onlyOwner {
        prepayMinMints = _prepayMinMints;
    }

    function setPassContract(address _passContract) public onlyOwner {
        passContract = IERC1155(_passContract);
    }

    function setPassTokenId(uint256 _passTokenId) public onlyOwner {
        passTokenId = _passTokenId;
    }

}

File 2 of 5 : 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 3 of 5 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] calldata accounts,
        uint256[] calldata ids
    ) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 4 of 5 : 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;
    }
}

File 5 of 5 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin-contracts/contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_prepayBeneficiary","type":"address"},{"internalType":"uint256","name":"_prepayPrice","type":"uint256"},{"internalType":"address","name":"_passContract","type":"address"},{"internalType":"uint256","name":"_passTokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"IncorrectPrePayAmount","type":"error"},{"inputs":[],"name":"NoErroneousPayments","type":"error"},{"inputs":[],"name":"NoPassOwned","type":"error"},{"inputs":[],"name":"PaymentFailed","type":"error"},{"inputs":[],"name":"TooFewMints","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"MintDone","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":"address","name":"prepayUser","type":"address"},{"indexed":true,"internalType":"uint256","name":"prepayAmount","type":"uint256"},{"indexed":true,"internalType":"address","name":"passContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"passTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"prepayPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"PrepayCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldPrepayPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPrepayPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"PrepayPriceChanged","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"prepayUser","type":"address"},{"internalType":"uint256","name":"prepayAmount","type":"uint256"}],"name":"createPrepay","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getInfo","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"bool","name":"hasPass","type":"bool"},{"internalType":"address","name":"_prepayBeneficiary","type":"address"},{"internalType":"uint256","name":"_prepayPrice","type":"uint256"},{"internalType":"uint256","name":"_prepayMinMints","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"passContract","outputs":[{"internalType":"contract IERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"passTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prepayBeneficiary","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prepayMinMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prepayPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_passContract","type":"address"}],"name":"setPassContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_passTokenId","type":"uint256"}],"name":"setPassTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_prepayBeneficiary","type":"address"}],"name":"setPrepayBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_prepayMinMints","type":"uint256"}],"name":"setPrepayMinMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_prepayPrice","type":"uint256"}],"name":"setPrepayPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"userMintComplete","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600160035534801561001557600080fd5b50604051610a4a380380610a4a833981016040819052610034916100e4565b61003d33610078565b600180546001600160a01b03199081166001600160a01b03968716179091556002939093556004805490931691909316179055600555610128565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100df57600080fd5b919050565b600080600080608085870312156100fa57600080fd5b610103856100c8565b935060208501519250610118604086016100c8565b6060959095015193969295505050565b610913806101376000396000f3fe6080604052600436106100f75760003560e01c8063d0881bf01161008a578063f56116fc11610059578063f56116fc1461029f578063f79069b8146102bf578063fbc5dd0b146102df578063ffdd5cf1146102ff57610115565b8063d0881bf014610240578063e16e998214610253578063ecaf617c14610269578063f2fde38b1461027f57610115565b80638da5cb5b116100c65780638da5cb5b146101a5578063a06e8503146101dc578063c538809514610200578063c9ca02fb1461022057610115565b8063096d6bb21461012e5780631834b7ef146101505780633af89e6614610170578063715018a61461019057610115565b366101155760405163316f158360e21b815260040160405180910390fd5b60405163316f158360e21b815260040160405180910390fd5b34801561013a57600080fd5b5061014e61014936600461081b565b61035b565b005b34801561015c57600080fd5b5061014e61016b36600461081b565b6103af565b34801561017c57600080fd5b5061014e61018b36600461081b565b6103e7565b34801561019c57600080fd5b5061014e6103f4565b3480156101b157600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101e857600080fd5b506101f260035481565b6040519081526020016101d3565b34801561020c57600080fd5b5061014e61021b366004610849565b610408565b34801561022c57600080fd5b5061014e61023b366004610849565b610432565b61014e61024e36600461086d565b61045c565b34801561025f57600080fd5b506101f260055481565b34801561027557600080fd5b506101f260025481565b34801561028b57600080fd5b5061014e61029a366004610849565b610623565b3480156102ab57600080fd5b506004546101bf906001600160a01b031681565b3480156102cb57600080fd5b506001546101bf906001600160a01b031681565b3480156102eb57600080fd5b5061014e6102fa36600461081b565b6106a1565b34801561030b57600080fd5b5061031f61031a366004610849565b6106ae565b6040805196875294151560208701526001600160a01b0393841694860194909452606085019190915260808401521660a082015260c0016101d3565b610363610771565b6002819055604080518281526020810183905242918101919091527fcce90b95bdb196fe97ed6242d60dd89af19c16b16bbf0b4abb3dcf6ce8c81328906060015b60405180910390a150565b6103b7610771565b6040518181527f3b61842e8d471b55bafc3077c0ad6b71949de5a4d85858f29e7467aae2ab73c2906020016103a4565b6103ef610771565b600355565b6103fc610771565b61040660006107cb565b565b610410610771565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b61043a610771565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b60035481101561047f57604051631dfda76560e01b815260040160405180910390fd5b8060025461048d9190610899565b34141580610499575034155b156104b757604051638972049f60e01b815260040160405180910390fd5b60048054600554604051627eeac760e11b81526001600160a01b0386811694820194909452602481019190915291169062fdd58e90604401602060405180830381865afa15801561050c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053091906108c4565b60000361055057604051630408a42760e21b815260040160405180910390fd5b6001546040516000916001600160a01b03169034908381818185875af1925050503d806000811461059d576040519150601f19603f3d011682016040523d82523d6000602084013e6105a2565b606091505b50509050806105c4576040516307a4ced160e51b815260040160405180910390fd5b6004546005546002546040805192835260208301919091524282820152516001600160a01b03928316928592908716917f23b877a8da2af4e1a0b0f03f1c16e633af941da48401f7bf77e87625992344f59181900360600190a4505050565b61062b610771565b6001600160a01b0381166106955760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61069e816107cb565b50565b6106a9610771565b600555565b60048054600554604051627eeac760e11b81526001600160a01b0385811694820185905260248201929092529231926000928392839283928392839291169062fdd58e90604401602060405180830381865afa158015610712573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061073691906108c4565b6001546002546003549390921197506001600160a01b03169550935091506107666000546001600160a01b031690565b905091939550919395565b6000546001600160a01b031633146104065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161068c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561082d57600080fd5b5035919050565b6001600160a01b038116811461069e57600080fd5b60006020828403121561085b57600080fd5b813561086681610834565b9392505050565b6000806040838503121561088057600080fd5b823561088b81610834565b946020939093013593505050565b80820281158282048414176108be57634e487b7160e01b600052601160045260246000fd5b92915050565b6000602082840312156108d657600080fd5b505191905056fea2646970667358221220d560ccea929621defa6eacc276bd8d8991f4d5eccca18c1d6ecf632a30fd56ba64736f6c63430008140033000000000000000000000000f4dfb4ec3945770e41ae8bf0f6afdf186dc8a45d000000000000000000000000000000000000000000000000009536c708910000000000000000000000000000300e7a5fb0ab08af367d5fb3915930791bb08c2b0000000000000000000000000000000000000000000000000000000000000001

Deployed Bytecode

0x6080604052600436106100f75760003560e01c8063d0881bf01161008a578063f56116fc11610059578063f56116fc1461029f578063f79069b8146102bf578063fbc5dd0b146102df578063ffdd5cf1146102ff57610115565b8063d0881bf014610240578063e16e998214610253578063ecaf617c14610269578063f2fde38b1461027f57610115565b80638da5cb5b116100c65780638da5cb5b146101a5578063a06e8503146101dc578063c538809514610200578063c9ca02fb1461022057610115565b8063096d6bb21461012e5780631834b7ef146101505780633af89e6614610170578063715018a61461019057610115565b366101155760405163316f158360e21b815260040160405180910390fd5b60405163316f158360e21b815260040160405180910390fd5b34801561013a57600080fd5b5061014e61014936600461081b565b61035b565b005b34801561015c57600080fd5b5061014e61016b36600461081b565b6103af565b34801561017c57600080fd5b5061014e61018b36600461081b565b6103e7565b34801561019c57600080fd5b5061014e6103f4565b3480156101b157600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101e857600080fd5b506101f260035481565b6040519081526020016101d3565b34801561020c57600080fd5b5061014e61021b366004610849565b610408565b34801561022c57600080fd5b5061014e61023b366004610849565b610432565b61014e61024e36600461086d565b61045c565b34801561025f57600080fd5b506101f260055481565b34801561027557600080fd5b506101f260025481565b34801561028b57600080fd5b5061014e61029a366004610849565b610623565b3480156102ab57600080fd5b506004546101bf906001600160a01b031681565b3480156102cb57600080fd5b506001546101bf906001600160a01b031681565b3480156102eb57600080fd5b5061014e6102fa36600461081b565b6106a1565b34801561030b57600080fd5b5061031f61031a366004610849565b6106ae565b6040805196875294151560208701526001600160a01b0393841694860194909452606085019190915260808401521660a082015260c0016101d3565b610363610771565b6002819055604080518281526020810183905242918101919091527fcce90b95bdb196fe97ed6242d60dd89af19c16b16bbf0b4abb3dcf6ce8c81328906060015b60405180910390a150565b6103b7610771565b6040518181527f3b61842e8d471b55bafc3077c0ad6b71949de5a4d85858f29e7467aae2ab73c2906020016103a4565b6103ef610771565b600355565b6103fc610771565b61040660006107cb565b565b610410610771565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b61043a610771565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b60035481101561047f57604051631dfda76560e01b815260040160405180910390fd5b8060025461048d9190610899565b34141580610499575034155b156104b757604051638972049f60e01b815260040160405180910390fd5b60048054600554604051627eeac760e11b81526001600160a01b0386811694820194909452602481019190915291169062fdd58e90604401602060405180830381865afa15801561050c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053091906108c4565b60000361055057604051630408a42760e21b815260040160405180910390fd5b6001546040516000916001600160a01b03169034908381818185875af1925050503d806000811461059d576040519150601f19603f3d011682016040523d82523d6000602084013e6105a2565b606091505b50509050806105c4576040516307a4ced160e51b815260040160405180910390fd5b6004546005546002546040805192835260208301919091524282820152516001600160a01b03928316928592908716917f23b877a8da2af4e1a0b0f03f1c16e633af941da48401f7bf77e87625992344f59181900360600190a4505050565b61062b610771565b6001600160a01b0381166106955760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61069e816107cb565b50565b6106a9610771565b600555565b60048054600554604051627eeac760e11b81526001600160a01b0385811694820185905260248201929092529231926000928392839283928392839291169062fdd58e90604401602060405180830381865afa158015610712573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061073691906108c4565b6001546002546003549390921197506001600160a01b03169550935091506107666000546001600160a01b031690565b905091939550919395565b6000546001600160a01b031633146104065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161068c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561082d57600080fd5b5035919050565b6001600160a01b038116811461069e57600080fd5b60006020828403121561085b57600080fd5b813561086681610834565b9392505050565b6000806040838503121561088057600080fd5b823561088b81610834565b946020939093013593505050565b80820281158282048414176108be57634e487b7160e01b600052601160045260246000fd5b92915050565b6000602082840312156108d657600080fd5b505191905056fea2646970667358221220d560ccea929621defa6eacc276bd8d8991f4d5eccca18c1d6ecf632a30fd56ba64736f6c63430008140033

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

000000000000000000000000f4dfb4ec3945770e41ae8bf0f6afdf186dc8a45d000000000000000000000000000000000000000000000000009536c708910000000000000000000000000000300e7a5fb0ab08af367d5fb3915930791bb08c2b0000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : _prepayBeneficiary (address): 0xf4dFB4eC3945770e41AE8BF0f6AfDF186dC8a45D
Arg [1] : _prepayPrice (uint256): 42000000000000000
Arg [2] : _passContract (address): 0x300e7A5fb0Ab08aF367d5fb3915930791bB08C2B
Arg [3] : _passTokenId (uint256): 1

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000f4dfb4ec3945770e41ae8bf0f6afdf186dc8a45d
Arg [1] : 000000000000000000000000000000000000000000000000009536c708910000
Arg [2] : 000000000000000000000000300e7a5fb0ab08af367d5fb3915930791bb08c2b
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001


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.