|
@@ -501,6 +501,13 @@ export const getValidators = async (
|
|
|
return snapshot.isSome ? snapshot.unwrap() : [];
|
|
|
};
|
|
|
|
|
|
+export const getPaidMembershipTermsById = (
|
|
|
+ api: ApiPromise,
|
|
|
+ hash: Hash,
|
|
|
+ id: PaidTermId | number
|
|
|
+): Promise<PaidMembershipTerms> => api.query.members.paidMembershipTermsById.at(hash, id);
|
|
|
+
|
|
|
+
|
|
|
// media
|
|
|
export const getNextEntity = async (
|
|
|
api: ApiPromise,
|