Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • StorageDriver
    • AmmanMockStorageDriver

Index

Constructors

  • new AmmanMockStorageDriver(metaplex: Metaplex, storageId: string, uploadRoot: string, costPerByte: BN, logInfo: (...data: any[]) => void, logDebug: (...data: any[]) => void, logTrace: (...data: any[]) => void): AmmanMockStorageDriver
  • Parameters

    • metaplex: Metaplex
    • storageId: string
    • uploadRoot: string
    • costPerByte: BN
    • logInfo: (...data: any[]) => void
        • (...data: any[]): void
        • Parameters

          • Rest ...data: any[]

          Returns void

    • logDebug: (...data: any[]) => void
        • (...data: any[]): void
        • Parameters

          • Rest ...data: any[]

          Returns void

    • logTrace: (...data: any[]) => void
        • (...data: any[]): void
        • Parameters

          • Rest ...data: any[]

          Returns void

    Returns AmmanMockStorageDriver

Properties

baseUrl: string
costPerByte: BN
logDebug: (...data: any[]) => void

Type declaration

    • (...data: any[]): void
    • Parameters

      • Rest ...data: any[]

      Returns void

logInfo: (...data: any[]) => void

Type declaration

    • (...data: any[]): void
    • Parameters

      • Rest ...data: any[]

      Returns void

logTrace: (...data: any[]) => void

Type declaration

    • (...data: any[]): void
    • Parameters

      • Rest ...data: any[]

      Returns void

metaplex: Metaplex
storageDir: string
storageId: string
uploadRoot: string

Methods

  • download(uri: string): Promise<MetaplexFile>
  • downloadJson<T>(uri: string): Promise<T>
  • getPrice(file: MetaplexFile): Promise<SolAmount>
  • upload(file: MetaplexFile): Promise<string>
  • uploadAll(files: MetaplexFile[]): Promise<string[]>
  • Parameters

    • files: MetaplexFile[]

    Returns Promise<string[]>

  • uploadJson<T>(json: T): Promise<string>
  • Type parameters

    • T: object

    Parameters

    • json: T

    Returns Promise<string>

  • getStorageUri(storageId: string): string

Generated using TypeDoc