Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 172 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Create Prepay | 19349211 | 124 days ago | IN | 0.168 ETH | 0.00277327 | ||||
Create Prepay | 19345563 | 124 days ago | IN | 0.126 ETH | 0.00260978 | ||||
Create Prepay | 18759372 | 206 days ago | IN | 0.042 ETH | 0.00106998 | ||||
Create Prepay | 18679567 | 218 days ago | IN | 0.168 ETH | 0.00210001 | ||||
User Mint Comple... | 18678150 | 218 days ago | IN | 0 ETH | 0.00122744 | ||||
Create Prepay | 18677928 | 218 days ago | IN | 0.042 ETH | 0.00244624 | ||||
Create Prepay | 18677909 | 218 days ago | IN | 0.042 ETH | 0.00249219 | ||||
Create Prepay | 18677688 | 218 days ago | IN | 0.042 ETH | 0.00175845 | ||||
Create Prepay | 18676504 | 218 days ago | IN | 0.042 ETH | 0.00174919 | ||||
Create Prepay | 18676274 | 218 days ago | IN | 0.042 ETH | 0.00184263 | ||||
Create Prepay | 18675873 | 218 days ago | IN | 0.042 ETH | 0.00174078 | ||||
Create Prepay | 18675510 | 218 days ago | IN | 0.042 ETH | 0.0016964 | ||||
Create Prepay | 18674654 | 218 days ago | IN | 0.042 ETH | 0.00181473 | ||||
Create Prepay | 18673190 | 219 days ago | IN | 0.168 ETH | 0.00229972 | ||||
Create Prepay | 18673185 | 219 days ago | IN | 0.042 ETH | 0.00219763 | ||||
Create Prepay | 18672724 | 219 days ago | IN | 0.042 ETH | 0.00309511 | ||||
Create Prepay | 18672485 | 219 days ago | IN | 0.462 ETH | 0.00361783 | ||||
Create Prepay | 18672286 | 219 days ago | IN | 0.084 ETH | 0.00290468 | ||||
Create Prepay | 18671784 | 219 days ago | IN | 0.042 ETH | 0.00334115 | ||||
Create Prepay | 18670208 | 219 days ago | IN | 0.042 ETH | 0.00155693 | ||||
Create Prepay | 18668725 | 219 days ago | IN | 0.042 ETH | 0.00149754 | ||||
Create Prepay | 18667379 | 219 days ago | IN | 0.042 ETH | 0.00221096 | ||||
Create Prepay | 18666420 | 219 days ago | IN | 0.042 ETH | 0.00201432 | ||||
Create Prepay | 18665523 | 220 days ago | IN | 0.042 ETH | 0.00184146 | ||||
Create Prepay | 18665260 | 220 days ago | IN | 0.084 ETH | 0.00179308 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
19349211 | 124 days ago | 0.168 ETH | ||||
19345563 | 124 days ago | 0.126 ETH | ||||
18759372 | 206 days ago | 0.042 ETH | ||||
18679567 | 218 days ago | 0.168 ETH | ||||
18677928 | 218 days ago | 0.042 ETH | ||||
18677909 | 218 days ago | 0.042 ETH | ||||
18677688 | 218 days ago | 0.042 ETH | ||||
18676504 | 218 days ago | 0.042 ETH | ||||
18676274 | 218 days ago | 0.042 ETH | ||||
18675873 | 218 days ago | 0.042 ETH | ||||
18675510 | 218 days ago | 0.042 ETH | ||||
18674654 | 218 days ago | 0.042 ETH | ||||
18673190 | 219 days ago | 0.168 ETH | ||||
18673185 | 219 days ago | 0.042 ETH | ||||
18672724 | 219 days ago | 0.042 ETH | ||||
18672485 | 219 days ago | 0.462 ETH | ||||
18672286 | 219 days ago | 0.084 ETH | ||||
18671784 | 219 days ago | 0.042 ETH | ||||
18670208 | 219 days ago | 0.042 ETH | ||||
18668725 | 219 days ago | 0.042 ETH | ||||
18667379 | 219 days ago | 0.042 ETH | ||||
18666420 | 219 days ago | 0.042 ETH | ||||
18665523 | 220 days ago | 0.042 ETH | ||||
18665260 | 220 days ago | 0.084 ETH | ||||
18664680 | 220 days ago | 0.042 ETH |
Loading...
Loading
Contract Name:
ClickCreatePrepay
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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; } }
// 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); } }
// 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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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); }
{ "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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.