WBERA
Berachain ERC-20 Token0x6969696969696969696969696969696969696969
Solidity v0.8.26+commit.8a97fa7a
Fungible token following the ERC-20 standard.
概览
读取函数
Return the EIP-712 domain separator used to build and verify typed-data signatures.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | bytes32 | result: bytes32 EIP-712 domain separator used for signing and verifying typed-data (encodes name, version, chainId, verifying contract).✨ AI |
Returns the remaining number of tokens that spender is allowed to spend on behalf of owner.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Return the WBERA token balance for the specified account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address whose WBERA token balance will be returned.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | uint256 | The owner's WBERA token balance as a uint256.✨ AI |
Returns the token's number of decimal places used for display and calculations.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | The token's decimals as a uint8 indicating how many decimal places balances use.✨ AI |
Returns the ERC-20 token's name.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token name as a human-readable string.✨ AI |
Returns the current permit nonce for an address, used to prevent replay of signed approvals.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Returns the token's symbol.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | ERC-20 token symbol, e.g. 'WBERA'.✨ AI |
Returns the total supply of WBERA tokens.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| result | uint256 | Total number of WBERA tokens in existence as a uint256.✨ AI |
写入函数
Set the allowance for a spender to transfer up to a specified amount of your tokens.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Wraps sent native currency into WBERA tokens and credits them to the caller.✨ AI
Allows an owner to approve a spender using an off-chain signature (EIP-2612 style) before the deadline.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 a specified amount of tokens from the caller to the given recipient.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Transfer tokens from a specified account to another using the caller's approved allowance.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Withdraws the specified amount of WBERA tokens and returns the underlying asset to the caller.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| amount | uint256 | Amount of WBERA tokens to burn and redeem for the underlying asset, expressed in token units.✨ AI |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| amount | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| amount | uint256 |