Contract Overview
Balance:
145,200 BTT
BTT Value:
$0.11 (@ $0.00/BTT)
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
Faucet
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: Unlicense pragma solidity 0.8.9; import {AccessControl} from './AccessControl.sol'; import {IERC20} from './IERC20.sol'; import {SafeERC20} from './SafeERC20.sol'; import {ReentrancyGuard} from './ReentrancyGuard.sol'; import {IFaucet} from './IFaucet.sol'; contract Faucet is IFaucet, AccessControl, ReentrancyGuard { using SafeERC20 for IERC20; // keccak256("OPERATOR") : 0x523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c bytes32 internal constant OPERATOR_ROLE = 0x523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c; // id => program mapping(uint64 => ProgramInfo) public programData; // program => reward => user => data mapping(uint64 => mapping(address => mapping(address => UserInfo))) public userData; constructor(address operator) { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(OPERATOR_ROLE, operator); } /** * @dev receive native reward token */ receive() external payable {} function distribute( address reward, uint64 programId, DistributeInfo[] calldata data ) external override nonReentrant onlyRole(OPERATOR_ROLE) { DistributeInfo memory tmpData; UserInfo storage u; ProgramInfo memory p = programData[programId]; for (uint256 i = 0; i < data.length; i++) { tmpData = data[i]; u = userData[programId][reward][tmpData.receiver]; // if default program, user can only get reward one time if (p.count == 0) { require(u.lastTime == 0, 'Received'); } else { if (u.count > 0) { require(u.count < p.count, 'Over count'); require(_getBlockTime() > p.timeDistance + u.lastTime, 'Please wait'); } u.count++; } // transfer reward if (reward == address(0)) { (bool success, ) = tmpData.receiver.call{value: tmpData.amount}(''); require(success, 'REWARD_TRANSFER_FAILED'); } else { IERC20(reward).safeTransfer(tmpData.receiver, tmpData.amount); } u.lastTime = _getBlockTime(); emit FaucetDistributed( reward, tmpData.receiver, tmpData.amount, tmpData.receiverId, programId ); } } function setupProgram( uint64 id, uint32 timeDistance, uint64 count ) external override onlyRole(DEFAULT_ADMIN_ROLE) { programData[id] = ProgramInfo(timeDistance, count); } function _getBlockTime() internal view virtual returns (uint32) { return uint32(block.timestamp); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "./Context.sol"; import "./Strings.sol"; import "./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: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {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 `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: Unlicense pragma solidity 0.8.9; interface IFaucet { struct ProgramInfo { uint32 timeDistance; uint64 count; } struct UserInfo { uint64 count; uint32 lastTime; } struct DistributeInfo { address receiver; uint256 amount; uint64 receiverId; } event FaucetDistributed( address reward, address receiver, uint256 indexed amount, uint64 indexed userId, uint64 indexed programId ); function distribute( address reward, uint64 programId, DistributeInfo[] calldata data ) external; function setupProgram( uint64 id, uint32 timeDistance, uint64 count ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
[{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"reward","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint64","name":"userId","type":"uint64"},{"indexed":true,"internalType":"uint64","name":"programId","type":"uint64"}],"name":"FaucetDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"reward","type":"address"},{"internalType":"uint64","name":"programId","type":"uint64"},{"components":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint64","name":"receiverId","type":"uint64"}],"internalType":"struct IFaucet.DistributeInfo[]","name":"data","type":"tuple[]"}],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"}],"name":"programData","outputs":[{"internalType":"uint32","name":"timeDistance","type":"uint32"},{"internalType":"uint64","name":"count","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"timeDistance","type":"uint32"},{"internalType":"uint64","name":"count","type":"uint64"}],"name":"setupProgram","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"},{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"userData","outputs":[{"internalType":"uint64","name":"count","type":"uint64"},{"internalType":"uint32","name":"lastTime","type":"uint32"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200145638038062001456833981016040819052620000349162000128565b600180556200004560003362000078565b620000717f523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c8262000078565b506200015a565b62000084828262000088565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000084576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620000e43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000602082840312156200013b57600080fd5b81516001600160a01b03811681146200015357600080fd5b9392505050565b6112ec806200016a6000396000f3fe6080604052600436106100a05760003560e01c80638fc477ce116100645780638fc477ce1461018157806391d14854146101eb5780639836f66c1461020b578063a217fddf1461022b578063a74569bb14610240578063d547741f146102ba57600080fd5b806301ffc9a7146100ac578063248a9ca3146100e15780632f2ff15d1461011f57806336568abe146101415780636eddbc831461016157600080fd5b366100a757005b600080fd5b3480156100b857600080fd5b506100cc6100c7366004610e5f565b6102da565b60405190151581526020015b60405180910390f35b3480156100ed57600080fd5b506101116100fc366004610e89565b60009081526020819052604090206001015490565b6040519081526020016100d8565b34801561012b57600080fd5b5061013f61013a366004610ebe565b610311565b005b34801561014d57600080fd5b5061013f61015c366004610ebe565b61033c565b34801561016d57600080fd5b5061013f61017c366004610f01565b6103bf565b34801561018d57600080fd5b506101c761019c366004610f4f565b60026020526000908152604090205463ffffffff81169064010000000090046001600160401b031682565b6040805163ffffffff90931683526001600160401b039091166020830152016100d8565b3480156101f757600080fd5b506100cc610206366004610ebe565b61042e565b34801561021757600080fd5b5061013f610226366004610f6a565b610457565b34801561023757600080fd5b50610111600081565b34801561024c57600080fd5b5061029661025b366004610ffa565b60036020908152600093845260408085208252928452828420905282529020546001600160401b03811690600160401b900463ffffffff1682565b604080516001600160401b03909316835263ffffffff9091166020830152016100d8565b3480156102c657600080fd5b5061013f6102d5366004610ebe565b6108ae565b60006001600160e01b03198216637965db0b60e01b148061030b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60008281526020819052604090206001015461032d81336108d4565b6103378383610938565b505050565b6001600160a01b03811633146103b15760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6103bb82826109bc565b5050565b60006103cb81336108d4565b5060408051808201825263ffffffff93841681526001600160401b0392831660208083019182529584166000908152600290965291909420935184549151909216640100000000026bffffffffffffffffffffffff199091169190921617179055565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600260015414156104aa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103a8565b60026001557f523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c6104da81336108d4565b60408051606081018252600080825260208083018290528284018290526001600160401b0388811683526002825284832085518087019096525463ffffffff81168652640100000000900416908401529091815b8581101561089f5786868281811061054857610548611034565b90506060020180360381019061055e9190611060565b935060036000896001600160401b03166001600160401b0316815260200190815260200160002060008a6001600160a01b03166001600160a01b03168152602001908152602001600020600085600001516001600160a01b03166001600160a01b03168152602001908152602001600020925081602001516001600160401b031660001415610633578254600160401b900463ffffffff161561062e5760405162461bcd60e51b8152602060048201526008602482015267149958d95a5d995960c21b60448201526064016103a8565b610731565b82546001600160401b0316156106f457602082015183546001600160401b039182169116106106915760405162461bcd60e51b815260206004820152600a60248201526913dd995c8818dbdd5b9d60b21b60448201526064016103a8565b825482516106ac91600160401b900463ffffffff16906110e8565b63ffffffff164263ffffffff16116106f45760405162461bcd60e51b815260206004820152600b60248201526a141b19585cd9481dd85a5d60aa1b60448201526064016103a8565b82546001600160401b031683600061070b83611110565b91906101000a8154816001600160401b0302191690836001600160401b03160217905550505b6001600160a01b0389166107e457835160208501516040516000926001600160a01b031691908381818185875af1925050503d806000811461078f576040519150601f19603f3d011682016040523d82523d6000602084013e610794565b606091505b50509050806107de5760405162461bcd60e51b8152602060048201526016602482015275149155d0549117d514905394d1915497d1905253115160521b60448201526064016103a8565b506107ff565b835160208501516107ff916001600160a01b038c1691610a21565b42835463ffffffff91909116600160401b026bffffffff0000000000000000199091161783556040808501516020860151865192516001600160401b03808d16949316927fd202197566867749fd15a37a3eea41628d8b7369889eceee196504d140914deb91610885918f916001600160a01b0392831681529116602082015260400190565b60405180910390a48061089781611137565b91505061052e565b50506001805550505050505050565b6000828152602081905260409020600101546108ca81336108d4565b61033783836109bc565b6108de828261042e565b6103bb576108f6816001600160a01b03166014610a73565b610901836020610a73565b604051602001610912929190611182565b60408051601f198184030181529082905262461bcd60e51b82526103a8916004016111f7565b610942828261042e565b6103bb576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556109783390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6109c6828261042e565b156103bb576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610337908490610c15565b60606000610a8283600261122a565b610a8d906002611249565b6001600160401b03811115610aa457610aa461104a565b6040519080825280601f01601f191660200182016040528015610ace576020820181803683370190505b509050600360fc1b81600081518110610ae957610ae9611034565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610b1857610b18611034565b60200101906001600160f81b031916908160001a9053506000610b3c84600261122a565b610b47906001611249565b90505b6001811115610bbf576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610b7b57610b7b611034565b1a60f81b828281518110610b9157610b91611034565b60200101906001600160f81b031916908160001a90535060049490941c93610bb881611261565b9050610b4a565b508315610c0e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016103a8565b9392505050565b6000610c6a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ce79092919063ffffffff16565b8051909150156103375780806020019051810190610c889190611278565b6103375760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103a8565b6060610cf68484600085610cfe565b949350505050565b606082471015610d5f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103a8565b843b610dad5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103a8565b600080866001600160a01b03168587604051610dc9919061129a565b60006040518083038185875af1925050503d8060008114610e06576040519150601f19603f3d011682016040523d82523d6000602084013e610e0b565b606091505b5091509150610e1b828286610e26565b979650505050505050565b60608315610e35575081610c0e565b825115610e455782518084602001fd5b8160405162461bcd60e51b81526004016103a891906111f7565b600060208284031215610e7157600080fd5b81356001600160e01b031981168114610c0e57600080fd5b600060208284031215610e9b57600080fd5b5035919050565b80356001600160a01b0381168114610eb957600080fd5b919050565b60008060408385031215610ed157600080fd5b82359150610ee160208401610ea2565b90509250929050565b80356001600160401b0381168114610eb957600080fd5b600080600060608486031215610f1657600080fd5b610f1f84610eea565b9250602084013563ffffffff81168114610f3857600080fd5b9150610f4660408501610eea565b90509250925092565b600060208284031215610f6157600080fd5b610c0e82610eea565b60008060008060608587031215610f8057600080fd5b610f8985610ea2565b9350610f9760208601610eea565b925060408501356001600160401b0380821115610fb357600080fd5b818701915087601f830112610fc757600080fd5b813581811115610fd657600080fd5b886020606083028501011115610feb57600080fd5b95989497505060200194505050565b60008060006060848603121561100f57600080fd5b61101884610eea565b925061102660208501610ea2565b9150610f4660408501610ea2565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60006060828403121561107257600080fd5b604051606081018181106001600160401b03821117156110a257634e487b7160e01b600052604160045260246000fd5b6040526110ae83610ea2565b8152602083013560208201526110c660408401610eea565b60408201529392505050565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff808316818516808303821115611107576111076110d2565b01949350505050565b60006001600160401b038083168181141561112d5761112d6110d2565b6001019392505050565b600060001982141561114b5761114b6110d2565b5060010190565b60005b8381101561116d578181015183820152602001611155565b8381111561117c576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516111ba816017850160208801611152565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516111eb816028840160208801611152565b01602801949350505050565b6020815260008251806020840152611216816040850160208701611152565b601f01601f19169190910160400192915050565b6000816000190483118215151615611244576112446110d2565b500290565b6000821982111561125c5761125c6110d2565b500190565b600081611270576112706110d2565b506000190190565b60006020828403121561128a57600080fd5b81518015158114610c0e57600080fd5b600082516112ac818460208701611152565b919091019291505056fea26469706673582212203dd27ea24431174efe025ad13da80f4bbc3ec81063c18fa1469abd82dcd9a8b764736f6c63430008090033000000000000000000000000a36001176122b25ec20c7f2f6adc3808d381aa89
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a36001176122b25ec20c7f2f6adc3808d381aa89
-----Decoded View---------------
Arg [0] : operator (address): 0xa36001176122b25ec20c7f2f6adc3808d381aa89
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a36001176122b25ec20c7f2f6adc3808d381aa89
Deployed ByteCode Sourcemap
288:2250:4:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2510:202:0;;;;;;;;;;-1:-1:-1;2510:202:0;;;;;:::i;:::-;;:::i;:::-;;;470:14:12;;463:22;445:41;;433:2;418:18;2510:202:0;;;;;;;;3882:121;;;;;;;;;;-1:-1:-1;3882:121:0;;;;;:::i;:::-;3948:7;3974:12;;;;;;;;;;:22;;;;3882:121;;;;828:25:12;;;816:2;801:18;3882:121:0;682:177:12;4253:145:0;;;;;;;;;;-1:-1:-1;4253:145:0;;;;;:::i;:::-;;:::i;:::-;;5270:214;;;;;;;;;;-1:-1:-1;5270:214:0;;;;;:::i;:::-;;:::i;2235:192:4:-;;;;;;;;;;-1:-1:-1;2235:192:4;;;;;:::i;:::-;;:::i;614:49::-;;;;;;;;;;-1:-1:-1;614:49:4;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;614:49:4;;;;;;;2291:10:12;2279:23;;;2261:42;;-1:-1:-1;;;;;2339:31:12;;;2334:2;2319:18;;2312:59;2234:18;614:49:4;2091:286:12;2799:137:0;;;;;;;;;;-1:-1:-1;2799:137:0;;;;;:::i;:::-;;:::i;1006:1225:4:-;;;;;;;;;;-1:-1:-1;1006:1225:4;;;;;:::i;:::-;;:::i;1917:49:0:-;;;;;;;;;;-1:-1:-1;1917:49:0;1962:4;1917:49;;707:83:4;;;;;;;;;;-1:-1:-1;707:83:4;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;707:83:4;;;-1:-1:-1;;;707:83:4;;;;;;;;;;-1:-1:-1;;;;;3708:31:12;;;3690:50;;3788:10;3776:23;;;3771:2;3756:18;;3749:51;3663:18;707:83:4;3520:286:12;4632:147:0;;;;;;;;;;-1:-1:-1;4632:147:0;;;;;:::i;:::-;;:::i;2510:202::-;2595:4;-1:-1:-1;;;;;;2618:47:0;;-1:-1:-1;;;2618:47:0;;:87;;-1:-1:-1;;;;;;;;;;871:40:3;;;2669:36:0;2611:94;2510:202;-1:-1:-1;;2510:202:0:o;4253:145::-;3948:7;3974:12;;;;;;;;;;:22;;;2395:30;2406:4;666:10:2;2395::0;:30::i;:::-;4366:25:::1;4377:4;4383:7;4366:10;:25::i;:::-;4253:145:::0;;;:::o;5270:214::-;-1:-1:-1;;;;;5365:23:0;;666:10:2;5365:23:0;5357:83;;;;-1:-1:-1;;;5357:83:0;;4013:2:12;5357:83:0;;;3995:21:12;4052:2;4032:18;;;4025:30;4091:34;4071:18;;;4064:62;-1:-1:-1;;;4142:18:12;;;4135:45;4197:19;;5357:83:0;;;;;;;;;5451:26;5463:4;5469:7;5451:11;:26::i;:::-;5270:214;;:::o;2235:192:4:-;1962:4:0;2395:30;1962:4;666:10:2;2395::0;:30::i;:::-;-1:-1:-1;2390:32:4::1;::::0;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;2390:32:4;;::::1;;::::0;;::::1;::::0;;;2372:15;;::::1;-1:-1:-1::0;2372:15:4;;;:11:::1;:15:::0;;;;;;;:50;;;;;;;;::::1;::::0;::::1;-1:-1:-1::0;;2372:50:4;;;;;;::::1;::::0;::::1;::::0;;2235:192::o;2799:137:0:-;2877:4;2900:12;;;;;;;;;;;-1:-1:-1;;;;;2900:29:0;;;;;;;;;;;;;;;2799:137::o;1006:1225:4:-;1680:1:9;2259:7;;:19;;2251:63;;;;-1:-1:-1;;;2251:63:9;;4429:2:12;2251:63:9;;;4411:21:12;4468:2;4448:18;;;4441:30;4507:33;4487:18;;;4480:61;4558:18;;2251:63:9;4227:355:12;2251:63:9;1680:1;2389:7;:18;524:66:4::1;2395:30:0;524:66:4::0;666:10:2;2395::0;:30::i;:::-:1;-1:-1:-1::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1251:22:4;;::::2;::::0;;:11:::2;:22:::0;;;;;1228:45;;;;::::2;::::0;;;;::::2;::::0;::::2;::::0;;;;::::2;;::::0;;::::2;::::0;-1:-1:-1;;;1279:948:4::2;1299:15:::0;;::::2;1279:948;;;1339:4;;1344:1;1339:7;;;;;;;:::i;:::-;;;;;;1329:17;;;;;;;;;;:::i;:::-;;;1358:8;:19;1367:9;-1:-1:-1::0;;;;;1358:19:4::2;-1:-1:-1::0;;;;;1358:19:4::2;;;;;;;;;;;;:27;1378:6;-1:-1:-1::0;;;;;1358:27:4::2;-1:-1:-1::0;;;;;1358:27:4::2;;;;;;;;;;;;:45;1386:7;:16;;;-1:-1:-1::0;;;;;1358:45:4::2;-1:-1:-1::0;;;;;1358:45:4::2;;;;;;;;;;;;1354:49;;1479:1;:7;;;-1:-1:-1::0;;;;;1479:12:4::2;1490:1;1479:12;1475:277;;;1511:10:::0;;-1:-1:-1;;;1511:10:4;::::2;;;:15:::0;1503:36:::2;;;::::0;-1:-1:-1;;;1503:36:4;;5743:2:12;1503:36:4::2;::::0;::::2;5725:21:12::0;5782:1;5762:18;;;5755:29;-1:-1:-1;;;5800:18:12;;;5793:38;5848:18;;1503:36:4::2;5541:331:12::0;1503:36:4::2;1475:277;;;1568:7:::0;;-1:-1:-1;;;;;1568:7:4::2;:11:::0;1564:161:::2;;1611:7;::::0;::::2;::::0;1601;;-1:-1:-1;;;;;1601:17:4;;::::2;:7:::0;::::2;:17;1593:40;;;::::0;-1:-1:-1;;;1593:40:4;;6079:2:12;1593:40:4::2;::::0;::::2;6061:21:12::0;6118:2;6098:18;;;6091:30;-1:-1:-1;;;6137:18:12;;;6130:40;6187:18;;1593:40:4::2;5877:334:12::0;1593:40:4::2;1688:10:::0;;1671:14;;:27:::2;::::0;-1:-1:-1;;;1688:10:4;::::2;;;::::0;1671:27:::2;:::i;:::-;1653:45;;2515:15:::0;1653:45:::2;;;1645:69;;;::::0;-1:-1:-1;;;1645:69:4;;6783:2:12;1645:69:4::2;::::0;::::2;6765:21:12::0;6822:2;6802:18;;;6795:30;-1:-1:-1;;;6841:18:12;;;6834:41;6892:18;;1645:69:4::2;6581:335:12::0;1645:69:4::2;1734:9:::0;;-1:-1:-1;;;;;1734:9:4::2;:1:::0;:7:::2;:9;::::0;::::2;:::i;:::-;;;;;;;;-1:-1:-1::0;;;;;1734:9:4::2;;;;;-1:-1:-1::0;;;;;1734:9:4::2;;;;;;;1475:277;-1:-1:-1::0;;;;;1788:20:4;::::2;1784:250;;1839:16:::0;;1868:14:::2;::::0;::::2;::::0;1839:48:::2;::::0;1821:12:::2;::::0;-1:-1:-1;;;;;1839:21:4::2;::::0;1868:14;1821:12;1839:48;1821:12;1839:48;1868:14;1839:21;:48:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1820:67;;;1905:7;1897:42;;;::::0;-1:-1:-1;;;1897:42:4;;7547:2:12;1897:42:4::2;::::0;::::2;7529:21:12::0;7586:2;7566:18;;;7559:30;-1:-1:-1;;;7605:18:12;;;7598:52;7667:18;;1897:42:4::2;7345:346:12::0;1897:42:4::2;1810:138;1784:250;;;1992:16:::0;;2010:14:::2;::::0;::::2;::::0;1964:61:::2;::::0;-1:-1:-1;;;;;1964:27:4;::::2;::::0;::::2;:61::i;:::-;2515:15:::0;2041:28;;::::2;::::0;;;::::2;-1:-1:-1::0;;;2041:28:4::2;-1:-1:-1::0;;2041:28:4;;::::2;;::::0;;2175:18:::2;::::0;;::::2;::::0;2151:14:::2;::::0;::::2;::::0;2125:16;;2082:138;;-1:-1:-1;;;;;2082:138:4;;::::2;::::0;;::::2;::::0;::::2;::::0;::::2;::::0;2109:6;;-1:-1:-1;;;;;7926:15:12;;;7908:34;;7978:15;;7973:2;7958:18;;7951:43;7858:2;7843:18;;7696:304;2082:138:4::2;;;;;;;;1316:3:::0;::::2;::::0;::::2;:::i;:::-;;;;1279:948;;;-1:-1:-1::0;;1637:1:9;2562:22;;-1:-1:-1;;;;;;;1006:1225:4:o;4632:147:0:-;3948:7;3974:12;;;;;;;;;;:22;;;2395:30;2406:4;666:10:2;2395::0;:30::i;:::-;4746:26:::1;4758:4;4764:7;4746:11;:26::i;3217:484::-:0;3297:22;3305:4;3311:7;3297;:22::i;:::-;3292:403;;3480:41;3508:7;-1:-1:-1;;;;;3480:41:0;3518:2;3480:19;:41::i;:::-;3592:38;3620:4;3627:2;3592:19;:38::i;:::-;3387:265;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;3387:265:0;;;;;;;;;;-1:-1:-1;;;3335:349:0;;;;;;;:::i;6537:224::-;6611:22;6619:4;6625:7;6611;:22::i;:::-;6606:149;;6649:6;:12;;;;;;;;;;;-1:-1:-1;;;;;6649:29:0;;;;;;;;;:36;;-1:-1:-1;;6649:36:0;6681:4;6649:36;;;6731:12;666:10:2;;587:96;6731:12:0;-1:-1:-1;;;;;6704:40:0;6722:7;-1:-1:-1;;;;;6704:40:0;6716:4;6704:40;;;;;;;;;;6537:224;;:::o;6767:225::-;6841:22;6849:4;6855:7;6841;:22::i;:::-;6837:149;;;6911:5;6879:12;;;;;;;;;;;-1:-1:-1;;;;;6879:29:0;;;;;;;;;;:37;;-1:-1:-1;;6879:37:0;;;6935:40;666:10:2;;6879:12:0;;6935:40;;6911:5;6935:40;6767:225;;:::o;620:205:10:-;759:58;;;-1:-1:-1;;;;;9779:32:12;;759:58:10;;;9761:51:12;9828:18;;;;9821:34;;;759:58:10;;;;;;;;;;9734:18:12;;;;759:58:10;;;;;;;;-1:-1:-1;;;;;759:58:10;-1:-1:-1;;;759:58:10;;;732:86;;752:5;;732:19;:86::i;1535:441:11:-;1610:13;1635:19;1667:10;1671:6;1667:1;:10;:::i;:::-;:14;;1680:1;1667:14;:::i;:::-;-1:-1:-1;;;;;1657:25:11;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1657:25:11;;1635:47;;-1:-1:-1;;;1692:6:11;1699:1;1692:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1692:15:11;;;;;;;;;-1:-1:-1;;;1717:6:11;1724:1;1717:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1717:15:11;;;;;;;;-1:-1:-1;1747:9:11;1759:10;1763:6;1759:1;:10;:::i;:::-;:14;;1772:1;1759:14;:::i;:::-;1747:26;;1742:132;1779:1;1775;:5;1742:132;;;-1:-1:-1;;;1826:5:11;1834:3;1826:11;1813:25;;;;;;;:::i;:::-;;;;1801:6;1808:1;1801:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;1801:37:11;;;;;;;;-1:-1:-1;1862:1:11;1852:11;;;;;1782:3;;;:::i;:::-;;;1742:132;;;-1:-1:-1;1891:10:11;;1883:55;;;;-1:-1:-1;;;1883:55:11;;10515:2:12;1883:55:11;;;10497:21:12;;;10534:18;;;10527:30;10593:34;10573:18;;;10566:62;10645:18;;1883:55:11;10313:356:12;1883:55:11;1962:6;1535:441;-1:-1:-1;;;1535:441:11:o;3126:706:10:-;3545:23;3571:69;3599:4;3571:69;;;;;;;;;;;;;;;;;3579:5;-1:-1:-1;;;;;3571:27:10;;;:69;;;;;:::i;:::-;3654:17;;3545:95;;-1:-1:-1;3654:21:10;3650:176;;3749:10;3738:30;;;;;;;;;;;;:::i;:::-;3730:85;;;;-1:-1:-1;;;3730:85:10;;11158:2:12;3730:85:10;;;11140:21:12;11197:2;11177:18;;;11170:30;11236:34;11216:18;;;11209:62;-1:-1:-1;;;11287:18:12;;;11280:40;11337:19;;3730:85:10;10956:406:12;3461:223:1;3594:12;3625:52;3647:6;3655:4;3661:1;3664:12;3625:21;:52::i;:::-;3618:59;3461:223;-1:-1:-1;;;;3461:223:1:o;4548:499::-;4713:12;4770:5;4745:21;:30;;4737:81;;;;-1:-1:-1;;;4737:81:1;;11569:2:12;4737:81:1;;;11551:21:12;11608:2;11588:18;;;11581:30;11647:34;11627:18;;;11620:62;-1:-1:-1;;;11698:18:12;;;11691:36;11744:19;;4737:81:1;11367:402:12;4737:81:1;1034:20;;4828:60;;;;-1:-1:-1;;;4828:60:1;;11976:2:12;4828:60:1;;;11958:21:12;12015:2;11995:18;;;11988:30;12054:31;12034:18;;;12027:59;12103:18;;4828:60:1;11774:353:12;4828:60:1;4900:12;4914:23;4941:6;-1:-1:-1;;;;;4941:11:1;4960:5;4967:4;4941:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4899:73;;;;4989:51;5006:7;5015:10;5027:12;4989:16;:51::i;:::-;4982:58;4548:499;-1:-1:-1;;;;;;;4548:499:1:o;7161:692::-;7307:12;7335:7;7331:516;;;-1:-1:-1;7365:10:1;7358:17;;7331:516;7476:17;;:21;7472:365;;7670:10;7664:17;7730:15;7717:10;7713:2;7709:19;7702:44;7472:365;7809:12;7802:20;;-1:-1:-1;;;7802:20:1;;;;;;;;:::i;14:286:12:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:12;;209:43;;199:71;;266:1;263;256:12;497:180;556:6;609:2;597:9;588:7;584:23;580:32;577:52;;;625:1;622;615:12;577:52;-1:-1:-1;648:23:12;;497:180;-1:-1:-1;497:180:12:o;864:173::-;932:20;;-1:-1:-1;;;;;981:31:12;;971:42;;961:70;;1027:1;1024;1017:12;961:70;864:173;;;:::o;1042:254::-;1110:6;1118;1171:2;1159:9;1150:7;1146:23;1142:32;1139:52;;;1187:1;1184;1177:12;1139:52;1223:9;1210:23;1200:33;;1252:38;1286:2;1275:9;1271:18;1252:38;:::i;:::-;1242:48;;1042:254;;;;;:::o;1301:171::-;1368:20;;-1:-1:-1;;;;;1417:30:12;;1407:41;;1397:69;;1462:1;1459;1452:12;1477:420;1551:6;1559;1567;1620:2;1608:9;1599:7;1595:23;1591:32;1588:52;;;1636:1;1633;1626:12;1588:52;1659:28;1677:9;1659:28;:::i;:::-;1649:38;;1737:2;1726:9;1722:18;1709:32;1781:10;1774:5;1770:22;1763:5;1760:33;1750:61;;1807:1;1804;1797:12;1750:61;1830:5;-1:-1:-1;1854:37:12;1887:2;1872:18;;1854:37;:::i;:::-;1844:47;;1477:420;;;;;:::o;1902:184::-;1960:6;2013:2;2001:9;1992:7;1988:23;1984:32;1981:52;;;2029:1;2026;2019:12;1981:52;2052:28;2070:9;2052:28;:::i;2382:796::-;2519:6;2527;2535;2543;2596:2;2584:9;2575:7;2571:23;2567:32;2564:52;;;2612:1;2609;2602:12;2564:52;2635:29;2654:9;2635:29;:::i;:::-;2625:39;;2683:37;2716:2;2705:9;2701:18;2683:37;:::i;:::-;2673:47;;2771:2;2760:9;2756:18;2743:32;-1:-1:-1;;;;;2835:2:12;2827:6;2824:14;2821:34;;;2851:1;2848;2841:12;2821:34;2889:6;2878:9;2874:22;2864:32;;2934:7;2927:4;2923:2;2919:13;2915:27;2905:55;;2956:1;2953;2946:12;2905:55;2996:2;2983:16;3022:2;3014:6;3011:14;3008:34;;;3038:1;3035;3028:12;3008:34;3092:7;3087:2;3081;3073:6;3069:15;3065:2;3061:24;3057:33;3054:46;3051:66;;;3113:1;3110;3103:12;3051:66;2382:796;;;;-1:-1:-1;;3144:2:12;3136:11;;-1:-1:-1;;;2382:796:12:o;3183:332::-;3259:6;3267;3275;3328:2;3316:9;3307:7;3303:23;3299:32;3296:52;;;3344:1;3341;3334:12;3296:52;3367:28;3385:9;3367:28;:::i;:::-;3357:38;;3414;3448:2;3437:9;3433:18;3414:38;:::i;:::-;3404:48;;3471:38;3505:2;3494:9;3490:18;3471:38;:::i;4587:127::-;4648:10;4643:3;4639:20;4636:1;4629:31;4679:4;4676:1;4669:15;4703:4;4700:1;4693:15;4719:127;4780:10;4775:3;4771:20;4768:1;4761:31;4811:4;4808:1;4801:15;4835:4;4832:1;4825:15;4851:685;4942:6;4995:2;4983:9;4974:7;4970:23;4966:32;4963:52;;;5011:1;5008;5001:12;4963:52;5044:2;5038:9;5086:2;5078:6;5074:15;5155:6;5143:10;5140:22;-1:-1:-1;;;;;5107:10:12;5104:34;5101:62;5098:185;;;5205:10;5200:3;5196:20;5193:1;5186:31;5240:4;5237:1;5230:15;5268:4;5265:1;5258:15;5098:185;5299:2;5292:22;5338:29;5357:9;5338:29;:::i;:::-;5330:6;5323:45;5429:2;5418:9;5414:18;5401:32;5396:2;5388:6;5384:15;5377:57;5467:37;5500:2;5489:9;5485:18;5467:37;:::i;:::-;5462:2;5450:15;;5443:62;5454:6;4851:685;-1:-1:-1;;;4851:685:12:o;6216:127::-;6277:10;6272:3;6268:20;6265:1;6258:31;6308:4;6305:1;6298:15;6332:4;6329:1;6322:15;6348:228;6387:3;6415:10;6452:2;6449:1;6445:10;6482:2;6479:1;6475:10;6513:3;6509:2;6505:12;6500:3;6497:21;6494:47;;;6521:18;;:::i;:::-;6557:13;;6348:228;-1:-1:-1;;;;6348:228:12:o;6921:209::-;6959:3;-1:-1:-1;;;;;7040:2:12;7033:5;7029:14;7067:2;7058:7;7055:15;7052:41;;;7073:18;;:::i;:::-;7122:1;7109:15;;6921:209;-1:-1:-1;;;6921:209:12:o;8005:135::-;8044:3;-1:-1:-1;;8065:17:12;;8062:43;;;8085:18;;:::i;:::-;-1:-1:-1;8132:1:12;8121:13;;8005:135::o;8145:258::-;8217:1;8227:113;8241:6;8238:1;8235:13;8227:113;;;8317:11;;;8311:18;8298:11;;;8291:39;8263:2;8256:10;8227:113;;;8358:6;8355:1;8352:13;8349:48;;;8393:1;8384:6;8379:3;8375:16;8368:27;8349:48;;8145:258;;;:::o;8408:786::-;8819:25;8814:3;8807:38;8789:3;8874:6;8868:13;8890:62;8945:6;8940:2;8935:3;8931:12;8924:4;8916:6;8912:17;8890:62;:::i;:::-;-1:-1:-1;;;9011:2:12;8971:16;;;9003:11;;;8996:40;9061:13;;9083:63;9061:13;9132:2;9124:11;;9117:4;9105:17;;9083:63;:::i;:::-;9166:17;9185:2;9162:26;;8408:786;-1:-1:-1;;;;8408:786:12:o;9199:383::-;9348:2;9337:9;9330:21;9311:4;9380:6;9374:13;9423:6;9418:2;9407:9;9403:18;9396:34;9439:66;9498:6;9493:2;9482:9;9478:18;9473:2;9465:6;9461:15;9439:66;:::i;:::-;9566:2;9545:15;-1:-1:-1;;9541:29:12;9526:45;;;;9573:2;9522:54;;9199:383;-1:-1:-1;;9199:383:12:o;9866:168::-;9906:7;9972:1;9968;9964:6;9960:14;9957:1;9954:21;9949:1;9942:9;9935:17;9931:45;9928:71;;;9979:18;;:::i;:::-;-1:-1:-1;10019:9:12;;9866:168::o;10039:128::-;10079:3;10110:1;10106:6;10103:1;10100:13;10097:39;;;10116:18;;:::i;:::-;-1:-1:-1;10152:9:12;;10039:128::o;10172:136::-;10211:3;10239:5;10229:39;;10248:18;;:::i;:::-;-1:-1:-1;;;10284:18:12;;10172:136::o;10674:277::-;10741:6;10794:2;10782:9;10773:7;10769:23;10765:32;10762:52;;;10810:1;10807;10800:12;10762:52;10842:9;10836:16;10895:5;10888:13;10881:21;10874:5;10871:32;10861:60;;10917:1;10914;10907:12;12132:274;12261:3;12299:6;12293:13;12315:53;12361:6;12356:3;12349:4;12341:6;12337:17;12315:53;:::i;:::-;12384:16;;;;;12132:274;-1:-1:-1;;12132:274:12:o
Swarm Source
ipfs://3dd27ea24431174efe025ad13da80f4bbc3ec81063c18fa1469abd82dcd9a8b7
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.