ERC-20
Decentralized Web
Overview
Max Total Supply
2,500,000 TNQ
Holders
15 (0.00%)
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 6 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TriniqueToken
Compiler Version
v0.8.22+commit.4fc1097e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; abstract contract Burnable is Context,Ownable { address private _burner; /** * @dev The caller account is not authorized to perform an operation. */ error BurnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error BurnableInvalidBurner(address burner); event BurnershipTransferred(address indexed previousBurner, address indexed newBurner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialBurner) { if (initialBurner == address(0)) { revert BurnableInvalidBurner(address(0)); } _transferBurnship(initialBurner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyBurner() { _checkBurner(); _; } /** * @dev Returns the address of the current owner. */ function burner() public view virtual returns (address) { return _burner; } /** * @dev Throws if the sender is not the owner. */ function _checkBurner() internal view virtual { if (burner() != _msgSender()) { revert BurnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing burnship will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceBurnship() public virtual onlyOwner { _transferBurnship(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferBurnship(address newBurner) public virtual onlyOwner { if (newBurner == address(0)) { revert BurnableInvalidBurner(address(0)); } _transferBurnship(newBurner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferBurnship(address newBurner) internal virtual { address oldBurner = _burner; _burner = newBurner; emit BurnershipTransferred(oldBurner, newBurner); } } contract TriniqueToken is ERC20, ERC20Burnable,Ownable,ERC20Pausable,Burnable{ constructor() ERC20("Trinique", "TNQ") Ownable(msg.sender) Burnable(msg.sender) { } function decimals() public view virtual override returns (uint8) { return 6; } function _update(address from, address to, uint256 value) internal virtual override(ERC20,ERC20Pausable) whenNotPaused { super._update(from, to, value); } function transfer(address to, uint256 value) public whenNotPaused override returns (bool) { require(!isBlackListed[msg.sender]); return super.transfer(to, value); } function transferFrom(address from, address to, uint256 value) public whenNotPaused override returns (bool) { require(!isBlackListed[from], "Sender is blacklisted"); return super.transferFrom(from, to, value); } // Issue a new amount of tokens // these tokens are deposited into the owner address // // @param _amount Number of tokens to be issued function issue(uint256 amount) public onlyOwner { _mint(msg.sender, amount *10 ** decimals()); } function issueTo(address to, uint256 amount) public onlyOwner { _mint(to, amount * 10**decimals()); } /****************************************************/ /************** Burn ************/ /****************************************************/ function burnRedeem(uint256 amount) public onlyBurner { burn(amount); } /****************************************************/ /************** BLACK LIST ************/ /****************************************************/ /////// Getters to allow the same blacklist to be used also by other contracts (including upgraded Tether) /////// function getBlackListStatus(address _maker) external view returns (bool) { return isBlackListed[_maker]; } mapping (address => bool) public isBlackListed; function addBlackList (address _evilUser) public onlyOwner { isBlackListed[_evilUser] = true; emit AddedBlackList(_evilUser); } function removeBlackList (address _clearedUser) public onlyOwner { isBlackListed[_clearedUser] = false; emit RemovedBlackList(_clearedUser); } event AddedBlackList(address _user); event RemovedBlackList(address _user); }
// 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) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Pausable.sol) pragma solidity ^0.8.20; import {ERC20} from "../ERC20.sol"; import {Pausable} from "../../../utils/Pausable.sol"; /** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. * * IMPORTANT: This contract does not include public pause and unpause functions. In * addition to inheriting this contract, you must define both functions, invoking the * {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate * access control, e.g. using {AccessControl} or {Ownable}. Not doing so will * make the contract pause mechanism of the contract unreachable, and thus unusable. */ abstract contract ERC20Pausable is ERC20, Pausable { /** * @dev See {ERC20-_update}. * * Requirements: * * - the contract must not be paused. */ function _update(address from, address to, uint256 value) internal virtual override whenNotPaused { super._update(from, to, value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.20; import {ERC20} from "../ERC20.sol"; import {Context} from "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys a `value` amount of tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 value) public virtual { _burn(_msgSender(), value); } /** * @dev Destroys a `value` amount of tokens from `account`, deducting from * the caller's allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `value`. */ function burnFrom(address account, uint256 value) public virtual { _spendAllowance(account, _msgSender(), value); _burn(account, value); } }
// 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) (utils/Pausable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { bool private _paused; /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.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/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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"BurnableInvalidBurner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"BurnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_user","type":"address"}],"name":"AddedBlackList","type":"event"},{"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":"address","name":"previousBurner","type":"address"},{"indexed":true,"internalType":"address","name":"newBurner","type":"address"}],"name":"BurnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_user","type":"address"}],"name":"RemovedBlackList","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"_evilUser","type":"address"}],"name":"addBlackList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_maker","type":"address"}],"name":"getBlackListStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBlackListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"issue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"issueTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_clearedUser","type":"address"}],"name":"removeBlackList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceBurnship","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"newBurner","type":"address"}],"name":"transferBurnship","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801562000010575f80fd5b5033336040518060400160405280600881526020017f5472696e697175650000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f544e5100000000000000000000000000000000000000000000000000000000008152508160039081620000909190620005ba565b508060049081620000a29190620005ba565b5050505f60055f6101000a81548160ff0219169083151502179055505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000131575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620001289190620006e1565b60405180910390fd5b6200014281620001ce60201b60201c565b505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001b6575f6040517fecbe53b2000000000000000000000000000000000000000000000000000000008152600401620001ad9190620006e1565b60405180910390fd5b620001c7816200029360201b60201c565b50620006fc565b5f600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f7c9f9fb431bf92ab7f5a24566bfa5fa1124c1c461cb8deba304ea3f74e909f1760405160405180910390a35050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680620003d257607f821691505b602082108103620003e857620003e76200038d565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026200044c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200040f565b6200045886836200040f565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f620004a26200049c620004968462000470565b62000479565b62000470565b9050919050565b5f819050919050565b620004bd8362000482565b620004d5620004cc82620004a9565b8484546200041b565b825550505050565b5f90565b620004eb620004dd565b620004f8818484620004b2565b505050565b5b818110156200051f57620005135f82620004e1565b600181019050620004fe565b5050565b601f8211156200056e576200053881620003ee565b620005438462000400565b8101602085101562000553578190505b6200056b620005628562000400565b830182620004fd565b50505b505050565b5f82821c905092915050565b5f620005905f198460080262000573565b1980831691505092915050565b5f620005aa83836200057f565b9150826002028217905092915050565b620005c58262000356565b67ffffffffffffffff811115620005e157620005e062000360565b5b620005ed8254620003ba565b620005fa82828562000523565b5f60209050601f83116001811462000630575f84156200061b578287015190505b6200062785826200059d565b86555062000696565b601f1984166200064086620003ee565b5f5b82811015620006695784890151825560018201915060208501945060208101905062000642565b8683101562000689578489015162000685601f8916826200057f565b8355505b6001600288020188555050505b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620006c9826200069e565b9050919050565b620006db81620006bd565b82525050565b5f602082019050620006f65f830184620006d0565b92915050565b611beb806200070a5f395ff3fe608060405234801561000f575f80fd5b5060043610610171575f3560e01c80635c975abb116100dc578063a9059cbb11610095578063dd62ed3e1161006f578063dd62ed3e1461040f578063e47d60601461043f578063e4997dc51461046f578063f2fde38b1461048b57610171565b8063a9059cbb146103b9578063cc872b66146103e9578063d2408a381461040557610171565b80635c975abb1461030957806370a0823114610327578063715018a61461035757806379cc6790146103615780638da5cb5b1461037d57806395d89b411461039b57610171565b806323b872dd1161012e57806323b872dd1461023557806327810b6e14610265578063313ce56714610283578063319e0d84146102a157806342966c68146102bd57806359bf1abe146102d957610171565b806306fdde0314610175578063095ea7b3146101935780630ecb93c0146101c35780631207f0c1146101df57806318160ddd146101fb5780631a6c72c914610219575b5f80fd5b61017d6104a7565b60405161018a9190611617565b60405180910390f35b6101ad60048036038101906101a891906116c8565b610537565b6040516101ba9190611720565b60405180910390f35b6101dd60048036038101906101d89190611739565b610559565b005b6101f960048036038101906101f491906116c8565b6105f0565b005b610203610624565b6040516102109190611773565b60405180910390f35b610233600480360381019061022e9190611739565b61062d565b005b61024f600480360381019061024a919061178c565b6106b1565b60405161025c9190611720565b60405180910390f35b61026d610758565b60405161027a91906117eb565b60405180910390f35b61028b610780565b604051610298919061181f565b60405180910390f35b6102bb60048036038101906102b69190611838565b610788565b005b6102d760048036038101906102d29190611838565b61079c565b005b6102f360048036038101906102ee9190611739565b6107b0565b6040516103009190611720565b60405180910390f35b610311610802565b60405161031e9190611720565b60405180910390f35b610341600480360381019061033c9190611739565b610817565b60405161034e9190611773565b60405180910390f35b61035f61085c565b005b61037b600480360381019061037691906116c8565b61086f565b005b61038561088f565b60405161039291906117eb565b60405180910390f35b6103a36108b8565b6040516103b09190611617565b60405180910390f35b6103d360048036038101906103ce91906116c8565b610948565b6040516103e09190611720565b60405180910390f35b61040360048036038101906103fe9190611838565b6109b6565b005b61040d6109e9565b005b61042960048036038101906104249190611863565b6109fc565b6040516104369190611773565b60405180910390f35b61045960048036038101906104549190611739565b610a7e565b6040516104669190611720565b60405180910390f35b61048960048036038101906104849190611739565b610a9b565b005b6104a560048036038101906104a09190611739565b610b31565b005b6060600380546104b6906118ce565b80601f01602080910402602001604051908101604052809291908181526020018280546104e2906118ce565b801561052d5780601f106105045761010080835404028352916020019161052d565b820191905f5260205f20905b81548152906001019060200180831161051057829003601f168201915b5050505050905090565b5f80610541610bb5565b905061054e818585610bbc565b600191505092915050565b610561610bce565b600160075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc816040516105e591906117eb565b60405180910390a150565b6105f8610bce565b61062082610604610780565b600a6106109190611a5a565b8361061b9190611aa4565b610c55565b5050565b5f600254905090565b610635610bce565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036106a5575f6040517fecbe53b200000000000000000000000000000000000000000000000000000000815260040161069c91906117eb565b60405180910390fd5b6106ae81610cd4565b50565b5f6106ba610d97565b60075f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610744576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073b90611b2f565b60405180910390fd5b61074f848484610dd8565b90509392505050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f6006905090565b610790610e06565b6107998161079c565b50565b6107ad6107a7610bb5565b82610e8d565b50565b5f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b5f60055f9054906101000a900460ff16905090565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610864610bce565b61086d5f610f0c565b565b6108818261087b610bb5565b83610fd1565b61088b8282610e8d565b5050565b5f600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546108c7906118ce565b80601f01602080910402602001604051908101604052809291908181526020018280546108f3906118ce565b801561093e5780601f106109155761010080835404028352916020019161093e565b820191905f5260205f20905b81548152906001019060200180831161092157829003601f168201915b5050505050905090565b5f610951610d97565b60075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156109a4575f80fd5b6109ae8383611063565b905092915050565b6109be610bce565b6109e6336109ca610780565b600a6109d69190611a5a565b836109e19190611aa4565b610c55565b50565b6109f1610bce565b6109fa5f610cd4565b565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b6007602052805f5260405f205f915054906101000a900460ff1681565b610aa3610bce565b5f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507fd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c81604051610b2691906117eb565b60405180910390a150565b610b39610bce565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ba9575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610ba091906117eb565b60405180910390fd5b610bb281610f0c565b50565b5f33905090565b610bc98383836001611085565b505050565b610bd6610bb5565b73ffffffffffffffffffffffffffffffffffffffff16610bf461088f565b73ffffffffffffffffffffffffffffffffffffffff1614610c5357610c17610bb5565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610c4a91906117eb565b60405180910390fd5b565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610cc5575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610cbc91906117eb565b60405180910390fd5b610cd05f8383611254565b5050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f7c9f9fb431bf92ab7f5a24566bfa5fa1124c1c461cb8deba304ea3f74e909f1760405160405180910390a35050565b610d9f610802565b15610dd6576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b5f80610de2610bb5565b9050610def858285610fd1565b610dfa85858561126c565b60019150509392505050565b610e0e610bb5565b73ffffffffffffffffffffffffffffffffffffffff16610e2c610758565b73ffffffffffffffffffffffffffffffffffffffff1614610e8b57610e4f610bb5565b6040517f46a629f6000000000000000000000000000000000000000000000000000000008152600401610e8291906117eb565b60405180910390fd5b565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610efd575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610ef491906117eb565b60405180910390fd5b610f08825f83611254565b5050565b5f600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f610fdc84846109fc565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461105d578181101561104e578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161104593929190611b4d565b60405180910390fd5b61105c84848484035f611085565b5b50505050565b5f8061106d610bb5565b905061107a81858561126c565b600191505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036110f5575f6040517fe602df050000000000000000000000000000000000000000000000000000000081526004016110ec91906117eb565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611165575f6040517f94280d6200000000000000000000000000000000000000000000000000000000815260040161115c91906117eb565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550801561124e578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516112459190611773565b60405180910390a35b50505050565b61125c610d97565b61126783838361135c565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036112dc575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016112d391906117eb565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361134c575f6040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161134391906117eb565b60405180910390fd5b611357838383611254565b505050565b611364610d97565b61136f838383611374565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036113c4578060025f8282546113b89190611b82565b92505081905550611492565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561144d578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161144493929190611b4d565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114d9578060025f8282540392505081905550611523565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516115809190611773565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156115c45780820151818401526020810190506115a9565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6115e98261158d565b6115f38185611597565b93506116038185602086016115a7565b61160c816115cf565b840191505092915050565b5f6020820190508181035f83015261162f81846115df565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6116648261163b565b9050919050565b6116748161165a565b811461167e575f80fd5b50565b5f8135905061168f8161166b565b92915050565b5f819050919050565b6116a781611695565b81146116b1575f80fd5b50565b5f813590506116c28161169e565b92915050565b5f80604083850312156116de576116dd611637565b5b5f6116eb85828601611681565b92505060206116fc858286016116b4565b9150509250929050565b5f8115159050919050565b61171a81611706565b82525050565b5f6020820190506117335f830184611711565b92915050565b5f6020828403121561174e5761174d611637565b5b5f61175b84828501611681565b91505092915050565b61176d81611695565b82525050565b5f6020820190506117865f830184611764565b92915050565b5f805f606084860312156117a3576117a2611637565b5b5f6117b086828701611681565b93505060206117c186828701611681565b92505060406117d2868287016116b4565b9150509250925092565b6117e58161165a565b82525050565b5f6020820190506117fe5f8301846117dc565b92915050565b5f60ff82169050919050565b61181981611804565b82525050565b5f6020820190506118325f830184611810565b92915050565b5f6020828403121561184d5761184c611637565b5b5f61185a848285016116b4565b91505092915050565b5f806040838503121561187957611878611637565b5b5f61188685828601611681565b925050602061189785828601611681565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806118e557607f821691505b6020821081036118f8576118f76118a1565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f8160011c9050919050565b5f808291508390505b60018511156119805780860481111561195c5761195b6118fe565b5b600185161561196b5780820291505b80810290506119798561192b565b9450611940565b94509492505050565b5f826119985760019050611a53565b816119a5575f9050611a53565b81600181146119bb57600281146119c5576119f4565b6001915050611a53565b60ff8411156119d7576119d66118fe565b5b8360020a9150848211156119ee576119ed6118fe565b5b50611a53565b5060208310610133831016604e8410600b8410161715611a295782820a905083811115611a2457611a236118fe565b5b611a53565b611a368484846001611937565b92509050818404811115611a4d57611a4c6118fe565b5b81810290505b9392505050565b5f611a6482611695565b9150611a6f83611804565b9250611a9c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611989565b905092915050565b5f611aae82611695565b9150611ab983611695565b9250828202611ac781611695565b91508282048414831517611ade57611add6118fe565b5b5092915050565b7f53656e64657220697320626c61636b6c697374656400000000000000000000005f82015250565b5f611b19601583611597565b9150611b2482611ae5565b602082019050919050565b5f6020820190508181035f830152611b4681611b0d565b9050919050565b5f606082019050611b605f8301866117dc565b611b6d6020830185611764565b611b7a6040830184611764565b949350505050565b5f611b8c82611695565b9150611b9783611695565b9250828201905080821115611baf57611bae6118fe565b5b9291505056fea26469706673582212208dd5c60d9edd466ec1022d7db4b06be4571983287cc8f0fd6dc9221321b0e9c664736f6c63430008160033
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610171575f3560e01c80635c975abb116100dc578063a9059cbb11610095578063dd62ed3e1161006f578063dd62ed3e1461040f578063e47d60601461043f578063e4997dc51461046f578063f2fde38b1461048b57610171565b8063a9059cbb146103b9578063cc872b66146103e9578063d2408a381461040557610171565b80635c975abb1461030957806370a0823114610327578063715018a61461035757806379cc6790146103615780638da5cb5b1461037d57806395d89b411461039b57610171565b806323b872dd1161012e57806323b872dd1461023557806327810b6e14610265578063313ce56714610283578063319e0d84146102a157806342966c68146102bd57806359bf1abe146102d957610171565b806306fdde0314610175578063095ea7b3146101935780630ecb93c0146101c35780631207f0c1146101df57806318160ddd146101fb5780631a6c72c914610219575b5f80fd5b61017d6104a7565b60405161018a9190611617565b60405180910390f35b6101ad60048036038101906101a891906116c8565b610537565b6040516101ba9190611720565b60405180910390f35b6101dd60048036038101906101d89190611739565b610559565b005b6101f960048036038101906101f491906116c8565b6105f0565b005b610203610624565b6040516102109190611773565b60405180910390f35b610233600480360381019061022e9190611739565b61062d565b005b61024f600480360381019061024a919061178c565b6106b1565b60405161025c9190611720565b60405180910390f35b61026d610758565b60405161027a91906117eb565b60405180910390f35b61028b610780565b604051610298919061181f565b60405180910390f35b6102bb60048036038101906102b69190611838565b610788565b005b6102d760048036038101906102d29190611838565b61079c565b005b6102f360048036038101906102ee9190611739565b6107b0565b6040516103009190611720565b60405180910390f35b610311610802565b60405161031e9190611720565b60405180910390f35b610341600480360381019061033c9190611739565b610817565b60405161034e9190611773565b60405180910390f35b61035f61085c565b005b61037b600480360381019061037691906116c8565b61086f565b005b61038561088f565b60405161039291906117eb565b60405180910390f35b6103a36108b8565b6040516103b09190611617565b60405180910390f35b6103d360048036038101906103ce91906116c8565b610948565b6040516103e09190611720565b60405180910390f35b61040360048036038101906103fe9190611838565b6109b6565b005b61040d6109e9565b005b61042960048036038101906104249190611863565b6109fc565b6040516104369190611773565b60405180910390f35b61045960048036038101906104549190611739565b610a7e565b6040516104669190611720565b60405180910390f35b61048960048036038101906104849190611739565b610a9b565b005b6104a560048036038101906104a09190611739565b610b31565b005b6060600380546104b6906118ce565b80601f01602080910402602001604051908101604052809291908181526020018280546104e2906118ce565b801561052d5780601f106105045761010080835404028352916020019161052d565b820191905f5260205f20905b81548152906001019060200180831161051057829003601f168201915b5050505050905090565b5f80610541610bb5565b905061054e818585610bbc565b600191505092915050565b610561610bce565b600160075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc816040516105e591906117eb565b60405180910390a150565b6105f8610bce565b61062082610604610780565b600a6106109190611a5a565b8361061b9190611aa4565b610c55565b5050565b5f600254905090565b610635610bce565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036106a5575f6040517fecbe53b200000000000000000000000000000000000000000000000000000000815260040161069c91906117eb565b60405180910390fd5b6106ae81610cd4565b50565b5f6106ba610d97565b60075f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610744576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073b90611b2f565b60405180910390fd5b61074f848484610dd8565b90509392505050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f6006905090565b610790610e06565b6107998161079c565b50565b6107ad6107a7610bb5565b82610e8d565b50565b5f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b5f60055f9054906101000a900460ff16905090565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610864610bce565b61086d5f610f0c565b565b6108818261087b610bb5565b83610fd1565b61088b8282610e8d565b5050565b5f600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546108c7906118ce565b80601f01602080910402602001604051908101604052809291908181526020018280546108f3906118ce565b801561093e5780601f106109155761010080835404028352916020019161093e565b820191905f5260205f20905b81548152906001019060200180831161092157829003601f168201915b5050505050905090565b5f610951610d97565b60075f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156109a4575f80fd5b6109ae8383611063565b905092915050565b6109be610bce565b6109e6336109ca610780565b600a6109d69190611a5a565b836109e19190611aa4565b610c55565b50565b6109f1610bce565b6109fa5f610cd4565b565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b6007602052805f5260405f205f915054906101000a900460ff1681565b610aa3610bce565b5f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507fd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c81604051610b2691906117eb565b60405180910390a150565b610b39610bce565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ba9575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610ba091906117eb565b60405180910390fd5b610bb281610f0c565b50565b5f33905090565b610bc98383836001611085565b505050565b610bd6610bb5565b73ffffffffffffffffffffffffffffffffffffffff16610bf461088f565b73ffffffffffffffffffffffffffffffffffffffff1614610c5357610c17610bb5565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610c4a91906117eb565b60405180910390fd5b565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610cc5575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610cbc91906117eb565b60405180910390fd5b610cd05f8383611254565b5050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f7c9f9fb431bf92ab7f5a24566bfa5fa1124c1c461cb8deba304ea3f74e909f1760405160405180910390a35050565b610d9f610802565b15610dd6576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b5f80610de2610bb5565b9050610def858285610fd1565b610dfa85858561126c565b60019150509392505050565b610e0e610bb5565b73ffffffffffffffffffffffffffffffffffffffff16610e2c610758565b73ffffffffffffffffffffffffffffffffffffffff1614610e8b57610e4f610bb5565b6040517f46a629f6000000000000000000000000000000000000000000000000000000008152600401610e8291906117eb565b60405180910390fd5b565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610efd575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610ef491906117eb565b60405180910390fd5b610f08825f83611254565b5050565b5f600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f610fdc84846109fc565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461105d578181101561104e578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161104593929190611b4d565b60405180910390fd5b61105c84848484035f611085565b5b50505050565b5f8061106d610bb5565b905061107a81858561126c565b600191505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036110f5575f6040517fe602df050000000000000000000000000000000000000000000000000000000081526004016110ec91906117eb565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611165575f6040517f94280d6200000000000000000000000000000000000000000000000000000000815260040161115c91906117eb565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550801561124e578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516112459190611773565b60405180910390a35b50505050565b61125c610d97565b61126783838361135c565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036112dc575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016112d391906117eb565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361134c575f6040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161134391906117eb565b60405180910390fd5b611357838383611254565b505050565b611364610d97565b61136f838383611374565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036113c4578060025f8282546113b89190611b82565b92505081905550611492565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561144d578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161144493929190611b4d565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114d9578060025f8282540392505081905550611523565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516115809190611773565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156115c45780820151818401526020810190506115a9565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6115e98261158d565b6115f38185611597565b93506116038185602086016115a7565b61160c816115cf565b840191505092915050565b5f6020820190508181035f83015261162f81846115df565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6116648261163b565b9050919050565b6116748161165a565b811461167e575f80fd5b50565b5f8135905061168f8161166b565b92915050565b5f819050919050565b6116a781611695565b81146116b1575f80fd5b50565b5f813590506116c28161169e565b92915050565b5f80604083850312156116de576116dd611637565b5b5f6116eb85828601611681565b92505060206116fc858286016116b4565b9150509250929050565b5f8115159050919050565b61171a81611706565b82525050565b5f6020820190506117335f830184611711565b92915050565b5f6020828403121561174e5761174d611637565b5b5f61175b84828501611681565b91505092915050565b61176d81611695565b82525050565b5f6020820190506117865f830184611764565b92915050565b5f805f606084860312156117a3576117a2611637565b5b5f6117b086828701611681565b93505060206117c186828701611681565b92505060406117d2868287016116b4565b9150509250925092565b6117e58161165a565b82525050565b5f6020820190506117fe5f8301846117dc565b92915050565b5f60ff82169050919050565b61181981611804565b82525050565b5f6020820190506118325f830184611810565b92915050565b5f6020828403121561184d5761184c611637565b5b5f61185a848285016116b4565b91505092915050565b5f806040838503121561187957611878611637565b5b5f61188685828601611681565b925050602061189785828601611681565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806118e557607f821691505b6020821081036118f8576118f76118a1565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f8160011c9050919050565b5f808291508390505b60018511156119805780860481111561195c5761195b6118fe565b5b600185161561196b5780820291505b80810290506119798561192b565b9450611940565b94509492505050565b5f826119985760019050611a53565b816119a5575f9050611a53565b81600181146119bb57600281146119c5576119f4565b6001915050611a53565b60ff8411156119d7576119d66118fe565b5b8360020a9150848211156119ee576119ed6118fe565b5b50611a53565b5060208310610133831016604e8410600b8410161715611a295782820a905083811115611a2457611a236118fe565b5b611a53565b611a368484846001611937565b92509050818404811115611a4d57611a4c6118fe565b5b81810290505b9392505050565b5f611a6482611695565b9150611a6f83611804565b9250611a9c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611989565b905092915050565b5f611aae82611695565b9150611ab983611695565b9250828202611ac781611695565b91508282048414831517611ade57611add6118fe565b5b5092915050565b7f53656e64657220697320626c61636b6c697374656400000000000000000000005f82015250565b5f611b19601583611597565b9150611b2482611ae5565b602082019050919050565b5f6020820190508181035f830152611b4681611b0d565b9050919050565b5f606082019050611b605f8301866117dc565b611b6d6020830185611764565b611b7a6040830184611764565b949350505050565b5f611b8c82611695565b9150611b9783611695565b9250828201905080821115611baf57611bae6118fe565b5b9291505056fea26469706673582212208dd5c60d9edd466ec1022d7db4b06be4571983287cc8f0fd6dc9221321b0e9c664736f6c63430008160033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.