浏览代码

getPaidMembershipTermsById

Joystream Stats 2 年之前
父节点
当前提交
dd6872ca55
共有 1 个文件被更改,包括 7 次插入0 次删除
  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,