Source Code
Latest 25 from a total of 412 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Distribute NFT | 36695322 | 127 days ago | IN | 0 ETH | 0.00000123 | ||||
| Add Distributor | 36695312 | 127 days ago | IN | 0 ETH | 0.00000078 | ||||
| Remove Distribut... | 35917916 | 145 days ago | IN | 0 ETH | 0.00000036 | ||||
| Remove Distribut... | 35917906 | 145 days ago | IN | 0 ETH | 0.00000036 | ||||
| Remove Distribut... | 35917886 | 145 days ago | IN | 0 ETH | 0.00000034 | ||||
| Remove Distribut... | 35917869 | 145 days ago | IN | 0 ETH | 0.00000034 | ||||
| Distribute NF Ts | 35180908 | 162 days ago | IN | 0 ETH | 0.00000014 | ||||
| Distribute NF Ts | 35180904 | 162 days ago | IN | 0 ETH | 0.00000016 | ||||
| Distribute NF Ts | 35180900 | 162 days ago | IN | 0 ETH | 0.00000014 | ||||
| Distribute NF Ts | 35180896 | 162 days ago | IN | 0 ETH | 0.00000014 | ||||
| Distribute NF Ts | 35180892 | 162 days ago | IN | 0 ETH | 0.00000014 | ||||
| Distribute NF Ts | 35180888 | 162 days ago | IN | 0 ETH | 0.00000014 | ||||
| Distribute NF Ts | 35180885 | 162 days ago | IN | 0 ETH | 0.00000014 | ||||
| Distribute NF Ts | 35180882 | 162 days ago | IN | 0 ETH | 0.00000014 | ||||
| Distribute NF Ts | 35180878 | 162 days ago | IN | 0 ETH | 0.00000014 | ||||
| Distribute NF Ts | 35180876 | 162 days ago | IN | 0 ETH | 0.00000014 | ||||
| Distribute NF Ts | 35180874 | 162 days ago | IN | 0 ETH | 0.00000016 | ||||
| Distribute NF Ts | 35180870 | 162 days ago | IN | 0 ETH | 0.00000016 | ||||
| Distribute NF Ts | 35180866 | 162 days ago | IN | 0 ETH | 0.00000016 | ||||
| Distribute NF Ts | 35180864 | 162 days ago | IN | 0 ETH | 0.00000016 | ||||
| Distribute NF Ts | 35180860 | 162 days ago | IN | 0 ETH | 0.00000016 | ||||
| Distribute NF Ts | 35180858 | 162 days ago | IN | 0 ETH | 0.00000016 | ||||
| Distribute NF Ts | 35180856 | 162 days ago | IN | 0 ETH | 0.00000016 | ||||
| Distribute NF Ts | 35180852 | 162 days ago | IN | 0 ETH | 0.00000016 | ||||
| Distribute NF Ts | 35180848 | 162 days ago | IN | 0 ETH | 0.00000016 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
KeyDistributor
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "./Interface.sol";
/**
* @title KeyDistributor
* @dev Manages the minting and distribution of NODEKEY NFTs with role-based access and distribution limits
*/
contract KeyDistributor is AccessControl, ReentrancyGuard, Pausable {
using Counters for Counters.Counter;
uint256 public totalDistributed;
bytes32 public constant DISTRIBUTOR_ROLE = keccak256("DISTRIBUTOR_ROLE");
IPLAYNODEKEY public nodekeyContract;
// Mapping
mapping(address => uint256) public distributorLimits;
mapping(address => Counters.Counter) public _distributedCounts;
// Events
event DistributorAdded(address distributor, uint256 limit);
event DistributorRemoved(address distributor);
event DistributorLimitUpdated(address distributor, uint256 newLimit);
event NFTDistributed(address distributor, address recipient, uint256 tokenId);
constructor(address _nftAddress) {
require(_nftAddress != address(0), "Invalid NodeKey address");
nodekeyContract = IPLAYNODEKEY(_nftAddress);
_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
}
/**
* @dev Distributes (mints) a single NFT to a recipient
* @param recipient The address to receive the NFT
*/
function distributeNFT(address recipient) external onlyRole(DISTRIBUTOR_ROLE) nonReentrant whenNotPaused {
require(recipient != address(0), "Invalid recipient address");
require(_canDistribute(msg.sender, 1), "Distribution limit reached");
uint256 tokenId = nodekeyContract.mintKey(recipient);
_distributedCounts[msg.sender].increment();
totalDistributed++;
emit NFTDistributed(msg.sender, recipient, tokenId);
}
/**
* @dev Distributes (mints) multiple NFTs to a recipient
* @param recipient The address to receive the NFTs
* @param amount The number of NFTs to distribute
*/
function distributeNFTs(address recipient, uint256 amount) external onlyRole(DISTRIBUTOR_ROLE) nonReentrant whenNotPaused {
require(recipient != address(0), "Invalid recipient address");
require(_canDistribute(msg.sender, amount), "Distribution limit reached");
for (uint i = 0; i < amount; i++) {
uint256 tokenId = nodekeyContract.mintKey(recipient);
_distributedCounts[msg.sender].increment();
totalDistributed++;
emit NFTDistributed(msg.sender, recipient, tokenId);
}
}
// viewOnly functions
function _canDistribute(address distributor, uint256 amount) private view returns (bool) {
return _distributedCounts[distributor].current() + amount <= distributorLimits[distributor];
}
function getDistributedCount(address distributor) external view returns (uint256) {
return _distributedCounts[distributor].current();
}
function getRemainingLimit(address distributor) external view returns (uint256) {
uint256 distributed = _distributedCounts[distributor].current();
uint256 limit = distributorLimits[distributor];
return distributed >= limit ? 0 : limit - distributed;
}
// onlyAdmin functions
function addDistributor(address distributor, uint256 limit) external onlyRole(DEFAULT_ADMIN_ROLE) {
require(distributor != address(0), "Invalid distributor address");
grantRole(DISTRIBUTOR_ROLE, distributor);
distributorLimits[distributor] = limit;
emit DistributorAdded(distributor, limit);
}
function removeDistributor(address distributor) external onlyRole(DEFAULT_ADMIN_ROLE) {
require(hasRole(DISTRIBUTOR_ROLE, distributor), "Not a distributor");
revokeRole(DISTRIBUTOR_ROLE, distributor);
delete distributorLimits[distributor];
delete _distributedCounts[distributor];
emit DistributorRemoved(distributor);
}
function updateDistributorLimit(address distributor, uint256 newLimit) external onlyRole(DEFAULT_ADMIN_ROLE) {
require(hasRole(DISTRIBUTOR_ROLE, distributor), "Not a distributor");
distributorLimits[distributor] = newLimit;
emit DistributorLimitUpdated(distributor, newLimit);
}
function pause() external onlyRole(DEFAULT_ADMIN_ROLE) {
_pause();
}
function unpause() external onlyRole(DEFAULT_ADMIN_ROLE) {
_unpause();
}
receive() external payable {}
function withdrawETH(address payable receiver) external onlyRole(DEFAULT_ADMIN_ROLE) {
require(receiver != address(0), "Invalid receiver address");
uint256 balance = address(this).balance;
(bool success, ) = receiver.call{value: balance}("");
require(success, "ETH transfer failed");
}
function recoverUnsupportedTokens(address tokenAddress, address receiver) external onlyRole(DEFAULT_ADMIN_ROLE) {
require(receiver != address(0), "Invalid receiver address");
IERC20 token = IERC20(tokenAddress);
uint256 balance = token.balanceOf(address(this));
require(token.transfer(receiver, balance), "Token transfer failed");
}
function recoverUnsupportedNFT(address nftAddress, address receiver, uint256 tokenId) external onlyRole(DEFAULT_ADMIN_ROLE) {
require(receiver != address(0), "Invalid receiver address");
IERC721 nft = IERC721(nftAddress);
require(nft.ownerOf(tokenId) == address(this), "NFT not owned by contract");
nft.safeTransferFrom(address(this), receiver, tokenId);
}
}pragma solidity ^0.8.0;
interface IERC20 {
function transfer(address to, uint256 amount) external returns (bool);
function balanceOf(address account) external view returns (uint256);
}
interface IERC721 {
function ownerOf(uint256 tokenId) external view returns (address owner);
function safeTransferFrom(address from, address to, uint256 tokenId) external;
}
interface IDELEGATEKEY {
function isKeyDelegated(uint256 tokenID) external view returns (bool);
function getKeyDelegatedAddress(uint256 tokenID) external view returns (address);
}
interface IPLAYNODEKEY {
function mintKey(address nodekeyHolder) external returns(uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
require(!paused(), "Pausable: paused");
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
require(paused(), "Pausable: not paused");
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}// 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 v4.9.0) (security/ReentrancyGuard.sol)
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 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
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// 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
// 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.0.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 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);
* }
* ```
*/
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.0.0) (access/IAccessControl.sol)
pragma solidity ^0.8.20;
/**
* @dev External interface of AccessControl declared to support ERC165 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, an admin role
* bearer except when using {AccessControl-_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 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.0.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @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);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_nftAddress","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":false,"internalType":"address","name":"distributor","type":"address"},{"indexed":false,"internalType":"uint256","name":"limit","type":"uint256"}],"name":"DistributorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"distributor","type":"address"},{"indexed":false,"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"DistributorLimitUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"distributor","type":"address"}],"name":"DistributorRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"distributor","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"NFTDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DISTRIBUTOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_distributedCounts","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"distributor","type":"address"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"addDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"distributeNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"distributeNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"distributorLimits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"distributor","type":"address"}],"name":"getDistributedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"distributor","type":"address"}],"name":"getRemainingLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"nodekeyContract","outputs":[{"internalType":"contract IPLAYNODEKEY","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"recoverUnsupportedNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"receiver","type":"address"}],"name":"recoverUnsupportedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"distributor","type":"address"}],"name":"removeDistributor","outputs":[],"stateMutability":"nonpayable","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":[],"name":"totalDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"distributor","type":"address"},{"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"updateDistributorLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405234801561000f575f80fd5b506040516129e33803806129e3833981810160405281019061003191906102d5565b600180819055505f60025f6101000a81548160ff0219169083151502179055505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100b69061035a565b60405180910390fd5b8060045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506101115f801b3361011860201b60201c565b5050610378565b5f610129838361020d60201b60201c565b6102035760015f808581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506101a061027060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610207565b5f90505b92915050565b5f805f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f33905090565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6102a48261027b565b9050919050565b6102b48161029a565b81146102be575f80fd5b50565b5f815190506102cf816102ab565b92915050565b5f602082840312156102ea576102e9610277565b5b5f6102f7848285016102c1565b91505092915050565b5f82825260208201905092915050565b7f496e76616c6964204e6f64654b657920616464726573730000000000000000005f82015250565b5f610344601783610300565b915061034f82610310565b602082019050919050565b5f6020820190508181035f83015261037181610338565b9050919050565b61265e806103855f395ff3fe608060405260043610610169575f3560e01c8063651c1f26116100d0578063a7ade36f11610089578063d524b65a11610063578063d524b65a1461052a578063d547741f14610552578063efca2eed1461057a578063f0bd87cc146105a457610170565b8063a7ade36f1461048a578063b4b2dd8f146104b2578063cf313d85146104ee57610170565b8063651c1f2614610382578063690d8320146103aa5780638456cb59146103d257806391d14854146103e85780639c69775014610424578063a217fddf1461046057610170565b80633f4ba83a116101225780633f4ba83a146102a25780634aaf4fe2146102b8578063513cff38146102e057806357c1f9e2146103085780635c975abb14610330578063621358b21461035a57610170565b806301ffc9a714610174578063248a9ca3146101b05780632f2ff15d146101ec57806332cc5ec21461021457806336568abe146102505780633d0ce2dc1461027857610170565b3661017057005b5f80fd5b34801561017f575f80fd5b5061019a60048036038101906101959190611b5f565b6105ce565b6040516101a79190611ba4565b60405180910390f35b3480156101bb575f80fd5b506101d660048036038101906101d19190611bf0565b610647565b6040516101e39190611c2a565b60405180910390f35b3480156101f7575f80fd5b50610212600480360381019061020d9190611c9d565b610663565b005b34801561021f575f80fd5b5061023a60048036038101906102359190611cdb565b610685565b6040516102479190611d1e565b60405180910390f35b34801561025b575f80fd5b5061027660048036038101906102719190611c9d565b61069f565b005b348015610283575f80fd5b5061028c61071a565b6040516102999190611d92565b60405180910390f35b3480156102ad575f80fd5b506102b661073f565b005b3480156102c3575f80fd5b506102de60048036038101906102d99190611dd5565b610756565b005b3480156102eb575f80fd5b5061030660048036038101906103019190611e25565b61092a565b005b348015610313575f80fd5b5061032e60048036038101906103299190611cdb565b610a1f565b005b34801561033b575f80fd5b50610344610b7f565b6040516103519190611ba4565b60405180910390f35b348015610365575f80fd5b50610380600480360381019061037b9190611cdb565b610b94565b005b34801561038d575f80fd5b506103a860048036038101906103a39190611e63565b610dc7565b005b3480156103b5575f80fd5b506103d060048036038101906103cb9190611edc565b610f81565b005b3480156103dd575f80fd5b506103e66110ad565b005b3480156103f3575f80fd5b5061040e60048036038101906104099190611c9d565b6110c4565b60405161041b9190611ba4565b60405180910390f35b34801561042f575f80fd5b5061044a60048036038101906104459190611cdb565b611127565b6040516104579190611d1e565b60405180910390f35b34801561046b575f80fd5b506104746111d5565b6040516104819190611c2a565b60405180910390f35b348015610495575f80fd5b506104b060048036038101906104ab9190611e25565b6111db565b005b3480156104bd575f80fd5b506104d860048036038101906104d39190611cdb565b6112ff565b6040516104e59190611d1e565b60405180910390f35b3480156104f9575f80fd5b50610514600480360381019061050f9190611cdb565b61134c565b6040516105219190611d1e565b60405180910390f35b348015610535575f80fd5b50610550600480360381019061054b9190611e25565b611361565b005b34801561055d575f80fd5b5061057860048036038101906105739190611c9d565b6115ac565b005b348015610585575f80fd5b5061058e6115ce565b60405161059b9190611d1e565b60405180910390f35b3480156105af575f80fd5b506105b86115d4565b6040516105c59190611c2a565b60405180910390f35b5f7f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610640575061063f826115f8565b5b9050919050565b5f805f8381526020019081526020015f20600101549050919050565b61066c82610647565b61067581611661565b61067f8383611675565b50505050565b6006602052805f5260405f205f91509050805f0154905081565b6106a761175e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461070b576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107158282611765565b505050565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f801b61074b81611661565b61075361184e565b50565b5f801b61076281611661565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c790611f61565b60405180910390fd5b5f8490503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b81526004016108249190611d1e565b602060405180830381865afa15801561083f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108639190611f93565b73ffffffffffffffffffffffffffffffffffffffff16146108b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b090612008565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166342842e0e3086866040518463ffffffff1660e01b81526004016108f693929190612035565b5f604051808303815f87803b15801561090d575f80fd5b505af115801561091f573d5f803e3d5ffd5b505050505050505050565b5f801b61093681611661565b6109607ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c846110c4565b61099f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610996906120b4565b60405180910390fd5b8160055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055507f3af35698b6beb66802cb845b3ba91d0cde45b73b610b1d3b8bb7fd160592ac2c8383604051610a129291906120d2565b60405180910390a1505050565b5f801b610a2b81611661565b610a557ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c836110c4565b610a94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8b906120b4565b60405180910390fd5b610abe7ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c836115ac565b60055f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f905560065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8082015f905550507f126174f6cf49c81cdb4a9214c6b8f037bef55b4ec31e4fc776cea2a1c8a88d5982604051610b7391906120f9565b60405180910390a15050565b5f60025f9054906101000a900460ff16905090565b7ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c610bbe81611661565b610bc66118af565b610bce6118fe565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c339061215c565b60405180910390fd5b610c47336001611948565b610c86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7d906121c4565b60405180910390fd5b5f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d3a08cb2846040518263ffffffff1660e01b8152600401610ce191906120f9565b6020604051808303815f875af1158015610cfd573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d2191906121f6565b9050610d6860065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206119e1565b60035f815480929190610d7a9061224e565b91905055507f5ea31990f54aa4ab5bc40ac4999baff5c4094eee6d648b1c2840d3e671b1ca18338483604051610db293929190612035565b60405180910390a150610dc36119f5565b5050565b5f801b610dd381611661565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3890611f61565b60405180910390fd5b5f8390505f8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610e7f91906120f9565b602060405180830381865afa158015610e9a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ebe91906121f6565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85836040518363ffffffff1660e01b8152600401610efb9291906120d2565b6020604051808303815f875af1158015610f17573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f3b91906122bf565b610f7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7190612334565b60405180910390fd5b5050505050565b5f801b610f8d81611661565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ffb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff290611f61565b60405180910390fd5b5f4790505f8373ffffffffffffffffffffffffffffffffffffffff16826040516110249061237f565b5f6040518083038185875af1925050503d805f811461105e576040519150601f19603f3d011682016040523d82523d5f602084013e611063565b606091505b50509050806110a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109e906123dd565b60405180910390fd5b50505050565b5f801b6110b981611661565b6110c16119fe565b50565b5f805f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f8061116e60065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20611a60565b90505f60055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050808210156111ca5781816111c591906123fb565b6111cc565b5f5b92505050919050565b5f801b81565b5f801b6111e781611661565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611255576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124c90612478565b60405180910390fd5b61127f7ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c84610663565b8160055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055507ff209bf3b81ed4e2181de330b8bbc0f4e03affd810121a1105d03a22f71f23b1583836040516112f29291906120d2565b60405180910390a1505050565b5f61134560065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20611a60565b9050919050565b6005602052805f5260405f205f915090505481565b7ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c61138b81611661565b6113936118af565b61139b6118fe565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611409576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114009061215c565b60405180910390fd5b6114133383611948565b611452576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611449906121c4565b60405180910390fd5b5f5b8281101561159e575f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d3a08cb2866040518263ffffffff1660e01b81526004016114b791906120f9565b6020604051808303815f875af11580156114d3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114f791906121f6565b905061153e60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206119e1565b60035f8154809291906115509061224e565b91905055507f5ea31990f54aa4ab5bc40ac4999baff5c4094eee6d648b1c2840d3e671b1ca1833868360405161158893929190612035565b60405180910390a1508080600101915050611454565b506115a76119f5565b505050565b6115b582610647565b6115be81611661565b6115c88383611765565b50505050565b60035481565b7ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c81565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6116728161166d61175e565b611a6c565b50565b5f61168083836110c4565b6117545760015f808581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506116f161175e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050611758565b5f90505b92915050565b5f33905090565b5f61177083836110c4565b15611844575f805f8581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506117e161175e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050611848565b5f90505b92915050565b611856611abd565b5f60025f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61189861175e565b6040516118a591906120f9565b60405180910390a1565b6002600154036118f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118eb906124e0565b60405180910390fd5b6002600181905550565b611906610b7f565b15611946576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193d90612548565b60405180910390fd5b565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054826119cd60065f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20611a60565b6119d79190612566565b1115905092915050565b6001815f015f828254019250508190555050565b60018081905550565b611a066118fe565b600160025f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a4961175e565b604051611a5691906120f9565b60405180910390a1565b5f815f01549050919050565b611a7682826110c4565b611ab95780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401611ab0929190612599565b60405180910390fd5b5050565b611ac5610b7f565b611b04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afb9061260a565b60405180910390fd5b565b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611b3e81611b0a565b8114611b48575f80fd5b50565b5f81359050611b5981611b35565b92915050565b5f60208284031215611b7457611b73611b06565b5b5f611b8184828501611b4b565b91505092915050565b5f8115159050919050565b611b9e81611b8a565b82525050565b5f602082019050611bb75f830184611b95565b92915050565b5f819050919050565b611bcf81611bbd565b8114611bd9575f80fd5b50565b5f81359050611bea81611bc6565b92915050565b5f60208284031215611c0557611c04611b06565b5b5f611c1284828501611bdc565b91505092915050565b611c2481611bbd565b82525050565b5f602082019050611c3d5f830184611c1b565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611c6c82611c43565b9050919050565b611c7c81611c62565b8114611c86575f80fd5b50565b5f81359050611c9781611c73565b92915050565b5f8060408385031215611cb357611cb2611b06565b5b5f611cc085828601611bdc565b9250506020611cd185828601611c89565b9150509250929050565b5f60208284031215611cf057611cef611b06565b5b5f611cfd84828501611c89565b91505092915050565b5f819050919050565b611d1881611d06565b82525050565b5f602082019050611d315f830184611d0f565b92915050565b5f819050919050565b5f611d5a611d55611d5084611c43565b611d37565b611c43565b9050919050565b5f611d6b82611d40565b9050919050565b5f611d7c82611d61565b9050919050565b611d8c81611d72565b82525050565b5f602082019050611da55f830184611d83565b92915050565b611db481611d06565b8114611dbe575f80fd5b50565b5f81359050611dcf81611dab565b92915050565b5f805f60608486031215611dec57611deb611b06565b5b5f611df986828701611c89565b9350506020611e0a86828701611c89565b9250506040611e1b86828701611dc1565b9150509250925092565b5f8060408385031215611e3b57611e3a611b06565b5b5f611e4885828601611c89565b9250506020611e5985828601611dc1565b9150509250929050565b5f8060408385031215611e7957611e78611b06565b5b5f611e8685828601611c89565b9250506020611e9785828601611c89565b9150509250929050565b5f611eab82611c43565b9050919050565b611ebb81611ea1565b8114611ec5575f80fd5b50565b5f81359050611ed681611eb2565b92915050565b5f60208284031215611ef157611ef0611b06565b5b5f611efe84828501611ec8565b91505092915050565b5f82825260208201905092915050565b7f496e76616c6964207265636569766572206164647265737300000000000000005f82015250565b5f611f4b601883611f07565b9150611f5682611f17565b602082019050919050565b5f6020820190508181035f830152611f7881611f3f565b9050919050565b5f81519050611f8d81611c73565b92915050565b5f60208284031215611fa857611fa7611b06565b5b5f611fb584828501611f7f565b91505092915050565b7f4e4654206e6f74206f776e656420627920636f6e7472616374000000000000005f82015250565b5f611ff2601983611f07565b9150611ffd82611fbe565b602082019050919050565b5f6020820190508181035f83015261201f81611fe6565b9050919050565b61202f81611c62565b82525050565b5f6060820190506120485f830186612026565b6120556020830185612026565b6120626040830184611d0f565b949350505050565b7f4e6f742061206469737472696275746f720000000000000000000000000000005f82015250565b5f61209e601183611f07565b91506120a98261206a565b602082019050919050565b5f6020820190508181035f8301526120cb81612092565b9050919050565b5f6040820190506120e55f830185612026565b6120f26020830184611d0f565b9392505050565b5f60208201905061210c5f830184612026565b92915050565b7f496e76616c696420726563697069656e742061646472657373000000000000005f82015250565b5f612146601983611f07565b915061215182612112565b602082019050919050565b5f6020820190508181035f8301526121738161213a565b9050919050565b7f446973747269627574696f6e206c696d697420726561636865640000000000005f82015250565b5f6121ae601a83611f07565b91506121b98261217a565b602082019050919050565b5f6020820190508181035f8301526121db816121a2565b9050919050565b5f815190506121f081611dab565b92915050565b5f6020828403121561220b5761220a611b06565b5b5f612218848285016121e2565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61225882611d06565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361228a57612289612221565b5b600182019050919050565b61229e81611b8a565b81146122a8575f80fd5b50565b5f815190506122b981612295565b92915050565b5f602082840312156122d4576122d3611b06565b5b5f6122e1848285016122ab565b91505092915050565b7f546f6b656e207472616e73666572206661696c656400000000000000000000005f82015250565b5f61231e601583611f07565b9150612329826122ea565b602082019050919050565b5f6020820190508181035f83015261234b81612312565b9050919050565b5f81905092915050565b50565b5f61236a5f83612352565b91506123758261235c565b5f82019050919050565b5f6123898261235f565b9150819050919050565b7f455448207472616e73666572206661696c6564000000000000000000000000005f82015250565b5f6123c7601383611f07565b91506123d282612393565b602082019050919050565b5f6020820190508181035f8301526123f4816123bb565b9050919050565b5f61240582611d06565b915061241083611d06565b925082820390508181111561242857612427612221565b5b92915050565b7f496e76616c6964206469737472696275746f72206164647265737300000000005f82015250565b5f612462601b83611f07565b915061246d8261242e565b602082019050919050565b5f6020820190508181035f83015261248f81612456565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f6124ca601f83611f07565b91506124d582612496565b602082019050919050565b5f6020820190508181035f8301526124f7816124be565b9050919050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f612532601083611f07565b915061253d826124fe565b602082019050919050565b5f6020820190508181035f83015261255f81612526565b9050919050565b5f61257082611d06565b915061257b83611d06565b925082820190508082111561259357612592612221565b5b92915050565b5f6040820190506125ac5f830185612026565b6125b96020830184611c1b565b9392505050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f6125f4601483611f07565b91506125ff826125c0565b602082019050919050565b5f6020820190508181035f830152612621816125e8565b905091905056fea264697066735822122063cf8051bc17eb223c0aa297663fd26d13bd30fb816f3e6decaeacd367fd4f2164736f6c6343000819003300000000000000000000000072c60de74aaf00ab2af2ba42ee621b88a7a33bac
Deployed Bytecode
0x608060405260043610610169575f3560e01c8063651c1f26116100d0578063a7ade36f11610089578063d524b65a11610063578063d524b65a1461052a578063d547741f14610552578063efca2eed1461057a578063f0bd87cc146105a457610170565b8063a7ade36f1461048a578063b4b2dd8f146104b2578063cf313d85146104ee57610170565b8063651c1f2614610382578063690d8320146103aa5780638456cb59146103d257806391d14854146103e85780639c69775014610424578063a217fddf1461046057610170565b80633f4ba83a116101225780633f4ba83a146102a25780634aaf4fe2146102b8578063513cff38146102e057806357c1f9e2146103085780635c975abb14610330578063621358b21461035a57610170565b806301ffc9a714610174578063248a9ca3146101b05780632f2ff15d146101ec57806332cc5ec21461021457806336568abe146102505780633d0ce2dc1461027857610170565b3661017057005b5f80fd5b34801561017f575f80fd5b5061019a60048036038101906101959190611b5f565b6105ce565b6040516101a79190611ba4565b60405180910390f35b3480156101bb575f80fd5b506101d660048036038101906101d19190611bf0565b610647565b6040516101e39190611c2a565b60405180910390f35b3480156101f7575f80fd5b50610212600480360381019061020d9190611c9d565b610663565b005b34801561021f575f80fd5b5061023a60048036038101906102359190611cdb565b610685565b6040516102479190611d1e565b60405180910390f35b34801561025b575f80fd5b5061027660048036038101906102719190611c9d565b61069f565b005b348015610283575f80fd5b5061028c61071a565b6040516102999190611d92565b60405180910390f35b3480156102ad575f80fd5b506102b661073f565b005b3480156102c3575f80fd5b506102de60048036038101906102d99190611dd5565b610756565b005b3480156102eb575f80fd5b5061030660048036038101906103019190611e25565b61092a565b005b348015610313575f80fd5b5061032e60048036038101906103299190611cdb565b610a1f565b005b34801561033b575f80fd5b50610344610b7f565b6040516103519190611ba4565b60405180910390f35b348015610365575f80fd5b50610380600480360381019061037b9190611cdb565b610b94565b005b34801561038d575f80fd5b506103a860048036038101906103a39190611e63565b610dc7565b005b3480156103b5575f80fd5b506103d060048036038101906103cb9190611edc565b610f81565b005b3480156103dd575f80fd5b506103e66110ad565b005b3480156103f3575f80fd5b5061040e60048036038101906104099190611c9d565b6110c4565b60405161041b9190611ba4565b60405180910390f35b34801561042f575f80fd5b5061044a60048036038101906104459190611cdb565b611127565b6040516104579190611d1e565b60405180910390f35b34801561046b575f80fd5b506104746111d5565b6040516104819190611c2a565b60405180910390f35b348015610495575f80fd5b506104b060048036038101906104ab9190611e25565b6111db565b005b3480156104bd575f80fd5b506104d860048036038101906104d39190611cdb565b6112ff565b6040516104e59190611d1e565b60405180910390f35b3480156104f9575f80fd5b50610514600480360381019061050f9190611cdb565b61134c565b6040516105219190611d1e565b60405180910390f35b348015610535575f80fd5b50610550600480360381019061054b9190611e25565b611361565b005b34801561055d575f80fd5b5061057860048036038101906105739190611c9d565b6115ac565b005b348015610585575f80fd5b5061058e6115ce565b60405161059b9190611d1e565b60405180910390f35b3480156105af575f80fd5b506105b86115d4565b6040516105c59190611c2a565b60405180910390f35b5f7f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610640575061063f826115f8565b5b9050919050565b5f805f8381526020019081526020015f20600101549050919050565b61066c82610647565b61067581611661565b61067f8383611675565b50505050565b6006602052805f5260405f205f91509050805f0154905081565b6106a761175e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461070b576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107158282611765565b505050565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f801b61074b81611661565b61075361184e565b50565b5f801b61076281611661565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c790611f61565b60405180910390fd5b5f8490503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b81526004016108249190611d1e565b602060405180830381865afa15801561083f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108639190611f93565b73ffffffffffffffffffffffffffffffffffffffff16146108b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b090612008565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166342842e0e3086866040518463ffffffff1660e01b81526004016108f693929190612035565b5f604051808303815f87803b15801561090d575f80fd5b505af115801561091f573d5f803e3d5ffd5b505050505050505050565b5f801b61093681611661565b6109607ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c846110c4565b61099f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610996906120b4565b60405180910390fd5b8160055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055507f3af35698b6beb66802cb845b3ba91d0cde45b73b610b1d3b8bb7fd160592ac2c8383604051610a129291906120d2565b60405180910390a1505050565b5f801b610a2b81611661565b610a557ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c836110c4565b610a94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8b906120b4565b60405180910390fd5b610abe7ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c836115ac565b60055f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f905560065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8082015f905550507f126174f6cf49c81cdb4a9214c6b8f037bef55b4ec31e4fc776cea2a1c8a88d5982604051610b7391906120f9565b60405180910390a15050565b5f60025f9054906101000a900460ff16905090565b7ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c610bbe81611661565b610bc66118af565b610bce6118fe565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c339061215c565b60405180910390fd5b610c47336001611948565b610c86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7d906121c4565b60405180910390fd5b5f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d3a08cb2846040518263ffffffff1660e01b8152600401610ce191906120f9565b6020604051808303815f875af1158015610cfd573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d2191906121f6565b9050610d6860065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206119e1565b60035f815480929190610d7a9061224e565b91905055507f5ea31990f54aa4ab5bc40ac4999baff5c4094eee6d648b1c2840d3e671b1ca18338483604051610db293929190612035565b60405180910390a150610dc36119f5565b5050565b5f801b610dd381611661565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3890611f61565b60405180910390fd5b5f8390505f8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610e7f91906120f9565b602060405180830381865afa158015610e9a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ebe91906121f6565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85836040518363ffffffff1660e01b8152600401610efb9291906120d2565b6020604051808303815f875af1158015610f17573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f3b91906122bf565b610f7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7190612334565b60405180910390fd5b5050505050565b5f801b610f8d81611661565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ffb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff290611f61565b60405180910390fd5b5f4790505f8373ffffffffffffffffffffffffffffffffffffffff16826040516110249061237f565b5f6040518083038185875af1925050503d805f811461105e576040519150601f19603f3d011682016040523d82523d5f602084013e611063565b606091505b50509050806110a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109e906123dd565b60405180910390fd5b50505050565b5f801b6110b981611661565b6110c16119fe565b50565b5f805f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f8061116e60065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20611a60565b90505f60055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050808210156111ca5781816111c591906123fb565b6111cc565b5f5b92505050919050565b5f801b81565b5f801b6111e781611661565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611255576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124c90612478565b60405180910390fd5b61127f7ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c84610663565b8160055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055507ff209bf3b81ed4e2181de330b8bbc0f4e03affd810121a1105d03a22f71f23b1583836040516112f29291906120d2565b60405180910390a1505050565b5f61134560065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20611a60565b9050919050565b6005602052805f5260405f205f915090505481565b7ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c61138b81611661565b6113936118af565b61139b6118fe565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611409576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114009061215c565b60405180910390fd5b6114133383611948565b611452576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611449906121c4565b60405180910390fd5b5f5b8281101561159e575f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d3a08cb2866040518263ffffffff1660e01b81526004016114b791906120f9565b6020604051808303815f875af11580156114d3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114f791906121f6565b905061153e60065f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206119e1565b60035f8154809291906115509061224e565b91905055507f5ea31990f54aa4ab5bc40ac4999baff5c4094eee6d648b1c2840d3e671b1ca1833868360405161158893929190612035565b60405180910390a1508080600101915050611454565b506115a76119f5565b505050565b6115b582610647565b6115be81611661565b6115c88383611765565b50505050565b60035481565b7ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c81565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6116728161166d61175e565b611a6c565b50565b5f61168083836110c4565b6117545760015f808581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506116f161175e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050611758565b5f90505b92915050565b5f33905090565b5f61177083836110c4565b15611844575f805f8581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506117e161175e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050611848565b5f90505b92915050565b611856611abd565b5f60025f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61189861175e565b6040516118a591906120f9565b60405180910390a1565b6002600154036118f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118eb906124e0565b60405180910390fd5b6002600181905550565b611906610b7f565b15611946576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193d90612548565b60405180910390fd5b565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054826119cd60065f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20611a60565b6119d79190612566565b1115905092915050565b6001815f015f828254019250508190555050565b60018081905550565b611a066118fe565b600160025f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a4961175e565b604051611a5691906120f9565b60405180910390a1565b5f815f01549050919050565b611a7682826110c4565b611ab95780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401611ab0929190612599565b60405180910390fd5b5050565b611ac5610b7f565b611b04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afb9061260a565b60405180910390fd5b565b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611b3e81611b0a565b8114611b48575f80fd5b50565b5f81359050611b5981611b35565b92915050565b5f60208284031215611b7457611b73611b06565b5b5f611b8184828501611b4b565b91505092915050565b5f8115159050919050565b611b9e81611b8a565b82525050565b5f602082019050611bb75f830184611b95565b92915050565b5f819050919050565b611bcf81611bbd565b8114611bd9575f80fd5b50565b5f81359050611bea81611bc6565b92915050565b5f60208284031215611c0557611c04611b06565b5b5f611c1284828501611bdc565b91505092915050565b611c2481611bbd565b82525050565b5f602082019050611c3d5f830184611c1b565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611c6c82611c43565b9050919050565b611c7c81611c62565b8114611c86575f80fd5b50565b5f81359050611c9781611c73565b92915050565b5f8060408385031215611cb357611cb2611b06565b5b5f611cc085828601611bdc565b9250506020611cd185828601611c89565b9150509250929050565b5f60208284031215611cf057611cef611b06565b5b5f611cfd84828501611c89565b91505092915050565b5f819050919050565b611d1881611d06565b82525050565b5f602082019050611d315f830184611d0f565b92915050565b5f819050919050565b5f611d5a611d55611d5084611c43565b611d37565b611c43565b9050919050565b5f611d6b82611d40565b9050919050565b5f611d7c82611d61565b9050919050565b611d8c81611d72565b82525050565b5f602082019050611da55f830184611d83565b92915050565b611db481611d06565b8114611dbe575f80fd5b50565b5f81359050611dcf81611dab565b92915050565b5f805f60608486031215611dec57611deb611b06565b5b5f611df986828701611c89565b9350506020611e0a86828701611c89565b9250506040611e1b86828701611dc1565b9150509250925092565b5f8060408385031215611e3b57611e3a611b06565b5b5f611e4885828601611c89565b9250506020611e5985828601611dc1565b9150509250929050565b5f8060408385031215611e7957611e78611b06565b5b5f611e8685828601611c89565b9250506020611e9785828601611c89565b9150509250929050565b5f611eab82611c43565b9050919050565b611ebb81611ea1565b8114611ec5575f80fd5b50565b5f81359050611ed681611eb2565b92915050565b5f60208284031215611ef157611ef0611b06565b5b5f611efe84828501611ec8565b91505092915050565b5f82825260208201905092915050565b7f496e76616c6964207265636569766572206164647265737300000000000000005f82015250565b5f611f4b601883611f07565b9150611f5682611f17565b602082019050919050565b5f6020820190508181035f830152611f7881611f3f565b9050919050565b5f81519050611f8d81611c73565b92915050565b5f60208284031215611fa857611fa7611b06565b5b5f611fb584828501611f7f565b91505092915050565b7f4e4654206e6f74206f776e656420627920636f6e7472616374000000000000005f82015250565b5f611ff2601983611f07565b9150611ffd82611fbe565b602082019050919050565b5f6020820190508181035f83015261201f81611fe6565b9050919050565b61202f81611c62565b82525050565b5f6060820190506120485f830186612026565b6120556020830185612026565b6120626040830184611d0f565b949350505050565b7f4e6f742061206469737472696275746f720000000000000000000000000000005f82015250565b5f61209e601183611f07565b91506120a98261206a565b602082019050919050565b5f6020820190508181035f8301526120cb81612092565b9050919050565b5f6040820190506120e55f830185612026565b6120f26020830184611d0f565b9392505050565b5f60208201905061210c5f830184612026565b92915050565b7f496e76616c696420726563697069656e742061646472657373000000000000005f82015250565b5f612146601983611f07565b915061215182612112565b602082019050919050565b5f6020820190508181035f8301526121738161213a565b9050919050565b7f446973747269627574696f6e206c696d697420726561636865640000000000005f82015250565b5f6121ae601a83611f07565b91506121b98261217a565b602082019050919050565b5f6020820190508181035f8301526121db816121a2565b9050919050565b5f815190506121f081611dab565b92915050565b5f6020828403121561220b5761220a611b06565b5b5f612218848285016121e2565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61225882611d06565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361228a57612289612221565b5b600182019050919050565b61229e81611b8a565b81146122a8575f80fd5b50565b5f815190506122b981612295565b92915050565b5f602082840312156122d4576122d3611b06565b5b5f6122e1848285016122ab565b91505092915050565b7f546f6b656e207472616e73666572206661696c656400000000000000000000005f82015250565b5f61231e601583611f07565b9150612329826122ea565b602082019050919050565b5f6020820190508181035f83015261234b81612312565b9050919050565b5f81905092915050565b50565b5f61236a5f83612352565b91506123758261235c565b5f82019050919050565b5f6123898261235f565b9150819050919050565b7f455448207472616e73666572206661696c6564000000000000000000000000005f82015250565b5f6123c7601383611f07565b91506123d282612393565b602082019050919050565b5f6020820190508181035f8301526123f4816123bb565b9050919050565b5f61240582611d06565b915061241083611d06565b925082820390508181111561242857612427612221565b5b92915050565b7f496e76616c6964206469737472696275746f72206164647265737300000000005f82015250565b5f612462601b83611f07565b915061246d8261242e565b602082019050919050565b5f6020820190508181035f83015261248f81612456565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f6124ca601f83611f07565b91506124d582612496565b602082019050919050565b5f6020820190508181035f8301526124f7816124be565b9050919050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f612532601083611f07565b915061253d826124fe565b602082019050919050565b5f6020820190508181035f83015261255f81612526565b9050919050565b5f61257082611d06565b915061257b83611d06565b925082820190508082111561259357612592612221565b5b92915050565b5f6040820190506125ac5f830185612026565b6125b96020830184611c1b565b9392505050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f6125f4601483611f07565b91506125ff826125c0565b602082019050919050565b5f6020820190508181035f830152612621816125e8565b905091905056fea264697066735822122063cf8051bc17eb223c0aa297663fd26d13bd30fb816f3e6decaeacd367fd4f2164736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000072c60de74aaf00ab2af2ba42ee621b88a7a33bac
-----Decoded View---------------
Arg [0] : _nftAddress (address): 0x72c60De74aAf00Ab2aF2ba42eE621B88a7A33baC
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000072c60de74aaf00ab2af2ba42ee621b88a7a33bac
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.