@superfluid-finance/sdk-redux 0.1.1-dev.d7f58c8.0 → 0.1.1-dev.dc4bcef.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/README.md +29 -39
  2. package/dist/main/index.d.ts +10 -0
  3. package/dist/main/index.d.ts.map +1 -0
  4. package/dist/main/index.js +34 -0
  5. package/dist/main/index.js.map +1 -0
  6. package/{build → dist}/main/redux-slices/argTypes.d.ts +12 -11
  7. package/dist/main/redux-slices/argTypes.d.ts.map +1 -0
  8. package/dist/main/redux-slices/argTypes.js +3 -0
  9. package/dist/main/redux-slices/argTypes.js.map +1 -0
  10. package/{build/main/redux-slices/rtk-query/rtkQuerySliceBaseQuery.d.ts → dist/main/redux-slices/rtk-query/baseQuery.d.ts} +6 -2
  11. package/dist/main/redux-slices/rtk-query/baseQuery.d.ts.map +1 -0
  12. package/dist/main/redux-slices/rtk-query/baseQuery.js +14 -0
  13. package/dist/main/redux-slices/rtk-query/baseQuery.js.map +1 -0
  14. package/{build → dist}/main/redux-slices/rtk-query/cacheTags/CacheTagTypes.d.ts +1 -0
  15. package/dist/main/redux-slices/rtk-query/cacheTags/CacheTagTypes.d.ts.map +1 -0
  16. package/dist/main/redux-slices/rtk-query/cacheTags/CacheTagTypes.js +18 -0
  17. package/dist/main/redux-slices/rtk-query/cacheTags/CacheTagTypes.js.map +1 -0
  18. package/{build → dist}/main/redux-slices/rtk-query/cacheTags/eventTags.d.ts +1 -0
  19. package/dist/main/redux-slices/rtk-query/cacheTags/eventTags.d.ts.map +1 -0
  20. package/dist/main/redux-slices/rtk-query/cacheTags/eventTags.js +12 -0
  21. package/dist/main/redux-slices/rtk-query/cacheTags/eventTags.js.map +1 -0
  22. package/{build → dist}/main/redux-slices/rtk-query/cacheTags/indexTags.d.ts +2 -1
  23. package/dist/main/redux-slices/rtk-query/cacheTags/indexTags.d.ts.map +1 -0
  24. package/dist/main/redux-slices/rtk-query/cacheTags/indexTags.js +31 -0
  25. package/dist/main/redux-slices/rtk-query/cacheTags/indexTags.js.map +1 -0
  26. package/{build → dist}/main/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.d.ts +1 -0
  27. package/dist/main/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.d.ts.map +1 -0
  28. package/{build → dist}/main/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.js +4 -7
  29. package/dist/main/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.js.map +1 -0
  30. package/{build/module → dist/main}/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.d.ts +1 -0
  31. package/dist/main/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.d.ts.map +1 -0
  32. package/dist/main/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js +21 -0
  33. package/dist/main/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js.map +1 -0
  34. package/{build/module → dist/main}/redux-slices/rtk-query/cacheTags/streamTags.d.ts +2 -1
  35. package/dist/main/redux-slices/rtk-query/cacheTags/streamTags.d.ts.map +1 -0
  36. package/dist/main/redux-slices/rtk-query/cacheTags/streamTags.js +30 -0
  37. package/dist/main/redux-slices/rtk-query/cacheTags/streamTags.js.map +1 -0
  38. package/{build/module → dist/main}/redux-slices/rtk-query/cacheTags/tokenTags.d.ts +2 -1
  39. package/dist/main/redux-slices/rtk-query/cacheTags/tokenTags.d.ts.map +1 -0
  40. package/dist/main/redux-slices/rtk-query/cacheTags/tokenTags.js +30 -0
  41. package/dist/main/redux-slices/rtk-query/cacheTags/tokenTags.js.map +1 -0
  42. package/dist/main/redux-slices/rtk-query/createApiWithReactHooks.d.ts +7 -0
  43. package/dist/main/redux-slices/rtk-query/createApiWithReactHooks.d.ts.map +1 -0
  44. package/dist/main/redux-slices/rtk-query/createApiWithReactHooks.js +11 -0
  45. package/dist/main/redux-slices/rtk-query/createApiWithReactHooks.js.map +1 -0
  46. package/dist/main/redux-slices/rtk-query/createApiWithoutReactHooks.d.ts +7 -0
  47. package/dist/main/redux-slices/rtk-query/createApiWithoutReactHooks.d.ts.map +1 -0
  48. package/dist/main/redux-slices/rtk-query/createApiWithoutReactHooks.js +11 -0
  49. package/dist/main/redux-slices/rtk-query/createApiWithoutReactHooks.js.map +1 -0
  50. package/dist/main/redux-slices/rtk-query/mutations/addMutationEndpoints.d.ts +20 -0
  51. package/dist/main/redux-slices/rtk-query/mutations/addMutationEndpoints.d.ts.map +1 -0
  52. package/dist/main/redux-slices/rtk-query/mutations/addMutationEndpoints.js +409 -0
  53. package/dist/main/redux-slices/rtk-query/mutations/addMutationEndpoints.js.map +1 -0
  54. package/dist/main/redux-slices/rtk-query/mutations/mutations.d.ts +140 -0
  55. package/dist/main/redux-slices/rtk-query/mutations/mutations.d.ts.map +1 -0
  56. package/dist/main/redux-slices/rtk-query/mutations/mutations.js +3 -0
  57. package/dist/main/redux-slices/rtk-query/mutations/mutations.js.map +1 -0
  58. package/dist/main/redux-slices/rtk-query/queries/addQueryEndpoints.d.ts +16 -0
  59. package/dist/main/redux-slices/rtk-query/queries/addQueryEndpoints.d.ts.map +1 -0
  60. package/dist/main/redux-slices/rtk-query/queries/addQueryEndpoints.js +280 -0
  61. package/dist/main/redux-slices/rtk-query/queries/addQueryEndpoints.js.map +1 -0
  62. package/dist/main/redux-slices/rtk-query/queries/queries.d.ts +56 -0
  63. package/dist/main/redux-slices/rtk-query/queries/queries.d.ts.map +1 -0
  64. package/dist/main/redux-slices/rtk-query/queries/queries.js +3 -0
  65. package/dist/main/redux-slices/rtk-query/queries/queries.js.map +1 -0
  66. package/dist/main/redux-slices/rtk-query/sfApiSlice.d.ts +30 -0
  67. package/dist/main/redux-slices/rtk-query/sfApiSlice.d.ts.map +1 -0
  68. package/dist/main/redux-slices/rtk-query/sfApiSlice.js +58 -0
  69. package/dist/main/redux-slices/rtk-query/sfApiSlice.js.map +1 -0
  70. package/dist/main/redux-slices/transactions/createTransactionSlice.d.ts +12 -0
  71. package/dist/main/redux-slices/transactions/createTransactionSlice.d.ts.map +1 -0
  72. package/dist/main/redux-slices/transactions/createTransactionSlice.js +15 -0
  73. package/dist/main/redux-slices/transactions/createTransactionSlice.js.map +1 -0
  74. package/{build/module → dist/main}/redux-slices/transactions/registerNewTransaction.d.ts +1 -0
  75. package/dist/main/redux-slices/transactions/registerNewTransaction.d.ts.map +1 -0
  76. package/dist/main/redux-slices/transactions/registerNewTransaction.js +33 -0
  77. package/dist/main/redux-slices/transactions/registerNewTransaction.js.map +1 -0
  78. package/{build/module → dist/main}/redux-slices/transactions/trackTransaction.d.ts +1 -0
  79. package/dist/main/redux-slices/transactions/trackTransaction.d.ts.map +1 -0
  80. package/dist/main/redux-slices/transactions/trackTransaction.js +63 -0
  81. package/dist/main/redux-slices/transactions/trackTransaction.js.map +1 -0
  82. package/dist/main/redux-slices/transactions/trackedTransaction.d.ts +12 -0
  83. package/dist/main/redux-slices/transactions/trackedTransaction.d.ts.map +1 -0
  84. package/dist/main/redux-slices/transactions/trackedTransaction.js +11 -0
  85. package/dist/main/redux-slices/transactions/trackedTransaction.js.map +1 -0
  86. package/dist/main/sdkReduxConfig.d.ts +80 -0
  87. package/dist/main/sdkReduxConfig.d.ts.map +1 -0
  88. package/dist/main/sdkReduxConfig.js +85 -0
  89. package/dist/main/sdkReduxConfig.js.map +1 -0
  90. package/dist/main/sdkReduxInitialization.d.ts +64 -0
  91. package/dist/main/sdkReduxInitialization.d.ts.map +1 -0
  92. package/dist/main/sdkReduxInitialization.js +42 -0
  93. package/dist/main/sdkReduxInitialization.js.map +1 -0
  94. package/{build → dist}/main/utils.d.ts +1 -0
  95. package/dist/main/utils.d.ts.map +1 -0
  96. package/{build → dist}/main/utils.js +1 -1
  97. package/dist/main/utils.js.map +1 -0
  98. package/dist/module/index.d.ts +10 -0
  99. package/dist/module/index.d.ts.map +1 -0
  100. package/dist/module/index.js +9 -0
  101. package/dist/module/index.js.map +1 -0
  102. package/{build → dist}/module/redux-slices/argTypes.d.ts +12 -11
  103. package/dist/module/redux-slices/argTypes.d.ts.map +1 -0
  104. package/dist/module/redux-slices/argTypes.js +2 -0
  105. package/dist/module/redux-slices/argTypes.js.map +1 -0
  106. package/{build/module/redux-slices/rtk-query/rtkQuerySliceBaseQuery.d.ts → dist/module/redux-slices/rtk-query/baseQuery.d.ts} +6 -2
  107. package/dist/module/redux-slices/rtk-query/baseQuery.d.ts.map +1 -0
  108. package/dist/module/redux-slices/rtk-query/baseQuery.js +10 -0
  109. package/dist/module/redux-slices/rtk-query/baseQuery.js.map +1 -0
  110. package/{build → dist}/module/redux-slices/rtk-query/cacheTags/CacheTagTypes.d.ts +1 -0
  111. package/dist/module/redux-slices/rtk-query/cacheTags/CacheTagTypes.d.ts.map +1 -0
  112. package/dist/module/redux-slices/rtk-query/cacheTags/CacheTagTypes.js +14 -0
  113. package/dist/module/redux-slices/rtk-query/cacheTags/CacheTagTypes.js.map +1 -0
  114. package/{build → dist}/module/redux-slices/rtk-query/cacheTags/eventTags.d.ts +1 -0
  115. package/dist/module/redux-slices/rtk-query/cacheTags/eventTags.d.ts.map +1 -0
  116. package/dist/module/redux-slices/rtk-query/cacheTags/eventTags.js +8 -0
  117. package/dist/module/redux-slices/rtk-query/cacheTags/eventTags.js.map +1 -0
  118. package/{build → dist}/module/redux-slices/rtk-query/cacheTags/indexTags.d.ts +2 -1
  119. package/dist/module/redux-slices/rtk-query/cacheTags/indexTags.d.ts.map +1 -0
  120. package/dist/module/redux-slices/rtk-query/cacheTags/indexTags.js +26 -0
  121. package/dist/module/redux-slices/rtk-query/cacheTags/indexTags.js.map +1 -0
  122. package/{build → dist}/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.d.ts +1 -0
  123. package/dist/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.d.ts.map +1 -0
  124. package/dist/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.js +141 -0
  125. package/dist/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.js.map +1 -0
  126. package/{build/main → dist/module}/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.d.ts +1 -0
  127. package/dist/module/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.d.ts.map +1 -0
  128. package/dist/module/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js +17 -0
  129. package/dist/module/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js.map +1 -0
  130. package/{build/main → dist/module}/redux-slices/rtk-query/cacheTags/streamTags.d.ts +2 -1
  131. package/dist/module/redux-slices/rtk-query/cacheTags/streamTags.d.ts.map +1 -0
  132. package/dist/module/redux-slices/rtk-query/cacheTags/streamTags.js +25 -0
  133. package/dist/module/redux-slices/rtk-query/cacheTags/streamTags.js.map +1 -0
  134. package/{build/main → dist/module}/redux-slices/rtk-query/cacheTags/tokenTags.d.ts +2 -1
  135. package/dist/module/redux-slices/rtk-query/cacheTags/tokenTags.d.ts.map +1 -0
  136. package/dist/module/redux-slices/rtk-query/cacheTags/tokenTags.js +25 -0
  137. package/dist/module/redux-slices/rtk-query/cacheTags/tokenTags.js.map +1 -0
  138. package/dist/module/redux-slices/rtk-query/createApiWithReactHooks.d.ts +7 -0
  139. package/dist/module/redux-slices/rtk-query/createApiWithReactHooks.d.ts.map +1 -0
  140. package/dist/module/redux-slices/rtk-query/createApiWithReactHooks.js +8 -0
  141. package/dist/module/redux-slices/rtk-query/createApiWithReactHooks.js.map +1 -0
  142. package/dist/module/redux-slices/rtk-query/createApiWithoutReactHooks.d.ts +7 -0
  143. package/dist/module/redux-slices/rtk-query/createApiWithoutReactHooks.d.ts.map +1 -0
  144. package/dist/module/redux-slices/rtk-query/createApiWithoutReactHooks.js +8 -0
  145. package/dist/module/redux-slices/rtk-query/createApiWithoutReactHooks.js.map +1 -0
  146. package/dist/module/redux-slices/rtk-query/mutations/addMutationEndpoints.d.ts +20 -0
  147. package/dist/module/redux-slices/rtk-query/mutations/addMutationEndpoints.d.ts.map +1 -0
  148. package/dist/module/redux-slices/rtk-query/mutations/addMutationEndpoints.js +405 -0
  149. package/dist/module/redux-slices/rtk-query/mutations/addMutationEndpoints.js.map +1 -0
  150. package/dist/module/redux-slices/rtk-query/mutations/mutations.d.ts +140 -0
  151. package/dist/module/redux-slices/rtk-query/mutations/mutations.d.ts.map +1 -0
  152. package/dist/module/redux-slices/rtk-query/mutations/mutations.js +2 -0
  153. package/dist/module/redux-slices/rtk-query/mutations/mutations.js.map +1 -0
  154. package/dist/module/redux-slices/rtk-query/queries/addQueryEndpoints.d.ts +16 -0
  155. package/dist/module/redux-slices/rtk-query/queries/addQueryEndpoints.d.ts.map +1 -0
  156. package/dist/module/redux-slices/rtk-query/queries/addQueryEndpoints.js +276 -0
  157. package/dist/module/redux-slices/rtk-query/queries/addQueryEndpoints.js.map +1 -0
  158. package/dist/module/redux-slices/rtk-query/queries/queries.d.ts +56 -0
  159. package/dist/module/redux-slices/rtk-query/queries/queries.d.ts.map +1 -0
  160. package/dist/module/redux-slices/rtk-query/queries/queries.js +2 -0
  161. package/dist/module/redux-slices/rtk-query/queries/queries.js.map +1 -0
  162. package/dist/module/redux-slices/rtk-query/sfApiSlice.d.ts +30 -0
  163. package/dist/module/redux-slices/rtk-query/sfApiSlice.d.ts.map +1 -0
  164. package/dist/module/redux-slices/rtk-query/sfApiSlice.js +51 -0
  165. package/dist/module/redux-slices/rtk-query/sfApiSlice.js.map +1 -0
  166. package/dist/module/redux-slices/transactions/createTransactionSlice.d.ts +12 -0
  167. package/dist/module/redux-slices/transactions/createTransactionSlice.d.ts.map +1 -0
  168. package/dist/module/redux-slices/transactions/createTransactionSlice.js +11 -0
  169. package/dist/module/redux-slices/transactions/createTransactionSlice.js.map +1 -0
  170. package/{build/main → dist/module}/redux-slices/transactions/registerNewTransaction.d.ts +1 -0
  171. package/dist/module/redux-slices/transactions/registerNewTransaction.d.ts.map +1 -0
  172. package/dist/module/redux-slices/transactions/registerNewTransaction.js +29 -0
  173. package/dist/module/redux-slices/transactions/registerNewTransaction.js.map +1 -0
  174. package/{build/main → dist/module}/redux-slices/transactions/trackTransaction.d.ts +1 -0
  175. package/dist/module/redux-slices/transactions/trackTransaction.d.ts.map +1 -0
  176. package/dist/module/redux-slices/transactions/trackTransaction.js +59 -0
  177. package/dist/module/redux-slices/transactions/trackTransaction.js.map +1 -0
  178. package/dist/module/redux-slices/transactions/trackedTransaction.d.ts +12 -0
  179. package/dist/module/redux-slices/transactions/trackedTransaction.d.ts.map +1 -0
  180. package/dist/module/redux-slices/transactions/trackedTransaction.js +8 -0
  181. package/dist/module/redux-slices/transactions/trackedTransaction.js.map +1 -0
  182. package/dist/module/sdkReduxConfig.d.ts +80 -0
  183. package/dist/module/sdkReduxConfig.d.ts.map +1 -0
  184. package/dist/module/sdkReduxConfig.js +76 -0
  185. package/dist/module/sdkReduxConfig.js.map +1 -0
  186. package/dist/module/sdkReduxInitialization.d.ts +64 -0
  187. package/dist/module/sdkReduxInitialization.d.ts.map +1 -0
  188. package/dist/module/sdkReduxInitialization.js +35 -0
  189. package/dist/module/sdkReduxInitialization.js.map +1 -0
  190. package/{build → dist}/module/utils.d.ts +1 -0
  191. package/dist/module/utils.d.ts.map +1 -0
  192. package/{build → dist}/module/utils.js +1 -1
  193. package/dist/module/utils.js.map +1 -0
  194. package/package.json +20 -20
  195. package/build/main/SuperfluidContext.d.ts +0 -31
  196. package/build/main/SuperfluidContext.js +0 -49
  197. package/build/main/createSdkReduxParts.d.ts +0 -23
  198. package/build/main/createSdkReduxParts.js +0 -28
  199. package/build/main/index.d.ts +0 -29
  200. package/build/main/index.js +0 -41
  201. package/build/main/redux-slices/argTypes.js +0 -3
  202. package/build/main/redux-slices/rtk-query/cacheTags/CacheTagTypes.js +0 -18
  203. package/build/main/redux-slices/rtk-query/cacheTags/eventTags.js +0 -12
  204. package/build/main/redux-slices/rtk-query/cacheTags/indexTags.js +0 -31
  205. package/build/main/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js +0 -21
  206. package/build/main/redux-slices/rtk-query/cacheTags/streamTags.js +0 -30
  207. package/build/main/redux-slices/rtk-query/cacheTags/tokenTags.js +0 -30
  208. package/build/main/redux-slices/rtk-query/mutations/approveIndexSubscription.d.ts +0 -19
  209. package/build/main/redux-slices/rtk-query/mutations/approveIndexSubscription.js +0 -45
  210. package/build/main/redux-slices/rtk-query/mutations/claimFromIndexSubscription.d.ts +0 -21
  211. package/build/main/redux-slices/rtk-query/mutations/claimFromIndexSubscription.js +0 -46
  212. package/build/main/redux-slices/rtk-query/mutations/createFlow.d.ts +0 -19
  213. package/build/main/redux-slices/rtk-query/mutations/createFlow.js +0 -50
  214. package/build/main/redux-slices/rtk-query/mutations/createIndex.d.ts +0 -17
  215. package/build/main/redux-slices/rtk-query/mutations/createIndex.js +0 -50
  216. package/build/main/redux-slices/rtk-query/mutations/deleteFlow.d.ts +0 -17
  217. package/build/main/redux-slices/rtk-query/mutations/deleteFlow.js +0 -48
  218. package/build/main/redux-slices/rtk-query/mutations/deleteIndexSubscription.d.ts +0 -21
  219. package/build/main/redux-slices/rtk-query/mutations/deleteIndexSubscription.js +0 -46
  220. package/build/main/redux-slices/rtk-query/mutations/distributeToIndex.d.ts +0 -19
  221. package/build/main/redux-slices/rtk-query/mutations/distributeToIndex.js +0 -48
  222. package/build/main/redux-slices/rtk-query/mutations/downgradeFromSuperToken.d.ts +0 -15
  223. package/build/main/redux-slices/rtk-query/mutations/downgradeFromSuperToken.js +0 -46
  224. package/build/main/redux-slices/rtk-query/mutations/monitorForEventsToInvalidateCache.d.ts +0 -16
  225. package/build/main/redux-slices/rtk-query/mutations/monitorForEventsToInvalidateCache.js +0 -40
  226. package/build/main/redux-slices/rtk-query/mutations/revokeIndexSubscription.d.ts +0 -19
  227. package/build/main/redux-slices/rtk-query/mutations/revokeIndexSubscription.js +0 -45
  228. package/build/main/redux-slices/rtk-query/mutations/transferSuperToken.d.ts +0 -17
  229. package/build/main/redux-slices/rtk-query/mutations/transferSuperToken.js +0 -47
  230. package/build/main/redux-slices/rtk-query/mutations/updateFlow.d.ts +0 -19
  231. package/build/main/redux-slices/rtk-query/mutations/updateFlow.js +0 -49
  232. package/build/main/redux-slices/rtk-query/mutations/updateIndexSubscriptionUnits.d.ts +0 -21
  233. package/build/main/redux-slices/rtk-query/mutations/updateIndexSubscriptionUnits.js +0 -46
  234. package/build/main/redux-slices/rtk-query/mutations/upgradeToSuperToken.d.ts +0 -16
  235. package/build/main/redux-slices/rtk-query/mutations/upgradeToSuperToken.js +0 -65
  236. package/build/main/redux-slices/rtk-query/queries/getAllowanceForUpgradeToSuperToken.d.ts +0 -17
  237. package/build/main/redux-slices/rtk-query/queries/getAllowanceForUpgradeToSuperToken.js +0 -43
  238. package/build/main/redux-slices/rtk-query/queries/getIndex.d.ts +0 -17
  239. package/build/main/redux-slices/rtk-query/queries/getIndex.js +0 -43
  240. package/build/main/redux-slices/rtk-query/queries/getIndexSubscription.d.ts +0 -17
  241. package/build/main/redux-slices/rtk-query/queries/getIndexSubscription.js +0 -44
  242. package/build/main/redux-slices/rtk-query/queries/getRealtimeBalance.d.ts +0 -22
  243. package/build/main/redux-slices/rtk-query/queries/getRealtimeBalance.js +0 -75
  244. package/build/main/redux-slices/rtk-query/queries/listEvents.d.ts +0 -15
  245. package/build/main/redux-slices/rtk-query/queries/listEvents.js +0 -59
  246. package/build/main/redux-slices/rtk-query/queries/listIndexSubscriptions.d.ts +0 -15
  247. package/build/main/redux-slices/rtk-query/queries/listIndexSubscriptions.js +0 -41
  248. package/build/main/redux-slices/rtk-query/queries/listIndexes.d.ts +0 -16
  249. package/build/main/redux-slices/rtk-query/queries/listIndexes.js +0 -42
  250. package/build/main/redux-slices/rtk-query/queries/listStreams.d.ts +0 -16
  251. package/build/main/redux-slices/rtk-query/queries/listStreams.js +0 -41
  252. package/build/main/redux-slices/rtk-query/queries/listSuperTokens.d.ts +0 -14
  253. package/build/main/redux-slices/rtk-query/queries/listSuperTokens.js +0 -39
  254. package/build/main/redux-slices/rtk-query/queries/listUserInteractedSuperTokens.d.ts +0 -15
  255. package/build/main/redux-slices/rtk-query/queries/listUserInteractedSuperTokens.js +0 -56
  256. package/build/main/redux-slices/rtk-query/rtkQuerySlice.d.ts +0 -3
  257. package/build/main/redux-slices/rtk-query/rtkQuerySlice.js +0 -53
  258. package/build/main/redux-slices/rtk-query/rtkQuerySliceBaseQuery.js +0 -14
  259. package/build/main/redux-slices/transactions/registerNewTransaction.js +0 -33
  260. package/build/main/redux-slices/transactions/trackTransaction.js +0 -66
  261. package/build/main/redux-slices/transactions/transactionSlice.d.ts +0 -36
  262. package/build/main/redux-slices/transactions/transactionSlice.js +0 -19
  263. package/build/module/SuperfluidContext.d.ts +0 -31
  264. package/build/module/SuperfluidContext.js +0 -46
  265. package/build/module/createSdkReduxParts.d.ts +0 -23
  266. package/build/module/createSdkReduxParts.js +0 -23
  267. package/build/module/index.d.ts +0 -29
  268. package/build/module/index.js +0 -29
  269. package/build/module/redux-slices/argTypes.js +0 -2
  270. package/build/module/redux-slices/rtk-query/cacheTags/CacheTagTypes.js +0 -14
  271. package/build/module/redux-slices/rtk-query/cacheTags/eventTags.js +0 -8
  272. package/build/module/redux-slices/rtk-query/cacheTags/indexTags.js +0 -26
  273. package/build/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.js +0 -144
  274. package/build/module/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js +0 -17
  275. package/build/module/redux-slices/rtk-query/cacheTags/streamTags.js +0 -25
  276. package/build/module/redux-slices/rtk-query/cacheTags/tokenTags.js +0 -25
  277. package/build/module/redux-slices/rtk-query/mutations/approveIndexSubscription.d.ts +0 -19
  278. package/build/module/redux-slices/rtk-query/mutations/approveIndexSubscription.js +0 -43
  279. package/build/module/redux-slices/rtk-query/mutations/claimFromIndexSubscription.d.ts +0 -21
  280. package/build/module/redux-slices/rtk-query/mutations/claimFromIndexSubscription.js +0 -44
  281. package/build/module/redux-slices/rtk-query/mutations/createFlow.d.ts +0 -19
  282. package/build/module/redux-slices/rtk-query/mutations/createFlow.js +0 -48
  283. package/build/module/redux-slices/rtk-query/mutations/createIndex.d.ts +0 -17
  284. package/build/module/redux-slices/rtk-query/mutations/createIndex.js +0 -48
  285. package/build/module/redux-slices/rtk-query/mutations/deleteFlow.d.ts +0 -17
  286. package/build/module/redux-slices/rtk-query/mutations/deleteFlow.js +0 -46
  287. package/build/module/redux-slices/rtk-query/mutations/deleteIndexSubscription.d.ts +0 -21
  288. package/build/module/redux-slices/rtk-query/mutations/deleteIndexSubscription.js +0 -44
  289. package/build/module/redux-slices/rtk-query/mutations/distributeToIndex.d.ts +0 -19
  290. package/build/module/redux-slices/rtk-query/mutations/distributeToIndex.js +0 -46
  291. package/build/module/redux-slices/rtk-query/mutations/downgradeFromSuperToken.d.ts +0 -15
  292. package/build/module/redux-slices/rtk-query/mutations/downgradeFromSuperToken.js +0 -44
  293. package/build/module/redux-slices/rtk-query/mutations/monitorForEventsToInvalidateCache.d.ts +0 -16
  294. package/build/module/redux-slices/rtk-query/mutations/monitorForEventsToInvalidateCache.js +0 -38
  295. package/build/module/redux-slices/rtk-query/mutations/revokeIndexSubscription.d.ts +0 -19
  296. package/build/module/redux-slices/rtk-query/mutations/revokeIndexSubscription.js +0 -43
  297. package/build/module/redux-slices/rtk-query/mutations/transferSuperToken.d.ts +0 -17
  298. package/build/module/redux-slices/rtk-query/mutations/transferSuperToken.js +0 -45
  299. package/build/module/redux-slices/rtk-query/mutations/updateFlow.d.ts +0 -19
  300. package/build/module/redux-slices/rtk-query/mutations/updateFlow.js +0 -47
  301. package/build/module/redux-slices/rtk-query/mutations/updateIndexSubscriptionUnits.d.ts +0 -21
  302. package/build/module/redux-slices/rtk-query/mutations/updateIndexSubscriptionUnits.js +0 -44
  303. package/build/module/redux-slices/rtk-query/mutations/upgradeToSuperToken.d.ts +0 -16
  304. package/build/module/redux-slices/rtk-query/mutations/upgradeToSuperToken.js +0 -63
  305. package/build/module/redux-slices/rtk-query/queries/getAllowanceForUpgradeToSuperToken.d.ts +0 -17
  306. package/build/module/redux-slices/rtk-query/queries/getAllowanceForUpgradeToSuperToken.js +0 -41
  307. package/build/module/redux-slices/rtk-query/queries/getIndex.d.ts +0 -17
  308. package/build/module/redux-slices/rtk-query/queries/getIndex.js +0 -41
  309. package/build/module/redux-slices/rtk-query/queries/getIndexSubscription.d.ts +0 -17
  310. package/build/module/redux-slices/rtk-query/queries/getIndexSubscription.js +0 -42
  311. package/build/module/redux-slices/rtk-query/queries/getRealtimeBalance.d.ts +0 -22
  312. package/build/module/redux-slices/rtk-query/queries/getRealtimeBalance.js +0 -73
  313. package/build/module/redux-slices/rtk-query/queries/listEvents.d.ts +0 -15
  314. package/build/module/redux-slices/rtk-query/queries/listEvents.js +0 -57
  315. package/build/module/redux-slices/rtk-query/queries/listIndexSubscriptions.d.ts +0 -15
  316. package/build/module/redux-slices/rtk-query/queries/listIndexSubscriptions.js +0 -39
  317. package/build/module/redux-slices/rtk-query/queries/listIndexes.d.ts +0 -16
  318. package/build/module/redux-slices/rtk-query/queries/listIndexes.js +0 -40
  319. package/build/module/redux-slices/rtk-query/queries/listStreams.d.ts +0 -16
  320. package/build/module/redux-slices/rtk-query/queries/listStreams.js +0 -39
  321. package/build/module/redux-slices/rtk-query/queries/listSuperTokens.d.ts +0 -14
  322. package/build/module/redux-slices/rtk-query/queries/listSuperTokens.js +0 -37
  323. package/build/module/redux-slices/rtk-query/queries/listUserInteractedSuperTokens.d.ts +0 -15
  324. package/build/module/redux-slices/rtk-query/queries/listUserInteractedSuperTokens.js +0 -54
  325. package/build/module/redux-slices/rtk-query/rtkQuerySlice.d.ts +0 -3
  326. package/build/module/redux-slices/rtk-query/rtkQuerySlice.js +0 -47
  327. package/build/module/redux-slices/rtk-query/rtkQuerySliceBaseQuery.js +0 -10
  328. package/build/module/redux-slices/transactions/registerNewTransaction.js +0 -29
  329. package/build/module/redux-slices/transactions/trackTransaction.js +0 -62
  330. package/build/module/redux-slices/transactions/transactionSlice.d.ts +0 -36
  331. package/build/module/redux-slices/transactions/transactionSlice.js +0 -19
