interface SessionExtension {
    session: {
        params: (() => Promise<undefined | Params>);
        session: ((id) => Promise<undefined | Session>);
        sessions: ((pagination?) => Promise<QuerySessionsResponse>);
        sessionsForAccount: ((address, pagination?) => Promise<QuerySessionsForAccountResponse>);
        sessionsForAllocation: ((id, address, pagination?) => Promise<QuerySessionsForAllocationResponse>);
        sessionsForNode: ((address, pagination?) => Promise<QuerySessionsForNodeResponse>);
        sessionsForSubscription: ((id, pagination?) => Promise<QuerySessionsForSubscriptionResponse>);
    };
}

Properties

Properties

session: {
    params: (() => Promise<undefined | Params>);
    session: ((id) => Promise<undefined | Session>);
    sessions: ((pagination?) => Promise<QuerySessionsResponse>);
    sessionsForAccount: ((address, pagination?) => Promise<QuerySessionsForAccountResponse>);
    sessionsForAllocation: ((id, address, pagination?) => Promise<QuerySessionsForAllocationResponse>);
    sessionsForNode: ((address, pagination?) => Promise<QuerySessionsForNodeResponse>);
    sessionsForSubscription: ((id, pagination?) => Promise<QuerySessionsForSubscriptionResponse>);
}

Type declaration

  • params: (() => Promise<undefined | Params>)
      • (): Promise<undefined | Params>
      • Returns Promise<undefined | Params>

  • session: ((id) => Promise<undefined | Session>)
      • (id): Promise<undefined | Session>
      • Parameters

        • id: Long

        Returns Promise<undefined | Session>

  • sessions: ((pagination?) => Promise<QuerySessionsResponse>)
      • (pagination?): Promise<QuerySessionsResponse>
      • Parameters

        Returns Promise<QuerySessionsResponse>

  • sessionsForAccount: ((address, pagination?) => Promise<QuerySessionsForAccountResponse>)
      • (address, pagination?): Promise<QuerySessionsForAccountResponse>
      • Parameters

        Returns Promise<QuerySessionsForAccountResponse>

  • sessionsForAllocation: ((id, address, pagination?) => Promise<QuerySessionsForAllocationResponse>)
      • (id, address, pagination?): Promise<QuerySessionsForAllocationResponse>
      • Parameters

        • id: Long
        • address: string
        • Optional pagination: PageRequest

        Returns Promise<QuerySessionsForAllocationResponse>

  • sessionsForNode: ((address, pagination?) => Promise<QuerySessionsForNodeResponse>)
      • (address, pagination?): Promise<QuerySessionsForNodeResponse>
      • Parameters

        Returns Promise<QuerySessionsForNodeResponse>

  • sessionsForSubscription: ((id, pagination?) => Promise<QuerySessionsForSubscriptionResponse>)
      • (id, pagination?): Promise<QuerySessionsForSubscriptionResponse>
      • Parameters

        Returns Promise<QuerySessionsForSubscriptionResponse>

Generated using TypeDoc