ERC-20
Overview
Max Total Supply
1,000,001,700 POG
Holders
91
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
151,856.676833316945506821 POGValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
POGToken
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {ERC20} from "openzeppelin-contracts/contracts/token/ERC20/ERC20.sol"; contract POGToken is ERC20 { address immutable signerAddress; constructor() ERC20("ProofOfGPT", "POG") { signerAddress = 0x787df028b4707C7c03Ca102d3cb973F66e49A3Cb; _mint(signerAddress, 1_000_000_000*(10**18)); } function mint(string memory idea, bytes calldata sig, address to) public virtual { if (verify(idea, sig, to)) { _mint(to, 100*10**18); } else { revert("Invalid signature"); } } function burn(address from, uint256 amount) public virtual { if (from != msg.sender) { revert("Only the owner can burn tokens"); } _burn(from, amount); } function verify(string memory idea, bytes memory signature, address to) public view returns (bool) { bytes32 messageHash = getMessageHash(idea, to); bytes32 ethSignedMessageHash = getEthSignedMessageHash(messageHash); address ree = recoverSigner(ethSignedMessageHash, signature); return ree == signerAddress; } function getMessageHash(string memory idea, address to) public pure returns (bytes32) { return keccak256(abi.encodePacked(idea, to)); } function getEthSignedMessageHash(bytes32 _messageHash) public pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", _messageHash)); } function recoverSigner(bytes32 _ethSignedMessageHash, bytes memory _signature) public pure returns (address) { (bytes32 r, bytes32 s, uint8 v) = splitSignature(_signature); return ecrecover(_ethSignedMessageHash, v, r, s); } function splitSignature(bytes memory sig) public pure returns (bytes32 r, bytes32 s, uint8 v) { require(sig.length == 65, "invalid signature length"); assembly { /* First 32 bytes stores the length of the signature add(sig, 32) = pointer of sig + 32 effectively, skips first 32 bytes of signature mload(p) loads next 32 bytes starting at the memory address p into memory */ // first 32 bytes, after the length prefix r := mload(add(sig, 32)) // second 32 bytes s := mload(add(sig, 64)) // final byte (first byte of the next 32 bytes) v := byte(0, mload(add(sig, 96))) } // implicitly return (r, s, v) } }
// 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/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.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) (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; } }
// 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); }
{ "remappings": [ "@openzeppelin/=lib/openzeppelin-contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "lib/forge-std:ds-test/=lib/forge-std/lib/ds-test/src/", "lib/openzeppelin-contracts:@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "lib/openzeppelin-contracts:ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/", "lib/openzeppelin-contracts:erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "lib/openzeppelin-contracts:forge-std/=lib/openzeppelin-contracts/lib/forge-std/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":[{"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":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_messageHash","type":"bytes32"}],"name":"getEthSignedMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"idea","type":"string"},{"internalType":"address","name":"to","type":"address"}],"name":"getMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"idea","type":"string"},{"internalType":"bytes","name":"sig","type":"bytes"},{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_ethSignedMessageHash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"recoverSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"splitSignature","outputs":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"idea","type":"string"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address","name":"to","type":"address"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b506040518060400160405280600a815260200169141c9bdbd993d991d41560b21b81525060405180604001604052806003815260200162504f4760e81b8152508160039081620000629190620002c6565b506004620000718282620002c6565b505073787df028b4707c7c03ca102d3cb973f66e49a3cb6080819052620000a691506b033b2e3c9fd0803ce8000000620000ac565b620003ba565b6001600160a01b038216620000dc5760405163ec442f0560e01b8152600060048201526024015b60405180910390fd5b620000ea60008383620000ee565b5050565b6001600160a01b0383166200011d57806002600082825462000111919062000392565b90915550620001919050565b6001600160a01b03831660009081526020819052604090205481811015620001725760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401620000d3565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216620001af57600280548290039055620001ce565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200021491815260200190565b60405180910390a3505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200024c57607f821691505b6020821081036200026d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002c157600081815260208120601f850160051c810160208610156200029c5750805b601f850160051c820191505b81811015620002bd57828155600101620002a8565b5050505b505050565b81516001600160401b03811115620002e257620002e262000221565b620002fa81620002f3845462000237565b8462000273565b602080601f831160018114620003325760008415620003195750858301515b600019600386901b1c1916600185901b178555620002bd565b600085815260208120601f198616915b82811015620003635788860151825594840194600190910190840162000342565b5085821015620003825787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620003b457634e487b7160e01b600052601160045260246000fd5b92915050565b608051610e7c620003d660003960006103b00152610e7c6000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806395d89b4111610097578063a7bb580311610066578063a7bb580314610224578063a9059cbb14610255578063dd62ed3e14610268578063fa540801146102a157600080fd5b806395d89b41146101c957806397aba7f9146101d15780639d6e3141146101fc5780639dc29fac1461021157600080fd5b8063313ce567116100d3578063313ce5671461016b5780635ccd48161461017a57806370a082311461018d57806376f554d9146101b657600080fd5b806306fdde0314610105578063095ea7b31461012357806318160ddd1461014657806323b872dd14610158575b600080fd5b61010d6102b4565b60405161011a9190610a09565b60405180910390f35b610136610131366004610a58565b610346565b604051901515815260200161011a565b6002545b60405190815260200161011a565b610136610166366004610a82565b610360565b6040516012815260200161011a565b610136610188366004610b61565b610384565b61014a61019b366004610bd5565b6001600160a01b031660009081526020819052604090205490565b61014a6101c4366004610bf7565b6103ef565b61010d610422565b6101e46101df366004610c45565b610431565b6040516001600160a01b03909116815260200161011a565b61020f61020a366004610c8c565b6104b0565b005b61020f61021f366004610a58565b610556565b610237610232366004610d34565b6105bc565b60408051938452602084019290925260ff169082015260600161011a565b610136610263366004610a58565b610630565b61014a610276366004610d71565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61014a6102af366004610d9b565b61063e565b6060600380546102c390610db4565b80601f01602080910402602001604051908101604052809291908181526020018280546102ef90610db4565b801561033c5780601f106103115761010080835404028352916020019161033c565b820191906000526020600020905b81548152906001019060200180831161031f57829003601f168201915b5050505050905090565b600033610354818585610691565b60019150505b92915050565b60003361036e8582856106a3565b61037985858561071b565b506001949350505050565b60008061039185846103ef565b9050600061039e8261063e565b905060006103ac8287610431565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03161493505050509392505050565b60008282604051602001610404929190610dee565b60405160208183030381529060405280519060200120905092915050565b6060600480546102c390610db4565b600080600080610440856105bc565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa15801561049b573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b6104f28484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250869250610384915050565b1561050f5761050a8168056bc75e2d6310000061077a565b610550565b60405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b60448201526064015b60405180910390fd5b50505050565b6001600160a01b03821633146105ae5760405162461bcd60e51b815260206004820152601e60248201527f4f6e6c7920746865206f776e65722063616e206275726e20746f6b656e7300006044820152606401610547565b6105b882826107b0565b5050565b600080600083516041146106125760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610547565b50505060208101516040820151606090920151909260009190911a90565b60003361035481858561071b565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b61069e83838360016107e6565b505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610550578181101561070c57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610547565b610550848484840360006107e6565b6001600160a01b03831661074557604051634b637e8f60e11b815260006004820152602401610547565b6001600160a01b03821661076f5760405163ec442f0560e01b815260006004820152602401610547565b61069e8383836108bb565b6001600160a01b0382166107a45760405163ec442f0560e01b815260006004820152602401610547565b6105b8600083836108bb565b6001600160a01b0382166107da57604051634b637e8f60e11b815260006004820152602401610547565b6105b8826000836108bb565b6001600160a01b0384166108105760405163e602df0560e01b815260006004820152602401610547565b6001600160a01b03831661083a57604051634a1406b160e11b815260006004820152602401610547565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561055057826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516108ad91815260200190565b60405180910390a350505050565b6001600160a01b0383166108e65780600260008282546108db9190610e25565b909155506109589050565b6001600160a01b038316600090815260208190526040902054818110156109395760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610547565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661097457600280548290039055610993565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516109d891815260200190565b60405180910390a3505050565b60005b83811015610a005781810151838201526020016109e8565b50506000910152565b6020815260008251806020840152610a288160408501602087016109e5565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114610a5357600080fd5b919050565b60008060408385031215610a6b57600080fd5b610a7483610a3c565b946020939093013593505050565b600080600060608486031215610a9757600080fd5b610aa084610a3c565b9250610aae60208501610a3c565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610ae557600080fd5b813567ffffffffffffffff80821115610b0057610b00610abe565b604051601f8301601f19908116603f01168101908282118183101715610b2857610b28610abe565b81604052838152866020858801011115610b4157600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600060608486031215610b7657600080fd5b833567ffffffffffffffff80821115610b8e57600080fd5b610b9a87838801610ad4565b94506020860135915080821115610bb057600080fd5b50610bbd86828701610ad4565b925050610bcc60408501610a3c565b90509250925092565b600060208284031215610be757600080fd5b610bf082610a3c565b9392505050565b60008060408385031215610c0a57600080fd5b823567ffffffffffffffff811115610c2157600080fd5b610c2d85828601610ad4565b925050610c3c60208401610a3c565b90509250929050565b60008060408385031215610c5857600080fd5b82359150602083013567ffffffffffffffff811115610c7657600080fd5b610c8285828601610ad4565b9150509250929050565b60008060008060608587031215610ca257600080fd5b843567ffffffffffffffff80821115610cba57600080fd5b610cc688838901610ad4565b95506020870135915080821115610cdc57600080fd5b818701915087601f830112610cf057600080fd5b813581811115610cff57600080fd5b886020828501011115610d1157600080fd5b602083019550809450505050610d2960408601610a3c565b905092959194509250565b600060208284031215610d4657600080fd5b813567ffffffffffffffff811115610d5d57600080fd5b610d6984828501610ad4565b949350505050565b60008060408385031215610d8457600080fd5b610d8d83610a3c565b9150610c3c60208401610a3c565b600060208284031215610dad57600080fd5b5035919050565b600181811c90821680610dc857607f821691505b602082108103610de857634e487b7160e01b600052602260045260246000fd5b50919050565b60008351610e008184602088016109e5565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b8082018082111561035a57634e487b7160e01b600052601160045260246000fdfea264697066735822122014dda2f5de9f88d023fc439187ff7eb1581e5b78185594c38b789c0ae71b466964736f6c63430008140033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101005760003560e01c806395d89b4111610097578063a7bb580311610066578063a7bb580314610224578063a9059cbb14610255578063dd62ed3e14610268578063fa540801146102a157600080fd5b806395d89b41146101c957806397aba7f9146101d15780639d6e3141146101fc5780639dc29fac1461021157600080fd5b8063313ce567116100d3578063313ce5671461016b5780635ccd48161461017a57806370a082311461018d57806376f554d9146101b657600080fd5b806306fdde0314610105578063095ea7b31461012357806318160ddd1461014657806323b872dd14610158575b600080fd5b61010d6102b4565b60405161011a9190610a09565b60405180910390f35b610136610131366004610a58565b610346565b604051901515815260200161011a565b6002545b60405190815260200161011a565b610136610166366004610a82565b610360565b6040516012815260200161011a565b610136610188366004610b61565b610384565b61014a61019b366004610bd5565b6001600160a01b031660009081526020819052604090205490565b61014a6101c4366004610bf7565b6103ef565b61010d610422565b6101e46101df366004610c45565b610431565b6040516001600160a01b03909116815260200161011a565b61020f61020a366004610c8c565b6104b0565b005b61020f61021f366004610a58565b610556565b610237610232366004610d34565b6105bc565b60408051938452602084019290925260ff169082015260600161011a565b610136610263366004610a58565b610630565b61014a610276366004610d71565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61014a6102af366004610d9b565b61063e565b6060600380546102c390610db4565b80601f01602080910402602001604051908101604052809291908181526020018280546102ef90610db4565b801561033c5780601f106103115761010080835404028352916020019161033c565b820191906000526020600020905b81548152906001019060200180831161031f57829003601f168201915b5050505050905090565b600033610354818585610691565b60019150505b92915050565b60003361036e8582856106a3565b61037985858561071b565b506001949350505050565b60008061039185846103ef565b9050600061039e8261063e565b905060006103ac8287610431565b90507f000000000000000000000000787df028b4707c7c03ca102d3cb973f66e49a3cb6001600160a01b0316816001600160a01b03161493505050509392505050565b60008282604051602001610404929190610dee565b60405160208183030381529060405280519060200120905092915050565b6060600480546102c390610db4565b600080600080610440856105bc565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa15801561049b573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b6104f28484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250869250610384915050565b1561050f5761050a8168056bc75e2d6310000061077a565b610550565b60405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b60448201526064015b60405180910390fd5b50505050565b6001600160a01b03821633146105ae5760405162461bcd60e51b815260206004820152601e60248201527f4f6e6c7920746865206f776e65722063616e206275726e20746f6b656e7300006044820152606401610547565b6105b882826107b0565b5050565b600080600083516041146106125760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610547565b50505060208101516040820151606090920151909260009190911a90565b60003361035481858561071b565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b61069e83838360016107e6565b505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610550578181101561070c57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610547565b610550848484840360006107e6565b6001600160a01b03831661074557604051634b637e8f60e11b815260006004820152602401610547565b6001600160a01b03821661076f5760405163ec442f0560e01b815260006004820152602401610547565b61069e8383836108bb565b6001600160a01b0382166107a45760405163ec442f0560e01b815260006004820152602401610547565b6105b8600083836108bb565b6001600160a01b0382166107da57604051634b637e8f60e11b815260006004820152602401610547565b6105b8826000836108bb565b6001600160a01b0384166108105760405163e602df0560e01b815260006004820152602401610547565b6001600160a01b03831661083a57604051634a1406b160e11b815260006004820152602401610547565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561055057826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516108ad91815260200190565b60405180910390a350505050565b6001600160a01b0383166108e65780600260008282546108db9190610e25565b909155506109589050565b6001600160a01b038316600090815260208190526040902054818110156109395760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610547565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661097457600280548290039055610993565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516109d891815260200190565b60405180910390a3505050565b60005b83811015610a005781810151838201526020016109e8565b50506000910152565b6020815260008251806020840152610a288160408501602087016109e5565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114610a5357600080fd5b919050565b60008060408385031215610a6b57600080fd5b610a7483610a3c565b946020939093013593505050565b600080600060608486031215610a9757600080fd5b610aa084610a3c565b9250610aae60208501610a3c565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610ae557600080fd5b813567ffffffffffffffff80821115610b0057610b00610abe565b604051601f8301601f19908116603f01168101908282118183101715610b2857610b28610abe565b81604052838152866020858801011115610b4157600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600060608486031215610b7657600080fd5b833567ffffffffffffffff80821115610b8e57600080fd5b610b9a87838801610ad4565b94506020860135915080821115610bb057600080fd5b50610bbd86828701610ad4565b925050610bcc60408501610a3c565b90509250925092565b600060208284031215610be757600080fd5b610bf082610a3c565b9392505050565b60008060408385031215610c0a57600080fd5b823567ffffffffffffffff811115610c2157600080fd5b610c2d85828601610ad4565b925050610c3c60208401610a3c565b90509250929050565b60008060408385031215610c5857600080fd5b82359150602083013567ffffffffffffffff811115610c7657600080fd5b610c8285828601610ad4565b9150509250929050565b60008060008060608587031215610ca257600080fd5b843567ffffffffffffffff80821115610cba57600080fd5b610cc688838901610ad4565b95506020870135915080821115610cdc57600080fd5b818701915087601f830112610cf057600080fd5b813581811115610cff57600080fd5b886020828501011115610d1157600080fd5b602083019550809450505050610d2960408601610a3c565b905092959194509250565b600060208284031215610d4657600080fd5b813567ffffffffffffffff811115610d5d57600080fd5b610d6984828501610ad4565b949350505050565b60008060408385031215610d8457600080fd5b610d8d83610a3c565b9150610c3c60208401610a3c565b600060208284031215610dad57600080fd5b5035919050565b600181811c90821680610dc857607f821691505b602082108103610de857634e487b7160e01b600052602260045260246000fd5b50919050565b60008351610e008184602088016109e5565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b8082018082111561035a57634e487b7160e01b600052601160045260246000fdfea264697066735822122014dda2f5de9f88d023fc439187ff7eb1581e5b78185594c38b789c0ae71b466964736f6c63430008140033
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.