Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 14 from a total of 14 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 21201525 | 141 days ago | IN | 0 ETH | 0.00060183 | ||||
Transfer | 19926472 | 319 days ago | IN | 0 ETH | 0.0007485 | ||||
Transfer | 19896987 | 324 days ago | IN | 0 ETH | 0.00016689 | ||||
Mint | 19718507 | 348 days ago | IN | 0 ETH | 0.00087141 | ||||
Mint | 19718502 | 348 days ago | IN | 0 ETH | 0.00097421 | ||||
Mint | 19562817 | 370 days ago | IN | 0 ETH | 0.00157449 | ||||
Mint | 19461075 | 385 days ago | IN | 0 ETH | 0.00088176 | ||||
Mint | 19447313 | 387 days ago | IN | 0 ETH | 0.00158334 | ||||
Renounce Role | 19140692 | 430 days ago | IN | 0 ETH | 0.00089177 | ||||
Mint | 19136258 | 430 days ago | IN | 0 ETH | 0.00120237 | ||||
Mint | 19136245 | 430 days ago | IN | 0 ETH | 0.00179466 | ||||
Renounce Role | 19136233 | 430 days ago | IN | 0 ETH | 0.00117362 | ||||
Grant Role | 19136217 | 430 days ago | IN | 0 ETH | 0.0027297 | ||||
Grant Role | 19135962 | 430 days ago | IN | 0 ETH | 0.00274484 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
VSSXToken
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.23; // Developed with OpenZeppelin contracts v5.0.1. import "@openzeppelin/contracts/access/extensions/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol"; /** * @title VSAI (VSSX Ticker) Token * * It includes the basic ERC20 and ERC20Capped functionality as well as the following: * - Actors with the role `MINTER_ROLE` can mint new tokens with functions `mint` and `mintBatch`. * * The owner address, specified during contract creation, is granted the `DEFAULT_ADMIN_ROLE` and `MINTER_ROLE` roles. * `DEFAULT_ADMIN_ROLE` allows to grant other roles. * `MINTER_ROLE` allows to mint new tokens. */ contract VSSXToken is AccessControlEnumerable, ERC20Capped { // _______________ Constants _______________ /// @notice The role of a minter, responsible for minting of new tokens. bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); // _______________ Errors _______________ /// @notice Reverted if the owner address is zero address during contract initialization. error OwnerEqZeroAddr(); /// @notice Reverted if the lengths of receivers and amounts arrays are not equal in the `mintBatch` function. error ArraysLengthNotEq(); // _______________ Constructor _______________ /** * @notice Initializes this ERC20 contract by setting token name and symbol and granting `_owner` the `DEFAULT_ADMIN_ROLE` * and `MINTER_ROLE` roles. * * Emits events `RoleGranted`. * * Requirements: * - `_owner` should not be zero address. * * @param _owner The address which is initially granted `DEFAULT_ADMIN_ROLE` and `MINTER_ROLE` roles. */ constructor(address _owner) ERC20Capped(100_000_000e18) ERC20("VSAI (VSSX Ticker) Token", "VSSX") { if (_owner == address(0)) revert OwnerEqZeroAddr(); _grantRole(DEFAULT_ADMIN_ROLE, _owner); _grantRole(MINTER_ROLE, _owner); } /** * @notice Mints specified amount of tokens to the specified receiver. Checks that the total supply doesn't exceed the cap, * set during deployment. * * Emits event `Transfer`. */ function mint(address _receiver, uint256 _amount) external onlyRole(MINTER_ROLE) { _mint(_receiver, _amount); } /** * @notice Mints specified amounts of tokens to the specified receivers. Checks that the total supply doesn't exceed the cap, * set during deployment. * * Emits events `Transfer`. * * Requirements: * - The lengths of arrays `_receivers` and `_amounts` must be equal. */ function mintBatch(address[] memory _receivers, uint256[] memory _amounts) external onlyRole(MINTER_ROLE) { if (_receivers.length != _amounts.length) revert ArraysLengthNotEq(); uint256 length = _receivers.length; for (uint256 i; i < length; i++) _mint(_receivers[i], _amounts[i]); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol) pragma solidity ^0.8.20; import {IAccessControl} from "./IAccessControl.sol"; import {Context} from "../utils/Context.sol"; import {ERC165} from "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ```solidity * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ```solidity * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address account => bool) hasRole; bytes32 adminRole; } mapping(bytes32 role => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with an {AccessControlUnauthorizedAccount} error including the required role. */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual returns (bool) { return _roles[role].hasRole[account]; } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()` * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier. */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account` * is missing `role`. */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert AccessControlUnauthorizedAccount(account, role); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address callerConfirmation) public virtual { if (callerConfirmation != _msgSender()) { revert AccessControlBadConfirmation(); } _revokeRole(role, callerConfirmation); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual returns (bool) { if (!hasRole(role, account)) { _roles[role].hasRole[account] = true; emit RoleGranted(role, account, _msgSender()); return true; } else { return false; } } /** * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual returns (bool) { if (hasRole(role, account)) { _roles[role].hasRole[account] = false; emit RoleRevoked(role, account, _msgSender()); return true; } else { return false; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/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 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.0) (access/extensions/IAccessControlEnumerable.sol) pragma solidity ^0.8.20; import {IAccessControl} from "../IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 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/IAccessControl.sol) pragma solidity ^0.8.20; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev The `account` is missing a role. */ error AccessControlUnauthorizedAccount(address account, bytes32 neededRole); /** * @dev The caller of a function is not the expected one. * * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}. */ error AccessControlBadConfirmation(); /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. */ function renounceRole(bytes32 role, address callerConfirmation) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Capped.sol) pragma solidity ^0.8.20; import {ERC20} from "../ERC20.sol"; /** * @dev Extension of {ERC20} that adds a cap to the supply of tokens. */ abstract contract ERC20Capped is ERC20 { uint256 private immutable _cap; /** * @dev Total supply cap has been exceeded. */ error ERC20ExceededCap(uint256 increasedSupply, uint256 cap); /** * @dev The supplied cap is not a valid cap. */ error ERC20InvalidCap(uint256 cap); /** * @dev Sets the value of the `cap`. This value is immutable, it can only be * set once during construction. */ constructor(uint256 cap_) { if (cap_ == 0) { revert ERC20InvalidCap(0); } _cap = cap_; } /** * @dev Returns the cap on the token's total supply. */ function cap() public view virtual returns (uint256) { return _cap; } /** * @dev See {ERC20-_update}. */ function _update(address from, address to, uint256 value) internal virtual override { super._update(from, to, value); if (from == address(0)) { uint256 maxSupply = cap(); uint256 supply = totalSupply(); if (supply > maxSupply) { revert ERC20ExceededCap(supply, maxSupply); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.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; /// @solidity memory-safe-assembly assembly { 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; /// @solidity memory-safe-assembly assembly { 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; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_owner","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":[],"name":"ArraysLengthNotEq","type":"error"},{"inputs":[{"internalType":"uint256","name":"increasedSupply","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"ERC20ExceededCap","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":"uint256","name":"cap","type":"uint256"}],"name":"ERC20InvalidCap","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":"OwnerEqZeroAddr","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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"},{"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":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_receivers","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162002993380380620029938339818101604052810190620000379190620004e3565b6a52b7d2dcc80cd2e40000006040518060400160405280601881526020017f56534149202856535358205469636b65722920546f6b656e00000000000000008152506040518060400160405280600481526020017f56535358000000000000000000000000000000000000000000000000000000008152508160059081620000c091906200078f565b508060069081620000d291906200078f565b505050600081036200011e5760006040517f392e1e27000000000000000000000000000000000000000000000000000000008152600401620001159190620008b9565b60405180910390fd5b806080818152505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036200018e576040517f0affb92d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620001a36000801b82620001de60201b60201c565b50620001d67f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a682620001de60201b60201c565b5050620008d6565b600080620001f384846200022f60201b60201c565b9050801562000225576200022383600160008781526020019081526020016000206200033260201b90919060201c565b505b8091505092915050565b60006200024383836200036a60201b60201c565b6200032757600160008085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620002c3620003d460201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4600190506200032c565b600090505b92915050565b600062000362836000018373ffffffffffffffffffffffffffffffffffffffff1660001b620003dc60201b60201c565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000620003f083836200045660201b60201c565b6200044b57826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905062000450565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004ab826200047e565b9050919050565b620004bd816200049e565b8114620004c957600080fd5b50565b600081519050620004dd81620004b2565b92915050565b600060208284031215620004fc57620004fb62000479565b5b60006200050c84828501620004cc565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200059757607f821691505b602082108103620005ad57620005ac6200054f565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006177fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620005d8565b620006238683620005d8565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620006706200066a62000664846200063b565b62000645565b6200063b565b9050919050565b6000819050919050565b6200068c836200064f565b620006a46200069b8262000677565b848454620005e5565b825550505050565b600090565b620006bb620006ac565b620006c881848462000681565b505050565b5b81811015620006f057620006e4600082620006b1565b600181019050620006ce565b5050565b601f8211156200073f576200070981620005b3565b6200071484620005c8565b8101602085101562000724578190505b6200073c6200073385620005c8565b830182620006cd565b50505b505050565b600082821c905092915050565b6000620007646000198460080262000744565b1980831691505092915050565b60006200077f838362000751565b9150826002028217905092915050565b6200079a8262000515565b67ffffffffffffffff811115620007b657620007b562000520565b5b620007c282546200057e565b620007cf828285620006f4565b600060209050601f831160018114620008075760008415620007f2578287015190505b620007fe858262000771565b8655506200086e565b601f1984166200081786620005b3565b60005b8281101562000841578489015182556001820191506020850194506020810190506200081a565b868310156200086157848901516200085d601f89168262000751565b8355505b6001600288020188555050505b505050505050565b6000819050919050565b6000620008a16200089b620008958462000876565b62000645565b6200063b565b9050919050565b620008b38162000880565b82525050565b6000602082019050620008d06000830184620008a8565b92915050565b6080516120a1620008f2600039600061063b01526120a16000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806370a08231116100b8578063a217fddf1161007c578063a217fddf1461039d578063a9059cbb146103bb578063ca15c873146103eb578063d53913931461041b578063d547741f14610439578063dd62ed3e1461045557610142565b806370a08231146102d35780637c88e3d9146103035780639010d07c1461031f57806391d148541461034f57806395d89b411461037f57610142565b8063248a9ca31161010a578063248a9ca3146102135780632f2ff15d14610243578063313ce5671461025f578063355274ea1461027d57806336568abe1461029b57806340c10f19146102b757610142565b806301ffc9a71461014757806306fdde0314610177578063095ea7b31461019557806318160ddd146101c557806323b872dd146101e3575b600080fd5b610161600480360381019061015c91906117c9565b610485565b60405161016e9190611811565b60405180910390f35b61017f6104ff565b60405161018c91906118bc565b60405180910390f35b6101af60048036038101906101aa9190611972565b610591565b6040516101bc9190611811565b60405180910390f35b6101cd6105b4565b6040516101da91906119c1565b60405180910390f35b6101fd60048036038101906101f891906119dc565b6105be565b60405161020a9190611811565b60405180910390f35b61022d60048036038101906102289190611a65565b6105ed565b60405161023a9190611aa1565b60405180910390f35b61025d60048036038101906102589190611abc565b61060c565b005b61026761062e565b6040516102749190611b18565b60405180910390f35b610285610637565b60405161029291906119c1565b60405180910390f35b6102b560048036038101906102b09190611abc565b61065f565b005b6102d160048036038101906102cc9190611972565b6106da565b005b6102ed60048036038101906102e89190611b33565b610713565b6040516102fa91906119c1565b60405180910390f35b61031d60048036038101906103189190611d6b565b61075c565b005b61033960048036038101906103349190611de3565b610824565b6040516103469190611e32565b60405180910390f35b61036960048036038101906103649190611abc565b610853565b6040516103769190611811565b60405180910390f35b6103876108bd565b60405161039491906118bc565b60405180910390f35b6103a561094f565b6040516103b29190611aa1565b60405180910390f35b6103d560048036038101906103d09190611972565b610956565b6040516103e29190611811565b60405180910390f35b61040560048036038101906104009190611a65565b610979565b60405161041291906119c1565b60405180910390f35b61042361099d565b6040516104309190611aa1565b60405180910390f35b610453600480360381019061044e9190611abc565b6109c1565b005b61046f600480360381019061046a9190611e4d565b6109e3565b60405161047c91906119c1565b60405180910390f35b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104f857506104f782610a6a565b5b9050919050565b60606005805461050e90611ebc565b80601f016020809104026020016040519081016040528092919081815260200182805461053a90611ebc565b80156105875780601f1061055c57610100808354040283529160200191610587565b820191906000526020600020905b81548152906001019060200180831161056a57829003601f168201915b5050505050905090565b60008061059c610ae4565b90506105a9818585610aec565b600191505092915050565b6000600454905090565b6000806105c9610ae4565b90506105d6858285610afe565b6105e1858585610b92565b60019150509392505050565b6000806000838152602001908152602001600020600101549050919050565b610615826105ed565b61061e81610c86565b6106288383610c9a565b50505050565b60006012905090565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b610667610ae4565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146106cb576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106d58282610ce0565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661070481610c86565b61070e8383610d26565b505050565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661078681610c86565b81518351146107c1576040517f9ec68bc900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008351905060005b8181101561081d576108108582815181106107e8576107e7611eed565b5b602002602001015185838151811061080357610802611eed565b5b6020026020010151610d26565b80806001019150506107ca565b5050505050565b600061084b8260016000868152602001908152602001600020610da890919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600680546108cc90611ebc565b80601f01602080910402602001604051908101604052809291908181526020018280546108f890611ebc565b80156109455780601f1061091a57610100808354040283529160200191610945565b820191906000526020600020905b81548152906001019060200180831161092857829003601f168201915b5050505050905090565b6000801b81565b600080610961610ae4565b905061096e818585610b92565b600191505092915050565b600061099660016000848152602001908152602001600020610dc2565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6109ca826105ed565b6109d381610c86565b6109dd8383610ce0565b50505050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610add5750610adc82610dd7565b5b9050919050565b600033905090565b610af98383836001610e41565b505050565b6000610b0a84846109e3565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610b8c5781811015610b7c578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610b7393929190611f1c565b60405180910390fd5b610b8b84848484036000610e41565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c045760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610bfb9190611e32565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c765760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610c6d9190611e32565b60405180910390fd5b610c81838383611018565b505050565b610c9781610c92610ae4565b6110be565b50565b600080610ca7848461110f565b90508015610cd657610cd4836001600087815260200190815260200160002061120090919063ffffffff16565b505b8091505092915050565b600080610ced8484611230565b90508015610d1c57610d1a836001600087815260200190815260200160002061132290919063ffffffff16565b505b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d985760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610d8f9190611e32565b60405180910390fd5b610da460008383611018565b5050565b6000610db78360000183611352565b60001c905092915050565b6000610dd08260000161137d565b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610eb35760006040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610eaa9190611e32565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610f255760006040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610f1c9190611e32565b60405180910390fd5b81600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015611012578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161100991906119c1565b60405180910390a35b50505050565b61102383838361138e565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036110b9576000611061610637565b9050600061106d6105b4565b9050818111156110b65780826040517f9e79f8540000000000000000000000000000000000000000000000000000000081526004016110ad929190611f53565b60405180910390fd5b50505b505050565b6110c88282610853565b61110b5780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401611102929190611f7c565b60405180910390fd5b5050565b600061111b8383610853565b6111f557600160008085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611192610ae4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4600190506111fa565b600090505b92915050565b6000611228836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6115b6565b905092915050565b600061123c8383610853565b1561131757600080600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506112b4610ae4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a46001905061131c565b600090505b92915050565b600061134a836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611626565b905092915050565b600082600001828154811061136a57611369611eed565b5b9060005260206000200154905092915050565b600081600001805490509050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036113e05780600460008282546113d49190611fd4565b925050819055506114b5565b6000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561146d578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161146493929190611f1c565b60405180910390fd5b818103600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114fe578060046000828254039250508190555061154c565b80600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516115a991906119c1565b60405180910390a3505050565b60006115c2838361173a565b61161b578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050611620565b600090505b92915050565b6000808360010160008481526020019081526020016000205490506000811461172e5760006001826116589190612008565b90506000600186600001805490506116709190612008565b90508082146116df57600086600001828154811061169157611690611eed565b5b90600052602060002001549050808760000184815481106116b5576116b4611eed565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b856000018054806116f3576116f261203c565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611734565b60009150505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6117a681611771565b81146117b157600080fd5b50565b6000813590506117c38161179d565b92915050565b6000602082840312156117df576117de611767565b5b60006117ed848285016117b4565b91505092915050565b60008115159050919050565b61180b816117f6565b82525050565b60006020820190506118266000830184611802565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561186657808201518184015260208101905061184b565b60008484015250505050565b6000601f19601f8301169050919050565b600061188e8261182c565b6118988185611837565b93506118a8818560208601611848565b6118b181611872565b840191505092915050565b600060208201905081810360008301526118d68184611883565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611909826118de565b9050919050565b611919816118fe565b811461192457600080fd5b50565b60008135905061193681611910565b92915050565b6000819050919050565b61194f8161193c565b811461195a57600080fd5b50565b60008135905061196c81611946565b92915050565b6000806040838503121561198957611988611767565b5b600061199785828601611927565b92505060206119a88582860161195d565b9150509250929050565b6119bb8161193c565b82525050565b60006020820190506119d660008301846119b2565b92915050565b6000806000606084860312156119f5576119f4611767565b5b6000611a0386828701611927565b9350506020611a1486828701611927565b9250506040611a258682870161195d565b9150509250925092565b6000819050919050565b611a4281611a2f565b8114611a4d57600080fd5b50565b600081359050611a5f81611a39565b92915050565b600060208284031215611a7b57611a7a611767565b5b6000611a8984828501611a50565b91505092915050565b611a9b81611a2f565b82525050565b6000602082019050611ab66000830184611a92565b92915050565b60008060408385031215611ad357611ad2611767565b5b6000611ae185828601611a50565b9250506020611af285828601611927565b9150509250929050565b600060ff82169050919050565b611b1281611afc565b82525050565b6000602082019050611b2d6000830184611b09565b92915050565b600060208284031215611b4957611b48611767565b5b6000611b5784828501611927565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611b9d82611872565b810181811067ffffffffffffffff82111715611bbc57611bbb611b65565b5b80604052505050565b6000611bcf61175d565b9050611bdb8282611b94565b919050565b600067ffffffffffffffff821115611bfb57611bfa611b65565b5b602082029050602081019050919050565b600080fd5b6000611c24611c1f84611be0565b611bc5565b90508083825260208201905060208402830185811115611c4757611c46611c0c565b5b835b81811015611c705780611c5c8882611927565b845260208401935050602081019050611c49565b5050509392505050565b600082601f830112611c8f57611c8e611b60565b5b8135611c9f848260208601611c11565b91505092915050565b600067ffffffffffffffff821115611cc357611cc2611b65565b5b602082029050602081019050919050565b6000611ce7611ce284611ca8565b611bc5565b90508083825260208201905060208402830185811115611d0a57611d09611c0c565b5b835b81811015611d335780611d1f888261195d565b845260208401935050602081019050611d0c565b5050509392505050565b600082601f830112611d5257611d51611b60565b5b8135611d62848260208601611cd4565b91505092915050565b60008060408385031215611d8257611d81611767565b5b600083013567ffffffffffffffff811115611da057611d9f61176c565b5b611dac85828601611c7a565b925050602083013567ffffffffffffffff811115611dcd57611dcc61176c565b5b611dd985828601611d3d565b9150509250929050565b60008060408385031215611dfa57611df9611767565b5b6000611e0885828601611a50565b9250506020611e198582860161195d565b9150509250929050565b611e2c816118fe565b82525050565b6000602082019050611e476000830184611e23565b92915050565b60008060408385031215611e6457611e63611767565b5b6000611e7285828601611927565b9250506020611e8385828601611927565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611ed457607f821691505b602082108103611ee757611ee6611e8d565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000606082019050611f316000830186611e23565b611f3e60208301856119b2565b611f4b60408301846119b2565b949350505050565b6000604082019050611f6860008301856119b2565b611f7560208301846119b2565b9392505050565b6000604082019050611f916000830185611e23565b611f9e6020830184611a92565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611fdf8261193c565b9150611fea8361193c565b925082820190508082111561200257612001611fa5565b5b92915050565b60006120138261193c565b915061201e8361193c565b925082820390508181111561203657612035611fa5565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212206a2fc85b84ce22728be0577dff0de78582c74f47287d8ebf90ff6e3c57d444ca64736f6c63430008170033000000000000000000000000af21a5233b05b6bbc900f7acd0bd7934db06cd2e
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c806370a08231116100b8578063a217fddf1161007c578063a217fddf1461039d578063a9059cbb146103bb578063ca15c873146103eb578063d53913931461041b578063d547741f14610439578063dd62ed3e1461045557610142565b806370a08231146102d35780637c88e3d9146103035780639010d07c1461031f57806391d148541461034f57806395d89b411461037f57610142565b8063248a9ca31161010a578063248a9ca3146102135780632f2ff15d14610243578063313ce5671461025f578063355274ea1461027d57806336568abe1461029b57806340c10f19146102b757610142565b806301ffc9a71461014757806306fdde0314610177578063095ea7b31461019557806318160ddd146101c557806323b872dd146101e3575b600080fd5b610161600480360381019061015c91906117c9565b610485565b60405161016e9190611811565b60405180910390f35b61017f6104ff565b60405161018c91906118bc565b60405180910390f35b6101af60048036038101906101aa9190611972565b610591565b6040516101bc9190611811565b60405180910390f35b6101cd6105b4565b6040516101da91906119c1565b60405180910390f35b6101fd60048036038101906101f891906119dc565b6105be565b60405161020a9190611811565b60405180910390f35b61022d60048036038101906102289190611a65565b6105ed565b60405161023a9190611aa1565b60405180910390f35b61025d60048036038101906102589190611abc565b61060c565b005b61026761062e565b6040516102749190611b18565b60405180910390f35b610285610637565b60405161029291906119c1565b60405180910390f35b6102b560048036038101906102b09190611abc565b61065f565b005b6102d160048036038101906102cc9190611972565b6106da565b005b6102ed60048036038101906102e89190611b33565b610713565b6040516102fa91906119c1565b60405180910390f35b61031d60048036038101906103189190611d6b565b61075c565b005b61033960048036038101906103349190611de3565b610824565b6040516103469190611e32565b60405180910390f35b61036960048036038101906103649190611abc565b610853565b6040516103769190611811565b60405180910390f35b6103876108bd565b60405161039491906118bc565b60405180910390f35b6103a561094f565b6040516103b29190611aa1565b60405180910390f35b6103d560048036038101906103d09190611972565b610956565b6040516103e29190611811565b60405180910390f35b61040560048036038101906104009190611a65565b610979565b60405161041291906119c1565b60405180910390f35b61042361099d565b6040516104309190611aa1565b60405180910390f35b610453600480360381019061044e9190611abc565b6109c1565b005b61046f600480360381019061046a9190611e4d565b6109e3565b60405161047c91906119c1565b60405180910390f35b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104f857506104f782610a6a565b5b9050919050565b60606005805461050e90611ebc565b80601f016020809104026020016040519081016040528092919081815260200182805461053a90611ebc565b80156105875780601f1061055c57610100808354040283529160200191610587565b820191906000526020600020905b81548152906001019060200180831161056a57829003601f168201915b5050505050905090565b60008061059c610ae4565b90506105a9818585610aec565b600191505092915050565b6000600454905090565b6000806105c9610ae4565b90506105d6858285610afe565b6105e1858585610b92565b60019150509392505050565b6000806000838152602001908152602001600020600101549050919050565b610615826105ed565b61061e81610c86565b6106288383610c9a565b50505050565b60006012905090565b60007f00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000905090565b610667610ae4565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146106cb576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106d58282610ce0565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661070481610c86565b61070e8383610d26565b505050565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661078681610c86565b81518351146107c1576040517f9ec68bc900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008351905060005b8181101561081d576108108582815181106107e8576107e7611eed565b5b602002602001015185838151811061080357610802611eed565b5b6020026020010151610d26565b80806001019150506107ca565b5050505050565b600061084b8260016000868152602001908152602001600020610da890919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600680546108cc90611ebc565b80601f01602080910402602001604051908101604052809291908181526020018280546108f890611ebc565b80156109455780601f1061091a57610100808354040283529160200191610945565b820191906000526020600020905b81548152906001019060200180831161092857829003601f168201915b5050505050905090565b6000801b81565b600080610961610ae4565b905061096e818585610b92565b600191505092915050565b600061099660016000848152602001908152602001600020610dc2565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6109ca826105ed565b6109d381610c86565b6109dd8383610ce0565b50505050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610add5750610adc82610dd7565b5b9050919050565b600033905090565b610af98383836001610e41565b505050565b6000610b0a84846109e3565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610b8c5781811015610b7c578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610b7393929190611f1c565b60405180910390fd5b610b8b84848484036000610e41565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c045760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610bfb9190611e32565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c765760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610c6d9190611e32565b60405180910390fd5b610c81838383611018565b505050565b610c9781610c92610ae4565b6110be565b50565b600080610ca7848461110f565b90508015610cd657610cd4836001600087815260200190815260200160002061120090919063ffffffff16565b505b8091505092915050565b600080610ced8484611230565b90508015610d1c57610d1a836001600087815260200190815260200160002061132290919063ffffffff16565b505b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d985760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610d8f9190611e32565b60405180910390fd5b610da460008383611018565b5050565b6000610db78360000183611352565b60001c905092915050565b6000610dd08260000161137d565b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610eb35760006040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610eaa9190611e32565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610f255760006040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610f1c9190611e32565b60405180910390fd5b81600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015611012578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161100991906119c1565b60405180910390a35b50505050565b61102383838361138e565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036110b9576000611061610637565b9050600061106d6105b4565b9050818111156110b65780826040517f9e79f8540000000000000000000000000000000000000000000000000000000081526004016110ad929190611f53565b60405180910390fd5b50505b505050565b6110c88282610853565b61110b5780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401611102929190611f7c565b60405180910390fd5b5050565b600061111b8383610853565b6111f557600160008085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611192610ae4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4600190506111fa565b600090505b92915050565b6000611228836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6115b6565b905092915050565b600061123c8383610853565b1561131757600080600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506112b4610ae4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a46001905061131c565b600090505b92915050565b600061134a836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611626565b905092915050565b600082600001828154811061136a57611369611eed565b5b9060005260206000200154905092915050565b600081600001805490509050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036113e05780600460008282546113d49190611fd4565b925050819055506114b5565b6000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561146d578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161146493929190611f1c565b60405180910390fd5b818103600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114fe578060046000828254039250508190555061154c565b80600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516115a991906119c1565b60405180910390a3505050565b60006115c2838361173a565b61161b578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050611620565b600090505b92915050565b6000808360010160008481526020019081526020016000205490506000811461172e5760006001826116589190612008565b90506000600186600001805490506116709190612008565b90508082146116df57600086600001828154811061169157611690611eed565b5b90600052602060002001549050808760000184815481106116b5576116b4611eed565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b856000018054806116f3576116f261203c565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611734565b60009150505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6117a681611771565b81146117b157600080fd5b50565b6000813590506117c38161179d565b92915050565b6000602082840312156117df576117de611767565b5b60006117ed848285016117b4565b91505092915050565b60008115159050919050565b61180b816117f6565b82525050565b60006020820190506118266000830184611802565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561186657808201518184015260208101905061184b565b60008484015250505050565b6000601f19601f8301169050919050565b600061188e8261182c565b6118988185611837565b93506118a8818560208601611848565b6118b181611872565b840191505092915050565b600060208201905081810360008301526118d68184611883565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611909826118de565b9050919050565b611919816118fe565b811461192457600080fd5b50565b60008135905061193681611910565b92915050565b6000819050919050565b61194f8161193c565b811461195a57600080fd5b50565b60008135905061196c81611946565b92915050565b6000806040838503121561198957611988611767565b5b600061199785828601611927565b92505060206119a88582860161195d565b9150509250929050565b6119bb8161193c565b82525050565b60006020820190506119d660008301846119b2565b92915050565b6000806000606084860312156119f5576119f4611767565b5b6000611a0386828701611927565b9350506020611a1486828701611927565b9250506040611a258682870161195d565b9150509250925092565b6000819050919050565b611a4281611a2f565b8114611a4d57600080fd5b50565b600081359050611a5f81611a39565b92915050565b600060208284031215611a7b57611a7a611767565b5b6000611a8984828501611a50565b91505092915050565b611a9b81611a2f565b82525050565b6000602082019050611ab66000830184611a92565b92915050565b60008060408385031215611ad357611ad2611767565b5b6000611ae185828601611a50565b9250506020611af285828601611927565b9150509250929050565b600060ff82169050919050565b611b1281611afc565b82525050565b6000602082019050611b2d6000830184611b09565b92915050565b600060208284031215611b4957611b48611767565b5b6000611b5784828501611927565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611b9d82611872565b810181811067ffffffffffffffff82111715611bbc57611bbb611b65565b5b80604052505050565b6000611bcf61175d565b9050611bdb8282611b94565b919050565b600067ffffffffffffffff821115611bfb57611bfa611b65565b5b602082029050602081019050919050565b600080fd5b6000611c24611c1f84611be0565b611bc5565b90508083825260208201905060208402830185811115611c4757611c46611c0c565b5b835b81811015611c705780611c5c8882611927565b845260208401935050602081019050611c49565b5050509392505050565b600082601f830112611c8f57611c8e611b60565b5b8135611c9f848260208601611c11565b91505092915050565b600067ffffffffffffffff821115611cc357611cc2611b65565b5b602082029050602081019050919050565b6000611ce7611ce284611ca8565b611bc5565b90508083825260208201905060208402830185811115611d0a57611d09611c0c565b5b835b81811015611d335780611d1f888261195d565b845260208401935050602081019050611d0c565b5050509392505050565b600082601f830112611d5257611d51611b60565b5b8135611d62848260208601611cd4565b91505092915050565b60008060408385031215611d8257611d81611767565b5b600083013567ffffffffffffffff811115611da057611d9f61176c565b5b611dac85828601611c7a565b925050602083013567ffffffffffffffff811115611dcd57611dcc61176c565b5b611dd985828601611d3d565b9150509250929050565b60008060408385031215611dfa57611df9611767565b5b6000611e0885828601611a50565b9250506020611e198582860161195d565b9150509250929050565b611e2c816118fe565b82525050565b6000602082019050611e476000830184611e23565b92915050565b60008060408385031215611e6457611e63611767565b5b6000611e7285828601611927565b9250506020611e8385828601611927565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611ed457607f821691505b602082108103611ee757611ee6611e8d565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000606082019050611f316000830186611e23565b611f3e60208301856119b2565b611f4b60408301846119b2565b949350505050565b6000604082019050611f6860008301856119b2565b611f7560208301846119b2565b9392505050565b6000604082019050611f916000830185611e23565b611f9e6020830184611a92565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611fdf8261193c565b9150611fea8361193c565b925082820190508082111561200257612001611fa5565b5b92915050565b60006120138261193c565b915061201e8361193c565b925082820390508181111561203657612035611fa5565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212206a2fc85b84ce22728be0577dff0de78582c74f47287d8ebf90ff6e3c57d444ca64736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000af21a5233b05b6bbc900f7acd0bd7934db06cd2e
-----Decoded View---------------
Arg [0] : _owner (address): 0xAF21a5233b05B6BBC900f7acD0BD7934Db06cd2e
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000af21a5233b05b6bbc900f7acd0bd7934db06cd2e
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.