Skip to main content

L1AviERC721Bridge.sol

Read

  1. DEFAULT_ADMIN_ROLE
    • Returns the default admin role bytes32
  2. OTHER_BRIDGE
    • Returns the address of L2AviERC721Bridge on Base address
  3. PAUSER_ROLE
    • Returns the pauser role bytes32
  4. deposits
    • Enumerates a list of deposits
  5. flatFee
    • Returns the current ETH protocol fee uint256
  6. flatFeeRecipient
    • Returns the deposit address of the flatFee
  7. getRoleAdmin
    • Returns the admin role bytes32
  8. hasRole
    • Returns true if the input address has the specified role bool
      • role bytes32
      • account address
  9. paused
    • Returns the paused state of the bridge bool The default state is true.
  10. renounceRole
    • Removes a role bytes32 from an address
  11. supportsInterface
    • Returns bool if the input interface is supported bytes4
  12. version
    • Returns the current contract version string

Write

  1. __SkyBridge_init
    • Initializes SkyBridge relay and messenger services Can only be called on deployment
      • _messenger address
      • _otherBridge address
  2. addAdmin
    • Adds the input address as an admin Required role: admin
      • _admin address
  3. addPauser
    • Adds the input address as pauser Required role: admin
      • _pauser address
  4. bridgeERC721
    • Deposits ERC721 token to the same address on Base
      • bridgeERC721 ether
      • _localToken address
      • _remoteToken address
      • _tokenId uint256
      • _extraData bytes
  5. bridgeERC20To
    • Deposits ERC721 token to a different address on Base
      • bridgeERC721To ether
      • _localToken address
      • _remoteToken address
      • _to address
      • _tokenId uint256
      • _extraData bytes
  6. finalizeBridgeERC721
    • Finalizes an ERC721 withdrawal required role: backend
      • _localToken address
      • _remoteToken address
      • _from address
      • _to address
      • _tokenId uint256
      • _extraData bytes
  7. grantRole
    • Grants the selected role to a user required role: admin
      • role bytes32
      • account address
  8. initialize
    • Initializes the flatFeeRecipient Can only be called on deployment
      • _l1FlatFeeRecipient address
  9. removeAdmin
    • Removes the admin role from an address Required role: admin
      • _admin address
  10. removePauser
    • Removes the pauser role from an address Required role: admin
      • _pauser address
  11. revokeRole
    • Removes the selected from from an address Required role: admin
      • role bytes32
      • address address
  12. setFlatFee
    • Sets the protocol fee Required role: admin
      • _fee uint256
  13. setOtherBridge
    • Sets the address of L2AviERC721Bridge on Base Required role: admin
      • _otherBridge address
  14. setPaused
    • Pauses the bridge Required role: pauser
      • _paused bool