UNPKG

client-aftermath-ts-sdk

Version:
41 lines 1.4 kB
import { AftermathApi } from "../../../general/providers/aftermathApi"; import { UserEventsInputs, AnyObjectType, RouterAddresses } from "../../../types"; import { MoveErrors, MoveErrorsInterface } from "../../../general/types/moveErrorsInterface"; /** * RouterApi class provides methods for interacting with the Aftermath Router API. * @class */ export declare class RouterApi implements MoveErrorsInterface { private readonly Provider; static readonly constants: { moduleNames: { router: string; events: string; protocolFee: string; version: string; admin: string; }; eventNames: { routerTrade: string; }; }; readonly addresses: RouterAddresses; readonly eventTypes: { routerTrade: AnyObjectType; }; readonly moveErrors: MoveErrors; /** * Creates an instance of RouterApi. * @constructor * @param {AftermathApi} Provider - The Aftermath API instance. */ constructor(Provider: AftermathApi); /** * Fetches trade events for a given user. * @param inputs - The inputs for fetching trade events. * @returns A Promise that resolves with the fetched trade events. */ fetchTradeEvents(inputs: UserEventsInputs): Promise<void>; private routerTradeEventType; } //# sourceMappingURL=routerApi.d.ts.map