Jelajahi Sumber

getPaidMembershipTermsById

Joystream Stats 2 tahun lalu
induk
melakukan
dd6872ca55
1 mengubah file dengan 7 tambahan dan 0 penghapusan
  1. 7 0
      api.ts

+ 7 - 0
api.ts

@@ -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,