SfrxUSD
Fraxtal ERC-20 Token0xfc00000000000000000000000000000000000008
Proxy implementation: 0xba026e978eb1b11d72adabf33b7cf6f3e321ca83
Solidity v0.8.30+commit.73712a01
Fungible token following the ERC-20 standard.
Overview
Read Functions
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | |
| spender | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns the state of an authorization
Parameters
| Name | Type | Description |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the nonce is used |
Parameters
| Name | Type | Description |
|---|---|---|
| account | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Legacy getter for BRIDGE
Returns
| Name | Type | Description |
|---|---|---|
| — | address | address The bridge address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 |
Returns
| Name | Type | Description |
|---|---|---|
| fields | bytes1 | |
| name | string | |
| version | string | |
| chainId | uint256 | |
| verifyingContract | address | |
| salt | bytes32 | |
| extensions | uint256[] |
Legacy getter for the remote token. Use REMOTE_TOKEN going forward.
Returns
| Name | Type | Description |
|---|---|---|
| — | address | address The L1 remote token address |
Legacy getter for the bridge. Use BRIDGE going forward.
Returns
| Name | Type | Description |
|---|---|---|
| — | address | address The bridge address |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Legacy getter for REMOTE_TOKEN
Returns
| Name | Type | Description |
|---|---|---|
| — | address | address The L1 remote token address |
ERC165 interface check function.
Parameters
| Name | Type | Description |
|---|---|---|
| _interfaceId | bytes4 | Interface ID to check. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | Whether or not the interface is supported by this contract. |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
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.
Returns
| Name | Type | Description |
|---|---|---|
| — | string | Semver contract version as a string. |
Write Functions
Adds a non-bridge minter
Parameters
| Name | Type | Description |
|---|---|---|
| minter_address | address | Address of minter to add |
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | |
| value | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Allows the StandardBridge on this network to burn tokens.
Parameters
| Name | Type | Description |
|---|---|---|
| value | uint256 |
Allows the StandardBridge on this network to burn tokens.
Parameters
| Name | Type | Description |
|---|---|---|
| _from | address | Address to burn tokens from. |
| _amount | uint256 | Amount of tokens to burn. |
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | |
| value | uint256 |
The ```cancelAuthorization``` function cancels an authorization nonce
Parameters
| Name | Type | Description |
|---|---|---|
| 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
Parameters
| Name | Type | Description |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
| signature | bytes |
Allows the StandardBridge on this network to mint tokens.
Parameters
| Name | Type | Description |
|---|---|---|
| _to | address | Address to mint tokens to. |
| _amount | uint256 | Amount of tokens to mint. |
Used by non-bridge minters to burn tokens
Parameters
| Name | Type | Description |
|---|---|---|
| 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
Parameters
| Name | Type | Description |
|---|---|---|
| m_address | address | Address of the account to mint to |
| m_amount | uint256 | Amount of tokens to mint |
Parameters
| Name | Type | Description |
|---|---|---|
| _owner | address |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | |
| spender | address | |
| value | uint256 | |
| deadline | uint256 | |
| signature | bytes |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | |
| spender | address | |
| value | uint256 | |
| deadline | uint256 | |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
The ```receiveWithAuthorization``` function receives a transfer with a signed authorization from the payer
Parameters
| Name | Type | Description |
|---|---|---|
| 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
Parameters
| Name | Type | Description |
|---|---|---|
| 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
Parameters
| Name | Type | Description |
|---|---|---|
| minter_address | address | Address of minter to remove |
Sets the timelock address
Parameters
| Name | Type | Description |
|---|---|---|
| _timelock_address | address | Address of the timelock |
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | |
| value | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | |
| to | address | |
| value | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
The ```transferWithAuthorization``` function executes a transfer with a signed authorization according to Eip3009
Parameters
| Name | Type | Description |
|---|---|---|
| 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
Parameters
| Name | Type | Description |
|---|---|---|
| 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 |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
```AuthorizationCanceled``` event is emitted when an authorization is canceled
| Name | Type | Indexed | Description |
|---|---|---|---|
| authorizer | address | ✓ | Authorizer's address |
| nonce | bytes32 | ✓ | Nonce of the authorization |
```AuthorizationUsed``` event is emitted when an authorization is used
| Name | Type | Indexed | Description |
|---|---|---|---|
| authorizer | address | ✓ | Authorizer's address |
| nonce | bytes32 | ✓ | Nonce of the authorization |
Emitted whenever the bridge burns tokens from an account
| Name | Type | Indexed | Description |
|---|---|---|---|
| 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
| Name | Type | Indexed | Description |
|---|---|---|---|
| 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
| Name | Type | Indexed | Description |
|---|---|---|---|
| minter_address | address | Address of the new minter |
Emitted when a non-bridge minter is removed
| Name | Type | Indexed | Description |
|---|---|---|---|
| minter_address | address | Address of the removed minter |
| Name | Type | Indexed | Description |
|---|---|---|---|
| oldOwner | address | ||
| newOwner | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| newOwner | address |
Emitted when the timelock address changes
| Name | Type | Indexed | Description |
|---|---|---|---|
| timelock_address | address | Address of the removed timelock |
Emitted when a non-bridge minter burns tokens
| Name | Type | Indexed | Description |
|---|---|---|---|
| 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
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | The minter doing the minting |
| to | address | ✓ | The account that gets the newly minted tokens |
| amount | uint256 | Amount of tokens minted |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |