ERC20ExPPOMWrapped

Fraxtal ERC-20 Token

0xfc00000000000000000000000000000000000002

Proxy 实现合约: 0x1af97083ddb4fb40aad9644bacc8ef9edcf595d4

Solidity v0.8.29+commit.ab55807c

Fungible token following the ERC-20 standard.

🤖
通过你的 AI 查询此合约
引用: 0xfc00000000000000000000000000000000000002
示例提示词: "Tell me the current state of fraxtal/0xfc00000000000000000000000000000000000002"
还没有接入 AI?→ mcp.smarts.md
Fraxtal 在 Smarts 上是仅文档链:源代码和 ABI 已索引,但当前不提供实时链上数据(状态、最新事件、管理员画像)。AI 代理仍可通过 MCP 调用 get_contract_info 和 get_contract_source。

概览

读取函数
10
写入函数
9
事件
6

读取函数

DOMAIN_SEPARATOR() view

Returns the EIP-712 domain separator used to sign typed data.✨ AI

返回值

名称 类型 描述
bytes32 The current EIP-712 domain separator as a bytes32 value used for constructing typed-data signatures.✨ AI
allowance(owner: address, spender: address) view

Returns the remaining number of tokens that spender is allowed to transfer from owner.✨ AI

开发者: See {IERC20-allowance}.

参数

名称 类型 描述
owner address Address of the token holder who approved a spender.✨ AI
spender address Address authorized to transfer tokens on behalf of the owner.✨ AI

返回值

名称 类型 描述
uint256 Remaining allowance expressed in the token's smallest unit (uint256).✨ AI
balanceOf(account: address) view

Returns the token balance of the specified account.✨ AI

开发者: See {IERC20-balanceOf}.

参数

名称 类型 描述
account address Address to query the token balance for.✨ AI

返回值

名称 类型 描述
uint256 The token balance of the account as an unsigned 256-bit integer.✨ AI
decimals() view

Return the number of decimal places used by the token.✨ AI

开发者: 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}.

返回值

名称 类型 描述
uint8 Number of decimal places (uint8) the token uses for display and calculations.✨ AI
eip712Domain() view

Return the EIP-712 domain components used for typed-data signing by this contract.✨ AI

开发者: See {EIP-5267}. _Available since v4.9._

返回值

名称 类型 描述
fields bytes1 bytes1: single-byte domain field used as a discriminator or reserved marker for the domain.✨ AI
name string name: human-readable name of the signing domain (typically the token or contract name).✨ AI
version string version: semantic version string that identifies the domain version for signatures.✨ AI
chainId uint256 chainId: numeric chain identifier (EIP-155) that the domain is bound to.✨ AI
verifyingContract address verifyingContract: address of the contract designated to verify EIP-712 signatures.✨ AI
salt bytes32 salt: 32-byte salt value included in the domain to provide additional uniqueness.✨ AI
extensions uint256[] extensions: array of numeric extension fields reserved for extra domain parameters.✨ AI
name() view

Returns the ERC-20 token name used for display in wallets and user interfaces.✨ AI

开发者: Returns the name of the token.

返回值

名称 类型 描述
string The token name as a human-readable string for display (e.g., MyToken).✨ AI
nonces(owner: address) view

Returns the current permit nonce for an account.✨ AI

开发者: Returns the current nonce for `owner`. This value must be included whenever a signature is generated for {permit}. Every successful call to {permit} increases ``owner``'s nonce by one. This prevents a signature from being used multiple times.

参数

名称 类型 描述
owner address Address whose permit nonce is returned.✨ AI

返回值

名称 类型 描述
uint256 The current nonce for owner used to validate off-chain permit signatures.✨ AI
symbol() view

Returns the token's short symbol used by wallets and user interfaces.✨ AI

开发者: Returns the symbol of the token, usually a shorter version of the name.

返回值

名称 类型 描述
string The token symbol as a string (e.g., "WPPOM").✨ AI
totalSupply() view

Returns the total number of tokens in circulation.✨ AI

开发者: See {IERC20-totalSupply}.

返回值

名称 类型 描述
uint256 Total number of tokens in existence as a uint256, expressed in the token's smallest unit (base units).✨ AI
version() view

