WBERA

Berachain ERC-20 Token

0x6969696969696969696969696969696969696969

Solidity v0.8.26+commit.8a97fa7a

Fungible token following the ERC-20 standard.

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

概览

读取函数
8
写入函数
6
事件
2

读取函数

DOMAIN_SEPARATOR() view

Return the EIP-712 domain separator used to build and verify typed-data signatures.✨ AI

开发者: Returns the EIP-712 domain separator for the EIP-2612 permit.

返回值

名称 类型 描述
result bytes32 result: bytes32 EIP-712 domain separator used for signing and verifying typed-data (encodes name, version, chainId, verifying contract).✨ AI
allowance(owner: address, spender: address) view

Returns the remaining number of tokens that spender is allowed to spend on behalf of owner.✨ AI

开发者: Returns the amount of tokens that `spender` can spend on behalf of `owner`.

参数

名称 类型 描述
owner address Address that owns the tokens.✨ AI
spender address Address allowed to spend the owner's tokens.✨ AI

返回值

名称 类型 描述
result uint256 Remaining allowance (uint256) that spender may transfer from owner, denominated in the token's smallest units.✨ AI
balanceOf(owner: address) view

Return the WBERA token balance for the specified account.✨ AI

开发者: Returns the amount of tokens owned by `owner`.

参数

名称 类型 描述
owner address Address whose WBERA token balance will be returned.✨ AI

返回值

名称 类型 描述
result uint256 The owner's WBERA token balance as a uint256.✨ AI
decimals() view

Returns the token's number of decimal places used for display and calculations.✨ AI

开发者: Returns the decimals places of the token.

返回值

名称 类型 描述
uint8 The token's decimals as a uint8 indicating how many decimal places balances use.✨ AI
name() pure

Returns the ERC-20 token's name.✨ AI

开发者: Returns the name of the token.

返回值

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

Returns the current permit nonce for an address, used to prevent replay of signed approvals.✨ AI

开发者: Returns the current nonce for `owner`. This value is used to compute the signature for EIP-2612 permit.

参数

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

返回值

名称 类型 描述
result uint256 The current nonce value for the owner, incremented after each successful permit to prevent replay.✨ AI
symbol() pure

Returns the token's symbol.✨ AI

开发者: Returns the symbol of the token.

返回值

名称 类型 描述
string ERC-20 token symbol, e.g. 'WBERA'.✨ AI
totalSupply() view

Returns the total supply of WBERA tokens.✨ AI

开发者: Returns the amount of tokens in existence.

返回值

名称 类型 描述
result uint256 Total number of WBERA tokens in existence as a uint256.✨ AI

写入函数

approve(spender: address, amount: uint256) nonpayable

Set the allowance for a spender to transfer up to a specified amount of your tokens.✨ AI

开发者: Sets `amount` as the allowance of `spender` over the caller's tokens. Emits a {Approval} event.

参数

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

返回值

名称 类型 描述
bool True if the approval was successful.✨ AI
deposit() payable

Wraps sent native currency into WBERA tokens and credits them to the caller.✨ AI

开发者: Deposits `amount` ETH of the caller and mints `amount` WETH to the caller.
permit(owner: address, spender: address, value: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable

Allows an owner to approve a spender using an off-chain signature (EIP-2612 style) before the deadline.✨ AI

开发者: Sets `value` as the allowance of `spender` over the tokens of `owner`, authorized by a signed approval by `owner`. Emits a {Approval} event.

参数

名称 类型 描述
owner address Owner address granting the allowance.✨ AI
spender address Spender address receiving the allowance.✨ AI
value uint256 Amount of tokens to approve (smallest token units).✨ AI
deadline uint256 Unix timestamp after which the signature is invalid.✨ AI
v uint8 Recovery id component of the ECDSA signature.✨ AI
r bytes32 First 32 bytes of the ECDSA signature.✨ AI
s bytes32 Second 32 bytes of the ECDSA signature.✨ AI
transfer(to: address, amount: uint256) nonpayable

Transfer a specified amount of tokens from the caller to the given recipient.✨ AI

开发者: Transfer `amount` tokens from the caller to `to`. Requirements: - `from` must at least have `amount`. Emits a {Transfer} event.

参数

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

返回值

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

Transfer tokens from a specified account to another using the caller's approved allowance.✨ AI

开发者: Transfers `amount` tokens from `from` to `to`. Note: Does not update the allowance if it is the maximum uint256 value. Requirements: - `from` must at least have `amount`. - The caller must have at least `amount` of allowance to transfer the tokens of `from`. Emits a {Transfer} event.

参数

名称 类型 描述
from address Source address to debit tokens from.✨ AI
to address Destination address to credit tokens to.✨ AI
amount uint256 Amount of tokens to transfer, expressed in the token's smallest units.✨ AI

返回值

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

Withdraws the specified amount of WBERA tokens and returns the underlying asset to the caller.✨ AI

开发者: Burns `amount` WETH of the caller and sends `amount` ETH to the caller.

参数

名称 类型 描述
amount uint256 Amount of WBERA tokens to burn and redeem for the underlying asset, expressed in token units.✨ AI

事件

Approval(owner: address, spender: address, amount: uint256)
名称 类型 已索引 描述
owner address
spender address
amount uint256
Transfer(from: address, to: address, amount: uint256)
名称 类型 已索引 描述
from address
to address
amount uint256