UNPKG

@test-org122/hypernet-core

Version:

Hypernet Core. Represents the SDK for running the Hypernet Protocol.

19 lines 977 B
import { HypernetLink, Payment, ResultAsync } from "@interfaces/objects"; import { CoreUninitializedError, InvalidParametersError } from "@interfaces/objects/errors"; import { IContextProvider } from "@interfaces/utilities"; import { ILinkUtils } from "@interfaces/utilities/ILinkUtils"; /** * Provides functions to go from a set of payments into a set of HypernetLinks, and similar. */ export declare class LinkUtils implements ILinkUtils { protected contextProvider: IContextProvider; constructor(contextProvider: IContextProvider); /** * Given an array of Payment objects, return the corresponding Hypernet Links * Internally, calls transfersToPayments() * @param payments the payments to get the associated Links for * @param context instance of HypernetContext */ paymentsToHypernetLinks(payments: Payment[]): ResultAsync<HypernetLink[], CoreUninitializedError | InvalidParametersError>; } //# sourceMappingURL=LinkUtils.d.ts.map