Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @ceramicnetwork/canary-integration

Index

References

createCeramic

Re-exports createCeramic

createIPFS

Re-exports createIPFS

Functions

clearDid

  • clearDid(ceramic: CeramicApi, authProvider: AuthProvider): Promise<void>

createCeramic

  • createCeramic(ipfs: IpfsApi, config?: CeramicConfig & { seed?: string }): Promise<Ceramic>

createIPFS

  • createIPFS(overrideConfig?: Record<string, unknown>): Promise<IpfsApi>

fleet

  • fleet(n: number, overrideConfig?: Record<string, unknown>): Promise<IpfsApi[]>

happyPath

  • happyPath(ceramic: CeramicApi, authProvider: AuthProvider): Promise<void>

swarmConnect

withFleet

  • withFleet(n: number, task: (instances: IpfsApi[]) => Promise<void>): Promise<void>
  • Start n IPFS instances, and stop them after task is done.

    Parameters

    • n: number

      Number of IPFS instances to create.

    • task: (instances: IpfsApi[]) => Promise<void>

      Function that uses the IPFS instances.

        • (instances: IpfsApi[]): Promise<void>
        • Parameters

          Returns Promise<void>

    Returns Promise<void>

wrongProof

  • wrongProof(ceramic: CeramicApi, authProvider: AuthProvider): Promise<void>