SfrxUSD
Fraxtal ERC-20 Token0xfc00000000000000000000000000000000000008
Proxy 实现合约: 0xba026e978eb1b11d72adabf33b7cf6f3e321ca83
Solidity v0.8.30+commit.73712a01
Fungible token following the ERC-20 standard.
概览
读取函数
Returns the address of the bridge contract used by this token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The bridge contract address used for token bridging and cross-chain operations.✨ AI |
Returns the EIP-712 domain separator used for signing and verifying structured data.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The EIP-712 domain separator as a bytes32 value, used to scope and prevent replay of off-chain signatures.✨ AI |
Returns the address of the remote token associated with this SfrxUSD contract.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address of the remote token contract that this SfrxUSD token represents or is linked to.✨ AI |
Returns the remaining number of tokens that spender is allowed to spend on behalf of owner.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Token owner address whose allowance is being queried.✨ AI |
| spender | address | Address permitted to spend tokens from the owner's balance.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Remaining allowance as a uint256 in the token's smallest units that spender may transfer from owner.✨ 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 specified account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | Address whose token balance will be returned.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The number of tokens owned by the specified account, expressed in the token's smallest unit.✨ AI |
Legacy getter for BRIDGE
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | address The bridge address |
Returns the number of decimal places the token uses.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | Number of decimal places used by the token (uint8).✨ AI |
Returns the EIP-712 domain components used to verify signed typed data.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| fields | bytes1 | fields: single byte bitmask describing which EIP-712 domain fields are present.✨ AI |
| name | string | name: human-readable name of the signing domain (token or protocol).✨ AI |
| version | string | version: domain version string used for replay protection and upgrades.✨ AI |
| chainId | uint256 | chainId: blockchain chain identifier used in the domain separation.✨ AI |
| verifyingContract | address | verifyingContract: contract address that verifies the signed typed data.✨ AI |
| salt | bytes32 | salt: domain salt or unique bytes32 identifier used in domain separation.✨ AI |
| extensions | uint256[] | extensions: array of numeric domain extension values for future compatibility.✨ AI |
Legacy getter for the remote token. Use REMOTE_TOKEN going forward.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | address The L1 remote token address |
Legacy getter for the bridge. Use BRIDGE going forward.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | address The bridge address |
Check whether a given address is authorized to mint new tokens.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the address is an authorized minter, otherwise false.✨ AI |
Return the minter address at the specified index.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | Minter address stored at the given index.✨ AI |
Returns the token's name as a human-readable string.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The ERC-20 token name string (for example: SfrxUSD).✨ AI |
Get the address nominated to become the contract owner.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The nominated owner address, or the zero address if no nomination exists.✨ AI |
Return the current permit nonce for an address to prevent replay of off-chain permit signatures.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address whose permit nonce is returned.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Current nonce (uint256) that increments each time a permit signature is used.✨ AI |
Returns the address of the account that owns the contract.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | Address of the contract owner with administrative privileges.✨ AI |
Legacy getter for REMOTE_TOKEN
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | address The L1 remote token address |
ERC165 interface check function.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _interfaceId | bytes4 | Interface ID to check. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | Whether or not the interface is supported by this contract. |
Returns the token's short symbol used for display.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The ERC-20 token symbol string (e.g., sfrxUSD).✨ AI |
Returns the timelock contract address used to manage administrative actions for this token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address of the timelock contract that holds administrative control over the token.✨ AI |
Returns the total supply of SfrxUSD tokens.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The total number of SfrxUSD tokens in existence as a uint256, expressed in the token's smallest unit.✨ AI |
Getter for the semantic version of the contract. This is not meant to be used onchain but instead meant to be used by offchain tooling.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | Semver contract version as a string. |
写入函数
Allow the nominated owner to accept and become the contract owner.✨ AI
Adds a non-bridge minter
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| minter_address | address | Address of minter to add |
Allow a spender to transfer up to a specified number of tokens from your account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address allowed to transfer tokens.✨ AI |
| value | uint256 | Maximum token amount the spender is authorized to transfer.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the approval succeeded; otherwise false.✨ AI |
Allows the StandardBridge on this network to burn tokens.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| value | uint256 |
Allows the StandardBridge on this network to burn tokens.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _from | address | Address to burn tokens from. |
| _amount | uint256 | Amount of tokens to burn. |
Burns tokens from account using the caller's allowance and reduces total supply.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | Address whose tokens will be burned.✨ AI |
| value | uint256 | Amount of tokens to burn, expressed in the token's smallest unit.✨ AI |
The ```cancelAuthorization``` function cancels an authorization nonce
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
| v | uint8 | ECDSA signature v value |
| r | bytes32 | ECDSA signature r value |
| s | bytes32 | ECDSA signature s value |
The ```cancelAuthorization``` function cancels an authorization nonce
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
| signature | bytes |
Allows the StandardBridge on this network to mint tokens.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _to | address | Address to mint tokens to. |
| _amount | uint256 | Amount of tokens to mint. |
Used by non-bridge minters to burn tokens
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| b_address | address | Address of the account to burn from |
| b_amount | uint256 | Amount of tokens to burn |
Used by non-bridge minters to mint new tokens
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| m_address | address | Address of the account to mint to |
| m_amount | uint256 | Amount of tokens to mint |
Nominate a new owner candidate for the contract; the nominee must accept to become the actual owner.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _owner | address | Address to nominate as the pending owner (the candidate must accept ownership).✨ AI |
Allows an owner to set a spender's allowance using an off-chain signature (EIP-2612) without an on-chain approve call.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address of the token holder granting the allowance.✨ AI |
| spender | address | Address authorized to spend the owner's tokens.✨ AI |
| value | uint256 | Allowance amount to set (in token smallest units).✨ AI |
| deadline | uint256 | Unix timestamp after which the provided signature is invalid.✨ AI |
| signature | bytes |
Allows an owner to set a spender's allowance using an off-chain signature (EIP-2612) without an on-chain approve call.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address of the token holder granting the allowance.✨ AI |
| spender | address | Address authorized to spend the owner's tokens.✨ AI |
| value | uint256 | Allowance amount to set (in token smallest units).✨ AI |
| deadline | uint256 | Unix timestamp after which the provided signature is invalid.✨ AI |
| v | uint8 | ECDSA recovery id component of the signature.✨ AI |
| r | bytes32 | First 32-byte word of the ECDSA signature.✨ AI |
| s | bytes32 | Second 32-byte word of the ECDSA signature.✨ AI |
The ```receiveWithAuthorization``` function receives 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 block.timestamp after which the authorization is valid |
| validBefore | uint256 | The block.timestamp before which the authorization is valid |
| nonce | bytes32 | Unique nonce |
| signature | bytes |
The ```receiveWithAuthorization``` function receives 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 block.timestamp after which the authorization is valid |
| validBefore | uint256 | The block.timestamp before which the authorization is valid |
| nonce | bytes32 | Unique nonce |
| v | uint8 | ECDSA signature parameter v |
| r | bytes32 | ECDSA signature parameters r |
| s | bytes32 | ECDSA signature parameters s |
Removes a non-bridge minter
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| minter_address | address | Address of minter to remove |
Sets the timelock address
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _timelock_address | address | Address of the timelock |
Transfer tokens from your account to the specified address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| to | address | Recipient address that will receive the tokens.✨ AI |
| value | uint256 | Number of tokens to transfer, specified in the token's smallest unit.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded, otherwise false.✨ AI |
Transfers tokens from one address to another using the caller's allowance.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | Source address whose tokens will be transferred.✨ AI |
| to | address | Destination 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.✨ AI |
The ```transferWithAuthorization``` function executes a transfer with a signed authorization according to Eip3009
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | Payer's address (Authorizer) |
| to | address | Payee's address |
| value | uint256 | Amount to be transferred |
| validAfter | uint256 | The block.timestamp after which the authorization is valid |
| validBefore | uint256 | The block.timestamp before which the authorization is valid |
| nonce | bytes32 | Unique nonce |
| signature | bytes |
The ```transferWithAuthorization``` function executes a transfer with a signed authorization according to Eip3009
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | Payer's address (Authorizer) |
| to | address | Payee's address |
| value | uint256 | Amount to be transferred |
| validAfter | uint256 | The block.timestamp after which the authorization is valid |
| validBefore | uint256 | The block.timestamp before which the authorization is valid |
| nonce | bytes32 | Unique nonce |
| v | uint8 | ECDSA signature parameter v |
| r | bytes32 | ECDSA signature parameters r |
| s | bytes32 | ECDSA signature parameters s |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
```AuthorizationCanceled``` event is emitted when an authorization is canceled
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| authorizer | address | ✓ | Authorizer's address |
| nonce | bytes32 | ✓ | Nonce of the authorization |
```AuthorizationUsed``` event is emitted when an authorization is used
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| authorizer | address | ✓ | Authorizer's address |
| nonce | bytes32 | ✓ | Nonce of the authorization |
Emitted whenever the bridge burns tokens from an account
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | Address of the account tokens are being burned from |
| amount | uint256 | Amount of tokens burned |
Emitted whenever the bridge mints tokens to an account
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | Address of the account tokens are being minted for |
| amount | uint256 | Amount of tokens minted. |
Emitted when a non-bridge minter is added
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| minter_address | address | Address of the new minter |
Emitted when a non-bridge minter is removed
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| minter_address | address | Address of the removed minter |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldOwner | address | ||
| newOwner | address |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| newOwner | address |
Emitted when the timelock address changes
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| timelock_address | address | Address of the removed timelock |
Emitted when a non-bridge minter burns tokens
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | The account whose tokens are burned |
| to | address | ✓ | The minter doing the burning |
| amount | uint256 | Amount of tokens burned |
Emitted when a non-bridge minter mints tokens
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | The minter doing the minting |
| to | address | ✓ | The account that gets the newly minted tokens |
| amount | uint256 | Amount of tokens minted |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |