ERC-20
Overview
Max Total Supply
875,000,000 RATP
Holders
30
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
35,000,000 RATPValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
RatPow
Compiler Version
v0.8.20+commit.a1b79de6
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.19; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; contract RatPow is ERC20, AccessControl { uint256 public difficulty; uint256 public limitPerMint; uint256 public challenge; uint256 private totalSupplyCap; uint256 public miningLimit; uint256 public registerValue; uint256 public endTime; address public owner; uint8 private _decimals; uint256 private _nextTokenId; mapping(address => bool) public miners; mapping(uint256 => address) public hammers; mapping(address => uint256) public miningTimes; mapping(address => mapping(uint256 => bool)) public minedNonces; bytes32 public constant DEFAULT_ROLE = keccak256("DEFAULT_ROLE"); constructor( string memory name, string memory symbol, uint256 _initialSupply, uint8 _decimals_, uint256 _difficulty, uint256 _miningLimit, uint256 _initialLimitPerMint, uint256 _registerValue ) ERC20(name, symbol) { _decimals = _decimals_; difficulty = _difficulty; limitPerMint = _initialLimitPerMint * (10 ** uint256(_decimals)); challenge = block.timestamp; totalSupplyCap = _initialSupply * (10 ** uint256(_decimals)); miningLimit = _miningLimit; registerValue = _registerValue; owner = msg.sender; endTime = block.timestamp + 30 days; _grantRole(DEFAULT_ROLE, msg.sender); } function mine(uint256 nonce) public { require(miningTimes[msg.sender] < miningLimit, "Mining limit reached"); require(miners[msg.sender], "No permission"); require(block.timestamp < endTime, "End of Mining"); require( totalSupply() + limitPerMint <= totalSupplyCap, "Total supply cap exceeded" ); require( !minedNonces[msg.sender][nonce], "Nonce already used for mining" ); uint256 hash = uint256( keccak256(abi.encodePacked(challenge, msg.sender, nonce)) ); require( hash < ~uint256(0) >> difficulty, "Hash does not meet difficulty requirement" ); _mint(msg.sender, limitPerMint); miningTimes[msg.sender]++; minedNonces[msg.sender][nonce] = true; } function register() public payable { require(miningTimes[msg.sender] < miningLimit, "Mining limit reached"); require(msg.value >= registerValue, "Not enough values"); require(block.timestamp < endTime, "End of Mining"); uint256 hammerId = _nextTokenId++; miners[msg.sender] = true; hammers[hammerId] = msg.sender; _mint(msg.sender, 10000000*(10**18)); } function transfer( address to, uint256 amount ) public override returns (bool) { require( totalSupply() >= totalSupplyCap, "Transfer not allowed until max supply is reached" ); return super.transfer(to, amount); } function withdraw(uint _amount) public onlyRole(DEFAULT_ROLE) { require(msg.sender == owner, "caller is not owner"); payable(msg.sender).transfer(_amount); } function decimals() public view virtual override returns (uint8) { return _decimals; } function getLimitPerMint() public view returns (uint256) { return limitPerMint; } function getRemainingSupply() public view returns (uint256) { return totalSupplyCap - totalSupply(); } }
// 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.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) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ 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.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) (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); }
{ "evmVersion": "paris", "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"_initialSupply","type":"uint256"},{"internalType":"uint8","name":"_decimals_","type":"uint8"},{"internalType":"uint256","name":"_difficulty","type":"uint256"},{"internalType":"uint256","name":"_miningLimit","type":"uint256"},{"internalType":"uint256","name":"_initialLimitPerMint","type":"uint256"},{"internalType":"uint256","name":"_registerValue","type":"uint256"}],"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"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"challenge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"difficulty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLimitPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainingSupply","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":"uint256","name":"","type":"uint256"}],"name":"hammers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"limitPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"mine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"minedNonces","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"miners","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"miningLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"miningTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"register","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"registerValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620034353803806200343583398181016040528101906200003791906200051a565b878781600390816200004a919062000862565b5080600490816200005c919062000862565b50505084600d60146101000a81548160ff021916908360ff16021790555083600681905550600d60149054906101000a900460ff1660ff16600a620000a2919062000acc565b82620000af919062000b1d565b60078190555042600881905550600d60149054906101000a900460ff1660ff16600a620000dd919062000acc565b86620000ea919062000b1d565b60098190555082600a8190555080600b8190555033600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062278d004262000150919062000b68565b600c81905550620001887f87492203b9d16e22ee849ba70b93439ddc1d194bc61d3194442c1332911485d5336200019760201b60201c565b50505050505050505062000ba3565b6000620001ab83836200029b60201b60201c565b620002905760016005600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200022c6200030660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001905062000295565b600090505b92915050565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000377826200032c565b810181811067ffffffffffffffff821117156200039957620003986200033d565b5b80604052505050565b6000620003ae6200030e565b9050620003bc82826200036c565b919050565b600067ffffffffffffffff821115620003df57620003de6200033d565b5b620003ea826200032c565b9050602081019050919050565b60005b8381101562000417578082015181840152602081019050620003fa565b60008484015250505050565b60006200043a6200043484620003c1565b620003a2565b90508281526020810184848401111562000459576200045862000327565b5b62000466848285620003f7565b509392505050565b600082601f83011262000486576200048562000322565b5b81516200049884826020860162000423565b91505092915050565b6000819050919050565b620004b681620004a1565b8114620004c257600080fd5b50565b600081519050620004d681620004ab565b92915050565b600060ff82169050919050565b620004f481620004dc565b81146200050057600080fd5b50565b6000815190506200051481620004e9565b92915050565b600080600080600080600080610100898b0312156200053e576200053d62000318565b5b600089015167ffffffffffffffff8111156200055f576200055e6200031d565b5b6200056d8b828c016200046e565b985050602089015167ffffffffffffffff8111156200059157620005906200031d565b5b6200059f8b828c016200046e565b9750506040620005b28b828c01620004c5565b9650506060620005c58b828c0162000503565b9550506080620005d88b828c01620004c5565b94505060a0620005eb8b828c01620004c5565b93505060c0620005fe8b828c01620004c5565b92505060e0620006118b828c01620004c5565b9150509295985092959890939650565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200067457607f821691505b6020821081036200068a57620006896200062c565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006f47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620006b5565b620007008683620006b5565b95508019841693508086168417925050509392505050565b6000819050919050565b6000620007436200073d6200073784620004a1565b62000718565b620004a1565b9050919050565b6000819050919050565b6200075f8362000722565b620007776200076e826200074a565b848454620006c2565b825550505050565b600090565b6200078e6200077f565b6200079b81848462000754565b505050565b5b81811015620007c357620007b760008262000784565b600181019050620007a1565b5050565b601f8211156200081257620007dc8162000690565b620007e784620006a5565b81016020851015620007f7578190505b6200080f6200080685620006a5565b830182620007a0565b50505b505050565b600082821c905092915050565b6000620008376000198460080262000817565b1980831691505092915050565b600062000852838362000824565b9150826002028217905092915050565b6200086d8262000621565b67ffffffffffffffff8111156200088957620008886200033d565b5b6200089582546200065b565b620008a2828285620007c7565b600060209050601f831160018114620008da5760008415620008c5578287015190505b620008d1858262000844565b86555062000941565b601f198416620008ea8662000690565b60005b828110156200091457848901518255600182019150602085019450602081019050620008ed565b8683101562000934578489015162000930601f89168262000824565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115620009d757808604811115620009af57620009ae62000949565b5b6001851615620009bf5780820291505b8081029050620009cf8562000978565b94506200098f565b94509492505050565b600082620009f2576001905062000ac5565b8162000a02576000905062000ac5565b816001811462000a1b576002811462000a265762000a5c565b600191505062000ac5565b60ff84111562000a3b5762000a3a62000949565b5b8360020a91508482111562000a555762000a5462000949565b5b5062000ac5565b5060208310610133831016604e8410600b841016171562000a965782820a90508381111562000a905762000a8f62000949565b5b62000ac5565b62000aa5848484600162000985565b9250905081840481111562000abf5762000abe62000949565b5b81810290505b9392505050565b600062000ad982620004a1565b915062000ae683620004a1565b925062000b157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484620009e0565b905092915050565b600062000b2a82620004a1565b915062000b3783620004a1565b925082820262000b4781620004a1565b9150828204841483151762000b615762000b6062000949565b5b5092915050565b600062000b7582620004a1565b915062000b8283620004a1565b925082820190508082111562000b9d5762000b9c62000949565b5b92915050565b6128828062000bb36000396000f3fe6080604052600436106101ee5760003560e01c80634eea6a9b1161010d578063a9059cbb116100a0578063d547741f1161006f578063d547741f14610744578063dd62ed3e1461076d578063e2ce9f51146107aa578063e4b7fb73146107d5578063f82160d814610800576101ee565b8063a9059cbb14610686578063b32e82c0146106c3578063c2651503146106ee578063d2ef739814610719576101ee565b80638da5cb5b116100dc5780638da5cb5b146105c857806391d14854146105f357806395d89b4114610630578063a217fddf1461065b576101ee565b80634eea6a9b146104e6578063648ec7b91461051157806370a082311461054e578063801769e11461058b576101ee565b80632719881e116101855780633197cbb6116101545780633197cbb61461042c578063342a252a1461045757806336568abe146104945780634d474898146104bd576101ee565b80632719881e146103725780632e1a7d4d146103af5780632f2ff15d146103d8578063313ce56714610401576101ee565b806319cae462116101c157806319cae462146102c35780631aa3a008146102ee57806323b872dd146102f8578063248a9ca314610335576101ee565b806301ffc9a7146101f357806306fdde0314610230578063095ea7b31461025b57806318160ddd14610298575b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190611dc1565b61082b565b6040516102279190611e09565b60405180910390f35b34801561023c57600080fd5b506102456108a5565b6040516102529190611eb4565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d9190611f6a565b610937565b60405161028f9190611e09565b60405180910390f35b3480156102a457600080fd5b506102ad61095a565b6040516102ba9190611fb9565b60405180910390f35b3480156102cf57600080fd5b506102d8610964565b6040516102e59190611fb9565b60405180910390f35b6102f661096a565b005b34801561030457600080fd5b5061031f600480360381019061031a9190611fd4565b610b53565b60405161032c9190611e09565b60405180910390f35b34801561034157600080fd5b5061035c6004803603810190610357919061205d565b610b82565b6040516103699190612099565b60405180910390f35b34801561037e57600080fd5b50610399600480360381019061039491906120b4565b610ba2565b6040516103a69190611fb9565b60405180910390f35b3480156103bb57600080fd5b506103d660048036038101906103d191906120e1565b610bba565b005b3480156103e457600080fd5b506103ff60048036038101906103fa919061210e565b610cbf565b005b34801561040d57600080fd5b50610416610ce1565b604051610423919061216a565b60405180910390f35b34801561043857600080fd5b50610441610cf8565b60405161044e9190611fb9565b60405180910390f35b34801561046357600080fd5b5061047e60048036038101906104799190611f6a565b610cfe565b60405161048b9190611e09565b60405180910390f35b3480156104a057600080fd5b506104bb60048036038101906104b6919061210e565b610d2d565b005b3480156104c957600080fd5b506104e460048036038101906104df91906120e1565b610da8565b005b3480156104f257600080fd5b506104fb61113d565b6040516105089190612099565b60405180910390f35b34801561051d57600080fd5b50610538600480360381019061053391906120b4565b611161565b6040516105459190611e09565b60405180910390f35b34801561055a57600080fd5b50610575600480360381019061057091906120b4565b611181565b6040516105829190611fb9565b60405180910390f35b34801561059757600080fd5b506105b260048036038101906105ad91906120e1565b6111c9565b6040516105bf9190612194565b60405180910390f35b3480156105d457600080fd5b506105dd6111fc565b6040516105ea9190612194565b60405180910390f35b3480156105ff57600080fd5b5061061a6004803603810190610615919061210e565b611222565b6040516106279190611e09565b60405180910390f35b34801561063c57600080fd5b5061064561128d565b6040516106529190611eb4565b60405180910390f35b34801561066757600080fd5b5061067061131f565b60405161067d9190612099565b60405180910390f35b34801561069257600080fd5b506106ad60048036038101906106a89190611f6a565b611326565b6040516106ba9190611e09565b60405180910390f35b3480156106cf57600080fd5b506106d8611386565b6040516106e59190611fb9565b60405180910390f35b3480156106fa57600080fd5b50610703611390565b6040516107109190611fb9565b60405180910390f35b34801561072557600080fd5b5061072e611396565b60405161073b9190611fb9565b60405180910390f35b34801561075057600080fd5b5061076b6004803603810190610766919061210e565b61139c565b005b34801561077957600080fd5b50610794600480360381019061078f91906121af565b6113be565b6040516107a19190611fb9565b60405180910390f35b3480156107b657600080fd5b506107bf611445565b6040516107cc9190611fb9565b60405180910390f35b3480156107e157600080fd5b506107ea61144b565b6040516107f79190611fb9565b60405180910390f35b34801561080c57600080fd5b50610815611467565b6040516108229190611fb9565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061089e575061089d8261146d565b5b9050919050565b6060600380546108b49061221e565b80601f01602080910402602001604051908101604052809291908181526020018280546108e09061221e565b801561092d5780601f106109025761010080835404028352916020019161092d565b820191906000526020600020905b81548152906001019060200180831161091057829003601f168201915b5050505050905090565b6000806109426114d7565b905061094f8185856114df565b600191505092915050565b6000600254905090565b60065481565b600a54601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054106109ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e49061229b565b60405180910390fd5b600b54341015610a32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2990612307565b60405180910390fd5b600c544210610a76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6d90612373565b60405180910390fd5b6000600e6000815480929190610a8b906123c2565b9190505590506001600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550336010600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610b50336a084595161401484a0000006114f1565b50565b600080610b5e6114d7565b9050610b6b858285611573565b610b76858585611607565b60019150509392505050565b600060056000838152602001908152602001600020600101549050919050565b60116020528060005260406000206000915090505481565b7f87492203b9d16e22ee849ba70b93439ddc1d194bc61d3194442c1332911485d5610be4816116fb565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6b90612456565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610cba573d6000803e3d6000fd5b505050565b610cc882610b82565b610cd1816116fb565b610cdb838361170f565b50505050565b6000600d60149054906101000a900460ff16905090565b600c5481565b60126020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b610d356114d7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d99576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610da38282611801565b505050565b600a54601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410610e2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e229061229b565b60405180910390fd5b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610eb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eae906124c2565b60405180910390fd5b600c544210610efb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef290612373565b60405180910390fd5b600954600754610f0961095a565b610f1391906124e2565b1115610f54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4b90612562565b60405180910390fd5b601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082815260200190815260200160002060009054906101000a900460ff1615610ff2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe9906125ce565b60405180910390fd5b6000600854338360405160200161100b93929190612657565b6040516020818303038152906040528051906020012060001c9050600654600019901c811061106f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106690612706565b60405180910390fd5b61107b336007546114f1565b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906110cb906123c2565b91905055506001601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b7f87492203b9d16e22ee849ba70b93439ddc1d194bc61d3194442c1332911485d581565b600f6020528060005260406000206000915054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60106020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606004805461129c9061221e565b80601f01602080910402602001604051908101604052809291908181526020018280546112c89061221e565b80156113155780601f106112ea57610100808354040283529160200191611315565b820191906000526020600020905b8154815290600101906020018083116112f857829003601f168201915b5050505050905090565b6000801b81565b600060095461133361095a565b1015611374576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136b90612798565b60405180910390fd5b61137e83836118f4565b905092915050565b6000600754905090565b600a5481565b60085481565b6113a582610b82565b6113ae816116fb565b6113b88383611801565b50505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60075481565b600061145561095a565b60095461146291906127b8565b905090565b600b5481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6114ec8383836001611917565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115635760006040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161155a9190612194565b60405180910390fd5b61156f60008383611aee565b5050565b600061157f84846113be565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461160157818110156115f1578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016115e8939291906127ec565b60405180910390fd5b61160084848484036000611917565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036116795760006040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016116709190612194565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116eb5760006040517fec442f050000000000000000000000000000000000000000000000000000000081526004016116e29190612194565b60405180910390fd5b6116f6838383611aee565b505050565b61170c816117076114d7565b611d13565b50565b600061171b8383611222565b6117f65760016005600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506117936114d7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4600190506117fb565b600090505b92915050565b600061180d8383611222565b156118e95760006005600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118866114d7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a4600190506118ee565b600090505b92915050565b6000806118ff6114d7565b905061190c818585611607565b600191505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036119895760006040517fe602df050000000000000000000000000000000000000000000000000000000081526004016119809190612194565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036119fb5760006040517f94280d620000000000000000000000000000000000000000000000000000000081526004016119f29190612194565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015611ae8578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611adf9190611fb9565b60405180910390a35b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611b40578060026000828254611b3491906124e2565b92505081905550611c13565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611bcc578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401611bc3939291906127ec565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c5c5780600260008282540392505081905550611ca9565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611d069190611fb9565b60405180910390a3505050565b611d1d8282611222565b611d605780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401611d57929190612823565b60405180910390fd5b5050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611d9e81611d69565b8114611da957600080fd5b50565b600081359050611dbb81611d95565b92915050565b600060208284031215611dd757611dd6611d64565b5b6000611de584828501611dac565b91505092915050565b60008115159050919050565b611e0381611dee565b82525050565b6000602082019050611e1e6000830184611dfa565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611e5e578082015181840152602081019050611e43565b60008484015250505050565b6000601f19601f8301169050919050565b6000611e8682611e24565b611e908185611e2f565b9350611ea0818560208601611e40565b611ea981611e6a565b840191505092915050565b60006020820190508181036000830152611ece8184611e7b565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611f0182611ed6565b9050919050565b611f1181611ef6565b8114611f1c57600080fd5b50565b600081359050611f2e81611f08565b92915050565b6000819050919050565b611f4781611f34565b8114611f5257600080fd5b50565b600081359050611f6481611f3e565b92915050565b60008060408385031215611f8157611f80611d64565b5b6000611f8f85828601611f1f565b9250506020611fa085828601611f55565b9150509250929050565b611fb381611f34565b82525050565b6000602082019050611fce6000830184611faa565b92915050565b600080600060608486031215611fed57611fec611d64565b5b6000611ffb86828701611f1f565b935050602061200c86828701611f1f565b925050604061201d86828701611f55565b9150509250925092565b6000819050919050565b61203a81612027565b811461204557600080fd5b50565b60008135905061205781612031565b92915050565b60006020828403121561207357612072611d64565b5b600061208184828501612048565b91505092915050565b61209381612027565b82525050565b60006020820190506120ae600083018461208a565b92915050565b6000602082840312156120ca576120c9611d64565b5b60006120d884828501611f1f565b91505092915050565b6000602082840312156120f7576120f6611d64565b5b600061210584828501611f55565b91505092915050565b6000806040838503121561212557612124611d64565b5b600061213385828601612048565b925050602061214485828601611f1f565b9150509250929050565b600060ff82169050919050565b6121648161214e565b82525050565b600060208201905061217f600083018461215b565b92915050565b61218e81611ef6565b82525050565b60006020820190506121a96000830184612185565b92915050565b600080604083850312156121c6576121c5611d64565b5b60006121d485828601611f1f565b92505060206121e585828601611f1f565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061223657607f821691505b602082108103612249576122486121ef565b5b50919050565b7f4d696e696e67206c696d69742072656163686564000000000000000000000000600082015250565b6000612285601483611e2f565b91506122908261224f565b602082019050919050565b600060208201905081810360008301526122b481612278565b9050919050565b7f4e6f7420656e6f7567682076616c756573000000000000000000000000000000600082015250565b60006122f1601183611e2f565b91506122fc826122bb565b602082019050919050565b60006020820190508181036000830152612320816122e4565b9050919050565b7f456e64206f66204d696e696e6700000000000000000000000000000000000000600082015250565b600061235d600d83611e2f565b915061236882612327565b602082019050919050565b6000602082019050818103600083015261238c81612350565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006123cd82611f34565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036123ff576123fe612393565b5b600182019050919050565b7f63616c6c6572206973206e6f74206f776e657200000000000000000000000000600082015250565b6000612440601383611e2f565b915061244b8261240a565b602082019050919050565b6000602082019050818103600083015261246f81612433565b9050919050565b7f4e6f207065726d697373696f6e00000000000000000000000000000000000000600082015250565b60006124ac600d83611e2f565b91506124b782612476565b602082019050919050565b600060208201905081810360008301526124db8161249f565b9050919050565b60006124ed82611f34565b91506124f883611f34565b92508282019050808211156125105761250f612393565b5b92915050565b7f546f74616c20737570706c792063617020657863656564656400000000000000600082015250565b600061254c601983611e2f565b915061255782612516565b602082019050919050565b6000602082019050818103600083015261257b8161253f565b9050919050565b7f4e6f6e636520616c7265616479207573656420666f72206d696e696e67000000600082015250565b60006125b8601d83611e2f565b91506125c382612582565b602082019050919050565b600060208201905081810360008301526125e7816125ab565b9050919050565b6000819050919050565b61260961260482611f34565b6125ee565b82525050565b60008160601b9050919050565b60006126278261260f565b9050919050565b60006126398261261c565b9050919050565b61265161264c82611ef6565b61262e565b82525050565b600061266382866125f8565b6020820191506126738285612640565b60148201915061268382846125f8565b602082019150819050949350505050565b7f4861736820646f6573206e6f74206d65657420646966666963756c747920726560008201527f71756972656d656e740000000000000000000000000000000000000000000000602082015250565b60006126f0602983611e2f565b91506126fb82612694565b604082019050919050565b6000602082019050818103600083015261271f816126e3565b9050919050565b7f5472616e73666572206e6f7420616c6c6f77656420756e74696c206d6178207360008201527f7570706c79206973207265616368656400000000000000000000000000000000602082015250565b6000612782603083611e2f565b915061278d82612726565b604082019050919050565b600060208201905081810360008301526127b181612775565b9050919050565b60006127c382611f34565b91506127ce83611f34565b92508282039050818111156127e6576127e5612393565b5b92915050565b60006060820190506128016000830186612185565b61280e6020830185611faa565b61281b6040830184611faa565b949350505050565b60006040820190506128386000830185612185565b612845602083018461208a565b939250505056fea2646970667358221220c7f2af4c02d0787a33cc83ecf489abde158d29896c2d900823dc4684ceda6d8164736f6c634300081400330000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000004c4b40000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000000000006526174506f77000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045241545000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101ee5760003560e01c80634eea6a9b1161010d578063a9059cbb116100a0578063d547741f1161006f578063d547741f14610744578063dd62ed3e1461076d578063e2ce9f51146107aa578063e4b7fb73146107d5578063f82160d814610800576101ee565b8063a9059cbb14610686578063b32e82c0146106c3578063c2651503146106ee578063d2ef739814610719576101ee565b80638da5cb5b116100dc5780638da5cb5b146105c857806391d14854146105f357806395d89b4114610630578063a217fddf1461065b576101ee565b80634eea6a9b146104e6578063648ec7b91461051157806370a082311461054e578063801769e11461058b576101ee565b80632719881e116101855780633197cbb6116101545780633197cbb61461042c578063342a252a1461045757806336568abe146104945780634d474898146104bd576101ee565b80632719881e146103725780632e1a7d4d146103af5780632f2ff15d146103d8578063313ce56714610401576101ee565b806319cae462116101c157806319cae462146102c35780631aa3a008146102ee57806323b872dd146102f8578063248a9ca314610335576101ee565b806301ffc9a7146101f357806306fdde0314610230578063095ea7b31461025b57806318160ddd14610298575b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190611dc1565b61082b565b6040516102279190611e09565b60405180910390f35b34801561023c57600080fd5b506102456108a5565b6040516102529190611eb4565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d9190611f6a565b610937565b60405161028f9190611e09565b60405180910390f35b3480156102a457600080fd5b506102ad61095a565b6040516102ba9190611fb9565b60405180910390f35b3480156102cf57600080fd5b506102d8610964565b6040516102e59190611fb9565b60405180910390f35b6102f661096a565b005b34801561030457600080fd5b5061031f600480360381019061031a9190611fd4565b610b53565b60405161032c9190611e09565b60405180910390f35b34801561034157600080fd5b5061035c6004803603810190610357919061205d565b610b82565b6040516103699190612099565b60405180910390f35b34801561037e57600080fd5b50610399600480360381019061039491906120b4565b610ba2565b6040516103a69190611fb9565b60405180910390f35b3480156103bb57600080fd5b506103d660048036038101906103d191906120e1565b610bba565b005b3480156103e457600080fd5b506103ff60048036038101906103fa919061210e565b610cbf565b005b34801561040d57600080fd5b50610416610ce1565b604051610423919061216a565b60405180910390f35b34801561043857600080fd5b50610441610cf8565b60405161044e9190611fb9565b60405180910390f35b34801561046357600080fd5b5061047e60048036038101906104799190611f6a565b610cfe565b60405161048b9190611e09565b60405180910390f35b3480156104a057600080fd5b506104bb60048036038101906104b6919061210e565b610d2d565b005b3480156104c957600080fd5b506104e460048036038101906104df91906120e1565b610da8565b005b3480156104f257600080fd5b506104fb61113d565b6040516105089190612099565b60405180910390f35b34801561051d57600080fd5b50610538600480360381019061053391906120b4565b611161565b6040516105459190611e09565b60405180910390f35b34801561055a57600080fd5b50610575600480360381019061057091906120b4565b611181565b6040516105829190611fb9565b60405180910390f35b34801561059757600080fd5b506105b260048036038101906105ad91906120e1565b6111c9565b6040516105bf9190612194565b60405180910390f35b3480156105d457600080fd5b506105dd6111fc565b6040516105ea9190612194565b60405180910390f35b3480156105ff57600080fd5b5061061a6004803603810190610615919061210e565b611222565b6040516106279190611e09565b60405180910390f35b34801561063c57600080fd5b5061064561128d565b6040516106529190611eb4565b60405180910390f35b34801561066757600080fd5b5061067061131f565b60405161067d9190612099565b60405180910390f35b34801561069257600080fd5b506106ad60048036038101906106a89190611f6a565b611326565b6040516106ba9190611e09565b60405180910390f35b3480156106cf57600080fd5b506106d8611386565b6040516106e59190611fb9565b60405180910390f35b3480156106fa57600080fd5b50610703611390565b6040516107109190611fb9565b60405180910390f35b34801561072557600080fd5b5061072e611396565b60405161073b9190611fb9565b60405180910390f35b34801561075057600080fd5b5061076b6004803603810190610766919061210e565b61139c565b005b34801561077957600080fd5b50610794600480360381019061078f91906121af565b6113be565b6040516107a19190611fb9565b60405180910390f35b3480156107b657600080fd5b506107bf611445565b6040516107cc9190611fb9565b60405180910390f35b3480156107e157600080fd5b506107ea61144b565b6040516107f79190611fb9565b60405180910390f35b34801561080c57600080fd5b50610815611467565b6040516108229190611fb9565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061089e575061089d8261146d565b5b9050919050565b6060600380546108b49061221e565b80601f01602080910402602001604051908101604052809291908181526020018280546108e09061221e565b801561092d5780601f106109025761010080835404028352916020019161092d565b820191906000526020600020905b81548152906001019060200180831161091057829003601f168201915b5050505050905090565b6000806109426114d7565b905061094f8185856114df565b600191505092915050565b6000600254905090565b60065481565b600a54601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054106109ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e49061229b565b60405180910390fd5b600b54341015610a32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2990612307565b60405180910390fd5b600c544210610a76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6d90612373565b60405180910390fd5b6000600e6000815480929190610a8b906123c2565b9190505590506001600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550336010600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610b50336a084595161401484a0000006114f1565b50565b600080610b5e6114d7565b9050610b6b858285611573565b610b76858585611607565b60019150509392505050565b600060056000838152602001908152602001600020600101549050919050565b60116020528060005260406000206000915090505481565b7f87492203b9d16e22ee849ba70b93439ddc1d194bc61d3194442c1332911485d5610be4816116fb565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6b90612456565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610cba573d6000803e3d6000fd5b505050565b610cc882610b82565b610cd1816116fb565b610cdb838361170f565b50505050565b6000600d60149054906101000a900460ff16905090565b600c5481565b60126020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b610d356114d7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d99576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610da38282611801565b505050565b600a54601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410610e2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e229061229b565b60405180910390fd5b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610eb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eae906124c2565b60405180910390fd5b600c544210610efb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef290612373565b60405180910390fd5b600954600754610f0961095a565b610f1391906124e2565b1115610f54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4b90612562565b60405180910390fd5b601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082815260200190815260200160002060009054906101000a900460ff1615610ff2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe9906125ce565b60405180910390fd5b6000600854338360405160200161100b93929190612657565b6040516020818303038152906040528051906020012060001c9050600654600019901c811061106f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106690612706565b60405180910390fd5b61107b336007546114f1565b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906110cb906123c2565b91905055506001601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b7f87492203b9d16e22ee849ba70b93439ddc1d194bc61d3194442c1332911485d581565b600f6020528060005260406000206000915054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60106020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606004805461129c9061221e565b80601f01602080910402602001604051908101604052809291908181526020018280546112c89061221e565b80156113155780601f106112ea57610100808354040283529160200191611315565b820191906000526020600020905b8154815290600101906020018083116112f857829003601f168201915b5050505050905090565b6000801b81565b600060095461133361095a565b1015611374576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136b90612798565b60405180910390fd5b61137e83836118f4565b905092915050565b6000600754905090565b600a5481565b60085481565b6113a582610b82565b6113ae816116fb565b6113b88383611801565b50505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60075481565b600061145561095a565b60095461146291906127b8565b905090565b600b5481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6114ec8383836001611917565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115635760006040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161155a9190612194565b60405180910390fd5b61156f60008383611aee565b5050565b600061157f84846113be565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461160157818110156115f1578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016115e8939291906127ec565b60405180910390fd5b61160084848484036000611917565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036116795760006040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016116709190612194565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116eb5760006040517fec442f050000000000000000000000000000000000000000000000000000000081526004016116e29190612194565b60405180910390fd5b6116f6838383611aee565b505050565b61170c816117076114d7565b611d13565b50565b600061171b8383611222565b6117f65760016005600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506117936114d7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4600190506117fb565b600090505b92915050565b600061180d8383611222565b156118e95760006005600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118866114d7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a4600190506118ee565b600090505b92915050565b6000806118ff6114d7565b905061190c818585611607565b600191505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036119895760006040517fe602df050000000000000000000000000000000000000000000000000000000081526004016119809190612194565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036119fb5760006040517f94280d620000000000000000000000000000000000000000000000000000000081526004016119f29190612194565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015611ae8578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611adf9190611fb9565b60405180910390a35b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611b40578060026000828254611b3491906124e2565b92505081905550611c13565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611bcc578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401611bc3939291906127ec565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c5c5780600260008282540392505081905550611ca9565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611d069190611fb9565b60405180910390a3505050565b611d1d8282611222565b611d605780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401611d57929190612823565b60405180910390fd5b5050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611d9e81611d69565b8114611da957600080fd5b50565b600081359050611dbb81611d95565b92915050565b600060208284031215611dd757611dd6611d64565b5b6000611de584828501611dac565b91505092915050565b60008115159050919050565b611e0381611dee565b82525050565b6000602082019050611e1e6000830184611dfa565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611e5e578082015181840152602081019050611e43565b60008484015250505050565b6000601f19601f8301169050919050565b6000611e8682611e24565b611e908185611e2f565b9350611ea0818560208601611e40565b611ea981611e6a565b840191505092915050565b60006020820190508181036000830152611ece8184611e7b565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611f0182611ed6565b9050919050565b611f1181611ef6565b8114611f1c57600080fd5b50565b600081359050611f2e81611f08565b92915050565b6000819050919050565b611f4781611f34565b8114611f5257600080fd5b50565b600081359050611f6481611f3e565b92915050565b60008060408385031215611f8157611f80611d64565b5b6000611f8f85828601611f1f565b9250506020611fa085828601611f55565b9150509250929050565b611fb381611f34565b82525050565b6000602082019050611fce6000830184611faa565b92915050565b600080600060608486031215611fed57611fec611d64565b5b6000611ffb86828701611f1f565b935050602061200c86828701611f1f565b925050604061201d86828701611f55565b9150509250925092565b6000819050919050565b61203a81612027565b811461204557600080fd5b50565b60008135905061205781612031565b92915050565b60006020828403121561207357612072611d64565b5b600061208184828501612048565b91505092915050565b61209381612027565b82525050565b60006020820190506120ae600083018461208a565b92915050565b6000602082840312156120ca576120c9611d64565b5b60006120d884828501611f1f565b91505092915050565b6000602082840312156120f7576120f6611d64565b5b600061210584828501611f55565b91505092915050565b6000806040838503121561212557612124611d64565b5b600061213385828601612048565b925050602061214485828601611f1f565b9150509250929050565b600060ff82169050919050565b6121648161214e565b82525050565b600060208201905061217f600083018461215b565b92915050565b61218e81611ef6565b82525050565b60006020820190506121a96000830184612185565b92915050565b600080604083850312156121c6576121c5611d64565b5b60006121d485828601611f1f565b92505060206121e585828601611f1f565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061223657607f821691505b602082108103612249576122486121ef565b5b50919050565b7f4d696e696e67206c696d69742072656163686564000000000000000000000000600082015250565b6000612285601483611e2f565b91506122908261224f565b602082019050919050565b600060208201905081810360008301526122b481612278565b9050919050565b7f4e6f7420656e6f7567682076616c756573000000000000000000000000000000600082015250565b60006122f1601183611e2f565b91506122fc826122bb565b602082019050919050565b60006020820190508181036000830152612320816122e4565b9050919050565b7f456e64206f66204d696e696e6700000000000000000000000000000000000000600082015250565b600061235d600d83611e2f565b915061236882612327565b602082019050919050565b6000602082019050818103600083015261238c81612350565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006123cd82611f34565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036123ff576123fe612393565b5b600182019050919050565b7f63616c6c6572206973206e6f74206f776e657200000000000000000000000000600082015250565b6000612440601383611e2f565b915061244b8261240a565b602082019050919050565b6000602082019050818103600083015261246f81612433565b9050919050565b7f4e6f207065726d697373696f6e00000000000000000000000000000000000000600082015250565b60006124ac600d83611e2f565b91506124b782612476565b602082019050919050565b600060208201905081810360008301526124db8161249f565b9050919050565b60006124ed82611f34565b91506124f883611f34565b92508282019050808211156125105761250f612393565b5b92915050565b7f546f74616c20737570706c792063617020657863656564656400000000000000600082015250565b600061254c601983611e2f565b915061255782612516565b602082019050919050565b6000602082019050818103600083015261257b8161253f565b9050919050565b7f4e6f6e636520616c7265616479207573656420666f72206d696e696e67000000600082015250565b60006125b8601d83611e2f565b91506125c382612582565b602082019050919050565b600060208201905081810360008301526125e7816125ab565b9050919050565b6000819050919050565b61260961260482611f34565b6125ee565b82525050565b60008160601b9050919050565b60006126278261260f565b9050919050565b60006126398261261c565b9050919050565b61265161264c82611ef6565b61262e565b82525050565b600061266382866125f8565b6020820191506126738285612640565b60148201915061268382846125f8565b602082019150819050949350505050565b7f4861736820646f6573206e6f74206d65657420646966666963756c747920726560008201527f71756972656d656e740000000000000000000000000000000000000000000000602082015250565b60006126f0602983611e2f565b91506126fb82612694565b604082019050919050565b6000602082019050818103600083015261271f816126e3565b9050919050565b7f5472616e73666572206e6f7420616c6c6f77656420756e74696c206d6178207360008201527f7570706c79206973207265616368656400000000000000000000000000000000602082015250565b6000612782603083611e2f565b915061278d82612726565b604082019050919050565b600060208201905081810360008301526127b181612775565b9050919050565b60006127c382611f34565b91506127ce83611f34565b92508282039050818111156127e6576127e5612393565b5b92915050565b60006060820190506128016000830186612185565b61280e6020830185611faa565b61281b6040830184611faa565b949350505050565b60006040820190506128386000830185612185565b612845602083018461208a565b939250505056fea2646970667358221220c7f2af4c02d0787a33cc83ecf489abde158d29896c2d900823dc4684ceda6d8164736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000004c4b40000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000000000006526174506f77000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045241545000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): RatPow
Arg [1] : symbol (string): RATP
Arg [2] : _initialSupply (uint256): 1000000000000000
Arg [3] : _decimals_ (uint8): 18
Arg [4] : _difficulty (uint256): 30
Arg [5] : _miningLimit (uint256): 5
Arg [6] : _initialLimitPerMint (uint256): 5000000
Arg [7] : _registerValue (uint256): 10000000000000000
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 00000000000000000000000000000000000000000000000000038d7ea4c68000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [4] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [6] : 00000000000000000000000000000000000000000000000000000000004c4b40
Arg [7] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [9] : 526174506f770000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [11] : 5241545000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.