Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 21 from a total of 21 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Bulk Deposit | 16618894 | 700 days ago | IN | 0 ETH | 0.09701224 | ||||
Bulk Deposit | 16618866 | 700 days ago | IN | 0 ETH | 0.06999736 | ||||
Bulk Deposit | 16618831 | 700 days ago | IN | 0 ETH | 0.06300457 | ||||
Bulk Deposit | 16618802 | 700 days ago | IN | 0 ETH | 0.03270153 | ||||
Bulk Deposit | 16618784 | 700 days ago | IN | 0 ETH | 0.00183581 | ||||
Bulk Deposit | 16618664 | 700 days ago | IN | 0 ETH | 0.00731981 | ||||
Bulk Deposit | 16618644 | 700 days ago | IN | 0 ETH | 0.04071347 | ||||
Bulk Deposit | 16618605 | 700 days ago | IN | 0 ETH | 0.0469487 | ||||
Bulk Deposit | 16618564 | 700 days ago | IN | 0 ETH | 0.03728986 | ||||
Bulk Deposit | 16618512 | 700 days ago | IN | 0 ETH | 0.04668818 | ||||
Bulk Deposit | 16618472 | 700 days ago | IN | 0 ETH | 0.04085514 | ||||
Bulk Deposit | 16618296 | 700 days ago | IN | 0 ETH | 0.00921607 | ||||
Bulk Deposit | 16618268 | 700 days ago | IN | 0 ETH | 0.00224911 | ||||
Bulk Deposit | 16618254 | 700 days ago | IN | 0 ETH | 0.00142807 | ||||
Bulk Deposit | 16589489 | 704 days ago | IN | 0 ETH | 0.00219735 | ||||
Bulk Deposit | 16589482 | 704 days ago | IN | 0 ETH | 0.00239391 | ||||
Bulk Deposit | 16539872 | 711 days ago | IN | 0 ETH | 0.00195854 | ||||
Bulk Deposit | 16539489 | 711 days ago | IN | 0 ETH | 0.00166238 | ||||
Bulk Deposit | 16539472 | 711 days ago | IN | 0 ETH | 0.00174637 | ||||
Transfer Ownersh... | 16517930 | 714 days ago | IN | 0 ETH | 0.00042315 | ||||
Update Recipient | 16517930 | 714 days ago | IN | 0 ETH | 0.00042735 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
16517894 | 714 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x869A5d85...C272C3807 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Deposit
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "./interfaces/DepositInterface.sol"; import "./lib/ConfirmedOwner.sol"; import {DepositItem} from "./lib/DepositStructs.sol"; /** * @title DepositHelper * @notice DepositHelper is a utility contract for transferring * ERC721 items in bulk to a fixed recipient. */ contract Deposit is DepositInterface, ConfirmedOwner { // Deposit enabled status bool public isEnabled; // recipient address public recipient; /** * @dev Reverts if the deposit is not enabled */ modifier checkEnabled() { require(isEnabled, "Deposit suspended"); _; } /** * @dev Set the supplied recipient. * * * @param _recipient The recipient address, used to receive * ERC721 tokens. * @param _owner The contract owner address. */ constructor(address _recipient, address _owner) ConfirmedOwner(_owner) { recipient = _recipient; isEnabled = true; } /** * @dev Update recipient * @param _recipient The new recipient. */ function updateRecipient(address _recipient) external override onlyOwner { require(_recipient != recipient, "Not changed"); require(_recipient != address(0), "Cannot set recipient to zero"); address oldRecipient = recipient; recipient = _recipient; emit UpdateRecipient(oldRecipient, recipient); } /** * @notice Enable deposit */ function enableDeposit() external override onlyOwner { if (!isEnabled) { isEnabled = true; emit EnableDeposit(); } } /** * @notice Disable deposit */ function disableDeposit() external override onlyOwner { if (isEnabled) { isEnabled = false; emit DisableDeposit(); } } /** * @notice Transfer multiple ERC721 items to * specified recipients. * * @param items The items to transfer to an intended recipient. * @param requestId An optional request id from client. */ function bulkDeposit(DepositItem[] calldata items, uint256 requestId) external override checkEnabled { require(items.length > 0, "Deposit items cannot be empty"); // Perform transfers. // Iterate over each item in the items to perform ERC721 transfer. for (uint256 i = 0; i < items.length; ++i) { // Retrieve the item from the transfers. DepositItem calldata item = items[i]; // Transfer ERC721 token. IERC721(item.token).safeTransferFrom(msg.sender, recipient, item.identifier); } // emit bulk deposit event emit BulkDeposit(requestId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "./ConfirmedOwnerWithProposal.sol"; /** * @title The ConfirmedOwner contract * @notice A contract with helpers for basic contract ownership. */ contract ConfirmedOwner is ConfirmedOwnerWithProposal { constructor(address newOwner) ConfirmedOwnerWithProposal(newOwner, address(0)) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import {DepositItem} from "../lib/DepositStructs.sol"; interface DepositInterface { /** * @dev Emit an event when the recipient is updated. * * @param from The old recipient * @param to The new recipient */ event UpdateRecipient(address indexed from, address indexed to); /** * @dev Emit an event when the deposit is enabled. */ event EnableDeposit(); /** * @dev Emit an event when the deposit is disabled. */ event DisableDeposit(); /** * @dev Emit an event when the batch transfer is successful. * * @param requestId The request id from client */ event BulkDeposit(uint256 indexed requestId); /** * @notice Update recipient * * @param recipient The new recipient */ function updateRecipient(address recipient) external; /** * @notice Enable deposit */ function enableDeposit() external; /** * @notice Disable deposit */ function disableDeposit() external; /** * @notice Deposit multiple items. * * @param items The items to transfer. * @param requestId The request id from client. */ function bulkDeposit(DepositItem[] calldata items, uint256 requestId) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; /** * @dev A DepositItem specifies token address, token identifier to be * transferred via the Deposit. */ struct DepositItem { address token; uint256 identifier; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "../interfaces/OwnableInterface.sol"; /** * @title The ConfirmedOwner contract * @notice A contract with helpers for basic contract ownership. */ contract ConfirmedOwnerWithProposal is OwnableInterface { address private s_owner; address private s_pendingOwner; event OwnershipTransferRequested(address indexed from, address indexed to); event OwnershipTransferred(address indexed from, address indexed to); constructor(address newOwner, address pendingOwner) { require(newOwner != address(0), "Cannot set owner to zero"); s_owner = newOwner; if (pendingOwner != address(0)) { _transferOwnership(pendingOwner); } } /** * @notice Allows an owner to begin transferring ownership to a new address, * pending. */ function transferOwnership(address to) public override onlyOwner { _transferOwnership(to); } /** * @notice Allows an ownership transfer to be completed by the recipient. */ function acceptOwnership() external override { require(msg.sender == s_pendingOwner, "Must be proposed owner"); address oldOwner = s_owner; s_owner = msg.sender; s_pendingOwner = address(0); emit OwnershipTransferred(oldOwner, msg.sender); } /** * @notice Get the current owner */ function owner() public view override returns (address) { return s_owner; } /** * @notice validate, transfer ownership, and emit relevant events */ function _transferOwnership(address to) private { require(to != msg.sender, "Cannot transfer to self"); s_pendingOwner = to; emit OwnershipTransferRequested(s_owner, to); } /** * @notice Reverts if called by anyone other than the contract owner. */ modifier onlyOwner() { require(msg.sender == s_owner, "Only callable by owner"); _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; interface OwnableInterface { function owner() external returns (address); function transferOwnership(address recipient) external; function acceptOwnership() external; }
// 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); }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 1000000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"requestId","type":"uint256"}],"name":"BulkDeposit","type":"event"},{"anonymous":false,"inputs":[],"name":"DisableDeposit","type":"event"},{"anonymous":false,"inputs":[],"name":"EnableDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"OwnershipTransferRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"UpdateRecipient","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifier","type":"uint256"}],"internalType":"struct DepositItem[]","name":"items","type":"tuple[]"},{"internalType":"uint256","name":"requestId","type":"uint256"}],"name":"bulkDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"updateRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x60806040526004361015610013575b600080fd5b6000803560e01c9081630cc57511146100ca5750806355eefec6146100c15780635cdeb0d6146100b857806366d003ac146100af5780636aa633b6146100a657806379ba50971461009d5780638da5cb5b14610094578063f2fde38b1461008b5763feec756c1461008357600080fd5b61000e61064d565b5061000e61052d565b5061000e6104bc565b5061000e610371565b5061000e61032c565b5061000e6102d9565b5061000e610221565b5061000e6101a7565b3461019957807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101995761011a73ffffffffffffffffffffffffffffffffffffffff82541633146107b1565b60015460ff8160a01c1615610130575b50604051f35b7fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff740100000000000000000000000000000000000000009116176001557fed13d5343f101de91758c08e4c71b0a43c9e46efa0f7ceeb40e5669d9b86206281604051a18161012a565b80fd5b600091031261000e57565b503461000e5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e5767ffffffffffffffff60043581811161000e573660238201121561000e57806004013591821161000e573660248360061b8301011161000e5761021f9160248035920161087b565b005b503461000e576000807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101995761027473ffffffffffffffffffffffffffffffffffffffff82541633146107b1565b60015460ff8160a01c166102885750604051f35b7fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff166001557ffc6c8312b1e1e38645bcb9c5304a26ebf4015b5b66e9671e968524b6e1d0d69481604051a13861012a565b503461000e5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e57602073ffffffffffffffffffffffffffffffffffffffff60025416604051908152f35b503461000e5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e57602060ff60015460a01c166040519015158152f35b503461000e576000807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101995773ffffffffffffffffffffffffffffffffffffffff8060015416330361045e57815473ffffffffffffffffffffffffffffffffffffffff16600080547fffffffffffffffffffffffff000000000000000000000000000000000000000016331790556104317fffffffffffffffffffffffff000000000000000000000000000000000000000060015416600155565b604051913391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08484a3f35b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4d7573742062652070726f706f736564206f776e6572000000000000000000006044820152fd5b503461000e5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e57602073ffffffffffffffffffffffffffffffffffffffff60005416604051908152f35b73ffffffffffffffffffffffffffffffffffffffff81160361000e57565b503461000e5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e576004356105698161050f565b73ffffffffffffffffffffffffffffffffffffffff80600054169161058f8333146107b1565b16903382146105ef57816000927fffffffffffffffffffffffff00000000000000000000000000000000000000006001541617600155604051917fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae12788484a3f35b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616e6e6f74207472616e7366657220746f2073656c660000000000000000006044820152fd5b503461000e5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261000e576004356106898161050f565b73ffffffffffffffffffffffffffffffffffffffff6106ad816000541633146107b1565b806002541690808316828114610753576000936106ce61070f921515610816565b73ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff00000000000000000000000000000000000000006002541617600255565b60025473ffffffffffffffffffffffffffffffffffffffff1616604051917f7e1e96961a397c8aa26162fe259cc837afc95e33aad4945ddc61c18dabb7a6ad8484a3f35b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f4e6f74206368616e6765640000000000000000000000000000000000000000006044820152fd5b156107b857565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4f6e6c792063616c6c61626c65206279206f776e6572000000000000000000006044820152fd5b1561081d57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f43616e6e6f742073657420726563697069656e7420746f207a65726f000000006044820152fd5b9060ff60015460a01c16156109c357610895811515610a21565b60005b8181106108cb575050507fc08ff27028888b5c89feb5e2a93f1b56770dd595e79ca85a7833b5da7a4b18de6000604051a2565b6108d6818385610ae2565b906108ff6108e66108e684610b21565b73ffffffffffffffffffffffffffffffffffffffff1690565b60025473ffffffffffffffffffffffffffffffffffffffff1692813b1561000e576040517f42842e0e00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff94909416602485015260200135604484015261099892906000908290606490829084905af180156109b6575b61099d575b50610a86565b610898565b806109aa6109b092610b2e565b8061019c565b38610992565b6109be610b71565b61098d565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4465706f7369742073757370656e6465640000000000000000000000000000006044820152fd5b15610a2857565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4465706f736974206974656d732063616e6e6f7420626520656d7074790000006044820152fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610ab35760010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b9190811015610af25760061b0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b35610b2b8161050f565b90565b67ffffffffffffffff8111610b4257604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b506040513d6000823e3d90fdfea2646970667358221220a21f1d9fd935a60398be386dd885d64c8d7d995a4ec7c8a64dd1be0794caf29564736f6c634300080e0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.