L2AviBridge.sol
Read
- DEFAULT_ADMIN_ROLE
- Returns the default admin role
bytes32
- Returns the default admin role
- MESSENGER
- Returns the Base messenger
address
- Returns the Base messenger
- OTHER_BRIDGE
- Returns the
addressof L2AviBridge on Base
- Returns the
- PAUSER_ROLE
- Returns the pauser role
bytes32
- Returns the pauser role
- allowedTokens
- Returns
boolis a tokenaddressis Supersonic-supported
- Returns
- backendUser
- Returns the backend user
address
- Returns the backend user
- deposits
- Enumerates a list of deposits for a wallet
addressand tokenaddress
- Enumerates a list of deposits for a wallet
- eip712Domain
- Returns fields
bytes1, namestring, versionstring, chainIduint256, verifyingContractaddress, saltbytes32, extensionsuint256[], as defined by ERC-5267
- Returns fields
- flatFee
- Returns the current ETH protocol fee
uint256
- Returns the current ETH protocol fee
- flatFeeReceipeit
- Returns the
addressthat receives the ETH protocol fee
- Returns the
- getRoleAdmin
- Reutn the current admin role
bytes32
- Reutn the current admin role
- hasRole
- Returns true if the input address has the specified role
bool- role
bytes32 - account
address
- role
- Returns true if the input address has the specified role
- l1TokenBridge
- Returns the
addressof AviL1Bridge.sol
- Returns the
- liquidityPool
- Returns the
addressof LiquidityPool.sol
- Returns the
- paused
- Returns the current paused state
bool. The default state istrue
- Returns the current paused state
- renounceRole
- Removes a role
bytes32from a useraddress
- Removes a role
- supportsInterface
- Returns a
boolif abytes4interface ID is supported
- Returns a
- version
- Returns the current contract version
string
- Returns the current contract version
Write
- __SkyBridge_init
- Initializes SkyBridge relay and messenger services:
Can only be called on deployment- _messenger
address - _otherBridge
address
- _messenger
- Initializes SkyBridge relay and messenger services:
- addAdmin
- Adds the input
addressas an adminRequired role: admin
- Adds the input
- addAllowedToken
- Enables Supersonic for a token
addressRequired role: admin
- Enables Supersonic for a token
- addPauser
- Adds the input
addressas a pauserRequired role: admin
- Adds the input
- fastWithdraw
- Initiates a fast withdrawal to the same address on Layer-1
- fastWithdaw
ether - _l2Token
address - _amount
uint256 - _minGasLimit
uint32 - _extraData
bytes
- fastWithdaw
- Initiates a fast withdrawal to the same address on Layer-1
- fastWithdrawTo
- Initiates a fast withdrawal to the input address on Layer-1
- fastWithdawTo
ether - _l2Token
address - _to
address - _amount
uint256 - _minGasLimit
uint32 - _extraData
bytes
- fastWithdawTo
- Initiates a fast withdrawal to the input address on Layer-1
- finalizeBridgeERC20
- Finalizes an ERC20 deposit
- _localToken
address - _remoteToken
address - _from
address - _to
address - _amount
uint256 - _extraData
bytes
- _localToken
- Finalizes an ERC20 deposit
- finalizeBridgeETH
- Finalizes an ETH deposit
- payableAmount
ether - _remoteToken
address - _from
address - _to
address - _amount
uint256 - _extraData
bytes
- payableAmount
- Finalizes an ETH deposit
- finalizeDeposit
- Finalizes a deposit
- payableAmount
ether - _l1Token
address - _l2Token
address - _from
address - _to
address - _amount
uint256 - _extraData
bytes
- payableAmount
- Finalizes a deposit
- grantRole
- Grant a role
bytes32to anaddressRequired role: admin
- Grant a role
- initialize
- Initializes SkyBridge Liquidity Pool, portal, and token
addressCan only be called on deployment- _l2CrossDomainMessenger
address - _otherBridge
address - _liquidityPool
address - _l1FeeRecipient
address
- _l2CrossDomainMessenger
- Initializes SkyBridge Liquidity Pool, portal, and token
- removeAdmin
- Remove admin role from an
addressRequired role: admin
- Remove admin role from an
- removeAllowedToken
- Disables Supersonic support for a token
addressRequired role: admin
- Disables Supersonic support for a token
- removePauser
- Remove pauser role from an
addressRequired role: admin
- Remove pauser role from an
- revokeRole
- Removes the selected role
bytes32from anaddressRequired role: admin
- Removes the selected role
- setBackend
- Sets the backend
addressRequired role: admin
- Sets the backend
- setFlatFee
- Sets the protocol fee
Required role: admin- _fee
uint256
- _fee
- Sets the protocol fee
- setFlatFeeRecipient
- Sets the deposit address for the flatFee
Required role: admin- _recipient
address
- _recipient
- Sets the deposit address for the flatFee
- withdraw
- Withdraws ETH or ERC20 to the same address on Layer-1
- withdraw
ether - _l2Token
address - _amount
uint256 - _minGasLimit
uint32 - _extraData
bytes
- withdraw
- Withdraws ETH or ERC20 to the same address on Layer-1
- withdrawTo
- Withdraws ETH or ERC20 to a different address on Layer-1
- withdrawTo
ether - _l2Token
address - _to
address - _amount
uint256 - _minGasLimit
uint32 - _extraData
bytes
- withdrawTo
- Withdraws ETH or ERC20 to a different address on Layer-1