Hierarchy

  • StorageHandler

Implements

Constructors

Properties

sharingRoot: "s/Sharing" = 's/Sharing'

Manage FT Noti

walletRef: IWalletHandler

Methods

  • Purchase storage for specified address that does not currently have storage. For existing see upgradeStorage().

    Parameters

    • forAddress: string

      Jkl address to receive the purchased storage.

    • duration: number

      How long in months to purchase the storage.

    • space: number

      Amount of effective storage to purchase in TB.

    Returns Promise<DeliverTxResponse>

    • Result of purchase broadcast.
  • Determine current price in $JKL of specified size and duration of storage.

    Parameters

    • space: number

      Amount of effective space to use for price check.

    • duration: number

      Amount of time to use for price check.

    Returns Promise<number>

    • Estimated price of specified storage in ujkl.
  • Save data to file sharing address. Overwrites existing data. Savable only by owner.

    Parameters

    • receiverAddress: string

      Jkl address receiving sharing data.

    • shared: ISharedTracker

      Bundle of all records shared with receiverAddress.

    Returns Promise<EncodeObject>

    • PostFile msg ready for broadcast.
  • Remove all sharing data for specified receiver.

    Parameters

    • receiverAddress: string

      Jkl address receiving sharing data.

    Returns Promise<EncodeObject>

    • DeleteFile msg ready for broadcast.
  • Purchase storage for specified address that currently has storage. For new see buyStorage().

    Parameters

    • forAddress: string

      Jkl address to receive the purchased storage.

    • duration: number

      How long in months to purchase the storage.

    • space: number

      Amount of effective storage to purchase in TB.

    Returns Promise<DeliverTxResponse>

    • Result of purchase broadcast.

Generated using TypeDoc