WrappedSonic
Sonic ERC-20 Token0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Solidity v0.8.28+commit.7893614a
Fungible token following the ERC-20 standard.
概览
读取函数
Returns the remaining number of tokens that spender is allowed to transfer from owner.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address of the token owner whose allowance is being queried.✨ AI |
| spender | address | Address authorized to spend tokens on behalf of the owner.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Remaining allowance as a uint256 in the token's smallest unit that spender may transfer from owner.✨ AI |
Returns the WrappedSonic token balance for the specified account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | Address whose WrappedSonic token balance will be returned.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The account's token balance as a uint256 value.✨ AI |
Returns the token's number of decimal places.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | The number of decimals used for token balances (uint8), e.g. 18 for typical ERC-20 tokens.✨ AI |
Returns the token's name used by wallets and user interfaces.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token name string shown to wallets and interfaces.✨ AI |
Returns this token's symbol string used by wallets and user interfaces.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token symbol string (e.g., "WSONIC") that represents the asset's short identifier.✨ AI |
Return the total number of WrappedSonic tokens in circulation.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Total token supply as a uint256 representing all existing WrappedSonic tokens.✨ AI |
写入函数
Approve a spender to transfer up to a specified number of tokens from your account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address allowed 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 was successful.✨ AI |
Deposit Ether to mint an equal amount of WrappedSonic tokens to your account.✨ AI
Deposit native tokens and mint WrappedSonic tokens credited to the specified account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | The address to receive the minted wrapped tokens. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the deposit and mint operation succeeded.✨ AI |
Transfer tokens from the caller's account to the specified address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 succeeds.✨ AI |
Transfers tokens from one address to another using an approved allowance and returns true on success.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | Address to transfer tokens from.✨ AI |
| to | address | Recipient address.✨ AI |
| value | uint256 | Amount of tokens to transfer, specified in the token's smallest units.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded.✨ AI |
Burns the caller's wrapped SONIC tokens and transfers the corresponding underlying SONIC tokens to the caller.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| value | uint256 | Amount to be withdrawn. |
Burn wrapped tokens and transfer the underlying Sonic to the specified account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | The recipient of the native tokens. |
| value | uint256 | The amount of wrapped tokens to be burned. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the burn and transfer succeeded.✨ AI |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | Account address which receive the minted ERC20 token. |
| value | uint256 | The amount of ERC20 tokens deposited. |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | Account address which receive the withdrawn native token. |
| value | uint256 | The amount of native tokens withdrawn. |