Overview
BERA Balance
BERA Value
$0.00Latest 25 from a total of 182,333 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 4075706 | 2 mins ago | IN | 0 BERA | 0.0000003 | ||||
Approve | 4075701 | 2 mins ago | IN | 0 BERA | 0.00000005 | ||||
Approve | 4075695 | 2 mins ago | IN | 0 BERA | 0.00000176 | ||||
Approve | 4075681 | 2 mins ago | IN | 0 BERA | 0.00002321 | ||||
Approve | 4075667 | 3 mins ago | IN | 0 BERA | 0 | ||||
Approve | 4075653 | 3 mins ago | IN | 0 BERA | 0.00000463 | ||||
Approve | 4075649 | 3 mins ago | IN | 0 BERA | 0.00000313 | ||||
Approve | 4075634 | 4 mins ago | IN | 0 BERA | 0.00000005 | ||||
Approve | 4075630 | 4 mins ago | IN | 0 BERA | 0.00000005 | ||||
Approve | 4075611 | 5 mins ago | IN | 0 BERA | 0.00000005 | ||||
Approve | 4075604 | 5 mins ago | IN | 0 BERA | 0.00000005 | ||||
Approve | 4075597 | 5 mins ago | IN | 0 BERA | 0.00002321 | ||||
Approve | 4075591 | 5 mins ago | IN | 0 BERA | 0 | ||||
Transfer | 4075578 | 6 mins ago | IN | 0 BERA | 0 | ||||
Approve | 4075570 | 6 mins ago | IN | 0 BERA | 0.00002321 | ||||
Approve | 4075568 | 6 mins ago | IN | 0 BERA | 0.00000007 | ||||
Approve | 4075528 | 7 mins ago | IN | 0 BERA | 0.00007956 | ||||
Approve | 4075525 | 7 mins ago | IN | 0 BERA | 0.00000005 | ||||
Approve | 4075525 | 7 mins ago | IN | 0 BERA | 0.00013926 | ||||
Approve | 4075512 | 8 mins ago | IN | 0 BERA | 0.00000005 | ||||
Approve | 4075485 | 9 mins ago | IN | 0 BERA | 0.00000005 | ||||
Approve | 4075450 | 10 mins ago | IN | 0 BERA | 0 | ||||
Approve | 4075444 | 10 mins ago | IN | 0 BERA | 0.00000005 | ||||
Transfer | 4075426 | 11 mins ago | IN | 0 BERA | 0.00000003 | ||||
Approve | 4075401 | 12 mins ago | IN | 0 BERA | 0.00000005 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
InfraredBGT
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
Yes with 200 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.26; import {ERC20PresetMinterPauser} from "../vendors/ERC20PresetMinterPauser.sol"; /** * @title InfraredBGT * @notice This contract is the InfraredBGT token. */ contract InfraredBGT is ERC20PresetMinterPauser { /** * @notice Constructor for InfraredBGT * @param _admin The admin address to controll the roles of the contract * @param _minter The minter address of the contract * @param _pauser The pauser address of the contract * @param _burner The burner address of the contract */ constructor( address _admin, address _minter, address _pauser, address _burner ) ERC20PresetMinterPauser( "Infrared BGT", "iBGT", _admin, _minter, _pauser, _burner ) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) // (token/ERC20/presets/ERC20PresetMinterPauser.sol) /* solhint-disable */ pragma solidity ^0.8.0; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {AccessControlEnumerable} from "@openzeppelin/contracts/access/extensions/AccessControlEnumerable.sol"; import {Context} from "@openzeppelin/contracts/utils/Context.sol"; import {CustomPausable} from "./CustomPausable.sol"; /** * @dev {ERC20} token, including: * * - ability for holders to burn (destroy) their tokens * - a minter role that allows for token minting (creation) * - a pauser role that allows to stop all token transfers * * This contract uses {AccessControl} to lock permissioned functions using the * different roles - head to its documentation for details. * * The account that deploys the contract will be granted the minter and pauser * roles, as well as the default admin role, which will let it grant both minter * and pauser roles to other accounts. * * _Deprecated in favor of https://wizard.openzeppelin.com/[Contracts Wizard]._ */ contract ERC20PresetMinterPauser is Context, AccessControlEnumerable, CustomPausable { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE"); /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the * account that deploys the contract. * * See {ERC20-constructor}. */ constructor( string memory name, string memory symbol, address _admin, address _minter, address _pauser, address _burner ) ERC20(name, symbol) { _grantRole(DEFAULT_ADMIN_ROLE, _admin); _grantRole(MINTER_ROLE, _minter); _grantRole(PAUSER_ROLE, _pauser); if (_burner != address(0)) { _grantRole(BURNER_ROLE, _burner); } } /** * @dev Creates `amount` new tokens for `to`. * * See {ERC20-_mint}. * * Requirements: * * - the caller must have the `MINTER_ROLE`. */ function mint(address to, uint256 amount) public virtual whenNotPaused { require( hasRole(MINTER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have minter role to mint" ); _mint(to, amount); } /** * @dev Burn `amount` new tokens from `from`. * * See {ERC20-_burn}. * * Requirements: * * - the caller must have the `BURNER_ROLE`. */ function burn(uint256 amount) public virtual whenNotPaused { require( hasRole(BURNER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have burner role to burn" ); _burn(msg.sender, amount); } /** * @dev Pauses all token transfers. * * See {ERC20Pausable} and {Pausable-_pause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function pause() public virtual { require( hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to pause" ); _pause(); } /** * @dev Unpauses all token transfers. * * See {ERC20Pausable} and {Pausable-_unpause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function unpause() public virtual { require( hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to unpause" ); _unpause(); } function _update(address from, address to, uint256 value) internal virtual override(CustomPausable) { super._update(from, to, value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.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 ERC-20 * applications. */ 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}. * * Skips emitting an {Approval} event indicating an allowance update. This is not * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve]. * * 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: * * ```solidity * 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.1.0) (access/extensions/AccessControlEnumerable.sol) pragma solidity ^0.8.20; import {IAccessControlEnumerable} from "./IAccessControlEnumerable.sol"; import {AccessControl} from "../AccessControl.sol"; import {EnumerableSet} from "../../utils/structs/EnumerableSet.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 role => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view virtual returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view virtual returns (uint256) { return _roleMembers[role].length(); } /** * @dev Return all accounts that have `role` * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function getRoleMembers(bytes32 role) public view virtual returns (address[] memory) { return _roleMembers[role].values(); } /** * @dev Overload {AccessControl-_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override returns (bool) { bool granted = super._grantRole(role, account); if (granted) { _roleMembers[role].add(account); } return granted; } /** * @dev Overload {AccessControl-_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override returns (bool) { bool revoked = super._revokeRole(role, account); if (revoked) { _roleMembers[role].remove(account); } return revoked; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20Pausable.sol) pragma solidity ^0.8.20; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {Pausable} from "@openzeppelin/contracts/utils/Pausable.sol"; /** * @dev ERC-20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. * * IMPORTANT: This contract does not include public pause and unpause functions. In * addition to inheriting this contract, you must define both functions, invoking the * {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate * access control, e.g. using {AccessControl} or {Ownable}. Not doing so will * make the contract pause mechanism of the contract unreachable, and thus unusable. */ abstract contract CustomPausable is ERC20, Pausable { /** * @dev See {ERC20-_update}. * * This contract modifies the default behavior of ERC20Pausable. * * - When paused, transfers are not paused. * - The `whenNotPaused` modifier has been removed to allow transfers even when the contract is paused. * - Only minting and burning operations are paused when the contract is paused. */ function _update(address from, address to, uint256 value) internal virtual override { super._update(from, to, value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC-20 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.1.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 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 ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-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 ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 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.1.0) (access/extensions/IAccessControlEnumerable.sol) pragma solidity ^0.8.20; import {IAccessControl} from "../IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC-165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol) pragma solidity ^0.8.20; import {IAccessControl} from "./IAccessControl.sol"; import {Context} from "../utils/Context.sol"; import {ERC165} from "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ```solidity * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ```solidity * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address account => bool) hasRole; bytes32 adminRole; } mapping(bytes32 role => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with an {AccessControlUnauthorizedAccount} error including the required role. */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual returns (bool) { return _roles[role].hasRole[account]; } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()` * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier. */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account` * is missing `role`. */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert AccessControlUnauthorizedAccount(account, role); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address callerConfirmation) public virtual { if (callerConfirmation != _msgSender()) { revert AccessControlBadConfirmation(); } _revokeRole(role, callerConfirmation); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual returns (bool) { if (!hasRole(role, account)) { _roles[role].hasRole[account] = true; emit RoleGranted(role, account, _msgSender()); return true; } else { return false; } } /** * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual returns (bool) { if (hasRole(role, account)) { _roles[role].hasRole[account] = false; emit RoleRevoked(role, account, _msgSender()); return true; } else { return false; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. pragma solidity ^0.8.20; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ```solidity * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position is the index of the value in the `values` array plus 1. // Position 0 is used to mean a value is not in the set. mapping(bytes32 value => uint256) _positions; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._positions[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We cache the value's position to prevent multiple reads from the same storage slot uint256 position = set._positions[value]; if (position != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 valueIndex = position - 1; uint256 lastIndex = set._values.length - 1; if (valueIndex != lastIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the lastValue to the index where the value to delete is set._values[valueIndex] = lastValue; // Update the tracked position of the lastValue (that was just moved) set._positions[lastValue] = position; } // Delete the slot where the moved value was stored set._values.pop(); // Delete the tracked position for the deleted slot delete set._positions[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._positions[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; assembly ("memory-safe") { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly ("memory-safe") { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly ("memory-safe") { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { bool private _paused; /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (access/IAccessControl.sol) pragma solidity ^0.8.20; /** * @dev External interface of AccessControl declared to support ERC-165 detection. */ interface IAccessControl { /** * @dev The `account` is missing a role. */ error AccessControlUnauthorizedAccount(address account, bytes32 neededRole); /** * @dev The caller of a function is not the expected one. * * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}. */ error AccessControlBadConfirmation(); /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call. This account bears the admin role (for the granted role). * Expected in cases where the role was granted using the internal {AccessControl-_grantRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. */ function renounceRole(bytes32 role, address callerConfirmation) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "remappings": [ "@forge-std/=lib/forge-std/src/", "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "@openzeppelin-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", "@solmate/=lib/solmate/src/", "solady/src/=lib/solady/src/", "solady/test/=lib/solady/test/", "@berachain/=lib/contracts/src/", "@prb/=lib/prb-test/src/", "@forge-safe/=lib/forge-safe/src/", "@mock/=lib/contracts/test/mock/", "@openzeppelin-gov-ext/=lib/contracts/node_modules/@openzeppelin/contracts-upgradeable/governance/extensions/", "@openzeppelin-gov/=lib/contracts/node_modules/@openzeppelin/contracts-upgradeable/governance/", "@pythnetwork/=lib/contracts/node_modules/@pythnetwork/pyth-sdk-solidity/", "contracts/=lib/contracts/src/", "ds-test/=lib/solmate/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/", "forge-safe/=lib/forge-safe/", "forge-std/=lib/forge-std/src/", "halmos-cheatcodes/=lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "prb-test/=lib/prb-test/src/", "solidity-stringutils/=lib/forge-safe/lib/surl/lib/solidity-stringutils/", "solmate/=lib/solmate/src/", "surl/=lib/forge-safe/lib/surl/", "transient-goodies/=lib/contracts/lib/transient-goodies/src/" ], "optimizer": { "enabled": true, "runs": 200, "details": { "constantOptimizer": true, "yul": true, "yulDetails": { "stackAllocation": true } } }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "cancun", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_minter","type":"address"},{"internalType":"address","name":"_pauser","type":"address"},{"internalType":"address","name":"_burner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"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"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMembers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"value","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561000f575f80fd5b5060405161177638038061177683398101604081905261002e91610296565b6040518060400160405280600c81526020016b125b999c985c9959081091d560a21b815250604051806040016040528060048152602001631a5091d560e21b8152508585858585858160059081610085919061037f565b506006610092828261037f565b50506007805460ff19169055506100a95f8561014a565b506100d47f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a68461014a565b506100ff7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a8361014a565b506001600160a01b0381161561013b576101397f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8488261014a565b505b50505050505050505050610439565b5f806101568484610180565b90508015610177575f8481526001602052604090206101759084610227565b505b90505b92915050565b5f828152602081815260408083206001600160a01b038516845290915281205460ff16610220575f838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556101d83390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a450600161017a565b505f61017a565b5f610177836001600160a01b0384165f81815260018301602052604081205461022057508154600181810184555f84815260208082209093018490558454848252828601909352604090209190915561017a565b80516001600160a01b0381168114610291575f80fd5b919050565b5f805f80608085870312156102a9575f80fd5b6102b28561027b565b93506102c06020860161027b565b92506102ce6040860161027b565b91506102dc6060860161027b565b905092959194509250565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061030f57607f821691505b60208210810361032d57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561037a57805f5260205f20601f840160051c810160208510156103585750805b601f840160051c820191505b81811015610377575f8155600101610364565b50505b505050565b81516001600160401b03811115610398576103986102e7565b6103ac816103a684546102fb565b84610333565b6020601f8211600181146103de575f83156103c75750848201515b5f19600385901b1c1916600184901b178455610377565b5f84815260208120601f198516915b8281101561040d57878501518255602094850194600190920191016103ed565b508482101561042a57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b611330806104465f395ff3fe608060405234801561000f575f80fd5b50600436106101a1575f3560e01c80635c975abb116100f3578063a3246ad311610093578063d53913931161006e578063d539139314610396578063d547741f146103bd578063dd62ed3e146103d0578063e63ab1e914610408575f80fd5b8063a3246ad314610350578063a9059cbb14610370578063ca15c87314610383575f80fd5b80639010d07c116100ce5780639010d07c1461030357806391d148541461032e57806395d89b4114610341578063a217fddf14610349575f80fd5b80635c975abb146102c857806370a08231146102d35780638456cb59146102fb575f80fd5b8063282c51f31161015e57806336568abe1161013957806336568abe146102875780633f4ba83a1461029a57806340c10f19146102a257806342966c68146102b5575f80fd5b8063282c51f31461023c5780632f2ff15d14610263578063313ce56714610278575f80fd5b806301ffc9a7146101a557806306fdde03146101cd578063095ea7b3146101e257806318160ddd146101f557806323b872dd14610207578063248a9ca31461021a575b5f80fd5b6101b86101b336600461107a565b61042f565b60405190151581526020015b60405180910390f35b6101d5610459565b6040516101c491906110a1565b6101b86101f03660046110f1565b6104e9565b6004545b6040519081526020016101c4565b6101b8610215366004611119565b610500565b6101f9610228366004611153565b5f9081526020819052604090206001015490565b6101f97f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b61027661027136600461116a565b610523565b005b604051601281526020016101c4565b61027661029536600461116a565b61054d565b610276610585565b6102766102b03660046110f1565b61061d565b6102766102c3366004611153565b6106b5565b60075460ff166101b8565b6101f96102e1366004611194565b6001600160a01b03165f9081526002602052604090205490565b61027661074c565b6103166103113660046111ad565b6107dd565b6040516001600160a01b0390911681526020016101c4565b6101b861033c36600461116a565b6107fb565b6101d5610823565b6101f95f81565b61036361035e366004611153565b610832565b6040516101c491906111cd565b6101b861037e3660046110f1565b61084b565b6101f9610391366004611153565b610858565b6101f97f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102766103cb36600461116a565b61086e565b6101f96103de366004611218565b6001600160a01b039182165f90815260036020908152604080832093909416825291909152205490565b6101f97f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b5f6001600160e01b03198216635a05180f60e01b1480610453575061045382610892565b92915050565b60606005805461046890611240565b80601f016020809104026020016040519081016040528092919081815260200182805461049490611240565b80156104df5780601f106104b6576101008083540402835291602001916104df565b820191905f5260205f20905b8154815290600101906020018083116104c257829003601f168201915b5050505050905090565b5f336104f68185856108c6565b5060019392505050565b5f3361050d8582856108d3565b610518858585610949565b506001949350505050565b5f8281526020819052604090206001015461053d816109a6565b61054783836109b0565b50505050565b6001600160a01b03811633146105765760405163334bd91960e11b815260040160405180910390fd5b61058082826109e3565b505050565b6105af7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336107fb565b6106135760405162461bcd60e51b815260206004820152603960248201525f805160206112db83398151915260448201527f76652070617573657220726f6c6520746f20756e70617573650000000000000060648201526084015b60405180910390fd5b61061b610a0e565b565b610625610a60565b61064f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336107fb565b6106a75760405162461bcd60e51b815260206004820152603660248201525f805160206112db8339815191526044820152751d99481b5a5b9d195c881c9bdb19481d1bc81b5a5b9d60521b606482015260840161060a565b6106b18282610a84565b5050565b6106bd610a60565b6106e77f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848336107fb565b61073f5760405162461bcd60e51b815260206004820152603660248201525f805160206112db8339815191526044820152753b3290313ab93732b9103937b632903a3790313ab93760511b606482015260840161060a565b6107493382610ab8565b50565b6107767f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336107fb565b6107d55760405162461bcd60e51b815260206004820152603760248201525f805160206112db83398151915260448201527f76652070617573657220726f6c6520746f207061757365000000000000000000606482015260840161060a565b61061b610aec565b5f8281526001602052604081206107f49083610b29565b9392505050565b5f918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606006805461046890611240565b5f81815260016020526040902060609061045390610b34565b5f336104f6818585610949565b5f81815260016020526040812061045390610b40565b5f82815260208190526040902060010154610888816109a6565b61054783836109e3565b5f6001600160e01b03198216637965db0b60e01b148061045357506301ffc9a760e01b6001600160e01b0319831614610453565b6105808383836001610b49565b6001600160a01b038381165f908152600360209081526040808320938616835292905220545f19811015610547578181101561093b57604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161060a565b61054784848484035f610b49565b6001600160a01b03831661097257604051634b637e8f60e11b81525f600482015260240161060a565b6001600160a01b03821661099b5760405163ec442f0560e01b81525f600482015260240161060a565b610580838383610c1b565b6107498133610c26565b5f806109bc8484610c5f565b905080156107f4575f8481526001602052604090206109db9084610cee565b509392505050565b5f806109ef8484610d02565b905080156107f4575f8481526001602052604090206109db9084610d6b565b610a16610d7f565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60075460ff161561061b5760405163d93c066560e01b815260040160405180910390fd5b6001600160a01b038216610aad5760405163ec442f0560e01b81525f600482015260240161060a565b6106b15f8383610c1b565b6001600160a01b038216610ae157604051634b637e8f60e11b81525f600482015260240161060a565b6106b1825f83610c1b565b610af4610a60565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610a433390565b5f6107f48383610da2565b60605f6107f483610dc8565b5f610453825490565b6001600160a01b038416610b725760405163e602df0560e01b81525f600482015260240161060a565b6001600160a01b038316610b9b57604051634a1406b160e11b81525f600482015260240161060a565b6001600160a01b038085165f908152600360209081526040808320938716835292905220829055801561054757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610c0d91815260200190565b60405180910390a350505050565b610580838383610e21565b610c3082826107fb565b6106b15760405163e2517d3f60e01b81526001600160a01b03821660048201526024810183905260440161060a565b5f610c6a83836107fb565b610ce7575f838152602081815260408083206001600160a01b03861684529091529020805460ff19166001179055610c9f3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610453565b505f610453565b5f6107f4836001600160a01b038416610e2c565b5f610d0d83836107fb565b15610ce7575f838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610453565b5f6107f4836001600160a01b038416610e71565b60075460ff1661061b57604051638dfc202b60e01b815260040160405180910390fd5b5f825f018281548110610db757610db7611278565b905f5260205f200154905092915050565b6060815f01805480602002602001604051908101604052809291908181526020018280548015610e1557602002820191905f5260205f20905b815481526020019060010190808311610e01575b50505050509050919050565b610580838383610f54565b5f818152600183016020526040812054610ce757508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610453565b5f8181526001830160205260408120548015610f4b575f610e936001836112a0565b85549091505f90610ea6906001906112a0565b9050808214610f05575f865f018281548110610ec457610ec4611278565b905f5260205f200154905080875f018481548110610ee457610ee4611278565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080610f1657610f166112b3565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610453565b5f915050610453565b6001600160a01b038316610f7e578060045f828254610f7391906112c7565b90915550610fee9050565b6001600160a01b0383165f9081526002602052604090205481811015610fd05760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161060a565b6001600160a01b0384165f9081526002602052604090209082900390555b6001600160a01b03821661100a57600480548290039055611028565b6001600160a01b0382165f9081526002602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161106d91815260200190565b60405180910390a3505050565b5f6020828403121561108a575f80fd5b81356001600160e01b0319811681146107f4575f80fd5b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146110ec575f80fd5b919050565b5f8060408385031215611102575f80fd5b61110b836110d6565b946020939093013593505050565b5f805f6060848603121561112b575f80fd5b611134846110d6565b9250611142602085016110d6565b929592945050506040919091013590565b5f60208284031215611163575f80fd5b5035919050565b5f806040838503121561117b575f80fd5b8235915061118b602084016110d6565b90509250929050565b5f602082840312156111a4575f80fd5b6107f4826110d6565b5f80604083850312156111be575f80fd5b50508035926020909101359150565b602080825282518282018190525f918401906040840190835b8181101561120d5783516001600160a01b03168352602093840193909201916001016111e6565b509095945050505050565b5f8060408385031215611229575f80fd5b611232836110d6565b915061118b602084016110d6565b600181811c9082168061125457607f821691505b60208210810361127257634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b818103818111156104535761045361128c565b634e487b7160e01b5f52603160045260245ffd5b808201808211156104535761045361128c56fe45524332305072657365744d696e7465725061757365723a206d757374206861a2646970667358221220eecb90e7e3f1ab12a47f6d644dd2be14f32f182f1e6fe45bdea4ddb57f9c7bb464736f6c634300081a0033000000000000000000000000182a31a27a0d39d735b31e80534cfe1fcd92c38f000000000000000000000000b71b3daea39012fb0f2b14d2a9c86da9292fc126000000000000000000000000182a31a27a0d39d735b31e80534cfe1fcd92c38f000000000000000000000000b71b3daea39012fb0f2b14d2a9c86da9292fc126
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106101a1575f3560e01c80635c975abb116100f3578063a3246ad311610093578063d53913931161006e578063d539139314610396578063d547741f146103bd578063dd62ed3e146103d0578063e63ab1e914610408575f80fd5b8063a3246ad314610350578063a9059cbb14610370578063ca15c87314610383575f80fd5b80639010d07c116100ce5780639010d07c1461030357806391d148541461032e57806395d89b4114610341578063a217fddf14610349575f80fd5b80635c975abb146102c857806370a08231146102d35780638456cb59146102fb575f80fd5b8063282c51f31161015e57806336568abe1161013957806336568abe146102875780633f4ba83a1461029a57806340c10f19146102a257806342966c68146102b5575f80fd5b8063282c51f31461023c5780632f2ff15d14610263578063313ce56714610278575f80fd5b806301ffc9a7146101a557806306fdde03146101cd578063095ea7b3146101e257806318160ddd146101f557806323b872dd14610207578063248a9ca31461021a575b5f80fd5b6101b86101b336600461107a565b61042f565b60405190151581526020015b60405180910390f35b6101d5610459565b6040516101c491906110a1565b6101b86101f03660046110f1565b6104e9565b6004545b6040519081526020016101c4565b6101b8610215366004611119565b610500565b6101f9610228366004611153565b5f9081526020819052604090206001015490565b6101f97f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b61027661027136600461116a565b610523565b005b604051601281526020016101c4565b61027661029536600461116a565b61054d565b610276610585565b6102766102b03660046110f1565b61061d565b6102766102c3366004611153565b6106b5565b60075460ff166101b8565b6101f96102e1366004611194565b6001600160a01b03165f9081526002602052604090205490565b61027661074c565b6103166103113660046111ad565b6107dd565b6040516001600160a01b0390911681526020016101c4565b6101b861033c36600461116a565b6107fb565b6101d5610823565b6101f95f81565b61036361035e366004611153565b610832565b6040516101c491906111cd565b6101b861037e3660046110f1565b61084b565b6101f9610391366004611153565b610858565b6101f97f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102766103cb36600461116a565b61086e565b6101f96103de366004611218565b6001600160a01b039182165f90815260036020908152604080832093909416825291909152205490565b6101f97f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b5f6001600160e01b03198216635a05180f60e01b1480610453575061045382610892565b92915050565b60606005805461046890611240565b80601f016020809104026020016040519081016040528092919081815260200182805461049490611240565b80156104df5780601f106104b6576101008083540402835291602001916104df565b820191905f5260205f20905b8154815290600101906020018083116104c257829003601f168201915b5050505050905090565b5f336104f68185856108c6565b5060019392505050565b5f3361050d8582856108d3565b610518858585610949565b506001949350505050565b5f8281526020819052604090206001015461053d816109a6565b61054783836109b0565b50505050565b6001600160a01b03811633146105765760405163334bd91960e11b815260040160405180910390fd5b61058082826109e3565b505050565b6105af7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336107fb565b6106135760405162461bcd60e51b815260206004820152603960248201525f805160206112db83398151915260448201527f76652070617573657220726f6c6520746f20756e70617573650000000000000060648201526084015b60405180910390fd5b61061b610a0e565b565b610625610a60565b61064f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336107fb565b6106a75760405162461bcd60e51b815260206004820152603660248201525f805160206112db8339815191526044820152751d99481b5a5b9d195c881c9bdb19481d1bc81b5a5b9d60521b606482015260840161060a565b6106b18282610a84565b5050565b6106bd610a60565b6106e77f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848336107fb565b61073f5760405162461bcd60e51b815260206004820152603660248201525f805160206112db8339815191526044820152753b3290313ab93732b9103937b632903a3790313ab93760511b606482015260840161060a565b6107493382610ab8565b50565b6107767f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336107fb565b6107d55760405162461bcd60e51b815260206004820152603760248201525f805160206112db83398151915260448201527f76652070617573657220726f6c6520746f207061757365000000000000000000606482015260840161060a565b61061b610aec565b5f8281526001602052604081206107f49083610b29565b9392505050565b5f918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606006805461046890611240565b5f81815260016020526040902060609061045390610b34565b5f336104f6818585610949565b5f81815260016020526040812061045390610b40565b5f82815260208190526040902060010154610888816109a6565b61054783836109e3565b5f6001600160e01b03198216637965db0b60e01b148061045357506301ffc9a760e01b6001600160e01b0319831614610453565b6105808383836001610b49565b6001600160a01b038381165f908152600360209081526040808320938616835292905220545f19811015610547578181101561093b57604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161060a565b61054784848484035f610b49565b6001600160a01b03831661097257604051634b637e8f60e11b81525f600482015260240161060a565b6001600160a01b03821661099b5760405163ec442f0560e01b81525f600482015260240161060a565b610580838383610c1b565b6107498133610c26565b5f806109bc8484610c5f565b905080156107f4575f8481526001602052604090206109db9084610cee565b509392505050565b5f806109ef8484610d02565b905080156107f4575f8481526001602052604090206109db9084610d6b565b610a16610d7f565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60075460ff161561061b5760405163d93c066560e01b815260040160405180910390fd5b6001600160a01b038216610aad5760405163ec442f0560e01b81525f600482015260240161060a565b6106b15f8383610c1b565b6001600160a01b038216610ae157604051634b637e8f60e11b81525f600482015260240161060a565b6106b1825f83610c1b565b610af4610a60565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610a433390565b5f6107f48383610da2565b60605f6107f483610dc8565b5f610453825490565b6001600160a01b038416610b725760405163e602df0560e01b81525f600482015260240161060a565b6001600160a01b038316610b9b57604051634a1406b160e11b81525f600482015260240161060a565b6001600160a01b038085165f908152600360209081526040808320938716835292905220829055801561054757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610c0d91815260200190565b60405180910390a350505050565b610580838383610e21565b610c3082826107fb565b6106b15760405163e2517d3f60e01b81526001600160a01b03821660048201526024810183905260440161060a565b5f610c6a83836107fb565b610ce7575f838152602081815260408083206001600160a01b03861684529091529020805460ff19166001179055610c9f3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610453565b505f610453565b5f6107f4836001600160a01b038416610e2c565b5f610d0d83836107fb565b15610ce7575f838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610453565b5f6107f4836001600160a01b038416610e71565b60075460ff1661061b57604051638dfc202b60e01b815260040160405180910390fd5b5f825f018281548110610db757610db7611278565b905f5260205f200154905092915050565b6060815f01805480602002602001604051908101604052809291908181526020018280548015610e1557602002820191905f5260205f20905b815481526020019060010190808311610e01575b50505050509050919050565b610580838383610f54565b5f818152600183016020526040812054610ce757508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610453565b5f8181526001830160205260408120548015610f4b575f610e936001836112a0565b85549091505f90610ea6906001906112a0565b9050808214610f05575f865f018281548110610ec457610ec4611278565b905f5260205f200154905080875f018481548110610ee457610ee4611278565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080610f1657610f166112b3565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610453565b5f915050610453565b6001600160a01b038316610f7e578060045f828254610f7391906112c7565b90915550610fee9050565b6001600160a01b0383165f9081526002602052604090205481811015610fd05760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161060a565b6001600160a01b0384165f9081526002602052604090209082900390555b6001600160a01b03821661100a57600480548290039055611028565b6001600160a01b0382165f9081526002602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161106d91815260200190565b60405180910390a3505050565b5f6020828403121561108a575f80fd5b81356001600160e01b0319811681146107f4575f80fd5b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146110ec575f80fd5b919050565b5f8060408385031215611102575f80fd5b61110b836110d6565b946020939093013593505050565b5f805f6060848603121561112b575f80fd5b611134846110d6565b9250611142602085016110d6565b929592945050506040919091013590565b5f60208284031215611163575f80fd5b5035919050565b5f806040838503121561117b575f80fd5b8235915061118b602084016110d6565b90509250929050565b5f602082840312156111a4575f80fd5b6107f4826110d6565b5f80604083850312156111be575f80fd5b50508035926020909101359150565b602080825282518282018190525f918401906040840190835b8181101561120d5783516001600160a01b03168352602093840193909201916001016111e6565b509095945050505050565b5f8060408385031215611229575f80fd5b611232836110d6565b915061118b602084016110d6565b600181811c9082168061125457607f821691505b60208210810361127257634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b818103818111156104535761045361128c565b634e487b7160e01b5f52603160045260245ffd5b808201808211156104535761045361128c56fe45524332305072657365744d696e7465725061757365723a206d757374206861a2646970667358221220eecb90e7e3f1ab12a47f6d644dd2be14f32f182f1e6fe45bdea4ddb57f9c7bb464736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000182a31a27a0d39d735b31e80534cfe1fcd92c38f000000000000000000000000b71b3daea39012fb0f2b14d2a9c86da9292fc126000000000000000000000000182a31a27a0d39d735b31e80534cfe1fcd92c38f000000000000000000000000b71b3daea39012fb0f2b14d2a9c86da9292fc126
-----Decoded View---------------
Arg [0] : _admin (address): 0x182a31A27A0D39d735b31e80534CFE1fCd92c38f
Arg [1] : _minter (address): 0xb71b3DaEA39012Fb0f2B14D2a9C86da9292fC126
Arg [2] : _pauser (address): 0x182a31A27A0D39d735b31e80534CFE1fCd92c38f
Arg [3] : _burner (address): 0xb71b3DaEA39012Fb0f2B14D2a9C86da9292fC126
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000182a31a27a0d39d735b31e80534cfe1fcd92c38f
Arg [1] : 000000000000000000000000b71b3daea39012fb0f2b14d2a9c86da9292fc126
Arg [2] : 000000000000000000000000182a31a27a0d39d735b31e80534cfe1fcd92c38f
Arg [3] : 000000000000000000000000b71b3daea39012fb0f2b14d2a9c86da9292fc126
Loading...
Loading
OVERVIEW
Proof of Liquidity in one click. Infrared simplifies interacting with Proof of Liquidity with liquid staking products.Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.