Skip to main content

Storage

Represents the off-chain storage information, such as an IPFS hash.

Hierarchy

  • { url: Field[] }
    • Storage

Index

Constructors

constructor

  • new Storage(value: { url: [Field, Field] }): Storage
  • Parameters

    • value: { url: [Field, Field] }
      • url: [Field, Field]

    Returns Storage

Properties

url

url: Field[] = ...

Methods

toString

  • toString(): string
  • Converts the Storage instance to a string.


    Returns string

    The string representation of the storage URL.

staticassertEquals

  • Asserts that two Storage instances are equal.


    Parameters

    • a: Storage

      The first Storage instance.

    • b: Storage

      The second Storage instance.

    Returns void

staticequals

  • Checks if two Storage instances are equal.


    Parameters

    • a: Storage

      The first Storage instance.

    • b: Storage

      The second Storage instance.

    Returns Bool

    A Bool indicating whether the two instances are equal.

staticfromString

  • Creates a Storage instance from a string.


    Parameters

    • url: string

      The string representing the storage URL.

    Returns Storage

    A new Storage instance.