Skip to main content

L2AviERC721Bridge.sol

Read

  1. DEFAULT_ADMIN_ROLE
    • Returns the default admin role bytes32
  2. OTHER_BRIDGE
    • Returns the address of L1AviERC721Bridge on Ethereum address
  3. PAUSER_ROLE
    • Returns the pauser role bytes32
  4. flatFee
    • Returns the current ETH protocol fee uint256
  5. flatFeeRecipient
    • Returns the deposit address of the flatFee
  6. getRoleAdmin
    • Returns the admin role bytes32
  7. hasRole
    • Returns true if the input address has the specified role bool
      • role bytes32
      • account address
  8. paused
    • Returns the paused state of the bridge bool The default state is true.
  9. renounceRole
    • Removes a role bytes32 from an address
  10. supportsInterface
    • Returns bool if the input interface is supported bytes4
  11. 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 deposit 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