Getter for the semantic version of the contract. This is not meant to be used onchain but instead meant to be used by offchain tooling.

返回值

名称 类型 描述
string Semver contract version as a string.

写入函数

approve(spender: address, value: uint256) nonpayable

Approve a spender to transfer up to value tokens from your account.✨ AI

开发者: 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.

参数

名称 类型 描述
spender address Address authorized to spend tokens on behalf of the caller.✨ AI
value uint256 Maximum number of tokens the spender is allowed to transfer.✨ AI

返回值

名称 类型 描述
bool True if the approval succeeded, otherwise false.✨ AI
burn(_value: uint256) nonpayable

Backwards compatibility function for burn. Calls withdraw

参数

名称 类型 描述
_value uint256 Amount of tokens to burn / withdraw
deposit() payable

Deposit gas token for wrapped ERC20. Uses msg.value

donate() payable

Donate ETH for nothing in return

initialize(_nameIn: string, _symbolIn: string, _versionIn: string) nonpayable

Initializer.

参数

名称 类型 描述
_nameIn string ERC20 name
_symbolIn string ERC20 symbol
_versionIn string Version
permit(owner: address, spender: address, value: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable

Permit allows a spender to be approved by the owner using an off-chain signature.✨ AI

开发者: Sets `value` as the allowance of `spender` over ``owner``'s tokens, given ``owner``'s signed approval. IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here. Emits an {Approval} event. Requirements: - `spender` cannot be the zero address. - `deadline` must be a timestamp in the future. - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` over the EIP712-formatted function arguments. - the signature must use ``owner``'s current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section]. CAUTION: See Security Considerations above.

参数

名称 类型 描述
owner address Address of the token holder who signed the permit.✨ AI
spender address Address authorized to spend the owner's tokens.✨ AI
value uint256 Amount of tokens the spender is approved to spend.✨ AI
deadline uint256 Unix timestamp after which the permit is no longer valid.✨ AI
v uint8 Recovery byte v of the owner's signature.✨ AI
r bytes32 First 32 bytes of the owner's signature.✨ AI
s bytes32 Second 32 bytes of the owner's signature.✨ AI
transfer(to: address, value: uint256) nonpayable

Transfer tokens from the caller's account to the specified recipient and return success.✨ AI

开发者: See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `value`.

参数

名称 类型 描述
to address Recipient address that will receive the tokens.✨ AI
value uint256 Amount of tokens to transfer, expressed in the token's smallest unit.✨ AI

返回值

名称 类型 描述
bool True if the transfer succeeded; false otherwise.✨ AI
transferFrom(from: address, to: address, value: uint256) nonpayable

Transfer tokens from one address to another using the caller's allowance.✨ AI

开发者: See {IERC20-transferFrom}. Skips emitting an {Approval} event indicating an allowance update. This is not required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve]. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `value`. - the caller must have allowance for ``from``'s tokens of at least `value`.

参数

名称 类型 描述
from address Source address to debit tokens from.✨ AI
to address Destination address to credit tokens to.✨ AI
value uint256 Number of tokens to transfer.✨ AI

返回值

名称 类型 描述
bool True if the token transfer operation succeeded.✨ AI
withdraw(wad: uint256) nonpayable

Withdraw ERC20 for gas token.

参数

名称 类型 描述
wad uint256 Amount of gas token to receive / wrapped ERC20 to burn.

事件

Approval(owner: address, spender: address, value: uint256)
名称 类型 已索引 描述
owner address
spender address
value uint256
Deposit(dst: address, wad: uint256)

Emitted when the gas token is wrapped

名称 类型 已索引 描述
dst address Sender/depositor
wad uint256 Amount of tokens wrapped
EIP712DomainChanged()
Initialized(version: uint64)
名称 类型 已索引 描述
version uint64
Transfer(from: address, to: address, value: uint256)
名称 类型 已索引 描述
from address
to address
value uint256
Withdrawal(src: address, wad: uint256)

Emitted when the gas token is unwrapped

名称 类型 已索引 描述
src address Sender / withdrawer
wad uint256 Amount of tokens unwrapped