FantomAddressRegistry.sol

Documentation for FantomAddressRegistry.sol


Overview

The FantomAddressRegistry contract serves as a registry for key contract addresses in the Fantom ecosystem. It is a part of an architecture that aims to improve the accessibility and organization of these addresses. It inherits from the Ownable contract, which means it has an owner who can call privileged functions.

The contract allows the owner to update addresses for the following:

  • Artion: Digital Asset minting and metadata management

  • Auction: Digital Asset auction platform

  • Marketplace: Digital Asset marketplace

  • BundleMarketplace: Digital Asset bundle marketplace

  • TokenRegistry: ERC-20 token registry

  • PriceFeed: Price feed oracle

The updated contract addresses are publicly viewable.

Events

  • UpdateArtion: Emitted when the Artion contract address is updated.

  • UpdateAuction: Emitted when the Auction contract address is updated.

  • UpdateMarketplace: Emitted when the Marketplace contract address is updated.

  • UpdateBundleMarketplace: Emitted when the BundleMarketplace contract address is updated.

  • UpdateTokenRegistry: Emitted when the TokenRegistry contract address is updated.

  • UpdatePriceFeed: Emitted when the PriceFeed contract address is updated.

Each event contains the newly updated contract address.

Methods

  • updateArtion(address _artion)

    • Allows updating the Artion contract address.

    • Only callable by owner.

    • Requires a non-zero address.

    • Emits UpdateArtion event.

  • updateAuction(address _auction)

    • Allows updating the Auction contract address.

    • Only callable by owner.

    • Requires a non-zero address.

    • Emits UpdateAuction event.

  • updateMarketplace(address _marketplace)

    • Allows updating the Marketplace contract address.

    • Only callable by owner.

    • Requires a non-zero address.

    • Emits UpdateMarketplace event.

  • updateBundleMarketplace(address _bundleMarketplace)

    • Allows updating the BundleMarketplace contract address.

    • Only callable by owner.

    • Requires a non-zero address.

    • Emits UpdateBundleMarketplace event.

  • updateTokenRegistry(address _tokenRegistry)

    • Allows updating the TokenRegistry contract address.

    • Only callable by owner.

    • Requires a non-zero address.

    • Emits UpdateTokenRegistry event.

  • updatePriceFeed(address _priceFeed)

    • Allows updating the PriceFeed contract address.

    • Only callable by owner.

    • Requires a non-zero address.

    • Emits UpdatePriceFeed event.

Access Control

  • The owner role has exclusive access to update contract addresses.

Payment Methods

  • The contract does not involve any form of payments, neither in native tokens (ETH, FTM) nor in ERC-20 tokens.

ERC-20 Token Initialization

  • The contract does not initialize or interact with any ERC-20 tokens.


Last updated