Storage

addPiece

addPiece (sectorID: SectorID, unpaddedPieceSize: Array<number>, unpaddedPieceSize1: number, reader: any): Promise<PieceInfo1>

Parameters:

  • sectorID: SectorID
  • unpaddedPieceSize: Array<number>
  • unpaddedPieceSize1: number
  • reader: any

Returns:

Promise<PieceInfo1>

Source: index.d.ts, line 920, character 10

fetch

fetch (sectorID: SectorID, sectorFileType: number, pathType: string, acquireMode: string): Promise<void>

Parameters:

  • sectorID: SectorID
  • sectorFileType: number
  • pathType: string
  • acquireMode: string

Returns:

Promise<void>

Source: index.d.ts, line 921, character 7

finalizeSector

finalizeSector (sectorID: SectorID, range: Array<Range>): Promise<void>

Parameters:

Returns:

Promise<void>

Source: index.d.ts, line 922, character 16

moveStorage

moveStorage (sectorID: SectorID, sectorFileType: number): Promise<void>

Parameters:

  • sectorID: SectorID
  • sectorFileType: number

Returns:

Promise<void>

Source: index.d.ts, line 924, character 13

paths

paths (): Promise<Array<StoragePath>>

Returns:

Promise<Array<StoragePath>>

Source: index.d.ts, line 925, character 7

readPiece

readPiece (writer: any, sectorID: SectorID, unpaddedByteIndex: number, unpaddedPieceSize: number): Promise<boolean>

Parameters:

  • writer: any
  • sectorID: SectorID
  • unpaddedByteIndex: number
  • unpaddedPieceSize: number

Returns:

Promise<boolean>

Source: index.d.ts, line 926, character 11

releaseUnsealed

releaseUnsealed (sectorID: SectorID, range: Array<Range>): Promise<void>

Parameters:

Returns:

Promise<void>

Source: index.d.ts, line 927, character 17

remove

remove (sectorID: SectorID): Promise<void>

Parameters:

Returns:

Promise<void>

Source: index.d.ts, line 928, character 8

sealCommit1

sealCommit1 (sectorID: SectorID, uint: Array<number>, uint1: Array<number>, pieceInfo: Array<PieceInfo1>, sectorCids: SectorCids): Promise<Array<number>>

Parameters:

Returns:

Promise<Array<number>>

Source: index.d.ts, line 929, character 13

sealCommit2

sealCommit2 (sectorID: SectorID, uint: Array<number>): Promise<Array<number>>

Parameters:

  • sectorID: SectorID
  • uint: Array<number>

Returns:

Promise<Array<number>>

Source: index.d.ts, line 930, character 13

sealPreCommit1

sealPreCommit1 (sectorID: SectorID, uint: Array<number>, pieceInfo: Array<PieceInfo1>): Promise<Array<number>>

Parameters:

Returns:

Promise<Array<number>>

Source: index.d.ts, line 931, character 16

sealPreCommit2

sealPreCommit2 (sectorID: SectorID, uint: Array<number>): Promise<SectorCids>

Parameters:

  • sectorID: SectorID
  • uint: Array<number>

Returns:

Promise<SectorCids>

Source: index.d.ts, line 932, character 16

storageAddLocal

storageAddLocal (str: string): Promise<void>

Parameters:

  • str: string

Returns:

Promise<void>

Source: index.d.ts, line 901, character 17

unsealPiece

unsealPiece (sectorID: SectorID, unpaddedByteIndex: number, unpaddedPieceSize: number, uint: Array<number>, cid: Cid): Promise<void>

Parameters:

  • sectorID: SectorID
  • unpaddedByteIndex: number
  • unpaddedPieceSize: number
  • uint: Array<number>
  • cid: Cid

Returns:

Promise<void>

Source: index.d.ts, line 937, character 13