Skip to main content

SkyBridgeERC721.sol

Read

  1. BRIDGE
    • Returns the address of L2AviERC721Bridge on this network address
  2. FACTORY
    • Returns the admin ERC-721 factory address
  3. REMOTE_CHAIN_ID
    • Returns the chain ID of the remote token
  4. REMOTE_TOKEN
    • Returns the address of the corresponding token on Ethereum
  5. balanceOf
    • Returns the balance uint256 of a queried address
  6. baseTokenURI
    • Returns the token URI string
  7. bridge
    • Returns the address of L2AviBridge on this network address
  8. getApproved
    • Returns a list of approved spender address for a given tokenId uint266
  9. isApprovedForAll
    • Returns a bool for whether or not a given spender address can transfer all of this token belonging to an owner address
  10. name
    • Returns the name of the token string
  11. ownerOf
    • Returns the owner address for a given tokenId uint266
  12. remoteChainId
    • Returns the chain ID of the remote token
  13. remoteToken
    • Returns the address of the corresponding token on Ethereum
  14. supportsInterface
    • ERC165 interface check function. Returns a bool for whether or not an input interface is supported
  15. symbol
    • Returns the symbol of the token string
  16. tokenByInted
    • Returns a tokenId uint256 for a given index uint256
  17. tokenOfOwnerByIndex
    • Returns the tokenId uint256 of an owner address at a given index uint256
  18. tokenURI
    • Returns the URI string for a given tokenId uint265
  19. totalSupply
    • Returns the total bridged supply uint256
  20. version
    • Returns the current contract version string

Write

  1. approve
    • See IERC721-approve. Approves a tokenId uint256 to a spender address
  2. burn
    • Allows the authorized bridges (checked via the factory) to burn tokens on withdrawals Required user: bridge
  3. initialize
    • Initializes the token with factory variabls Required user: factory
  4. safeMint
    • Mints some token ID for a user, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked Required user: bridge
  5. safeTransferFrom
    • See IERC721-safeTransferFrom. Transfers a tokenId uint256 from an owner address to a spender address
  6. safeTransferFrom
    • See IERC721-safeTransferFrom. Transfers a tokenId uint256 from an owner address to a spender address with custom data bytes
  7. setApprovalForAll
    • Approves or revokes approval bool of all tokens of a user for a given spender address
  8. transferFrom
    • See IERC721-transferFrom. Transfers a tokenId uint256 from an owner address to a spender address