L1AviBridge.sol
Read
- DEFAULT_ADMIN_ROLE
- Returns the default admin role
bytes32
- Returns the default admin role
- L1AviToken
- Returns the
address
of Aviator (AVI) on Layer-1
- Returns the
- LIQUIDITY_POOL
- Returns the LiquidityPool
address
- Returns the LiquidityPool
- 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
- backendUser
- Returns the backend user
address
- Returns the backend user
- bridgingFee
- Returns the current liquidity fee
uint256
- Returns the current liquidity fee
- 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
- getNonce
- Return the current nonce
uint256
- Return the current nonce
- 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
- optimismPortal
- Returns the Optimism portal
address
- Returns the Optimism portal
- 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
- addPauser
- Adds the input
address
as a pauserRequired role: admin
- Adds the input
- bridgeERC20
- Deposits ERC20 tokens to the same address on Base
- bridgeERC20
ether
- _l1Token
address
- _l2Token
address
- _amount
uint256
- _minGasLimit
uint32
- _extraData
bytes
- bridgeERC20
- Deposits ERC20 tokens to the same address on Base
- bridgeERC20To
- Deposits ERC20 tokens to a different address on Base
- bridgeERC20To
ether
- _l1Token
address
- _l2Token
address
- _to
address
- _amount
uint256
- _minGasLimit
uint32
- _extraData
bytes
- bridgeERC20To
- Deposits ERC20 tokens to a different address on Base
- bridgeETH
- Deposits ETH to the same address on Base
- bridgeETHTo
ether
- _minGasLimit
uint32
- _extraData
bytes
- bridgeETHTo
- Deposits ETH to the same address on Base
- bridgeETHTo
- Deposits ETH to a different address on Base
- bridgeETHTo
ether
- _to
address
- _minGasLimit
uint32
- _extraData
bytes
- bridgeETHTo
- Deposits ETH to a different address on Base
- fastWithdraw
- Finalizes a Supersonic withdrawal
- fastWithdraw
ether
- _txn (tuple)
- l1_token
address
- l2_token
address
- from
address
- to
address
- amount
uint256
- nonce
uint256
- proof_transaction
bytes
- l1_token
- _signature
bytes
- fastWithdraw
- Finalizes a Supersonic withdrawal
- 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
- finalizeBridgeETH
ether
- _from
address
- _to
address
- _amount
uint256
- _extraData
bytes
- finalizeBridgeETH
- Finalizes an ETH deposit
- finalizeERC20Withdrawal
- Finalizes an ERC20 withdrawal
- _l1Token
address
- _l2Token
address
- _from
address
- _to
address
- _amount
uint256
- _extraData
bytes
- _l1Token
- Finalizes an ERC20 withdrawal
- finalizeETHWithdrawal
- Finalizes an ETH withdrawal
- finalizeETHWithdrawal
ether
- _from
address
- _to
address
- _amount
uint256
- _extraData
bytes
- finalizeETHWithdrawal
- Finalizes an ETH withdrawal
- 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
- Initializes SkyBridge Liquidity Pool, portal, and token
- removeAdmin
- Remove admin role from an
address
Required role: admin
- Remove admin role from an
- removePauser
- Remove pauser role from an
address
Required role: admin
- Remove pauser role from an
- revokeRole
- Remove a role
bytes32
from anaddress
Required role: admin
- Remove a role
- setAviTokenAddress
- Sets the Aviator (AVI) token
address
on Layer-1Required role: admin
- Sets the Aviator (AVI) token
- setBackend
- Changes the backend to a new
address
Required role: admin
- Changes the backend to a new
- setBridgingFee
- Sets the liquidity fee
uint256
Required role: admin
- Sets the liquidity fee
- setFlatFee
- Sets the protocol fee
uint256
Required role: admin
- Sets the protocol fee
- setFlatFeeRecipient
- Sets the recipient
address
of the protocol feeRequired role: admin
- Sets the recipient
- setOtherBridge
- Sets the
address
of L2AviBridge on BaseRequired role: admin
- Sets the
- setPaused
- Sets the paused state
bool
of the bridge. The default state istrue
.Required role: pauser
- Sets the paused state