MintedERC20
Sonic ERC-20 Token0x50c42deacd8fc9773493ed674b675be577f2634b
Proxy 實作合約: 0x9605cc161d148f665b6d4796131f8f6814abf386
Solidity v0.8.27+commit.40a35a09
Fungible token following the ERC-20 standard.
概覽
讀取函式
Returns the contract's upgrade interface version string.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The upgrade interface version identifier string.✨ AI |
Returns the remaining number of tokens that owner has allowed spender to spend.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Address which granted the allowance.✨ AI |
| spender | address | Address approved to transfer tokens from the owner's balance.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Remaining allowance as a uint256; tokens spender may still transfer from owner.✨ AI |
Returns the token balance of the given account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | Address whose token balance will be returned.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The token balance of the specified account as a uint256 value.✨ AI |
Returns the number of decimal places used by the token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | Number of decimals (uint8) used to format token amounts for users.✨ AI |
Returns the address currently authorized to mint new tokens.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address with minting permission.✨ AI |
Return the token's name as a human-readable string.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token name string (human-readable, e.g. "My Token").✨ AI |
Returns the contract owner's address.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the account that currently owns the contract and holds owner privileges.✨ AI |
Get the address that is designated to become the contract owner once they accept.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The pending owner's address, or the zero address if no ownership transfer is pending.✨ AI |
Return the proxiable UUID used by UUPS-compatible proxies.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The 32-byte UUID that identifies the storage slot used by the proxy for the implementation address.✨ AI |
Returns the address designated to perform rescue operations for this token contract.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address authorized to rescue or recover tokens and funds from this contract.✨ AI |
Returns the token's short symbol.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token's short symbol (e.g., "DAI", "USDC").✨ AI |
Returns the total number of tokens in existence.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total token supply as a uint256.✨ AI |
寫入函式
Claim and finalize ownership of the contract if you were previously nominated as the new owner.✨ AI
Approve spender to transfer up to value tokens from the caller's account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Address that will be allowed to spend tokens from the caller.✨ AI |
| value | uint256 | Maximum number of tokens the spender is permitted to transfer.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the allowance was successfully set, otherwise false.✨ AI |
Burns tokens from the caller's balance and decreases the total token supply.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| value | uint256 | Amount of tokens to burn, specified in the token's smallest unit.✨ AI |
Burns a specified amount of tokens from an account using the caller's allowance.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | Address whose token balance will be decreased.✨ AI |
| value | uint256 | Number of tokens to burn (in the token's smallest unit).✨ AI |
Initialize the token by setting owner, minter, name, symbol, and decimals.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _owner | address | Address that will be set as contract owner.✨ AI |
| _minter | address | Address granted permission to mint tokens.✨ AI |
| _tokenName | string | ERC-20 token name.✨ AI |
| _tokenSymbol | string | ERC-20 token symbol.✨ AI |
| _decimals | uint8 | Number of decimals for token amounts.✨ AI |
Create an amount of tokens and assigns them to the account. Callable by the token minter only.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | |
| amount | uint256 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool |
Permanently renounce ownership of the contract, removing the owner and disabling owner-only functions.✨ AI
Rescue ERC20 tokens locked up in this contract.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| token | address | ERC20 token contract address |
| to | address | Recipient address |
| amount | uint256 | Amount to withdraw |
Transfers value tokens from the caller's account to the specified recipient.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| to | address | Recipient address that will receive the tokens.✨ AI |
| value | uint256 | Amount of tokens to transfer, in the token's smallest unit.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded, false otherwise.✨ AI |
Transfer tokens from the `from` address to `to` using the caller's allowance and update balances.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| from | address | Address that currently owns the tokens to be transferred.✨ AI |
| to | address | Address that will receive the transferred tokens.✨ AI |
| value | uint256 | Number of tokens to transfer, expressed in the token's smallest unit.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transfer completed successfully.✨ AI |
Transfers contract ownership to a new owner address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newOwner | address | Address that will become the contract owner.✨ AI |
Update the rescuer - the address allowed to recover ERC20 tokens locked up in this contract.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newRescuer | address | The address of the new rescuer. Zero to disable the rescue functionality. |
Upgrade the token contract implementation and execute an initialization call in one transaction.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newImplementation | address | Address of the new implementation contract to upgrade to.✨ AI |
| data | bytes | Encoded call data to be executed on the new implementation after upgrade.✨ AI |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint64 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| newRescuer | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| implementation | address | ✓ |