FiatTokenV2_1
Linea ERC-20 Token0x176211869ca2b568f2a7d4ee941e073a821ee1ff
Proxy 實作合約: 0xab838fe7d492c621a5b1b23952af99cc37a2e0d3
Solidity v0.6.12+commit.27d51765
Fungible token following the ERC-20 standard.
概覽
讀取函式
Returns the EIP-712 type hash used for canceling authorizations.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32: the EIP-712 type hash for the CancelAuthorization struct used when encoding off-chain signatures.✨ AI |
Get the EIP-712 domain separator used for signing permits and typed data.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The 32-byte EIP-712 domain separator that ties signatures to this contract and chain.✨ AI |
Returns the EIP-712 typehash used by permit signatures for off-chain allowance approvals.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 EIP-2612/EIP-712 typehash used to construct and verify permit() signatures.✨ AI |
Returns the EIP-712 type hash used to build receiveWithAuthorization messages.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 EIP-712 type hash for the ReceiveWithAuthorization struct.✨ AI |
Returns the EIP-712 type hash used when validating transferWithAuthorization signatures.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The 32-byte EIP-712 type hash constant for transferWithAuthorization authorization payloads.✨ AI |
Return the current remaining number of tokens that spender is allowed to transfer from owner.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Owner address whose allowance is being queried.✨ AI |
| spender | address | Spender address authorized to transfer tokens from the owner.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Remaining allowance the spender may transfer from owner, expressed in the token's smallest units (uint256).✨ AI |
Returns the state of an authorization
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the nonce is used |
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 an unsigned 256-bit integer.✨ AI |
Returns the address assigned as the contract's blacklister.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address that has permission to add or remove accounts from the blacklist.✨ AI |
Returns the token's currency identifier string used for display and off-chain accounting.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | A string containing the token's currency code or name (for example, "USD").✨ AI |
Returns the number of decimal places used by the token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | The number of decimal places (uint8) used to format token balances and amounts.✨ AI |
Check whether an account is blacklisted.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _account | address | The address to check |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the account is blacklisted, false otherwise.✨ AI |
Checks whether the provided address currently has the minter role.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | The address to check |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the account is authorized to mint tokens, otherwise false.✨ AI |
Returns the address of the current master minter.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the current master minter account.✨ AI |
Return the remaining token minting allowance assigned to a minter address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| minter | address | The address of the minter |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Remaining number of tokens the minter is allowed to mint (in token smallest units).✨ AI |
Returns the token's name.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token's descriptive name as a string, e.g. "Fiat Token".✨ AI |
Nonces for permit
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Token owner's address (Authorizer) |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Next nonce |
Returns the address of the contract owner.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | the address of the owner |
Indicates whether the token contract is paused.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the contract is paused; when paused, transfers and other restricted actions are disabled.✨ AI |
Returns the address that currently holds the pauser role.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address that can pause and unpause the token contract.✨ AI |
Returns current rescuer
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Rescuer's address |
Returns the token's symbol (short ticker) as a string.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token's short symbol (ticker) string.✨ AI |
Returns the total number of tokens in existence.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total number of tokens in existence, denominated in the token's smallest unit (uint256).✨ AI |
Version string for the EIP712 domain separator
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | Version string |
寫入函式
Approve spender to transfer up to value tokens from the caller's balance.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Address approved to spend tokens on caller's behalf.✨ AI |
| value | uint256 | Maximum number of tokens the spender is allowed to transfer.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the approval succeeded.✨ AI |
Blacklists an account, preventing it from transferring or receiving tokens and enabling enforcement of restrictions.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _account | address | The address to blacklist |
Burns a specified amount of tokens from the caller, reducing their balance and the total supply.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _amount | uint256 | uint256 the amount of tokens to be burned |
Attempt to cancel an authorization
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
| v | uint8 | v of the signature |
| r | bytes32 | r of the signature |
| s | bytes32 | s of the signature |
Set or update the allowed minting allowance for a minter address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| minter | address | The address of the minter |
| minterAllowedAmount | uint256 | The minting amount allowed for the minter |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the operation was successful. |
Decrease the allowance by a given decrement
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Spender's address |
| decrement | uint256 | Amount of decrease in allowance |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if successful |
Increase the allowance by a given increment
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Spender's address |
| increment | uint256 | Amount of increase in allowance |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if successful |
Initialize sets the token name, symbol, currency, decimals, and assigns initial master minter, pauser, blacklister, and owner.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| tokenName | string | Human-readable name of the token (e.g., 'USD Coin').✨ AI |
| tokenSymbol | string | Ticker symbol for the token (e.g., 'USDC').✨ AI |
| tokenCurrency | string | String identifying the currency represented by the token.✨ AI |
| tokenDecimals | uint8 | Number of decimal places the token uses.✨ AI |
| newMasterMinter | address | Address to be granted the master minter role.✨ AI |
| newPauser | address | Address to be granted the pauser role.✨ AI |
| newBlacklister | address | Address to be granted the blacklister role.✨ AI |
| newOwner | address | Address to be set as the contract owner.✨ AI |
Initialize v2
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newName | string | New token name |
Initialize v2.1
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| lostAndFound | address | The address to which the locked funds are sent |
Mint tokens to a recipient, increasing the total supply and assigning the amount to the given address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _to | address | The address that will receive the minted tokens. |
| _amount | uint256 | The amount of tokens to mint. Must be less than or equal to the minterAllowance of the caller. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | A boolean that indicates if the operation was successful. |
Pause all token transfers and related ERC-20 operations.✨ AI
Update allowance with a signed permit
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Token owner's address (Authorizer) |
| spender | address | Spender's address |
| value | uint256 | Amount of allowance |
| deadline | uint256 | Expiration time, seconds since the epoch |
| v | uint8 | v of the signature |
| r | bytes32 | r of the signature |
| s | bytes32 | s of the signature |
Receive a transfer with a signed authorization from the payer
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| from | address | Payer's address (Authorizer) |
| to | address | Payee's address |
| value | uint256 | Amount to be transferred |
| validAfter | uint256 | The time after which this is valid (unix time) |
| validBefore | uint256 | The time before which this is valid (unix time) |
| nonce | bytes32 | Unique nonce |
| v | uint8 | v of the signature |
| r | bytes32 | r of the signature |
| s | bytes32 | s of the signature |
Revokes the minter role from the specified address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| minter | address | The address of the minter to remove |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the operation was successful. |
Rescue ERC20 tokens locked up in this contract.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| tokenContract | address | ERC20 token contract address |
| to | address | Recipient address |
| amount | uint256 | Amount to withdraw |
Transfer tokens from the caller's account to a recipient 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 succeeded.✨ AI |
Transfer tokens from one account to another using the caller's approved allowance.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| from | address | Address to debit the tokens from (must have approved the caller).✨ AI |
| to | address | Address to credit the tokens to.✨ AI |
| value | uint256 | Amount of tokens to transfer, expressed in the token's smallest unit.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transfer and allowance update succeeded, otherwise false.✨ AI |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newOwner | address | The address to transfer ownership to. |
Execute a transfer with a signed authorization
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| from | address | Payer's address (Authorizer) |
| to | address | Payee's address |
| value | uint256 | Amount to be transferred |
| validAfter | uint256 | The time after which this is valid (unix time) |
| validBefore | uint256 | The time before which this is valid (unix time) |
| nonce | bytes32 | Unique nonce |
| v | uint8 | v of the signature |
| r | bytes32 | r of the signature |
| s | bytes32 | s of the signature |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _account | address | The address to remove from the blacklist |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _newBlacklister | address |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _newMasterMinter | address |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _newPauser | address |
Assign the rescuer role to a given address.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newRescuer | address | New rescuer's address |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| _account | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| newBlacklister | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| burner | address | ✓ | |
| amount | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| newMasterMinter | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| minter | address | ✓ | |
| to | address | ✓ | |
| amount | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| minter | address | ✓ | |
| minterAllowedAmount | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| oldMinter | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | representing the address of the previous owner | |
| newOwner | address | representing the address of the new owner |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| newAddress | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| newRescuer | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| _account | address | ✓ |