L2AviERC721Bridge.sol
- DEFAULT_ADMIN_ROLE
- Returns the default admin role
bytes32
- OTHER_BRIDGE
- Returns the address of L1AviERC721Bridge on Ethereum
address
- PAUSER_ROLE
- Returns the pauser role
bytes32
- flatFee
- Returns the current ETH protocol fee
uint256
- flatFeeRecipient
- Returns the deposit
address
of the flatFee
- getRoleAdmin
- Returns the admin role
bytes32
- hasRole
- Returns true if the input address has the specified role
bool
- role
bytes32
- account
address
- paused
- Returns the paused state of the bridge
bool
The default state is true
.
- renounceRole
- Removes a role
bytes32
from an address
- supportsInterface
- Returns
bool
if the input interface is supported bytes4
- version
- Returns the current contract version
string
- __SkyBridge_init
- Initializes SkyBridge relay and messenger services
Can only be called on deployment
- _messenger
address
- _otherBridge
address
- addAdmin
- Adds the input address as an
admin
Required role: admin
- addPauser
- Adds the input address as
pauser
Required role: admin
- bridgeERC721
- Deposits ERC721 token to the same address on Base
- bridgeERC721
ether
- _localToken
address
- _remoteToken
address
- _tokenId
uint256
- _extraData
bytes
- bridgeERC20To
- Deposits ERC721 token to a different address on Base
- bridgeERC721To
ether
- _localToken
address
- _remoteToken
address
- _to
address
- _tokenId
uint256
- _extraData
bytes
- finalizeBridgeERC721
- Finalizes an ERC721 deposit
required role: backend
- _localToken
address
- _remoteToken
address
- _from
address
- _to
address
- _tokenId
uint256
- _extraData
bytes
- grantRole
- Grants the selected role to a user
required role: admin
- role
bytes32
- account
address
- initialize
- Initializes the flatFeeRecipient
Can only be called on deployment
- _l1FlatFeeRecipient
address
- removeAdmin
- Removes the
admin
role from an address Required role: admin
- removePauser
- Removes the
pauser
role from an address Required role: admin
- revokeRole
- Removes the selected from from an address
Required role: admin
- role
bytes32
- address
address
- setFlatFee
- Sets the protocol fee
Required role: admin