Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 43 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Grant Approval | 18141847 | 287 days ago | IN | 0 ETH | 0.00038069 | ||||
Grant Approval | 18123653 | 289 days ago | IN | 0 ETH | 0.00020443 | ||||
Grant Approval | 17614534 | 361 days ago | IN | 0 ETH | 0.00085329 | ||||
Revoke Approval | 17401619 | 391 days ago | IN | 0 ETH | 0.00133755 | ||||
Grant Approval | 17376031 | 394 days ago | IN | 0 ETH | 0.00063399 | ||||
Revoke Approval | 17341007 | 399 days ago | IN | 0 ETH | 0.00130051 | ||||
Revoke Approval | 17334123 | 400 days ago | IN | 0 ETH | 0.0023849 | ||||
Execute | 17221944 | 416 days ago | IN | 0.0001 ETH | 0.00172192 | ||||
Execute | 17004229 | 447 days ago | IN | 0 ETH | 0.00075046 | ||||
Execute | 17004226 | 447 days ago | IN | 0 ETH | 0.0007838 | ||||
Execute | 17004224 | 447 days ago | IN | 0 ETH | 0.00078141 | ||||
Cancel Order | 16825453 | 472 days ago | IN | 0 ETH | 0.00045398 | ||||
Cancel Order | 16825434 | 472 days ago | IN | 0 ETH | 0.00039593 | ||||
Cancel Order | 16825428 | 472 days ago | IN | 0 ETH | 0.00043931 | ||||
Revoke Approval | 16679233 | 493 days ago | IN | 0 ETH | 0.0015863 | ||||
Grant Approval | 16644004 | 498 days ago | IN | 0 ETH | 0.00116481 | ||||
Transfer | 16443251 | 526 days ago | IN | 0.03 ETH | 0.00051313 | ||||
Transfer | 16248623 | 553 days ago | IN | 0.0009 ETH | 0.00037255 | ||||
Revoke Approval | 16165043 | 564 days ago | IN | 0 ETH | 0.00053502 | ||||
Grant Approval | 16158563 | 565 days ago | IN | 0 ETH | 0.00030693 | ||||
Revoke Approval | 16148564 | 567 days ago | IN | 0 ETH | 0.00260265 | ||||
Grant Approval | 16051754 | 580 days ago | IN | 0 ETH | 0.00025808 | ||||
Revoke Approval | 16051114 | 580 days ago | IN | 0 ETH | 0.00028396 | ||||
Revoke Approval | 16051105 | 580 days ago | IN | 0 ETH | 0.00026587 | ||||
Revoke Approval | 16051088 | 580 days ago | IN | 0 ETH | 0.00049563 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ExecutionDelegate
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import {IExecutionDelegate} from "./interfaces/IExecutionDelegate.sol"; /** * @title ExecutionDelegate * @dev Proxy contract to manage user token approvals */ contract ExecutionDelegate is IExecutionDelegate, Ownable { using Address for address; mapping(address => bool) public contracts; mapping(address => bool) public revokedApproval; modifier approvedContract() { require(contracts[msg.sender], "Contract is not approved to make transfers"); _; } event ApproveContract(address indexed _contract); event DenyContract(address indexed _contract); event RevokeApproval(address indexed user); event GrantApproval(address indexed user); /** * @dev Approve contract to call transfer functions * @param _contract address of contract to approve */ function approveContract(address _contract) onlyOwner external { contracts[_contract] = true; emit ApproveContract(_contract); } /** * @dev Revoke approval of contract to call transfer functions * @param _contract address of contract to revoke approval */ function denyContract(address _contract) onlyOwner external { contracts[_contract] = false; emit DenyContract(_contract); } /** * @dev Block contract from making transfers on-behalf of a specific user */ function revokeApproval() external { revokedApproval[msg.sender] = true; emit RevokeApproval(msg.sender); } /** * @dev Allow contract to make transfers on-behalf of a specific user */ function grantApproval() external { revokedApproval[msg.sender] = false; emit GrantApproval(msg.sender); } /** * @dev Transfer ERC721 token using `transferFrom` * @param collection address of the collection * @param from address of the sender * @param to address of the recipient * @param tokenId tokenId */ function transferERC721Unsafe(address collection, address from, address to, uint256 tokenId) approvedContract external { require(revokedApproval[from] == false, "User has revoked approval"); IERC721(collection).transferFrom(from, to, tokenId); } /** * @dev Transfer ERC721 token using `safeTransferFrom` * @param collection address of the collection * @param from address of the sender * @param to address of the recipient * @param tokenId tokenId */ function transferERC721(address collection, address from, address to, uint256 tokenId) approvedContract external { require(revokedApproval[from] == false, "User has revoked approval"); IERC721(collection).safeTransferFrom(from, to, tokenId); } /** * @dev Transfer ERC1155 token using `safeTransferFrom` * @param collection address of the collection * @param from address of the sender * @param to address of the recipient * @param tokenId tokenId * @param amount amount */ function transferERC1155(address collection, address from, address to, uint256 tokenId, uint256 amount) approvedContract external { require(revokedApproval[from] == false, "User has revoked approval"); IERC1155(collection).safeTransferFrom(from, to, tokenId, amount, ""); } /** * @dev Transfer ERC20 token * @param token address of the token * @param from address of the sender * @param to address of the recipient * @param amount amount */ function transferERC20(address token, address from, address to, uint256 amount) approvedContract external { require(revokedApproval[from] == false, "User has revoked approval"); bytes memory data = abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, amount); bytes memory returndata = token.functionCall(data); if (returndata.length > 0) { require(abi.decode(returndata, (bool)), "ERC20 transfer failed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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`, 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 be 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 be 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 (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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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); } } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; interface IExecutionDelegate { function approveContract(address _contract) external; function denyContract(address _contract) external; function revokeApproval() external; function grantApproval() external; function transferERC721Unsafe(address collection, address from, address to, uint256 tokenId) external; function transferERC721(address collection, address from, address to, uint256 tokenId) external; function transferERC1155(address collection, address from, address to, uint256 tokenId, uint256 amount) external; function transferERC20(address token, address from, address to, uint256 amount) 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); }
// 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; } }
{ "metadata": { "bytecodeHash": "none" }, "optimizer": { "enabled": true, "runs": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_contract","type":"address"}],"name":"ApproveContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_contract","type":"address"}],"name":"DenyContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"GrantApproval","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":"user","type":"address"}],"name":"RevokeApproval","type":"event"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"approveContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"contracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"denyContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"grantApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"revokedApproval","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferERC721Unsafe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610e538061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c80638da5cb5b1161008c578063b7e2077e11610066578063b7e2077e146101ad578063ca72da8e146101c0578063da3e8ce4146101d3578063f2fde38b146101e657600080fd5b80638da5cb5b1461018257806390d02b3c1461019d578063a8034df1146101a557600080fd5b8063715018a6116100bd578063715018a61461015457806374a9402e1461015c578063789f93f61461016f57600080fd5b806307f7aafb146100e45780634a3e3a1f146100f957806369dc9ff314610131575b600080fd5b6100f76100f2366004610cf6565b6101f9565b005b61011c610107366004610cf6565b60026020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b61011c61013f366004610cf6565b60016020526000908152604090205460ff1681565b6100f76102a7565b6100f761016a366004610d11565b61030d565b6100f761017d366004610d66565b61046e565b6000546040516001600160a01b039091168152602001610128565b6100f76105ba565b6100f76105fc565b6100f76101bb366004610cf6565b61063b565b6100f76101ce366004610d66565b6106de565b6100f76101e1366004610d66565b6107f6565b6100f76101f4366004610cf6565b6109b8565b6000546001600160a01b031633146102585760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b0381166000818152600160208190526040808320805460ff1916909217909155517f283ffe02a14663588cf87ba17adbc21c9ce0d0cdb15655926bf2b987af3075fe9190a250565b6000546001600160a01b031633146103015760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161024f565b61030b6000610a9a565b565b3360009081526001602052604090205460ff1661037f5760405162461bcd60e51b815260206004820152602a60248201527f436f6e7472616374206973206e6f7420617070726f76656420746f206d616b65604482015269207472616e736665727360b01b606482015260840161024f565b6001600160a01b03841660009081526002602052604090205460ff16156103e85760405162461bcd60e51b815260206004820152601960248201527f5573657220686173207265766f6b656420617070726f76616c00000000000000604482015260640161024f565b604051637921219560e11b81526001600160a01b0385811660048301528481166024830152604482018490526064820183905260a06084830152600060a483015286169063f242432a9060c401600060405180830381600087803b15801561044f57600080fd5b505af1158015610463573d6000803e3d6000fd5b505050505050505050565b3360009081526001602052604090205460ff166104e05760405162461bcd60e51b815260206004820152602a60248201527f436f6e7472616374206973206e6f7420617070726f76656420746f206d616b65604482015269207472616e736665727360b01b606482015260840161024f565b6001600160a01b03831660009081526002602052604090205460ff16156105495760405162461bcd60e51b815260206004820152601960248201527f5573657220686173207265766f6b656420617070726f76616c00000000000000604482015260640161024f565b604051632142170760e11b81526001600160a01b0384811660048301528381166024830152604482018390528516906342842e0e906064015b600060405180830381600087803b15801561059c57600080fd5b505af11580156105b0573d6000803e3d6000fd5b5050505050505050565b33600081815260026020526040808220805460ff19166001179055517fdddeac663983b1e35153215a4578fecbb5921d12e660b3c4259aa7d9dbb9709f9190a2565b33600081815260026020526040808220805460ff19169055517f120d91a0121c2d5a7ce9638fce4bd262d4b443568fce40f681f50dca814a629a9190a2565b6000546001600160a01b031633146106955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161024f565b6001600160a01b038116600081815260016020526040808220805460ff19169055517f2b35b0a030b4f4cef0a9e8d01828235bb82a11ec4e37c11bd6d8770d9aafb17c9190a250565b3360009081526001602052604090205460ff166107505760405162461bcd60e51b815260206004820152602a60248201527f436f6e7472616374206973206e6f7420617070726f76656420746f206d616b65604482015269207472616e736665727360b01b606482015260840161024f565b6001600160a01b03831660009081526002602052604090205460ff16156107b95760405162461bcd60e51b815260206004820152601960248201527f5573657220686173207265766f6b656420617070726f76616c00000000000000604482015260640161024f565b6040516323b872dd60e01b81526001600160a01b0384811660048301528381166024830152604482018390528516906323b872dd90606401610582565b3360009081526001602052604090205460ff166108685760405162461bcd60e51b815260206004820152602a60248201527f436f6e7472616374206973206e6f7420617070726f76656420746f206d616b65604482015269207472616e736665727360b01b606482015260840161024f565b6001600160a01b03831660009081526002602052604090205460ff16156108d15760405162461bcd60e51b815260206004820152601960248201527f5573657220686173207265766f6b656420617070726f76616c00000000000000604482015260640161024f565b604080516001600160a01b038581166024830152848116604483015260648083018590528351808403909101815260849092019092526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b1790529060009061094690871683610b02565b8051909150156109b057808060200190518101906109649190610db1565b6109b05760405162461bcd60e51b815260206004820152601560248201527f4552433230207472616e73666572206661696c65640000000000000000000000604482015260640161024f565b505050505050565b6000546001600160a01b03163314610a125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161024f565b6001600160a01b038116610a8e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161024f565b610a9781610a9a565b50565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060610b4483836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610b4b565b9392505050565b6060610b5a8484600085610b62565b949350505050565b606082471015610bda5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161024f565b843b610c285760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161024f565b600080866001600160a01b03168587604051610c449190610df7565b60006040518083038185875af1925050503d8060008114610c81576040519150601f19603f3d011682016040523d82523d6000602084013e610c86565b606091505b5091509150610c96828286610ca1565b979650505050505050565b60608315610cb0575081610b44565b825115610cc05782518084602001fd5b8160405162461bcd60e51b815260040161024f9190610e13565b80356001600160a01b0381168114610cf157600080fd5b919050565b600060208284031215610d0857600080fd5b610b4482610cda565b600080600080600060a08688031215610d2957600080fd5b610d3286610cda565b9450610d4060208701610cda565b9350610d4e60408701610cda565b94979396509394606081013594506080013592915050565b60008060008060808587031215610d7c57600080fd5b610d8585610cda565b9350610d9360208601610cda565b9250610da160408601610cda565b9396929550929360600135925050565b600060208284031215610dc357600080fd5b81518015158114610b4457600080fd5b60005b83811015610dee578181015183820152602001610dd6565b50506000910152565b60008251610e09818460208701610dd3565b9190910192915050565b6020815260008251806020840152610e32816040850160208701610dd3565b601f01601f1916919091016040019291505056fea164736f6c6343000811000a
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100df5760003560e01c80638da5cb5b1161008c578063b7e2077e11610066578063b7e2077e146101ad578063ca72da8e146101c0578063da3e8ce4146101d3578063f2fde38b146101e657600080fd5b80638da5cb5b1461018257806390d02b3c1461019d578063a8034df1146101a557600080fd5b8063715018a6116100bd578063715018a61461015457806374a9402e1461015c578063789f93f61461016f57600080fd5b806307f7aafb146100e45780634a3e3a1f146100f957806369dc9ff314610131575b600080fd5b6100f76100f2366004610cf6565b6101f9565b005b61011c610107366004610cf6565b60026020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b61011c61013f366004610cf6565b60016020526000908152604090205460ff1681565b6100f76102a7565b6100f761016a366004610d11565b61030d565b6100f761017d366004610d66565b61046e565b6000546040516001600160a01b039091168152602001610128565b6100f76105ba565b6100f76105fc565b6100f76101bb366004610cf6565b61063b565b6100f76101ce366004610d66565b6106de565b6100f76101e1366004610d66565b6107f6565b6100f76101f4366004610cf6565b6109b8565b6000546001600160a01b031633146102585760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b0381166000818152600160208190526040808320805460ff1916909217909155517f283ffe02a14663588cf87ba17adbc21c9ce0d0cdb15655926bf2b987af3075fe9190a250565b6000546001600160a01b031633146103015760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161024f565b61030b6000610a9a565b565b3360009081526001602052604090205460ff1661037f5760405162461bcd60e51b815260206004820152602a60248201527f436f6e7472616374206973206e6f7420617070726f76656420746f206d616b65604482015269207472616e736665727360b01b606482015260840161024f565b6001600160a01b03841660009081526002602052604090205460ff16156103e85760405162461bcd60e51b815260206004820152601960248201527f5573657220686173207265766f6b656420617070726f76616c00000000000000604482015260640161024f565b604051637921219560e11b81526001600160a01b0385811660048301528481166024830152604482018490526064820183905260a06084830152600060a483015286169063f242432a9060c401600060405180830381600087803b15801561044f57600080fd5b505af1158015610463573d6000803e3d6000fd5b505050505050505050565b3360009081526001602052604090205460ff166104e05760405162461bcd60e51b815260206004820152602a60248201527f436f6e7472616374206973206e6f7420617070726f76656420746f206d616b65604482015269207472616e736665727360b01b606482015260840161024f565b6001600160a01b03831660009081526002602052604090205460ff16156105495760405162461bcd60e51b815260206004820152601960248201527f5573657220686173207265766f6b656420617070726f76616c00000000000000604482015260640161024f565b604051632142170760e11b81526001600160a01b0384811660048301528381166024830152604482018390528516906342842e0e906064015b600060405180830381600087803b15801561059c57600080fd5b505af11580156105b0573d6000803e3d6000fd5b5050505050505050565b33600081815260026020526040808220805460ff19166001179055517fdddeac663983b1e35153215a4578fecbb5921d12e660b3c4259aa7d9dbb9709f9190a2565b33600081815260026020526040808220805460ff19169055517f120d91a0121c2d5a7ce9638fce4bd262d4b443568fce40f681f50dca814a629a9190a2565b6000546001600160a01b031633146106955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161024f565b6001600160a01b038116600081815260016020526040808220805460ff19169055517f2b35b0a030b4f4cef0a9e8d01828235bb82a11ec4e37c11bd6d8770d9aafb17c9190a250565b3360009081526001602052604090205460ff166107505760405162461bcd60e51b815260206004820152602a60248201527f436f6e7472616374206973206e6f7420617070726f76656420746f206d616b65604482015269207472616e736665727360b01b606482015260840161024f565b6001600160a01b03831660009081526002602052604090205460ff16156107b95760405162461bcd60e51b815260206004820152601960248201527f5573657220686173207265766f6b656420617070726f76616c00000000000000604482015260640161024f565b6040516323b872dd60e01b81526001600160a01b0384811660048301528381166024830152604482018390528516906323b872dd90606401610582565b3360009081526001602052604090205460ff166108685760405162461bcd60e51b815260206004820152602a60248201527f436f6e7472616374206973206e6f7420617070726f76656420746f206d616b65604482015269207472616e736665727360b01b606482015260840161024f565b6001600160a01b03831660009081526002602052604090205460ff16156108d15760405162461bcd60e51b815260206004820152601960248201527f5573657220686173207265766f6b656420617070726f76616c00000000000000604482015260640161024f565b604080516001600160a01b038581166024830152848116604483015260648083018590528351808403909101815260849092019092526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b1790529060009061094690871683610b02565b8051909150156109b057808060200190518101906109649190610db1565b6109b05760405162461bcd60e51b815260206004820152601560248201527f4552433230207472616e73666572206661696c65640000000000000000000000604482015260640161024f565b505050505050565b6000546001600160a01b03163314610a125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161024f565b6001600160a01b038116610a8e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161024f565b610a9781610a9a565b50565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060610b4483836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610b4b565b9392505050565b6060610b5a8484600085610b62565b949350505050565b606082471015610bda5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161024f565b843b610c285760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161024f565b600080866001600160a01b03168587604051610c449190610df7565b60006040518083038185875af1925050503d8060008114610c81576040519150601f19603f3d011682016040523d82523d6000602084013e610c86565b606091505b5091509150610c96828286610ca1565b979650505050505050565b60608315610cb0575081610b44565b825115610cc05782518084602001fd5b8160405162461bcd60e51b815260040161024f9190610e13565b80356001600160a01b0381168114610cf157600080fd5b919050565b600060208284031215610d0857600080fd5b610b4482610cda565b600080600080600060a08688031215610d2957600080fd5b610d3286610cda565b9450610d4060208701610cda565b9350610d4e60408701610cda565b94979396509394606081013594506080013592915050565b60008060008060808587031215610d7c57600080fd5b610d8585610cda565b9350610d9360208601610cda565b9250610da160408601610cda565b9396929550929360600135925050565b600060208284031215610dc357600080fd5b81518015158114610b4457600080fd5b60005b83811015610dee578181015183820152602001610dd6565b50506000910152565b60008251610e09818460208701610dd3565b9190910192915050565b6020815260008251806020840152610e32816040850160208701610dd3565b601f01601f1916919091016040019291505056fea164736f6c6343000811000a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.