Ver Fonte

getPaidMembershipTermsById

Joystream Stats há 2 anos atrás
pai
commit
dd6872ca55
1 ficheiros alterados com 7 adições e 0 exclusões
  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,