Safle
  • SafleID
    • About SafleID
      • Core Technical Components (1/3)
      • Core Technical Concepts (2/3)
      • Core Technical Concepts (3/3)
    • What SafleID does?
    • For Chains
      • Technical Breakdown (1/2)
      • Technical Breakdown (2/2)
    • For dApps
    • For Wallet Providers (Exchanges and independent wallets)
      • Why Integrate SafleID (1/2)
      • Why Integrate SafleID (2/2)
    • SafleID's Technology
      • Data Flow and Interactions
      • Resolving Functionalities (RegistrarMain Contract)
      • Auction Functionalities (Auction Contract)
    • Conclusion
    • Terminology
    • Technical Documentation
  • Safle Wallet
    • Onboarding
    • Buy Crypto with Fiat enabled via Transak
    • Safle Swaps
    • Transaction processing on multiple Chains
    • Annexure: Encryption Sequence
  • Safle Vault
    • Features
    • Blockchains Supported
    • Installation & Initialisation
    • Encryption/Decryption Module
    • Controllers
Powered by GitBook
On this page
  1. SafleID
  2. SafleID's Technology

Data Flow and Interactions

SafleID contracts are designed to facilitate various functionalities through a series of well-defined methods. Below is an explanation of the key functionalities provided by the SafleID system:

Registration Functionalities (RegistrarMain Contract)

  1. Register SafleID: This method registers a SafleID corresponding to a provided wallet address.

    function registerSafleId(address _userAddress, string memory _safleId) public
    
    • Parameters: _userAddress - The address of the user. _safleId - The desired SafleID.

    • Purpose: Enables users to create a new SafleID linked to their wallet address.

  2. Update SafleID: This method updates an existing SafleID mapped to a wallet address.

    function updateSafleId(address _userAddress, string memory _newSafleId) public
    
    • Parameters: _userAddress - The address of the user. _newSafleId - The new SafleID to be updated.

    • Purpose: Allows users to change their existing SafleID to a new one.

  3. Map Other Coins: This method enables the linking of wallet addresses from other blockchains to the SafleID.

    function mapCoins(uint256 _indexnumber, string calldata _blockchainName, string calldata _aliasName) external returns (bool)
    
    • Parameters: _indexnumber - The index number for mapping. _blockchainName - The name of the blockchain. _aliasName - The alias for the coin.

    • Purpose: Facilitates multi-chain support by allowing users to map other blockchain addresses to their SafleID.

  4. Register Coin Address: This method links a wallet address on another blockchain to the SafleID.

    function registerCoinAddress(address _userAddress,uint256 _index, string calldata _address) external returns (bool)
    
    • Parameters: _userAddress - The address of the user. _index - The index for the coin. _address - The wallet address on the other blockchain.

    • Purpose: Allows users to link addresses from other blockchains to their SafleID.

  5. Update Coin Address: This method updates the address mapped to a SafleID on a specific blockchain.

    function updateCoinAddress(address _userAddress,uint256 _index, string calldata _address) external returns (bool)
    
    • Parameters: _userAddress - The address of the user. _index - The index for the coin. _address - The new wallet address.

    • Purpose: Enables users to update their linked addresses on other blockchains.

PreviousSafleID's TechnologyNextResolving Functionalities (RegistrarMain Contract)

Last updated 10 months ago