Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 852 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Settle | 20010996 | 36 days ago | IN | 0.00084 ETH | 0.00078848 | ||||
Settle | 20005074 | 37 days ago | IN | 0.00536 ETH | 0.0011379 | ||||
Settle | 19924337 | 48 days ago | IN | 0.00247214 ETH | 0.00052949 | ||||
Settle | 19875653 | 55 days ago | IN | 0.00219 ETH | 0.00080569 | ||||
Settle | 19865087 | 57 days ago | IN | 0.00136121 ETH | 0.0002737 | ||||
Settle | 19838281 | 60 days ago | IN | 0.02109 ETH | 0.00031877 | ||||
Settle | 19838272 | 60 days ago | IN | 0.02108 ETH | 0.00032162 | ||||
Settle | 19838266 | 60 days ago | IN | 0.02108 ETH | 0.00033007 | ||||
Settle | 19836559 | 61 days ago | IN | 0.02125 ETH | 0.00011579 | ||||
Settle | 19836559 | 61 days ago | IN | 0.02125 ETH | 0.00011579 | ||||
Settle | 19836559 | 61 days ago | IN | 0.02124 ETH | 0.00011579 | ||||
Settle | 19836280 | 61 days ago | IN | 0.02123 ETH | 0.00026094 | ||||
Settle | 19836276 | 61 days ago | IN | 0.02123 ETH | 0.0002708 | ||||
Settle | 19836276 | 61 days ago | IN | 0.02123 ETH | 0.0002716 | ||||
Settle | 19836276 | 61 days ago | IN | 0.02123 ETH | 0.00027085 | ||||
Settle | 19801995 | 65 days ago | IN | 0.00198403 ETH | 0.0003575 | ||||
Settle | 19739251 | 74 days ago | IN | 0.00205 ETH | 0.00053881 | ||||
Settle | 19695154 | 80 days ago | IN | 0.00267416 ETH | 0.0005219 | ||||
Settle | 19644409 | 87 days ago | IN | 0.001 ETH | 0.00094183 | ||||
Settle | 19639102 | 88 days ago | IN | 0.00185 ETH | 0.00106023 | ||||
Settle | 19629790 | 90 days ago | IN | 0.00457341 ETH | 0.00092784 | ||||
Settle | 19577999 | 97 days ago | IN | 0.13556 ETH | 0.00292192 | ||||
Settle | 19450254 | 115 days ago | IN | 0.00114 ETH | 0.00313965 | ||||
Settle | 19295051 | 137 days ago | IN | 0.00700393 ETH | 0.00150607 | ||||
Settle | 19258476 | 142 days ago | IN | 0.0078527 ETH | 0.00146606 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
20010996 | 36 days ago | 0.00009 ETH | ||||
20010996 | 36 days ago | 0.00075 ETH | ||||
20005074 | 37 days ago | 0.00054 ETH | ||||
20005074 | 37 days ago | 0.00482 ETH | ||||
19924337 | 48 days ago | 0.00247214 ETH | ||||
19875653 | 55 days ago | 0.00011 ETH | ||||
19875653 | 55 days ago | 0.0001 ETH | ||||
19875653 | 55 days ago | 0.00198 ETH | ||||
19865087 | 57 days ago | 0.00136121 ETH | ||||
19838281 | 60 days ago | 0.00528 ETH | ||||
19838281 | 60 days ago | 0.01581 ETH | ||||
19838272 | 60 days ago | 0.00527 ETH | ||||
19838272 | 60 days ago | 0.01581 ETH | ||||
19838266 | 60 days ago | 0.00527 ETH | ||||
19838266 | 60 days ago | 0.01581 ETH | ||||
19836280 | 61 days ago | 0.00531 ETH | ||||
19836280 | 61 days ago | 0.01592 ETH | ||||
19836276 | 61 days ago | 0.00531 ETH | ||||
19836276 | 61 days ago | 0.01592 ETH | ||||
19836276 | 61 days ago | 0.00531 ETH | ||||
19836276 | 61 days ago | 0.01592 ETH | ||||
19836276 | 61 days ago | 0.00531 ETH | ||||
19836276 | 61 days ago | 0.01592 ETH | ||||
19801995 | 65 days ago | 0.00198403 ETH | ||||
19739251 | 74 days ago | 0.00021 ETH |
Loading...
Loading
Contract Name:
AdamEthSettlement
Compiler Version
v0.8.4+commit.c7e474f2
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.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract AdamEthSettlement is AccessControl, ReentrancyGuard { using SafeERC20 for IERC20; event Settled(address indexed buyer, uint256 settlePrice, address indexed seller, uint256 sellerPrice, address creater, uint256 royalty, address adamWallet, uint256 indexed pid, uint256 deadline); event ERC20Withdrawed(address indexed recipient, uint256 value, address assetAddress, address indexed sender); event OperatorChanged(address indexed oldOperator, address indexed newOperator, address indexed sender); event AdamWalletChanged(address indexed oldWallet, address indexed newWallet, address indexed sender); // paymentId(pid) -> true/false mapping(uint256 => bool) public exclusives; address public operator; address payable public adamWallet; constructor(address _owner, address _operator, address payable _adamWallet) { require(_owner != address(0), "owner is the zero address"); require(_operator != address(0), "operator is the zero address"); require(_adamWallet != address(0), "adamWallet is the zero address"); _setupRole(DEFAULT_ADMIN_ROLE, _owner); operator = _operator; adamWallet = _adamWallet; } function settle(address payable _seller, uint256 _sellerPrice, address payable _creater, uint256 _royalty, uint256 deadline, uint256 pid, uint8 v, bytes32 r, bytes32 s) nonReentrant() payable external { // reproduce the data of the signature bytes32 data = keccak256(abi.encodePacked( address(msg.sender), bytes32(msg.value), _seller, bytes32(_sellerPrice), _creater, bytes32(_royalty), adamWallet, bytes32(pid), bytes32(deadline) )); // check the signature require(ecrecover(data, v, r, s) == operator, "invalid signature"); // check the deadline require(deadline >= block.timestamp, 'expired'); // avoid multi-payment require(!exclusives[pid], "had settled"); // check the msg.value require(msg.value >= _sellerPrice + _royalty, "the price is invalid"); // flag the settled payment exclusives[pid] = true; // send _sellerPrice to seller if(_sellerPrice != 0){ (bool sent, ) = _seller.call{value: _sellerPrice}(""); require(sent, "failed to send ETH to seller"); } // send _royalty to creater if(_royalty != 0){ (bool sent, ) = _creater.call{value: _royalty}(""); require(sent, "failed to send ETH to creater"); } // send fee to adam wallet uint256 feeBalance = msg.value - _sellerPrice - _royalty; if(feeBalance != 0){ (bool sent, ) = adamWallet.call{value: feeBalance}(""); require(sent, "failed to send ETH to adam wallet"); } emit Settled(msg.sender, msg.value, _seller, _sellerPrice, _creater, _royalty, adamWallet, pid, deadline); } // withdraw ERC20 locked up in the contract function withdrawERC20(address _assetAddress, address _recipient, uint256 _value) onlyRole(DEFAULT_ADMIN_ROLE) external { require(_value <= IERC20(_assetAddress).balanceOf(address(this)), "the ERC20 token balance is insufficient"); IERC20(_assetAddress).safeTransfer(_recipient, _value); emit ERC20Withdrawed(_recipient, _value, _assetAddress, msg.sender); } function changeOperator(address _newOperator) onlyRole(DEFAULT_ADMIN_ROLE) external { require(_newOperator != address(0), "new operator is the zero address"); address old = operator; operator = _newOperator; emit OperatorChanged(old, _newOperator, msg.sender); } function changeAdamWallet(address payable _newWallet) onlyRole(DEFAULT_ADMIN_ROLE) external { require(_newWallet != address(0), "new wallet is the zero address"); address old = adamWallet; adamWallet = _newWallet; emit AdamWalletChanged(old, _newWallet, msg.sender); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { function hasRole(bytes32 role, address account) external view returns (bool); function getRoleAdmin(bytes32 role) external view returns (bytes32); function grantRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function renounceRole(bytes32 role, address account) external; } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, getRoleAdmin(role), adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT 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); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private 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.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 pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT 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": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address payable","name":"_adamWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"},{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdamWalletChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"address","name":"assetAddress","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"ERC20Withdrawed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"OperatorChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"settlePrice","type":"uint256"},{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"sellerPrice","type":"uint256"},{"indexed":false,"internalType":"address","name":"creater","type":"address"},{"indexed":false,"internalType":"uint256","name":"royalty","type":"uint256"},{"indexed":false,"internalType":"address","name":"adamWallet","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"Settled","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adamWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newWallet","type":"address"}],"name":"changeAdamWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOperator","type":"address"}],"name":"changeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"exclusives","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_seller","type":"address"},{"internalType":"uint256","name":"_sellerPrice","type":"uint256"},{"internalType":"address payable","name":"_creater","type":"address"},{"internalType":"uint256","name":"_royalty","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"settle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_assetAddress","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620017b1380380620017b1833981016040819052620000349162000234565b600180556001600160a01b038316620000945760405162461bcd60e51b815260206004820152601960248201527f6f776e657220697320746865207a65726f20616464726573730000000000000060448201526064015b60405180910390fd5b6001600160a01b038216620000ec5760405162461bcd60e51b815260206004820152601c60248201527f6f70657261746f7220697320746865207a65726f20616464726573730000000060448201526064016200008b565b6001600160a01b038116620001445760405162461bcd60e51b815260206004820152601e60248201527f6164616d57616c6c657420697320746865207a65726f2061646472657373000060448201526064016200008b565b6200015160008462000184565b600380546001600160a01b039384166001600160a01b0319918216179091556004805492909316911617905550620002a0565b62000190828262000194565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000190576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001f03390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008060006060848603121562000249578283fd5b8351620002568162000287565b6020850151909350620002698162000287565b60408501519092506200027c8162000287565b809150509250925092565b6001600160a01b03811681146200029d57600080fd5b50565b61150180620002b06000396000f3fe6080604052600436106100dd5760003560e01c806344004cc11161007f57806391d148541161005957806391d1485414610272578063a217fddf14610292578063c9b00cea146102a7578063d547741f146102c757600080fd5b806344004cc114610202578063570ca7351461022257806372d3c2fd1461024257600080fd5b80632633baf0116100bb5780632633baf0146101775780632a9ba124146101af5780632f2ff15d146101c257806336568abe146101e257600080fd5b806301ffc9a7146100e257806306394c9b14610117578063248a9ca314610139575b600080fd5b3480156100ee57600080fd5b506101026100fd366004611304565b6102e7565b60405190151581526020015b60405180910390f35b34801561012357600080fd5b506101376101323660046111b7565b61031e565b005b34801561014557600080fd5b506101696101543660046112bd565b60009081526020819052604090206001015490565b60405190815260200161010e565b34801561018357600080fd5b50600454610197906001600160a01b031681565b6040516001600160a01b03909116815260200161010e565b6101376101bd3660046111d3565b6103d9565b3480156101ce57600080fd5b506101376101dd3660046112d5565b6108f3565b3480156101ee57600080fd5b506101376101fd3660046112d5565b61091e565b34801561020e57600080fd5b5061013761021d36600461125d565b61099c565b34801561022e57600080fd5b50600354610197906001600160a01b031681565b34801561024e57600080fd5b5061010261025d3660046112bd565b60026020526000908152604090205460ff1681565b34801561027e57600080fd5b5061010261028d3660046112d5565b610ae0565b34801561029e57600080fd5b50610169600081565b3480156102b357600080fd5b506101376102c23660046111b7565b610b09565b3480156102d357600080fd5b506101376102e23660046112d5565b610bbf565b60006001600160e01b03198216637965db0b60e01b148061031857506301ffc9a760e01b6001600160e01b03198316145b92915050565b600061032a8133610be5565b6001600160a01b0382166103855760405162461bcd60e51b815260206004820181905260248201527f6e6577206f70657261746f7220697320746865207a65726f206164647265737360448201526064015b60405180910390fd5b600380546001600160a01b038481166001600160a01b031983168117909355604051911691339183907f01c8730122ff73369629940a5296f4e7100ef16317d943fbbbfa1b0193ac35cb90600090a4505050565b6002600154141561042c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161037c565b60026001556004546040516bffffffffffffffffffffffff1933606090811b821660208401523460348401528c811b82166054840152606883018c90528a811b82166088840152609c83018a90529290921b90911660bc82015260d0810185905260f081018690526000906101100160408051808303601f1901815282825280516020918201206003546000855291840180845281905260ff88169284019290925260608301869052608083018590529092506001600160a01b03169060019060a0016020604051602081039080840390855afa158015610511573d6000803e3d6000fd5b505050602060405103516001600160a01b0316146105655760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b604482015260640161037c565b4286101561059f5760405162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b604482015260640161037c565b60008581526002602052604090205460ff16156105ec5760405162461bcd60e51b815260206004820152600b60248201526a1a1859081cd95d1d1b195960aa1b604482015260640161037c565b6105f6878a611408565b34101561063c5760405162461bcd60e51b81526020600482015260146024820152731d1a19481c1c9a58d9481a5cc81a5b9d985b1a5960621b604482015260640161037c565b6000858152600260205260409020805460ff1916600117905588156107005760008a6001600160a01b03168a60405160006040518083038185875af1925050503d80600081146106a8576040519150601f19603f3d011682016040523d82523d6000602084013e6106ad565b606091505b50509050806106fe5760405162461bcd60e51b815260206004820152601c60248201527f6661696c656420746f2073656e642045544820746f2073656c6c657200000000604482015260640161037c565b505b86156107ab576000886001600160a01b03168860405160006040518083038185875af1925050503d8060008114610753576040519150601f19603f3d011682016040523d82523d6000602084013e610758565b606091505b50509050806107a95760405162461bcd60e51b815260206004820152601d60248201527f6661696c656420746f2073656e642045544820746f2063726561746572000000604482015260640161037c565b505b6000876107b88b3461143f565b6107c2919061143f565b90508015610879576004546040516000916001600160a01b03169083908381818185875af1925050503d8060008114610817576040519150601f19603f3d011682016040523d82523d6000602084013e61081c565b606091505b50509050806108775760405162461bcd60e51b815260206004820152602160248201527f6661696c656420746f2073656e642045544820746f206164616d2077616c6c656044820152601d60fa1b606482015260840161037c565b505b60045460408051348152602081018d90526001600160a01b038c811682840152606082018c9052928316608082015260a081018a9052905188928e169133917f939d4ccbfdaefb1976e8df53cf5eecdedc4dae885840a957de688a88f5f1513b9181900360c00190a4505060018055505050505050505050565b60008281526020819052604090206001015461090f8133610be5565b6109198383610c49565b505050565b6001600160a01b038116331461098e5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161037c565b6109988282610ccd565b5050565b60006109a88133610be5565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156109e757600080fd5b505afa1580156109fb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1f919061132c565b821115610a7e5760405162461bcd60e51b815260206004820152602760248201527f74686520455243323020746f6b656e2062616c616e636520697320696e737566604482015266199a58da595b9d60ca1b606482015260840161037c565b610a926001600160a01b0385168484610d32565b604080518381526001600160a01b0386811660208301523392908616917f34e2644334afd779cd4559173df184119822f5366818a6e6c57244ca5165783e910160405180910390a350505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000610b158133610be5565b6001600160a01b038216610b6b5760405162461bcd60e51b815260206004820152601e60248201527f6e65772077616c6c657420697320746865207a65726f20616464726573730000604482015260640161037c565b600480546001600160a01b038481166001600160a01b031983168117909355604051911691339183907f136945f6642d75daa7931b900740c69e02d76aa95049c9174323056b430fded490600090a4505050565b600082815260208190526040902060010154610bdb8133610be5565b6109198383610ccd565b610bef8282610ae0565b61099857610c07816001600160a01b03166014610d84565b610c12836020610d84565b604051602001610c23929190611360565b60408051601f198184030181529082905262461bcd60e51b825261037c916004016113d5565b610c538282610ae0565b610998576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610c893390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610cd78282610ae0565b15610998576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610919908490610f6d565b60606000610d93836002611420565b610d9e906002611408565b67ffffffffffffffff811115610dc457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610dee576020820181803683370190505b509050600360fc1b81600081518110610e1757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610e5457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000610e78846002611420565b610e83906001611408565b90505b6001811115610f17576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610ec557634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110610ee957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93610f1081611486565b9050610e86565b508315610f665760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161037c565b9392505050565b6000610fc2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661103f9092919063ffffffff16565b8051909150156109195780806020019051810190610fe0919061129d565b6109195760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161037c565b606061104e8484600085611056565b949350505050565b6060824710156110b75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161037c565b843b6111055760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161037c565b600080866001600160a01b031685876040516111219190611344565b60006040518083038185875af1925050503d806000811461115e576040519150601f19603f3d011682016040523d82523d6000602084013e611163565b606091505b509150915061117382828661117e565b979650505050505050565b6060831561118d575081610f66565b82511561119d5782518084602001fd5b8160405162461bcd60e51b815260040161037c91906113d5565b6000602082840312156111c8578081fd5b8135610f66816114b3565b60008060008060008060008060006101208a8c0312156111f1578485fd5b89356111fc816114b3565b985060208a0135975060408a0135611213816114b3565b965060608a0135955060808a0135945060a08a0135935060c08a013560ff8116811461123d578384fd5b8093505060e08a013591506101008a013590509295985092959850929598565b600080600060608486031215611271578283fd5b833561127c816114b3565b9250602084013561128c816114b3565b929592945050506040919091013590565b6000602082840312156112ae578081fd5b81518015158114610f66578182fd5b6000602082840312156112ce578081fd5b5035919050565b600080604083850312156112e7578182fd5b8235915060208301356112f9816114b3565b809150509250929050565b600060208284031215611315578081fd5b81356001600160e01b031981168114610f66578182fd5b60006020828403121561133d578081fd5b5051919050565b60008251611356818460208701611456565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611398816017850160208801611456565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516113c9816028840160208801611456565b01602801949350505050565b60208152600082518060208401526113f4816040850160208701611456565b601f01601f19169190910160400192915050565b6000821982111561141b5761141b61149d565b500190565b600081600019048311821515161561143a5761143a61149d565b500290565b6000828210156114515761145161149d565b500390565b60005b83811015611471578181015183820152602001611459565b83811115611480576000848401525b50505050565b6000816114955761149561149d565b506000190190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146114c857600080fd5b5056fea264697066735822122053c2484c8145e68c78a6ce411a325e1405a026e0354f949cd4defd1d0c41893264736f6c63430008040033000000000000000000000000fe67433f8d9c93f0b00a656c02da3cc425f6eeca0000000000000000000000002d2c9f9512727c08bd50bf4018c189bfb9123602000000000000000000000000a28ddcbf2d95b7f21b2386715514575613b3c6a6
Deployed Bytecode
0x6080604052600436106100dd5760003560e01c806344004cc11161007f57806391d148541161005957806391d1485414610272578063a217fddf14610292578063c9b00cea146102a7578063d547741f146102c757600080fd5b806344004cc114610202578063570ca7351461022257806372d3c2fd1461024257600080fd5b80632633baf0116100bb5780632633baf0146101775780632a9ba124146101af5780632f2ff15d146101c257806336568abe146101e257600080fd5b806301ffc9a7146100e257806306394c9b14610117578063248a9ca314610139575b600080fd5b3480156100ee57600080fd5b506101026100fd366004611304565b6102e7565b60405190151581526020015b60405180910390f35b34801561012357600080fd5b506101376101323660046111b7565b61031e565b005b34801561014557600080fd5b506101696101543660046112bd565b60009081526020819052604090206001015490565b60405190815260200161010e565b34801561018357600080fd5b50600454610197906001600160a01b031681565b6040516001600160a01b03909116815260200161010e565b6101376101bd3660046111d3565b6103d9565b3480156101ce57600080fd5b506101376101dd3660046112d5565b6108f3565b3480156101ee57600080fd5b506101376101fd3660046112d5565b61091e565b34801561020e57600080fd5b5061013761021d36600461125d565b61099c565b34801561022e57600080fd5b50600354610197906001600160a01b031681565b34801561024e57600080fd5b5061010261025d3660046112bd565b60026020526000908152604090205460ff1681565b34801561027e57600080fd5b5061010261028d3660046112d5565b610ae0565b34801561029e57600080fd5b50610169600081565b3480156102b357600080fd5b506101376102c23660046111b7565b610b09565b3480156102d357600080fd5b506101376102e23660046112d5565b610bbf565b60006001600160e01b03198216637965db0b60e01b148061031857506301ffc9a760e01b6001600160e01b03198316145b92915050565b600061032a8133610be5565b6001600160a01b0382166103855760405162461bcd60e51b815260206004820181905260248201527f6e6577206f70657261746f7220697320746865207a65726f206164647265737360448201526064015b60405180910390fd5b600380546001600160a01b038481166001600160a01b031983168117909355604051911691339183907f01c8730122ff73369629940a5296f4e7100ef16317d943fbbbfa1b0193ac35cb90600090a4505050565b6002600154141561042c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161037c565b60026001556004546040516bffffffffffffffffffffffff1933606090811b821660208401523460348401528c811b82166054840152606883018c90528a811b82166088840152609c83018a90529290921b90911660bc82015260d0810185905260f081018690526000906101100160408051808303601f1901815282825280516020918201206003546000855291840180845281905260ff88169284019290925260608301869052608083018590529092506001600160a01b03169060019060a0016020604051602081039080840390855afa158015610511573d6000803e3d6000fd5b505050602060405103516001600160a01b0316146105655760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b604482015260640161037c565b4286101561059f5760405162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b604482015260640161037c565b60008581526002602052604090205460ff16156105ec5760405162461bcd60e51b815260206004820152600b60248201526a1a1859081cd95d1d1b195960aa1b604482015260640161037c565b6105f6878a611408565b34101561063c5760405162461bcd60e51b81526020600482015260146024820152731d1a19481c1c9a58d9481a5cc81a5b9d985b1a5960621b604482015260640161037c565b6000858152600260205260409020805460ff1916600117905588156107005760008a6001600160a01b03168a60405160006040518083038185875af1925050503d80600081146106a8576040519150601f19603f3d011682016040523d82523d6000602084013e6106ad565b606091505b50509050806106fe5760405162461bcd60e51b815260206004820152601c60248201527f6661696c656420746f2073656e642045544820746f2073656c6c657200000000604482015260640161037c565b505b86156107ab576000886001600160a01b03168860405160006040518083038185875af1925050503d8060008114610753576040519150601f19603f3d011682016040523d82523d6000602084013e610758565b606091505b50509050806107a95760405162461bcd60e51b815260206004820152601d60248201527f6661696c656420746f2073656e642045544820746f2063726561746572000000604482015260640161037c565b505b6000876107b88b3461143f565b6107c2919061143f565b90508015610879576004546040516000916001600160a01b03169083908381818185875af1925050503d8060008114610817576040519150601f19603f3d011682016040523d82523d6000602084013e61081c565b606091505b50509050806108775760405162461bcd60e51b815260206004820152602160248201527f6661696c656420746f2073656e642045544820746f206164616d2077616c6c656044820152601d60fa1b606482015260840161037c565b505b60045460408051348152602081018d90526001600160a01b038c811682840152606082018c9052928316608082015260a081018a9052905188928e169133917f939d4ccbfdaefb1976e8df53cf5eecdedc4dae885840a957de688a88f5f1513b9181900360c00190a4505060018055505050505050505050565b60008281526020819052604090206001015461090f8133610be5565b6109198383610c49565b505050565b6001600160a01b038116331461098e5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161037c565b6109988282610ccd565b5050565b60006109a88133610be5565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156109e757600080fd5b505afa1580156109fb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1f919061132c565b821115610a7e5760405162461bcd60e51b815260206004820152602760248201527f74686520455243323020746f6b656e2062616c616e636520697320696e737566604482015266199a58da595b9d60ca1b606482015260840161037c565b610a926001600160a01b0385168484610d32565b604080518381526001600160a01b0386811660208301523392908616917f34e2644334afd779cd4559173df184119822f5366818a6e6c57244ca5165783e910160405180910390a350505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000610b158133610be5565b6001600160a01b038216610b6b5760405162461bcd60e51b815260206004820152601e60248201527f6e65772077616c6c657420697320746865207a65726f20616464726573730000604482015260640161037c565b600480546001600160a01b038481166001600160a01b031983168117909355604051911691339183907f136945f6642d75daa7931b900740c69e02d76aa95049c9174323056b430fded490600090a4505050565b600082815260208190526040902060010154610bdb8133610be5565b6109198383610ccd565b610bef8282610ae0565b61099857610c07816001600160a01b03166014610d84565b610c12836020610d84565b604051602001610c23929190611360565b60408051601f198184030181529082905262461bcd60e51b825261037c916004016113d5565b610c538282610ae0565b610998576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610c893390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610cd78282610ae0565b15610998576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610919908490610f6d565b60606000610d93836002611420565b610d9e906002611408565b67ffffffffffffffff811115610dc457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610dee576020820181803683370190505b509050600360fc1b81600081518110610e1757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610e5457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000610e78846002611420565b610e83906001611408565b90505b6001811115610f17576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610ec557634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110610ee957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93610f1081611486565b9050610e86565b508315610f665760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161037c565b9392505050565b6000610fc2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661103f9092919063ffffffff16565b8051909150156109195780806020019051810190610fe0919061129d565b6109195760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161037c565b606061104e8484600085611056565b949350505050565b6060824710156110b75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161037c565b843b6111055760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161037c565b600080866001600160a01b031685876040516111219190611344565b60006040518083038185875af1925050503d806000811461115e576040519150601f19603f3d011682016040523d82523d6000602084013e611163565b606091505b509150915061117382828661117e565b979650505050505050565b6060831561118d575081610f66565b82511561119d5782518084602001fd5b8160405162461bcd60e51b815260040161037c91906113d5565b6000602082840312156111c8578081fd5b8135610f66816114b3565b60008060008060008060008060006101208a8c0312156111f1578485fd5b89356111fc816114b3565b985060208a0135975060408a0135611213816114b3565b965060608a0135955060808a0135945060a08a0135935060c08a013560ff8116811461123d578384fd5b8093505060e08a013591506101008a013590509295985092959850929598565b600080600060608486031215611271578283fd5b833561127c816114b3565b9250602084013561128c816114b3565b929592945050506040919091013590565b6000602082840312156112ae578081fd5b81518015158114610f66578182fd5b6000602082840312156112ce578081fd5b5035919050565b600080604083850312156112e7578182fd5b8235915060208301356112f9816114b3565b809150509250929050565b600060208284031215611315578081fd5b81356001600160e01b031981168114610f66578182fd5b60006020828403121561133d578081fd5b5051919050565b60008251611356818460208701611456565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611398816017850160208801611456565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516113c9816028840160208801611456565b01602801949350505050565b60208152600082518060208401526113f4816040850160208701611456565b601f01601f19169190910160400192915050565b6000821982111561141b5761141b61149d565b500190565b600081600019048311821515161561143a5761143a61149d565b500290565b6000828210156114515761145161149d565b500390565b60005b83811015611471578181015183820152602001611459565b83811115611480576000848401525b50505050565b6000816114955761149561149d565b506000190190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146114c857600080fd5b5056fea264697066735822122053c2484c8145e68c78a6ce411a325e1405a026e0354f949cd4defd1d0c41893264736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fe67433f8d9c93f0b00a656c02da3cc425f6eeca0000000000000000000000002d2c9f9512727c08bd50bf4018c189bfb9123602000000000000000000000000a28ddcbf2d95b7f21b2386715514575613b3c6a6
-----Decoded View---------------
Arg [0] : _owner (address): 0xFE67433f8d9c93F0B00a656c02da3Cc425f6EECA
Arg [1] : _operator (address): 0x2d2c9F9512727c08Bd50bF4018c189BFB9123602
Arg [2] : _adamWallet (address): 0xA28dDcBF2d95b7f21b2386715514575613B3c6A6
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000fe67433f8d9c93f0b00a656c02da3cc425f6eeca
Arg [1] : 0000000000000000000000002d2c9f9512727c08bd50bf4018c189bfb9123602
Arg [2] : 000000000000000000000000a28ddcbf2d95b7f21b2386715514575613b3c6a6
Loading...
Loading
Loading...
Loading
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.