Source Code
Overview
POL Balance
More Info
ContractCreator
Multichain Info
N/A
Latest 2 internal transactions
| Parent Transaction Hash | Block | From | To | Amount | ||
|---|---|---|---|---|---|---|
| 13315619 | 540 days ago | Contract Creation | 0 POL | |||
| 13314130 | 540 days ago | Contract Creation | 0 POL |
Loading...
Loading
Contract Name:
PaymentForwarder
Compiler Version
v0.8.27+commit.40a35a09
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.27;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./PaymentReceiver.sol";
contract PaymentForwarder is AccessControl {
bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
address public mainAccount;
event MainAccountUpdated(address indexed oldAccount, address indexed newAccount);
event PaymentAddressGenerated(address indexed newAddress);
constructor(address _mainAccount) {
require(_mainAccount != address(0), "Invalid main account address");
mainAccount = _mainAccount;
_grantRole(ADMIN_ROLE, msg.sender);
}
modifier onlyAdmin() {
require(hasRole(ADMIN_ROLE, msg.sender), "Not an admin");
_;
}
function generatePaymentAddress() external onlyAdmin returns (address) {
PaymentReceiver receiver = new PaymentReceiver(this); // Pass the PaymentForwarder contract instance
emit PaymentAddressGenerated(address(receiver));
return address(receiver);
}
function updateMainAccount(address _newMainAccount) external onlyAdmin {
require(_newMainAccount != address(0), "Invalid new main account address");
address oldAccount = mainAccount;
mainAccount = _newMainAccount;
emit MainAccountUpdated(oldAccount, _newMainAccount);
}
function getMainAccount() external view returns (address) {
return mainAccount;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)
pragma solidity ^0.8.20;
import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {ERC165} from "../utils/introspection/ERC165.sol";
/**
* @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:
*
* ```solidity
* 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}:
*
* ```solidity
* 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. We recommend using {AccessControlDefaultAdminRules}
* to enforce additional security measures for this role.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address account => bool) hasRole;
bytes32 adminRole;
}
mapping(bytes32 role => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with an {AccessControlUnauthorizedAccount} error including the required role.
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
/**
* @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 virtual returns (bool) {
return _roles[role].hasRole[account];
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
* is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
* is missing `role`.
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert AccessControlUnauthorizedAccount(account, role);
}
}
/**
* @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 virtual 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.
*
* May emit a {RoleGranted} event.
*/
function grantRole(bytes32 role, address account) public virtual 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.
*
* May emit a {RoleRevoked} event.
*/
function revokeRole(bytes32 role, address account) public virtual 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 revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*
* May emit a {RoleRevoked} event.
*/
function renounceRole(bytes32 role, address callerConfirmation) public virtual {
if (callerConfirmation != _msgSender()) {
revert AccessControlBadConfirmation();
}
_revokeRole(role, callerConfirmation);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
if (!hasRole(role, account)) {
_roles[role].hasRole[account] = true;
emit RoleGranted(role, account, _msgSender());
return true;
} else {
return false;
}
}
/**
* @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
if (hasRole(role, account)) {
_roles[role].hasRole[account] = false;
emit RoleRevoked(role, account, _msgSender());
return true;
} else {
return false;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (access/IAccessControl.sol)
pragma solidity ^0.8.20;
/**
* @dev External interface of AccessControl declared to support ERC-165 detection.
*/
interface IAccessControl {
/**
* @dev The `account` is missing a role.
*/
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);
/**
* @dev The caller of a function is not the expected one.
*
* NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
*/
error AccessControlBadConfirmation();
/**
* @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.
*/
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. This account bears the admin role (for the granted role).
* Expected in cases where the role was granted using the internal {AccessControl-_grantRole}.
*/
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 Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @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) external;
/**
* @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) external;
/**
* @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 `callerConfirmation`.
*/
function renounceRole(bytes32 role, address callerConfirmation) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @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);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC-721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
* a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC-721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or
* {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
* a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the address zero.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC-165 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);
* }
* ```
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* 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[ERC 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 (last updated v5.1.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @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 EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* 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;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
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 making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be NOT_ENTERED
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
_status = ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == ENTERED;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.27;
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "./PaymentForwarder.sol";
contract PaymentReceiver is ReentrancyGuard {
PaymentForwarder public forwarder;
event ETHPaymentReceived(address indexed to, uint256 amount);
event ERC20PaymentReceived(address indexed to, uint256 amount, address token);
event ERC721PaymentReceived(address indexed to, address token, uint256 tokenId);
constructor(PaymentForwarder _forwarder) {
forwarder = _forwarder;
}
receive() external payable nonReentrant {
address mainAccount = forwarder.getMainAccount(); // Get main account dynamically
//(bool sent, ) = mainAccount.call{value: address(this).balance}("");
(bool sent, ) = mainAccount.call{value: msg.value}("");
require(sent, "Failed to forward Ether");
emit ETHPaymentReceived(address(this), msg.value);
}
function receiveERC20(address _token, uint256 _amount) external nonReentrant {
//require(forwarder.isTokenWhitelisted(token), "Token not whitelisted");
address mainAccount = forwarder.getMainAccount(); // Get main account dynamically
require(IERC20(_token).transfer(mainAccount, _amount), "Failed to transfer tokens");
emit ERC20PaymentReceived(address(this), _amount, _token);
}
function receiveERC721(address _token, uint256 _tokenId) external nonReentrant {
address mainAccount = forwarder.mainAccount(); // Get main account dynamically
IERC721(_token).safeTransferFrom(msg.sender, mainAccount, _tokenId);
emit ERC721PaymentReceived(address(this), _token, _tokenId);
}
}{
"evmVersion": "paris",
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract ABI
API[{"inputs":[{"internalType":"address","name":"_mainAccount","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldAccount","type":"address"},{"indexed":true,"internalType":"address","name":"newAccount","type":"address"}],"name":"MainAccountUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"PaymentAddressGenerated","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"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"generatePaymentAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getMainAccount","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"mainAccount","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newMainAccount","type":"address"}],"name":"updateMainAccount","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b50604051611cd1380380611cd1833981810160405281019061003291906102eb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161009890610375565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506101127fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753361011960201b60201c565b5050610395565b600061012b838361021660201b60201c565b61020b57600160008085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506101a861028060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610210565b600090505b92915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006102b88261028d565b9050919050565b6102c8816102ad565b81146102d357600080fd5b50565b6000815190506102e5816102bf565b92915050565b60006020828403121561030157610300610288565b5b600061030f848285016102d6565b91505092915050565b600082825260208201905092915050565b7f496e76616c6964206d61696e206163636f756e74206164647265737300000000600082015250565b600061035f601c83610318565b915061036a82610329565b602082019050919050565b6000602082019050818103600083015261038e81610352565b9050919050565b61192d806103a46000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063610af11311610071578063610af1131461018d57806375b238fc146101ab57806391d14854146101c9578063a217fddf146101f9578063d547741f14610217578063ec79ea2814610233576100b4565b806301ffc9a7146100b95780630ca7ff3b146100e95780631123cfe014610107578063248a9ca3146101255780632f2ff15d1461015557806336568abe14610171575b600080fd5b6100d360048036038101906100ce9190610a3b565b61024f565b6040516100e09190610a83565b60405180910390f35b6100f16102c9565b6040516100fe9190610adf565b60405180910390f35b61010f6102f3565b60405161011c9190610adf565b60405180910390f35b61013f600480360381019061013a9190610b30565b610319565b60405161014c9190610b6c565b60405180910390f35b61016f600480360381019061016a9190610bb3565b610338565b005b61018b60048036038101906101869190610bb3565b61035a565b005b6101956103d5565b6040516101a29190610adf565b60405180910390f35b6101b36104c2565b6040516101c09190610b6c565b60405180910390f35b6101e360048036038101906101de9190610bb3565b6104e6565b6040516101f09190610a83565b60405180910390f35b610201610550565b60405161020e9190610b6c565b60405180910390f35b610231600480360381019061022c9190610bb3565b610557565b005b61024d60048036038101906102489190610bf3565b610579565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102c257506102c182610717565b5b9050919050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000838152602001908152602001600020600101549050919050565b61034182610319565b61034a81610781565b6103548383610795565b50505050565b610362610886565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146103c6576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103d0828261088e565b505050565b60006104017fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336104e6565b610440576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043790610c7d565b60405180910390fd5b60003060405161044f906109d1565b6104599190610cfc565b604051809103906000f080158015610475573d6000803e3d6000fd5b5090508073ffffffffffffffffffffffffffffffffffffffff167fcdcdccd547085bdf4365fd7a9a2aca1adff31049d0ce4f9327d20235ab41f55c60405160405180910390a28091505090565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b61056082610319565b61056981610781565b610573838361088e565b50505050565b6105a37fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336104e6565b6105e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d990610c7d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610651576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064890610d63565b60405180910390fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167ff6dac56462f5ae8efc9ce229fb7087758bcdfc8e255bb7034cf3e4ebba2900e760405160405180910390a35050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6107928161078d610886565b610980565b50565b60006107a183836104e6565b61087b57600160008085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610818610886565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610880565b600090505b92915050565b600033905090565b600061089a83836104e6565b1561097557600080600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610912610886565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a46001905061097a565b600090505b92915050565b61098a82826104e6565b6109cd5780826040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526004016109c4929190610d83565b60405180910390fd5b5050565b610b4b80610dad83390190565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b610a18816109e3565b8114610a2357600080fd5b50565b600081359050610a3581610a0f565b92915050565b600060208284031215610a5157610a506109de565b5b6000610a5f84828501610a26565b91505092915050565b60008115159050919050565b610a7d81610a68565b82525050565b6000602082019050610a986000830184610a74565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610ac982610a9e565b9050919050565b610ad981610abe565b82525050565b6000602082019050610af46000830184610ad0565b92915050565b6000819050919050565b610b0d81610afa565b8114610b1857600080fd5b50565b600081359050610b2a81610b04565b92915050565b600060208284031215610b4657610b456109de565b5b6000610b5484828501610b1b565b91505092915050565b610b6681610afa565b82525050565b6000602082019050610b816000830184610b5d565b92915050565b610b9081610abe565b8114610b9b57600080fd5b50565b600081359050610bad81610b87565b92915050565b60008060408385031215610bca57610bc96109de565b5b6000610bd885828601610b1b565b9250506020610be985828601610b9e565b9150509250929050565b600060208284031215610c0957610c086109de565b5b6000610c1784828501610b9e565b91505092915050565b600082825260208201905092915050565b7f4e6f7420616e2061646d696e0000000000000000000000000000000000000000600082015250565b6000610c67600c83610c20565b9150610c7282610c31565b602082019050919050565b60006020820190508181036000830152610c9681610c5a565b9050919050565b6000819050919050565b6000610cc2610cbd610cb884610a9e565b610c9d565b610a9e565b9050919050565b6000610cd482610ca7565b9050919050565b6000610ce682610cc9565b9050919050565b610cf681610cdb565b82525050565b6000602082019050610d116000830184610ced565b92915050565b7f496e76616c6964206e6577206d61696e206163636f756e742061646472657373600082015250565b6000610d4d602083610c20565b9150610d5882610d17565b602082019050919050565b60006020820190508181036000830152610d7c81610d40565b9050919050565b6000604082019050610d986000830185610ad0565b610da56020830184610b5d565b939250505056fe608060405234801561001057600080fd5b50604051610b4b380380610b4b833981810160405281019061003291906100f6565b600160008190555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610123565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006100b182610086565b9050919050565b60006100c3826100a6565b9050919050565b6100d3816100b8565b81146100de57600080fd5b50565b6000815190506100f0816100ca565b92915050565b60006020828403121561010c5761010b610081565b5b600061011a848285016100e1565b91505092915050565b610a19806101326000396000f3fe6080604052600436106100385760003560e01c80631af2a57c146101e5578063aed4aab61461020e578063f645d4f914610237576101e0565b366101e057610045610262565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630ca7ff3b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d8919061065b565b905060008173ffffffffffffffffffffffffffffffffffffffff1634604051610100906106b9565b60006040518083038185875af1925050503d806000811461013d576040519150601f19603f3d011682016040523d82523d6000602084013e610142565b606091505b5050905080610186576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161017d9061072b565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff167f8757c3a014d886393776e3054da12d64c546871d6d6951359cbc3c85e5794904346040516101cc9190610764565b60405180910390a250506101de6102a8565b005b600080fd5b3480156101f157600080fd5b5061020c600480360381019061020791906107c0565b6102b2565b005b34801561021a57600080fd5b50610235600480360381019061023091906107c0565b61041b565b005b34801561024357600080fd5b5061024c6105d2565b604051610259919061085f565b60405180910390f35b60026000540361029e576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600081905550565b6001600081905550565b6102ba610262565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631123cfe06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610329573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034d919061065b565b90508273ffffffffffffffffffffffffffffffffffffffff166342842e0e3383856040518463ffffffff1660e01b815260040161038c93929190610889565b600060405180830381600087803b1580156103a657600080fd5b505af11580156103ba573d6000803e3d6000fd5b505050503073ffffffffffffffffffffffffffffffffffffffff167f32e9a20b07b9661463995d0bf52326525753feccd8497467fc8e4124604e065184846040516104069291906108c0565b60405180910390a2506104176102a8565b5050565b610423610262565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630ca7ff3b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610492573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b6919061065b565b90508273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82846040518363ffffffff1660e01b81526004016104f39291906108c0565b6020604051808303816000875af1158015610512573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105369190610921565b610575576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056c9061099a565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff167f1d1c952b714489245345c20c53612a2b20dd7396b9a61266d6780574a8c24de483856040516105bd9291906109ba565b60405180910390a2506105ce6102a8565b5050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610628826105fd565b9050919050565b6106388161061d565b811461064357600080fd5b50565b6000815190506106558161062f565b92915050565b600060208284031215610671576106706105f8565b5b600061067f84828501610646565b91505092915050565b600081905092915050565b50565b60006106a3600083610688565b91506106ae82610693565b600082019050919050565b60006106c482610696565b9150819050919050565b600082825260208201905092915050565b7f4661696c656420746f20666f7277617264204574686572000000000000000000600082015250565b60006107156017836106ce565b9150610720826106df565b602082019050919050565b6000602082019050818103600083015261074481610708565b9050919050565b6000819050919050565b61075e8161074b565b82525050565b60006020820190506107796000830184610755565b92915050565b60008135905061078e8161062f565b92915050565b61079d8161074b565b81146107a857600080fd5b50565b6000813590506107ba81610794565b92915050565b600080604083850312156107d7576107d66105f8565b5b60006107e58582860161077f565b92505060206107f6858286016107ab565b9150509250929050565b6000819050919050565b600061082561082061081b846105fd565b610800565b6105fd565b9050919050565b60006108378261080a565b9050919050565b60006108498261082c565b9050919050565b6108598161083e565b82525050565b60006020820190506108746000830184610850565b92915050565b6108838161061d565b82525050565b600060608201905061089e600083018661087a565b6108ab602083018561087a565b6108b86040830184610755565b949350505050565b60006040820190506108d5600083018561087a565b6108e26020830184610755565b9392505050565b60008115159050919050565b6108fe816108e9565b811461090957600080fd5b50565b60008151905061091b816108f5565b92915050565b600060208284031215610937576109366105f8565b5b60006109458482850161090c565b91505092915050565b7f4661696c656420746f207472616e7366657220746f6b656e7300000000000000600082015250565b60006109846019836106ce565b915061098f8261094e565b602082019050919050565b600060208201905081810360008301526109b381610977565b9050919050565b60006040820190506109cf6000830185610755565b6109dc602083018461087a565b939250505056fea264697066735822122014eb40dd849548915fc15e25c12bd0d3c835ab33761600a7be5a6907f68ded5364736f6c634300081b0033a264697066735822122028aacb38147e96d81618ff2fdc1d5daab15e20b85dce661008bf002596db30bb64736f6c634300081b00330000000000000000000000004df3f3dbce21684f453db1ffeac9cb35618c5d54
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063610af11311610071578063610af1131461018d57806375b238fc146101ab57806391d14854146101c9578063a217fddf146101f9578063d547741f14610217578063ec79ea2814610233576100b4565b806301ffc9a7146100b95780630ca7ff3b146100e95780631123cfe014610107578063248a9ca3146101255780632f2ff15d1461015557806336568abe14610171575b600080fd5b6100d360048036038101906100ce9190610a3b565b61024f565b6040516100e09190610a83565b60405180910390f35b6100f16102c9565b6040516100fe9190610adf565b60405180910390f35b61010f6102f3565b60405161011c9190610adf565b60405180910390f35b61013f600480360381019061013a9190610b30565b610319565b60405161014c9190610b6c565b60405180910390f35b61016f600480360381019061016a9190610bb3565b610338565b005b61018b60048036038101906101869190610bb3565b61035a565b005b6101956103d5565b6040516101a29190610adf565b60405180910390f35b6101b36104c2565b6040516101c09190610b6c565b60405180910390f35b6101e360048036038101906101de9190610bb3565b6104e6565b6040516101f09190610a83565b60405180910390f35b610201610550565b60405161020e9190610b6c565b60405180910390f35b610231600480360381019061022c9190610bb3565b610557565b005b61024d60048036038101906102489190610bf3565b610579565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102c257506102c182610717565b5b9050919050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000838152602001908152602001600020600101549050919050565b61034182610319565b61034a81610781565b6103548383610795565b50505050565b610362610886565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146103c6576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103d0828261088e565b505050565b60006104017fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336104e6565b610440576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043790610c7d565b60405180910390fd5b60003060405161044f906109d1565b6104599190610cfc565b604051809103906000f080158015610475573d6000803e3d6000fd5b5090508073ffffffffffffffffffffffffffffffffffffffff167fcdcdccd547085bdf4365fd7a9a2aca1adff31049d0ce4f9327d20235ab41f55c60405160405180910390a28091505090565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b61056082610319565b61056981610781565b610573838361088e565b50505050565b6105a37fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336104e6565b6105e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d990610c7d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610651576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064890610d63565b60405180910390fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167ff6dac56462f5ae8efc9ce229fb7087758bcdfc8e255bb7034cf3e4ebba2900e760405160405180910390a35050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6107928161078d610886565b610980565b50565b60006107a183836104e6565b61087b57600160008085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610818610886565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610880565b600090505b92915050565b600033905090565b600061089a83836104e6565b1561097557600080600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610912610886565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a46001905061097a565b600090505b92915050565b61098a82826104e6565b6109cd5780826040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526004016109c4929190610d83565b60405180910390fd5b5050565b610b4b80610dad83390190565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b610a18816109e3565b8114610a2357600080fd5b50565b600081359050610a3581610a0f565b92915050565b600060208284031215610a5157610a506109de565b5b6000610a5f84828501610a26565b91505092915050565b60008115159050919050565b610a7d81610a68565b82525050565b6000602082019050610a986000830184610a74565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610ac982610a9e565b9050919050565b610ad981610abe565b82525050565b6000602082019050610af46000830184610ad0565b92915050565b6000819050919050565b610b0d81610afa565b8114610b1857600080fd5b50565b600081359050610b2a81610b04565b92915050565b600060208284031215610b4657610b456109de565b5b6000610b5484828501610b1b565b91505092915050565b610b6681610afa565b82525050565b6000602082019050610b816000830184610b5d565b92915050565b610b9081610abe565b8114610b9b57600080fd5b50565b600081359050610bad81610b87565b92915050565b60008060408385031215610bca57610bc96109de565b5b6000610bd885828601610b1b565b9250506020610be985828601610b9e565b9150509250929050565b600060208284031215610c0957610c086109de565b5b6000610c1784828501610b9e565b91505092915050565b600082825260208201905092915050565b7f4e6f7420616e2061646d696e0000000000000000000000000000000000000000600082015250565b6000610c67600c83610c20565b9150610c7282610c31565b602082019050919050565b60006020820190508181036000830152610c9681610c5a565b9050919050565b6000819050919050565b6000610cc2610cbd610cb884610a9e565b610c9d565b610a9e565b9050919050565b6000610cd482610ca7565b9050919050565b6000610ce682610cc9565b9050919050565b610cf681610cdb565b82525050565b6000602082019050610d116000830184610ced565b92915050565b7f496e76616c6964206e6577206d61696e206163636f756e742061646472657373600082015250565b6000610d4d602083610c20565b9150610d5882610d17565b602082019050919050565b60006020820190508181036000830152610d7c81610d40565b9050919050565b6000604082019050610d986000830185610ad0565b610da56020830184610b5d565b939250505056fe608060405234801561001057600080fd5b50604051610b4b380380610b4b833981810160405281019061003291906100f6565b600160008190555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610123565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006100b182610086565b9050919050565b60006100c3826100a6565b9050919050565b6100d3816100b8565b81146100de57600080fd5b50565b6000815190506100f0816100ca565b92915050565b60006020828403121561010c5761010b610081565b5b600061011a848285016100e1565b91505092915050565b610a19806101326000396000f3fe6080604052600436106100385760003560e01c80631af2a57c146101e5578063aed4aab61461020e578063f645d4f914610237576101e0565b366101e057610045610262565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630ca7ff3b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d8919061065b565b905060008173ffffffffffffffffffffffffffffffffffffffff1634604051610100906106b9565b60006040518083038185875af1925050503d806000811461013d576040519150601f19603f3d011682016040523d82523d6000602084013e610142565b606091505b5050905080610186576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161017d9061072b565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff167f8757c3a014d886393776e3054da12d64c546871d6d6951359cbc3c85e5794904346040516101cc9190610764565b60405180910390a250506101de6102a8565b005b600080fd5b3480156101f157600080fd5b5061020c600480360381019061020791906107c0565b6102b2565b005b34801561021a57600080fd5b50610235600480360381019061023091906107c0565b61041b565b005b34801561024357600080fd5b5061024c6105d2565b604051610259919061085f565b60405180910390f35b60026000540361029e576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600081905550565b6001600081905550565b6102ba610262565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631123cfe06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610329573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034d919061065b565b90508273ffffffffffffffffffffffffffffffffffffffff166342842e0e3383856040518463ffffffff1660e01b815260040161038c93929190610889565b600060405180830381600087803b1580156103a657600080fd5b505af11580156103ba573d6000803e3d6000fd5b505050503073ffffffffffffffffffffffffffffffffffffffff167f32e9a20b07b9661463995d0bf52326525753feccd8497467fc8e4124604e065184846040516104069291906108c0565b60405180910390a2506104176102a8565b5050565b610423610262565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630ca7ff3b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610492573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b6919061065b565b90508273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82846040518363ffffffff1660e01b81526004016104f39291906108c0565b6020604051808303816000875af1158015610512573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105369190610921565b610575576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056c9061099a565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff167f1d1c952b714489245345c20c53612a2b20dd7396b9a61266d6780574a8c24de483856040516105bd9291906109ba565b60405180910390a2506105ce6102a8565b5050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610628826105fd565b9050919050565b6106388161061d565b811461064357600080fd5b50565b6000815190506106558161062f565b92915050565b600060208284031215610671576106706105f8565b5b600061067f84828501610646565b91505092915050565b600081905092915050565b50565b60006106a3600083610688565b91506106ae82610693565b600082019050919050565b60006106c482610696565b9150819050919050565b600082825260208201905092915050565b7f4661696c656420746f20666f7277617264204574686572000000000000000000600082015250565b60006107156017836106ce565b9150610720826106df565b602082019050919050565b6000602082019050818103600083015261074481610708565b9050919050565b6000819050919050565b61075e8161074b565b82525050565b60006020820190506107796000830184610755565b92915050565b60008135905061078e8161062f565b92915050565b61079d8161074b565b81146107a857600080fd5b50565b6000813590506107ba81610794565b92915050565b600080604083850312156107d7576107d66105f8565b5b60006107e58582860161077f565b92505060206107f6858286016107ab565b9150509250929050565b6000819050919050565b600061082561082061081b846105fd565b610800565b6105fd565b9050919050565b60006108378261080a565b9050919050565b60006108498261082c565b9050919050565b6108598161083e565b82525050565b60006020820190506108746000830184610850565b92915050565b6108838161061d565b82525050565b600060608201905061089e600083018661087a565b6108ab602083018561087a565b6108b86040830184610755565b949350505050565b60006040820190506108d5600083018561087a565b6108e26020830184610755565b9392505050565b60008115159050919050565b6108fe816108e9565b811461090957600080fd5b50565b60008151905061091b816108f5565b92915050565b600060208284031215610937576109366105f8565b5b60006109458482850161090c565b91505092915050565b7f4661696c656420746f207472616e7366657220746f6b656e7300000000000000600082015250565b60006109846019836106ce565b915061098f8261094e565b602082019050919050565b600060208201905081810360008301526109b381610977565b9050919050565b60006040820190506109cf6000830185610755565b6109dc602083018461087a565b939250505056fea264697066735822122014eb40dd849548915fc15e25c12bd0d3c835ab33761600a7be5a6907f68ded5364736f6c634300081b0033a264697066735822122028aacb38147e96d81618ff2fdc1d5daab15e20b85dce661008bf002596db30bb64736f6c634300081b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004df3f3dbce21684f453db1ffeac9cb35618c5d54
-----Decoded View---------------
Arg [0] : _mainAccount (address): 0x4Df3F3dBCE21684F453dB1FFEac9CB35618C5D54
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004df3f3dbce21684f453db1ffeac9cb35618c5d54
Loading...
Loading
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.