aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Converts raw SuiFrens object views and on-chain events into SDK data shapes.

    The static methods perform local field conversion only. They decode numeric strings to bigint, pad Sui addresses and object IDs, and map snake-case on-chain fields to the public camel-case interfaces.

    Index
    • Casts SuiFren fields embedded in staked metadata.

      The method takes the SuiFren type and ID from metadata, pads the ID, and replaces every mainnet substring with testnet in the display image URL. It returns no dynamic fields.

      Parameters

      • data: SuiObjectView

        Raw staked-metadata object view with display output.

      Returns PartialSuiFrenObject

      Partial SuiFren data reconstructed from metadata fields.

      Errors when required fields or display values are missing.

    • Casts the base fields and display data of a non-staked SuiFren.

      The method returns a PartialSuiFrenObject; dynamic fields are added later by SuiFrensApi inspection methods. birthdate remains a millisecond timestamp represented as a JavaScript number.

      Parameters

      • data: SuiObjectView

        Raw Sui object view with SuiFren fields and display output.

      Returns PartialSuiFrenObject

      Partial SuiFren data with bigint numeric fields.

      Errors when required fields or display values are missing.