interface SubscriptionExtension {
    subscription: {
        allocation: ((id, address) => Promise<undefined | Allocation>);
        allocations: ((id, pagination?) => Promise<QueryAllocationsResponse>);
        params: (() => Promise<undefined | Params>);
        payout: ((id) => Promise<undefined | Payout>);
        payouts: ((pagination?) => Promise<QueryPayoutsResponse>);
        payoutsForAccount: ((address, pagination?) => Promise<QueryPayoutsForAccountResponse>);
        payoutsForNode: ((address, pagination?) => Promise<QueryPayoutsForNodeResponse>);
        subscription: ((id) => Promise<QuerySubscriptionResponse>);
        subscriptions: ((pagination?) => Promise<QuerySubscriptionsResponse>);
        subscriptionsForAccount: ((address, pagination?) => Promise<QuerySubscriptionsForAccountResponse>);
        subscriptionsForNode: ((address, pagination?) => Promise<QuerySubscriptionsForNodeResponse>);
        subscriptionsForPlan: ((id, pagination?) => Promise<QuerySubscriptionsForPlanResponse>);
    };
}

Properties

Properties

subscription: {
    allocation: ((id, address) => Promise<undefined | Allocation>);
    allocations: ((id, pagination?) => Promise<QueryAllocationsResponse>);
    params: (() => Promise<undefined | Params>);
    payout: ((id) => Promise<undefined | Payout>);
    payouts: ((pagination?) => Promise<QueryPayoutsResponse>);
    payoutsForAccount: ((address, pagination?) => Promise<QueryPayoutsForAccountResponse>);
    payoutsForNode: ((address, pagination?) => Promise<QueryPayoutsForNodeResponse>);
    subscription: ((id) => Promise<QuerySubscriptionResponse>);
    subscriptions: ((pagination?) => Promise<QuerySubscriptionsResponse>);
    subscriptionsForAccount: ((address, pagination?) => Promise<QuerySubscriptionsForAccountResponse>);
    subscriptionsForNode: ((address, pagination?) => Promise<QuerySubscriptionsForNodeResponse>);
    subscriptionsForPlan: ((id, pagination?) => Promise<QuerySubscriptionsForPlanResponse>);
}

Type declaration

  • allocation: ((id, address) => Promise<undefined | Allocation>)
      • (id, address): Promise<undefined | Allocation>
      • Parameters

        • id: Long
        • address: string

        Returns Promise<undefined | Allocation>

  • allocations: ((id, pagination?) => Promise<QueryAllocationsResponse>)
      • (id, pagination?): Promise<QueryAllocationsResponse>
      • Parameters

        Returns Promise<QueryAllocationsResponse>

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

  • payout: ((id) => Promise<undefined | Payout>)
      • (id): Promise<undefined | Payout>
      • Parameters

        • id: Long

        Returns Promise<undefined | Payout>

  • payouts: ((pagination?) => Promise<QueryPayoutsResponse>)
      • (pagination?): Promise<QueryPayoutsResponse>
      • Parameters

        Returns Promise<QueryPayoutsResponse>

  • payoutsForAccount: ((address, pagination?) => Promise<QueryPayoutsForAccountResponse>)
      • (address, pagination?): Promise<QueryPayoutsForAccountResponse>
      • Parameters

        Returns Promise<QueryPayoutsForAccountResponse>

  • payoutsForNode: ((address, pagination?) => Promise<QueryPayoutsForNodeResponse>)
      • (address, pagination?): Promise<QueryPayoutsForNodeResponse>
      • Parameters

        Returns Promise<QueryPayoutsForNodeResponse>

  • subscription: ((id) => Promise<QuerySubscriptionResponse>)
      • (id): Promise<QuerySubscriptionResponse>
      • Parameters

        • id: Long

        Returns Promise<QuerySubscriptionResponse>

  • subscriptions: ((pagination?) => Promise<QuerySubscriptionsResponse>)
      • (pagination?): Promise<QuerySubscriptionsResponse>
      • Parameters

        Returns Promise<QuerySubscriptionsResponse>

  • subscriptionsForAccount: ((address, pagination?) => Promise<QuerySubscriptionsForAccountResponse>)
      • (address, pagination?): Promise<QuerySubscriptionsForAccountResponse>
      • Parameters

        Returns Promise<QuerySubscriptionsForAccountResponse>

  • subscriptionsForNode: ((address, pagination?) => Promise<QuerySubscriptionsForNodeResponse>)
      • (address, pagination?): Promise<QuerySubscriptionsForNodeResponse>
      • Parameters

        Returns Promise<QuerySubscriptionsForNodeResponse>

  • subscriptionsForPlan: ((id, pagination?) => Promise<QuerySubscriptionsForPlanResponse>)
      • (id, pagination?): Promise<QuerySubscriptionsForPlanResponse>
      • Parameters

        Returns Promise<QuerySubscriptionsForPlanResponse>

Generated using TypeDoc