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
address
of L2AviBridge on Base
- Returns the
- PAUSER_ROLE
- Returns the pauser role
bytes32
- Returns the pauser role
- allowedTokens
- Returns
bool
is a tokenaddress
is Supersonic-supported
- Returns
- backendUser
- Returns the backend user
address
- Returns the backend user
- deposits
- Enumerates a list of deposits for a wallet
address
and 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
address
that 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
address
of AviL1Bridge.sol
- Returns the
- liquidityPool
- Returns the
address
of LiquidityPool.sol
- Returns the
- paused
- Returns the current paused state
bool
. The default state istrue
- Returns the current paused state
- renounceRole
- Removes a role
bytes32
from a useraddress
- Removes a role
- supportsInterface
- Returns a
bool
if abytes4
interface 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
address
as an adminRequired role: admin
- Adds the input
- addAllowedToken
- Enables Supersonic for a token
address
Required role: admin
- Enables Supersonic for a token
- addPauser
- Adds the input
address
as 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
bytes32
to anaddress
Required role: admin
- Grant a role
- initialize
- Initializes SkyBridge Liquidity Pool, portal, and token
address
Can 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
address
Required role: admin
- Remove admin role from an
- removeAllowedToken
- Disables Supersonic support for a token
address
Required role: admin
- Disables Supersonic support for a token
- removePauser
- Remove pauser role from an
address
Required role: admin
- Remove pauser role from an
- revokeRole
- Removes the selected role
bytes32
from anaddress
Required role: admin
- Removes the selected role
- setBackend
- Sets the backend
address
Required 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