@@ -1,21 +0,0 @@
1
- import { NothingString, SuperTokenMutationArg, TransactionInfo } from '../../argTypes';
2
- import { MutationMeta } from '../rtkQuerySliceBaseQuery';
3
- /**
4
- * Updates the `units` allocated to a Subscription.
5
- * @param indexId The id of the index.
6
- * @param subscriberAddress The subscriber address whose units you want to update.
7
- * @param unitsNumber The amount of units you want to update to.
8
- * @param userDataBytes Extra user data provided.
9
- */
10
- export declare type UpdateIndexSubscriptionUnitsArg = SuperTokenMutationArg & {
11
- subscriberAddress: string;
12
- indexId: string;
13
- unitsNumber: string;
14
- userDataBytes: string | NothingString;
15
- };
16
- export declare const
17
- /**
18
- * Documentation: {@link UpdateIndexSubscriptionUnitsArg}
19
- * @category React Hooks
20
- */
21
- useUpdateIndexSubscriptionUnitsMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<UpdateIndexSubscriptionUnitsArg, import("@reduxjs/toolkit/dist/query").BaseQueryFn<import("../../argTypes").QueryArg | SuperTokenMutationArg, TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, TransactionInfo, "sfApi">>;
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useUpdateIndexSubscriptionUnitsMutation = void 0;
4
- const createSdkReduxParts_1 = require("../../../createSdkReduxParts");
5
- const utils_1 = require("../../../utils");
6
- const registerNewTransaction_1 = require("../../transactions/registerNewTransaction");
7
- const monitorAddressForNextEventToInvalidateCache_1 = require("../cacheTags/monitorAddressForNextEventToInvalidateCache");
8
- const rtkQuerySlice_1 = require("../rtkQuerySlice");
9
- const apiSlice = rtkQuerySlice_1.rtkQuerySlice.injectEndpoints({
10
- endpoints: (builder) => ({
11
- updateIndexSubscriptionUnits: builder.mutation({
12
- queryFn: async (arg, queryApi) => {
13
- const [framework, signer] = await (0, createSdkReduxParts_1.getSfContext)().getFrameworkAndSigner(arg.chainId);
14
- const superToken = await framework.loadSuperToken(arg.superTokenAddress);
15
- const transactionResponse = await superToken
16
- .updateSubscriptionUnits({
17
- indexId: arg.indexId,
18
- subscriber: arg.subscriberAddress,
19
- units: arg.unitsNumber,
20
- userData: arg.userDataBytes,
21
- })
22
- .exec(signer);
23
- await (0, registerNewTransaction_1.registerNewTransaction)(arg.chainId, transactionResponse.hash, !!arg.waitForConfirmation, queryApi.dispatch);
24
- return {
25
- data: (0, utils_1.typeGuard)({
26
- hash: transactionResponse.hash,
27
- chainId: arg.chainId,
28
- }),
29
- meta: (0, utils_1.typeGuard)({
30
- monitorAddress: arg.subscriberAddress,
31
- }),
32
- };
33
- },
34
- onQueryStarted: async (_arg, { dispatch, queryFulfilled }) => {
35
- queryFulfilled.then(async (queryResult) => (0, monitorAddressForNextEventToInvalidateCache_1.monitorAddressForNextEventToInvalidateCache)(queryResult.meta.monitorAddress, queryResult.data, dispatch));
36
- },
37
- }),
38
- }),
39
- overrideExisting: false,
40
- });
41
- /**
42
- * Documentation: {@link UpdateIndexSubscriptionUnitsArg}
43
- * @category React Hooks
44
- */
45
- exports.useUpdateIndexSubscriptionUnitsMutation = apiSlice.useUpdateIndexSubscriptionUnitsMutation;
46
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBkYXRlSW5kZXhTdWJzY3JpcHRpb25Vbml0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9yZWR1eC1zbGljZXMvcnRrLXF1ZXJ5L211dGF0aW9ucy91cGRhdGVJbmRleFN1YnNjcmlwdGlvblVuaXRzLnRzIl0sIm5hbWVzIjpbXSwib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yxRQUFRLENBQ3BCLENBQUM7Z0JBRUYsT0FBTztvQkFDSCxJQUFJLEVBQUUsSUFBQSxpQkFBUyxFQUFrQjt3QkFDN0IsSUFBSSxFQUFFLG1CQUFtQixDQUFDLElBQUk7d0JBQzlCLE9BQU8sRUFBRSxHQUFHLENBQUMsT0FBTztxQkFDdkIsQ0FBQztvQkFDRixJQUFJLEVBQUUsSUFBQSxpQkFBUyxFQUFlO3dCQUMxQixjQUFjLEVBQUUsR0FBRyxDQUFDLGlCQUFpQjtxQkFDeEMsQ0FBQztpQkFDTCxDQUFDO1lBQ04sQ0FBQztZQUNELGNBQWMsRUFBRSxLQUFLLEVBQUUsSUFBSSxFQUFFLEVBQUMsUUFBUSxFQUFFLGNBQWMsRUFBQyxFQUFFLEVBQUU7Z0JBQ3ZELGNBQWMsQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFLFdBQVcsRUFBRSxFQUFFLENBQ3RDLElBQUEseUZBQTJDLEVBQ3ZDLFdBQVcsQ0FBQyxJQUFLLENBQUMsY0FBYyxFQUNoQyxXQUFXLENBQUMsSUFBSSxFQUNoQixRQUFRLENBQ1gsQ0FDSixDQUFDO1lBQ04sQ0FBQztTQUNKLENBQUM7S0FDTCxDQUFDO0lBQ0YsZ0JBQWdCLEVBQUUsS0FBSztDQUMxQixDQUFDLENBQUM7QUFHQzs7O0dBR0c7QUFDSCwrQ0FBdUMsR0FDdkMsUUFBUSx5Q0FBQyJ9
@@ -1,16 +0,0 @@
1
- import { SuperTokenMutationArg, TransactionInfo } from '../../argTypes';
2
- import { MutationMeta } from '../rtkQuerySliceBaseQuery';
3
- /**
4
- * Upgrade `amount` SuperToken's.
5
- * NOTE: Initiates request for allowance if necessary.
6
- * @param amountWei The amount to be upgraded.
7
- */
8
- export declare type UpgradeToSuperToken = SuperTokenMutationArg & {
9
- amountWei: string;
10
- };
11
- export declare const
12
- /**
13
- * Documentation: {@link UpgradeToSuperToken}
14
- * @category React Hooks
15
- */
16
- useUpgradeToSuperTokenMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<UpgradeToSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<import("../../argTypes").QueryArg | SuperTokenMutationArg, TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, TransactionInfo, "sfApi">>;
@@ -1,65 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useUpgradeToSuperTokenMutation = void 0;
4
- const ethers_1 = require("ethers");
5
- const createSdkReduxParts_1 = require("../../../createSdkReduxParts");
6
- const utils_1 = require("../../../utils");
7
- const registerNewTransaction_1 = require("../../transactions/registerNewTransaction");
8
- const monitorAddressForNextEventToInvalidateCache_1 = require("../cacheTags/monitorAddressForNextEventToInvalidateCache");
9
- const rtkQuerySlice_1 = require("../rtkQuerySlice");
10
- const apiSlice = rtkQuerySlice_1.rtkQuerySlice.injectEndpoints({
11
- endpoints: (builder) => ({
12
- upgradeToSuperToken: builder.mutation({
13
- queryFn: async (arg, queryApi) => {
14
- const [framework, signer] = await (0, createSdkReduxParts_1.getSfContext)().getFrameworkAndSigner(arg.chainId);
15
- const [superToken, signerAddress] = await Promise.all([
16
- framework.loadSuperToken(arg.superTokenAddress),
17
- signer.getAddress(),
18
- ]);
19
- const underlyingTokenAllowance = await superToken.underlyingToken
20
- .allowance({
21
- providerOrSigner: framework.settings.provider,
22
- owner: signerAddress,
23
- spender: superToken.address,
24
- })
25
- .then((x) => ethers_1.ethers.BigNumber.from(x));
26
- const isAllowanceEnough = underlyingTokenAllowance.gte(ethers_1.ethers.BigNumber.from(arg.amountWei));
27
- if (!isAllowanceEnough) {
28
- const approveAllowanceTransactionResponse = await superToken.underlyingToken
29
- .approve({
30
- amount: arg.amountWei,
31
- receiver: superToken.address,
32
- })
33
- .exec(signer);
34
- // NOTE: Always wait for transaction confirmation here.
35
- await (0, registerNewTransaction_1.registerNewTransaction)(arg.chainId, approveAllowanceTransactionResponse.hash, true, queryApi.dispatch);
36
- }
37
- const upgradeToSuperTokenTransactionResponse = await superToken
38
- .upgrade({
39
- amount: arg.amountWei,
40
- })
41
- .exec(signer);
42
- await (0, registerNewTransaction_1.registerNewTransaction)(arg.chainId, upgradeToSuperTokenTransactionResponse.hash, !!arg.waitForConfirmation, queryApi.dispatch);
43
- return {
44
- data: (0, utils_1.typeGuard)({
45
- hash: upgradeToSuperTokenTransactionResponse.hash,
46
- chainId: arg.chainId,
47
- }),
48
- meta: (0, utils_1.typeGuard)({
49
- monitorAddress: signerAddress,
50
- }),
51
- };
52
- },
53
- onQueryStarted: async (_arg, { dispatch, queryFulfilled }) => {
54
- queryFulfilled.then(async (queryResult) => (0, monitorAddressForNextEventToInvalidateCache_1.monitorAddressForNextEventToInvalidateCache)(queryResult.meta.monitorAddress, queryResult.data, dispatch));
55
- },
56
- }),
57
- }),
58
- overrideExisting: false,
59
- });
60
- /**
61
- * Documentation: {@link UpgradeToSuperToken}
62
- * @category React Hooks
63
- */
64
- exports.useUpgradeToSuperTokenMutation = apiSlice.useUpgradeToSuperTokenMutation;
65
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBncmFkZVRvU3VwZXJUb2tlbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9yZWR1eC1zbGljZXMvcnRrLXF1ZXJ5L211dGF0aW9ucy91cGdyYWRlVG9TdXBlclRva2VuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLG1DQUE4QjtBQUU5QixzRUFBMEQ7QUFDMUQsMENBQXlDO0FBRXpDLHNGQUFpRjtBQUNqRiwwSEFBcUg7QUFDckgsb0RBQStDO0FBWS9DLE1BQU0sUUFBUSxHQUFHLDZCQUFhLENBQUMsZUFBZSxDQ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FBYyxFQUFFLEtBQUssRUFBRSxJQUFJLEVBQUUsRUFBQyxRQUFRLEVBQUUsY0FBYyxFQUFDLEVBQUUsRUFBRTtnQkFDdkQsY0FBYyxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUUsV0FBVyxFQUFFLEVBQUUsQ0FDdEMsSUFBQSx5RkFBMkMsRUFDdkMsV0FBVyxDQUFDLElBQUssQ0FBQyxjQUFjLEVBQ2hDLFdBQVcsQ0FBQyxJQUFJLEVBQ2hCLFFBQVEsQ0FDWCxDQUNKLENBQUM7WUFDTixDQUFDO1NBQ0osQ0FBQztLQUNMLENBQUM7SUFDRixnQkFBZ0IsRUFBRSxLQUFLO0NBQzFCLENBQUMsQ0FBQztBQUdDOzs7R0FHRztBQUNILHNDQUE4QixHQUM5QixRQUFRLGdDQUFDIn0=
@@ -1,17 +0,0 @@
1
- import { QueryArg } from '../../argTypes';
2
- /**
3
- *
4
- */
5
- export declare type GetAllowanceForUpgradeToSuperTokenArg = QueryArg & {
6
- accountAddress: string;
7
- superTokenAddress: string;
8
- };
9
- export declare const
10
- /**
11
- * @category React Hooks
12
- */
13
- useGetAllowanceForUpgradeToSuperTokenQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<GetAllowanceForUpgradeToSuperTokenArg, import("@reduxjs/toolkit/dist/query").BaseQueryFn<QueryArg | import("../../argTypes").SuperTokenMutationArg, import("../../argTypes").TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, import("../rtkQuerySliceBaseQuery").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, string, string>>,
14
- /**
15
- * @category React Hooks
16
- */
17
- useLazyGetAllowanceForUpgradeToSuperTokenQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<GetAllowanceForUpgradeToSuperTokenArg, import("@reduxjs/toolkit/dist/query").BaseQueryFn<QueryArg | import("../../argTypes").SuperTokenMutationArg, import("../../argTypes").TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, import("../rtkQuerySliceBaseQuery").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, string, string>>;
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useLazyGetAllowanceForUpgradeToSuperTokenQuery = exports.useGetAllowanceForUpgradeToSuperTokenQuery = void 0;
4
- const createSdkReduxParts_1 = require("../../../createSdkReduxParts");
5
- const tokenTags_1 = require("../cacheTags/tokenTags");
6
- const rtkQuerySlice_1 = require("../rtkQuerySlice");
7
- const apiSlice = rtkQuerySlice_1.rtkQuerySlice.injectEndpoints({
8
- endpoints: (builder) => ({
9
- getAllowanceForUpgradeToSuperToken: builder.query({
10
- keepUnusedDataFor: 0,
11
- providesTags: (_result, _error, arg) => [
12
- (0, tokenTags_1.getMostSpecificTokenTag)({
13
- chainId: arg.chainId,
14
- address1: arg.superTokenAddress,
15
- address2: arg.accountAddress,
16
- address3: undefined,
17
- }),
18
- ],
19
- queryFn: async (arg) => {
20
- const framework = await (0, createSdkReduxParts_1.getSfContext)().getFramework(arg.chainId);
21
- const superToken = await framework.loadSuperToken(arg.superTokenAddress);
22
- const underlyingTokenAllowance = await superToken.underlyingToken.allowance({
23
- providerOrSigner: framework.settings.provider,
24
- owner: arg.accountAddress,
25
- spender: superToken.address,
26
- });
27
- return {
28
- data: underlyingTokenAllowance,
29
- };
30
- },
31
- }),
32
- }),
33
- overrideExisting: false,
34
- });
35
- /**
36
- * @category React Hooks
37
- */
38
- exports.useGetAllowanceForUpgradeToSuperTokenQuery = apiSlice.useGetAllowanceForUpgradeToSuperTokenQuery,
39
- /**
40
- * @category React Hooks
41
- */
42
- exports.useLazyGetAllowanceForUpgradeToSuperTokenQuery = apiSlice.useLazyGetAllowanceForUpgradeToSuperTokenQuery;
43
- //# sourceMappingURL=data:application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Q0FBQyxjQUFjLENBQzdDLEdBQUcsQ0FBQyxpQkFBaUIsQ0FDeEIsQ0FBQztnQkFFRixNQUFNLHdCQUF3QixHQUMxQixNQUFNLFVBQVUsQ0FBQyxlQUFlLENBQUMsU0FBUyxDQUFDO29CQUN2QyxnQkFBZ0IsRUFBRSxTQUFTLENBQUMsUUFBUSxDQUFDLFFBQVE7b0JBQzdDLEtBQUssRUFBRSxHQUFHLENBQUMsY0FBYztvQkFDekIsT0FBTyxFQUFFLFVBQVUsQ0FBQyxPQUFPO2lCQUM5QixDQUFDLENBQUM7Z0JBRVAsT0FBTztvQkFDSCxJQUFJLEVBQUUsd0JBQXdCO2lCQUNqQyxDQUFDO1lBQ04sQ0FBQztTQUNKLENBQUM7S0FDTCxDQUFDO0lBQ0YsZ0JBQWdCLEVBQUUsS0FBSztDQUMxQixDQUFDLENBQUM7QUFHQzs7R0FFRztBQUNILGtEQUEwQyxHQUsxQyxRQUFRO0FBSlI7O0dBRUc7QUFDSCxzREFBOEMsR0FDOUMsUUFBUSxnREFBQyJ9
@@ -1,17 +0,0 @@
1
- import { IWeb3Index } from '@superfluid-finance/sdk-core';
2
- import { QueryArg } from '../../argTypes';
3
- export declare type GetIndexArg = QueryArg & {
4
- superTokenAddress: string;
5
- publisherAddress: string;
6
- indexId: string;
7
- subscriberAddress: string;
8
- };
9
- export declare const
10
- /**
11
- * @category React Hooks
12
- */
13
- useGetIndexSubscriptionQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<GetIndexArg, import("@reduxjs/toolkit/dist/query").BaseQueryFn<QueryArg | import("../../argTypes").SuperTokenMutationArg, import("../../argTypes").TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, import("../rtkQuerySliceBaseQuery").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, IWeb3Index, string>>,
14
- /**
15
- * @category React Hooks
16
- */
17
- useLazyGetIndexSubscriptionQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<GetIndexArg, import("@reduxjs/toolkit/dist/query").BaseQueryFn<QueryArg | import("../../argTypes").SuperTokenMutationArg, import("../../argTypes").TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, import("../rtkQuerySliceBaseQuery").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, IWeb3Index, string>>;
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useLazyGetIndexSubscriptionQuery = exports.useGetIndexSubscriptionQuery = void 0;
4
- const createSdkReduxParts_1 = require("../../../createSdkReduxParts");
5
- const indexTags_1 = require("../cacheTags/indexTags");
6
- const rtkQuerySlice_1 = require("../rtkQuerySlice");
7
- const apiSlice = rtkQuerySlice_1.rtkQuerySlice.injectEndpoints({
8
- endpoints: (builder) => ({
9
- getIndexSubscription: builder.query({
10
- providesTags: (_result, _error, arg) => [
11
- (0, indexTags_1.getMostSpecificIndexTag)({
12
- chainId: arg.chainId,
13
- address1: arg.superTokenAddress,
14
- address2: arg.publisherAddress,
15
- address3: arg.subscriberAddress,
16
- indexId: arg.indexId,
17
- }),
18
- ],
19
- queryFn: async (arg) => {
20
- const framework = await (0, createSdkReduxParts_1.getSfContext)().getFramework(arg.chainId);
21
- const superToken = await framework.loadSuperToken(arg.superTokenAddress);
22
- const index = await superToken.getIndex({
23
- indexId: arg.indexId,
24
- publisher: arg.publisherAddress,
25
- providerOrSigner: framework.settings.provider,
26
- });
27
- return {
28
- data: index,
29
- };
30
- },
31
- }),
32
- }),
33
- overrideExisting: false,
34
- });
35
- /**
36
- * @category React Hooks
37
- */
38
- exports.useGetIndexSubscriptionQuery = apiSlice.useGetIndexSubscriptionQuery,
39
- /**
40
- * @category React Hooks
41
- */
42
- exports.useLazyGetIndexSubscriptionQuery = apiSlice.useLazyGetIndexSubsc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sR0FBRyxDQUFDLGlCQUFpQixDQUN4QixDQUFDO2dCQUNGLE1BQU0sS0FBSyxHQUFHLE1BQU0sVUFBVSxDQUFDLFFBQVEsQ0FBQztvQkFDcEMsT0FBTyxFQUFFLEdBQUcsQ0FBQyxPQUFPO29CQUNwQixTQUFTLEVBQUUsR0FBRyxDQUFDLGdCQUFnQjtvQkFDL0IsZ0JBQWdCLEVBQUUsU0FBUyxDQUFDLFFBQVEsQ0FBQyxRQUFRO2lCQUNoRCxDQUFDLENBQUM7Z0JBQ0gsT0FBTztvQkFDSCxJQUFJLEVBQUUsS0FBSztpQkFDZCxDQUFDO1lBQ04sQ0FBQztTQUNKLENBQUM7S0FDTCxDQUFDO0lBQ0YsZ0JBQWdCLEVBQUUsS0FBSztDQUMxQixDQUFDLENBQUM7QUFHQzs7R0FFRztBQUNILG9DQUE0QixHQUs1QixRQUFRO0FBSlI7O0dBRUc7QUFDSCx3Q0FBZ0MsR0FDaEMsUUFBUSxrQ0FBQyJ9
@@ -1,17 +0,0 @@
1
- import { IWeb3Subscription } from '@superfluid-finance/sdk-core';
2
- import { QueryArg } from '../../argTypes';
3
- export declare type GetIndexSubscriptionArg = QueryArg & {
4
- superTokenAddress: string;
5
- publisherAddress: string;
6
- indexId: string;
7
- subscriberAddress: string;
8
- };
9
- export declare const
10
- /**
11
- * @category React Hooks
12
- */
13
- useGetIndexSubscriptionQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<GetIndexSubscriptionArg, import("@reduxjs/toolkit/dist/query").BaseQueryFn<QueryArg | import("../../argTypes").SuperTokenMutationArg, import("../../argTypes").TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, import("../rtkQuerySliceBaseQuery").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, IWeb3Subscription, string>>,
14
- /**
15
- * @category React Hooks
16
- */
17
- useLazyGetIndexSubscriptionQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<GetIndexSubscriptionArg, import("@reduxjs/toolkit/dist/query").BaseQueryFn<QueryArg | import("../../argTypes").SuperTokenMutationArg, import("../../argTypes").TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, import("../rtkQuerySliceBaseQuery").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, IWeb3Subscription, string>>;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useLazyGetIndexSubscriptionQuery = exports.useGetIndexSubscriptionQuery = void 0;
4
- const createSdkReduxParts_1 = require("../../../createSdkReduxParts");
5
- const indexTags_1 = require("../cacheTags/indexTags");
6
- const rtkQuerySlice_1 = require("../rtkQuerySlice");
7
- const apiSlice = rtkQuerySlice_1.rtkQuerySlice.injectEndpoints({
8
- endpoints: (builder) => ({
9
- getIndexSubscription: builder.query({
10
- providesTags: (_result, _error, arg) => [
11
- (0, indexTags_1.getMostSpecificIndexTag)({
12
- chainId: arg.chainId,
13
- address1: arg.superTokenAddress,
14
- address2: arg.publisherAddress,
15
- address3: arg.subscriberAddress,
16
- indexId: arg.indexId,
17
- }),
18
- ],
19
- queryFn: async (arg) => {
20
- const framework = await (0, createSdkReduxParts_1.getSfContext)().getFramework(arg.chainId);
21
- const superToken = await framework.loadSuperToken(arg.superTokenAddress);
22
- const indexSubscription = await superToken.getSubscription({
23
- indexId: arg.indexId,
24
- publisher: arg.publisherAddress,
25
- subscriber: arg.subscriberAddress,
26
- providerOrSigner: framework.settings.provider,
27
- });
28
- return {
29
- data: indexSubscription,
30
- };
31
- },
32
- }),
33
- }),
34
- overrideExisting: false,
35
- });
36
- /**
37
- * @category React Hooks
38
- */
39
- exports.useGetIndexSubscriptionQuery = apiSlice.useGetIndexSubscriptionQuery,
40
- /**
41
- * @category React Hooks
42
- */
43
- exports.useLazyGetIndexSubscri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FBTSxVQUFVLEdBQUcsTUFBTSxTQUFTLENBQUMsY0FBYyxDQUM3QyxHQUFHLENBQUMsaUJBQWlCLENBQ3hCLENBQUM7Z0JBQ0YsTUFBTSxpQkFBaUIsR0FBRyxNQUFNLFVBQVUsQ0FBQyxlQUFlLENBQUM7b0JBQ3ZELE9BQU8sRUFBRSxHQUFHLENBQUMsT0FBTztvQkFDcEIsU0FBUyxFQUFFLEdBQUcsQ0FBQyxnQkFBZ0I7b0JBQy9CLFVBQVUsRUFBRSxHQUFHLENBQUMsaUJBQWlCO29CQUNqQyxnQkFBZ0IsRUFBRSxTQUFTLENBQUMsUUFBUSxDQUFDLFFBQVE7aUJBQ2hELENBQUMsQ0FBQztnQkFDSCxPQUFPO29CQUNILElBQUksRUFBRSxpQkFBaUI7aUJBQzFCLENBQUM7WUFDTixDQUFDO1NBQ0osQ0FBQztLQUNMLENBQUM7SUFDRixnQkFBZ0IsRUFBRSxLQUFLO0NBQzFCLENBQUMsQ0FBQztBQUdDOztHQUVHO0FBQ0gsb0NBQTRCLEdBSzVCLFFBQVE7QUFKUjs7R0FFRztBQUNILHdDQUFnQyxHQUNoQyxRQUFRLGtDQUFDIn0=
@@ -1,22 +0,0 @@
1
- import { NothingNumber, QueryArg } from '../../argTypes';
2
- export declare type GetRealtimeBalanceArg = QueryArg & {
3
- superTokenAddress: string;
4
- accountAddress: string;
5
- estimationTimestamp: number | NothingNumber;
6
- };
7
- export declare type GetRealtimeBalanceResult = {
8
- availableBalanceWei: string;
9
- netFlowRateWei: string;
10
- depositWei: string;
11
- owedDepositWei: string;
12
- timestamp: number;
13
- };
14
- export declare const
15
- /**
16
- * @category React Hooks
17
- */
18
- useGetRealtimeBalanceQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<GetRealtimeBalanceArg, import("@reduxjs/toolkit/dist/query").BaseQueryFn<QueryArg | import("../../argTypes").SuperTokenMutationArg, import("../../argTypes").TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, import("../rtkQuerySliceBaseQuery").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, GetRealtimeBalanceResult, string>>,
19
- /**
20
- * @category React Hooks
21
- */
22
- useLazyGetRealtimeBalanceQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<GetRealtimeBalanceArg, import("@reduxjs/toolkit/dist/query").BaseQueryFn<QueryArg | import("../../argTypes").SuperTokenMutationArg, import("../../argTypes").TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, import("../rtkQuerySliceBaseQuery").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, GetRealtimeBalanceResult, string>>;
@@ -1,75 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useLazyGetRealtimeBalanceQuery = exports.useGetRealtimeBalanceQuery = void 0;
4
- const createSdkReduxParts_1 = require("../../../createSdkReduxParts");
5
- const utils_1 = require("../../../utils");
6
- const indexTags_1 = require("../cacheTags/indexTags");
7
- const streamTags_1 = require("../cacheTags/streamTags");
8
- const tokenTags_1 = require("../cacheTags/tokenTags");
9
- const rtkQuerySlice_1 = require("../rtkQuerySlice");
10
- // TODO(KK): Clean up the timestamp flooring here...
11
- // TODO(KK): Consider keeping netflow separate after all...
12
- const apiSlice = rtkQuerySlice_1.rtkQuerySlice.injectEndpoints({
13
- endpoints: (builder) => ({
14
- getRealtimeBalance: builder.query({
15
- keepUnusedDataFor: 0,
16
- providesTags: (_result, _error, arg) => [
17
- (0, indexTags_1.getMostSpecificIndexTag)({
18
- chainId: arg.chainId,
19
- address1: arg.superTokenAddress,
20
- address2: arg.accountAddress,
21
- address3: undefined,
22
- indexId: undefined,
23
- }),
24
- (0, streamTags_1.getMostSpecificStreamTag)({
25
- chainId: arg.chainId,
26
- address1: arg.superTokenAddress,
27
- address2: arg.accountAddress,
28
- address3: undefined,
29
- }),
30
- (0, tokenTags_1.getMostSpecificTokenTag)({
31
- chainId: arg.chainId,
32
- address1: arg.superTokenAddress,
33
- address2: arg.accountAddress,
34
- address3: undefined,
35
- }),
36
- ],
37
- queryFn: async (arg) => {
38
- const framework = await (0, createSdkReduxParts_1.getSfContext)().getFramework(arg.chainId);
39
- const superToken = await framework.loadSuperToken(arg.superTokenAddress);
40
- const [realtimeBalance, netFlow] = await Promise.all([
41
- superToken.realtimeBalanceOf({
42
- providerOrSigner: framework.settings.provider,
43
- account: arg.accountAddress,
44
- timestamp: arg.estimationTimestamp
45
- ? arg.estimationTimestamp
46
- : Math.floor(new Date().getTime() / 1000),
47
- }),
48
- superToken.getNetFlow({
49
- account: arg.accountAddress,
50
- providerOrSigner: framework.settings.provider,
51
- }),
52
- ]);
53
- return {
54
- data: (0, utils_1.typeGuard)({
55
- availableBalanceWei: realtimeBalance.availableBalance.toString(),
56
- depositWei: realtimeBalance.deposit.toString(),
57
- owedDepositWei: realtimeBalance.owedDeposit.toString(),
58
- timestamp: Math.floor(realtimeBalance.timestamp.getTime() / 1000),
59
- netFlowRateWei: netFlow,
60
- }),
61
- };
62
- },
63
- }),
64
- }),
65
- overrideExisting: false,
66
- });
67
- /**
68
- * @category React Hooks
69
- */
70
- exports.useGetRealtimeBalanceQuery = apiSlice.useGetRealtimeBalanceQuery,
71
- /**
72
- * @category React Hooks
73
- */
74
- exports.useLazyGetRealtimeBalanceQuery = apiSlice.useLazyGetRealtimeBalanceQuery;
75
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0UmVhbHRpbWVCYWxhbmNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3JlZHV4LXNsaWNlcy9ydGstcXVlcnkvcXVlcmllcy9nZXRSZWFsdGltZUJhbGFuY2UudHMiXSwibmFtZXMiOltdLCJtYXBwa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dCQUFnQixDQUFDLFFBQVEsRUFBRTt3QkFDL0MsVUFBVSxFQUFFLGVBQWUsQ0FBQyxPQUFPLENBQUMsUUFBUSxFQUFFO3dCQUM5QyxjQUFjLEVBQUUsZUFBZSxDQUFDLFdBQVcsQ0FBQyxRQUFRLEVBQUU7d0JBQ3RELFNBQVMsRUFBRSxJQUFJLENBQUMsS0FBSyxDQUNqQixlQUFlLENBQUMsU0FBUyxDQUFDLE9BQU8sRUFBRSxHQUFHLElBQUksQ0FDN0M7d0JBQ0QsY0FBYyxFQUFFLE9BQU87cUJBQzFCLENBQUM7aUJBQ0wsQ0FBQztZQUNOLENBQUM7U0FDSixDQUFDO0tBQ0wsQ0FBQztJQUNGLGdCQUFnQixFQUFFLEtBQUs7Q0FDMUIsQ0FBQyxDQUFDO0FBR0M7O0dBRUc7QUFDSCxrQ0FBMEIsR0FLMUIsUUFBUTtBQUpSOztHQUVHO0FBQ0gsc0NBQThCLEdBQzlCLFFBQVEsZ0NBQUMifQ==
@@ -1,15 +0,0 @@
1
- import { AllEvents, PagedResult } from '@superfluid-finance/sdk-core';
2
- import { NothingNumber, NothingString, PaginatedQueryArg } from '../../argTypes';
3
- export declare type ListEventsArg = PaginatedQueryArg & {
4
- accountAddress: string | NothingString;
5
- timestamp_gt: number | NothingNumber;
6
- };
7
- export declare const
8
- /**
9
- * @category React Hooks
10
- */
11
- useListEventsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<ListEventsArg, import("@reduxjs/toolkit/dist/query").BaseQueryFn<import("../../argTypes").QueryArg | import("../../argTypes").SuperTokenMutationArg, import("../../argTypes").TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, import("../rtkQuerySliceBaseQuery").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<AllEvents>, string>>,
12
- /**
13
- * @category React Hooks
14
- */
15
- useLazyListEventsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<ListEventsArg, import("@reduxjs/toolkit/dist/query").BaseQueryFn<import("../../argTypes").QueryArg | import("../../argTypes").SuperTokenMutationArg, import("../../argTypes").TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, import("../rtkQuerySliceBaseQuery").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<AllEvents>, string>>;
@@ -1,59 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useLazyListEventsQuery = exports.useListEventsQuery = void 0;
4
- const sdk_core_1 = require("@superfluid-finance/sdk-core");
5
- const createSdkReduxParts_1 = require("../../../createSdkReduxParts");
6
- const utils_1 = require("../../../utils");
7
- const eventTags_1 = require("../cacheTags/eventTags");
8
- const indexTags_1 = require("../cacheTags/indexTags");
9
- const streamTags_1 = require("../cacheTags/streamTags");
10
- const tokenTags_1 = require("../cacheTags/tokenTags");
11
- const rtkQuerySlice_1 = require("../rtkQuerySlice");
12
- const apiSlice = rtkQuerySlice_1.rtkQuerySlice.injectEndpoints({
13
- endpoints: (builder) => ({
14
- listEvents: builder.query({
15
- providesTags: (_result, _error, arg) => [
16
- ...(0, utils_1.insertIf)(!arg.accountAddress, (0, eventTags_1.createEventTag)(arg.chainId)),
17
- (0, indexTags_1.getMostSpecificIndexTag)({
18
- chainId: arg.chainId,
19
- address1: arg.accountAddress,
20
- address2: undefined,
21
- address3: undefined,
22
- indexId: undefined,
23
- }),
24
- (0, streamTags_1.getMostSpecificStreamTag)({
25
- chainId: arg.chainId,
26
- address1: arg.accountAddress,
27
- address2: undefined,
28
- address3: undefined,
29
- }),
30
- (0, tokenTags_1.getMostSpecificTokenTag)({
31
- chainId: arg.chainId,
32
- address1: arg.accountAddress,
33
- address2: undefined,
34
- address3: undefined,
35
- }),
36
- ],
37
- queryFn: async (arg) => {
38
- const framework = await (0, createSdkReduxParts_1.getSfContext)().getFramework(arg.chainId);
39
- const pagedResult = await framework.query.listEvents({
40
- account: arg.accountAddress,
41
- timestamp_gt: arg.timestamp_gt,
42
- }, (0, sdk_core_1.createSkipPaging)({ skip: arg.skip, take: arg.take }));
43
- return {
44
- data: pagedResult,
45
- };
46
- },
47
- }),
48
- }),
49
- overrideExisting: false,
50
- });
51
- /**
52
- * @category React Hooks
53
- */
54
- exports.useListEventsQuery = apiSlice.useListEventsQuery,
55
- /**
56
- * @category React Hooks
57
- */
58
- exports.useLazyListEventsQuery = apiSlice.useLazyListEventsQuery;
59
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdEV2ZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9yZWR1eC1zbGljZXMvcnRrLXF1ZXJ5L3F1ZXJpZXMvbGlzdEV2ZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwyREFJc0M7QUFFdEMsc0VBQTBEO0FBQzFELDBDQUF3QztBQUV4QyxzREFBc0Q7QUFDdEQsc0RBQStEO0FBQy9ELHdEQUFpRTtBQUNqRSxzREFBK0Q7QUFDL0Qsb0RBQStDO0FBTy9DLE1BQU0sUUFBUSxHQUFHLDZCQUFhLENBQUMsZUFBZSxDQUFDO0lBQzNDLFNBQVMsRUFBRSxDQUFDLE9BQU8sRUFBRSxFQUFFLENBQUMsQ0FBQztRQUNyQixVQUFVLEVBQUUsT0FBTyxDQUFDLEtBQUssQ0FBd0M7WUFDN0QsWUFBWSxFQUFFLENBQUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxHQUFHLEVBQUUsRUFBRSxDQUFDO2dCQUNwQyxHQUFHLElBQUEsZ0JBQVEsRUFBQyxDQUFDLEdBQUcsQ0FBQyxjQUFjLEVBQUUsSUFBQSwwQkFBYyxFQUFDLEdBQUcsQ0FBQyxPQUFP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UsR0FBRyxDQUFDLElBQUksRUFBQyxDQUFDLENBQ3JELENBQUM7Z0JBQ0YsT0FBTztvQkFDSCxJQUFJLEVBQUUsV0FBVztpQkFDcEIsQ0FBQztZQUNOLENBQUM7U0FDSixDQUFDO0tBQ0wsQ0FBQztJQUNGLGdCQUFnQixFQUFFLEtBQUs7Q0FDMUIsQ0FBQyxDQUFDO0FBR0M7O0dBRUc7QUFDSCwwQkFBa0IsR0FLbEIsUUFBUTtBQUpSOztHQUVHO0FBQ0gsOEJBQXNCLEdBQ3RCLFFBQVEsd0JBQUMifQ==
@@ -1,15 +0,0 @@
1
- import { IIndexSubscription, PagedResult } from '@superfluid-finance/sdk-core';
2
- import { NothingBoolean, NothingString, PaginatedQueryArg } from '../../argTypes';
3
- export declare type ListIndexSubscriptionsArg = PaginatedQueryArg & {
4
- subscriberAddress: string | NothingString;
5
- approved: boolean | NothingBoolean;
6
- };
7
- export declare const
8
- /**
9
- * @category React Hooks
10
- */
11
- useListIndexSubscriptionsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<ListIndexSubscriptionsArg, import("@reduxjs/toolkit/dist/query").BaseQueryFn<import("../../argTypes").QueryArg | import("../../argTypes").SuperTokenMutationArg, import("../../argTypes").TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, import("../rtkQuerySliceBaseQuery").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<IIndexSubscription>, string>>,
12
- /**
13
- * @category React Hooks
14
- */
15
- useLazyListIndexSubscriptionsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<ListIndexSubscriptionsArg, import("@reduxjs/toolkit/dist/query").BaseQueryFn<import("../../argTypes").QueryArg | import("../../argTypes").SuperTokenMutationArg, import("../../argTypes").TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, import("../rtkQuerySliceBaseQuery").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<IIndexSubscription>, string>>;
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useLazyListIndexSubscriptionsQuery = exports.useListIndexSubscriptionsQuery = void 0;
4
- const sdk_core_1 = require("@superfluid-finance/sdk-core");
5
- const createSdkReduxParts_1 = require("../../../createSdkReduxParts");
6
- const indexTags_1 = require("../cacheTags/indexTags");
7
- const rtkQuerySlice_1 = require("../rtkQuerySlice");
8
- const apiSlice = rtkQuerySlice_1.rtkQuerySlice.injectEndpoints({
9
- endpoints: (builder) => ({
10
- listIndexSubscriptions: builder.query({
11
- providesTags: (_result, _error, arg) => [
12
- (0, indexTags_1.getMostSpecificIndexTag)({
13
- chainId: arg.chainId,
14
- address1: arg.subscriberAddress,
15
- address2: undefined,
16
- address3: undefined,
17
- indexId: undefined,
18
- }),
19
- ],
20
- queryFn: async (arg) => {
21
- const framework = await (0, createSdkReduxParts_1.getSfContext)().getFramework(arg.chainId);
22
- return {
23
- data: await framework.query.listIndexSubscriptions({
24
- subscriber: arg.subscriberAddress,
25
- approved: arg.approved,
26
- }, (0, sdk_core_1.createSkipPaging)(arg)),
27
- };
28
- },
29
- }),
30
- }),
31
- overrideExisting: false,
32
- });
33
- /**
34
- * @category React Hooks
35
- */
36
- exports.useListIndexSubscriptionsQuery = apiSlice.useListIndexSubscriptionsQuery,
37
- /**
38
- * @category React Hooks
39
- */
40
- exports.useLazyListIndexSubscriptionsQuery = apiSlice.useLazyListIndexSubscriptionsQuery;
41
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdEluZGV4U3Vic2NyaXB0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9yZWR1eC1zbGljZXMvcnRrLXF1ZXJ5L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QUFDO1lBQ04sQ0FBQztTQUNKLENBQUM7S0FDTCxDQUFDO0lBQ0YsZ0JBQWdCLEVBQUUsS0FBSztDQUMxQixDQUFDLENBQUM7QUFHQzs7R0FFRztBQUNILHNDQUE4QixHQUs5QixRQUFRO0FBSlI7O0dBRUc7QUFDSCwwQ0FBa0MsR0FDbEMsUUFBUSxvQ0FBQyJ9
@@ -1,16 +0,0 @@
1
- import { IIndex, PagedResult } from '@superfluid-finance/sdk-core';
2
- import { NothingString, PaginatedQueryArg } from '../../argTypes';
3
- export declare type ListIndexesArg = PaginatedQueryArg & {
4
- indexId: string | NothingString;
5
- publisherAddress: string | NothingString;
6
- superTokenAddress: string | NothingString;
7
- };
8
- export declare const
9
- /**
10
- * @category React Hooks
11
- */
12
- useListIndexesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<ListIndexesArg, import("@reduxjs/toolkit/dist/query").BaseQueryFn<import("../../argTypes").QueryArg | import("../../argTypes").SuperTokenMutationArg, import("../../argTypes").TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, import("../rtkQuerySliceBaseQuery").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<IIndex>, string>>,
13
- /**
14
- * @category React Hooks
15
- */
16
- useLazyListIndexesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<ListIndexesArg, import("@reduxjs/toolkit/dist/query").BaseQueryFn<import("../../argTypes").QueryArg | import("../../argTypes").SuperTokenMutationArg, import("../../argTypes").TransactionInfo | Record<string, unknown>, import("../rtkQuerySliceBaseQuery").ValidationError, unknown, import("../rtkQuerySliceBaseQuery").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<IIndex>, string>>;