@superfluid-finance/sdk-redux 0.1.1-dev.e0742d5.0 → 0.2.1-dev.da50fa8.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 (430) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +47 -44
  3. package/dist/main/index.d.ts +13 -0
  4. package/dist/main/index.d.ts.map +1 -0
  5. package/dist/main/index.js +37 -0
  6. package/dist/main/index.js.map +1 -0
  7. package/{build → dist}/main/redux-slices/argTypes.d.ts +11 -13
  8. package/dist/main/redux-slices/argTypes.d.ts.map +1 -0
  9. package/dist/main/redux-slices/argTypes.js +3 -0
  10. package/dist/main/redux-slices/argTypes.js.map +1 -0
  11. package/{build → dist}/main/redux-slices/rtk-query/cacheTags/CacheTagTypes.d.ts +1 -0
  12. package/dist/main/redux-slices/rtk-query/cacheTags/CacheTagTypes.d.ts.map +1 -0
  13. package/dist/main/redux-slices/rtk-query/cacheTags/CacheTagTypes.js +18 -0
  14. package/dist/main/redux-slices/rtk-query/cacheTags/CacheTagTypes.js.map +1 -0
  15. package/{build → dist}/main/redux-slices/rtk-query/cacheTags/eventTags.d.ts +1 -0
  16. package/dist/main/redux-slices/rtk-query/cacheTags/eventTags.d.ts.map +1 -0
  17. package/dist/main/redux-slices/rtk-query/cacheTags/eventTags.js +12 -0
  18. package/dist/main/redux-slices/rtk-query/cacheTags/eventTags.js.map +1 -0
  19. package/{build → dist}/main/redux-slices/rtk-query/cacheTags/indexTags.d.ts +2 -1
  20. package/dist/main/redux-slices/rtk-query/cacheTags/indexTags.d.ts.map +1 -0
  21. package/dist/main/redux-slices/rtk-query/cacheTags/indexTags.js +31 -0
  22. package/dist/main/redux-slices/rtk-query/cacheTags/indexTags.js.map +1 -0
  23. package/{build → dist}/main/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.d.ts +1 -0
  24. package/dist/main/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.d.ts.map +1 -0
  25. package/{build → dist}/main/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.js +5 -7
  26. package/dist/main/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.js.map +1 -0
  27. package/{build/module → dist/main}/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.d.ts +1 -0
  28. package/dist/main/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.d.ts.map +1 -0
  29. package/dist/main/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js +21 -0
  30. package/dist/main/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js.map +1 -0
  31. package/{build/module → dist/main}/redux-slices/rtk-query/cacheTags/streamTags.d.ts +2 -1
  32. package/dist/main/redux-slices/rtk-query/cacheTags/streamTags.d.ts.map +1 -0
  33. package/dist/main/redux-slices/rtk-query/cacheTags/streamTags.js +30 -0
  34. package/dist/main/redux-slices/rtk-query/cacheTags/streamTags.js.map +1 -0
  35. package/{build/module → dist/main}/redux-slices/rtk-query/cacheTags/tokenTags.d.ts +2 -1
  36. package/dist/main/redux-slices/rtk-query/cacheTags/tokenTags.d.ts.map +1 -0
  37. package/dist/main/redux-slices/rtk-query/cacheTags/tokenTags.js +30 -0
  38. package/dist/main/redux-slices/rtk-query/cacheTags/tokenTags.js.map +1 -0
  39. package/dist/main/redux-slices/rtk-query/cacheTime.d.ts +9 -0
  40. package/dist/main/redux-slices/rtk-query/cacheTime.d.ts.map +1 -0
  41. package/dist/main/redux-slices/rtk-query/cacheTime.js +13 -0
  42. package/dist/main/redux-slices/rtk-query/cacheTime.js.map +1 -0
  43. package/dist/main/redux-slices/rtk-query/createApiWithReactHooks.d.ts +7 -0
  44. package/dist/main/redux-slices/rtk-query/createApiWithReactHooks.d.ts.map +1 -0
  45. package/dist/main/redux-slices/rtk-query/createApiWithReactHooks.js +11 -0
  46. package/dist/main/redux-slices/rtk-query/createApiWithReactHooks.js.map +1 -0
  47. package/dist/main/redux-slices/rtk-query/createApiWithoutReactHooks.d.ts +7 -0
  48. package/dist/main/redux-slices/rtk-query/createApiWithoutReactHooks.d.ts.map +1 -0
  49. package/dist/main/redux-slices/rtk-query/createApiWithoutReactHooks.js +11 -0
  50. package/dist/main/redux-slices/rtk-query/createApiWithoutReactHooks.js.map +1 -0
  51. package/dist/main/redux-slices/rtk-query/getSerializeQueryArgs.d.ts +3 -0
  52. package/dist/main/redux-slices/rtk-query/getSerializeQueryArgs.d.ts.map +1 -0
  53. package/dist/main/redux-slices/rtk-query/getSerializeQueryArgs.js +40 -0
  54. package/dist/main/redux-slices/rtk-query/getSerializeQueryArgs.js.map +1 -0
  55. package/dist/main/redux-slices/rtk-query/mutations/addMutationEndpoints.d.ts +21 -0
  56. package/dist/main/redux-slices/rtk-query/mutations/addMutationEndpoints.d.ts.map +1 -0
  57. package/dist/main/redux-slices/rtk-query/mutations/addMutationEndpoints.js +409 -0
  58. package/dist/main/redux-slices/rtk-query/mutations/addMutationEndpoints.js.map +1 -0
  59. package/dist/main/redux-slices/rtk-query/mutations/mutations.d.ts +140 -0
  60. package/dist/main/redux-slices/rtk-query/mutations/mutations.d.ts.map +1 -0
  61. package/dist/main/redux-slices/rtk-query/mutations/mutations.js +3 -0
  62. package/dist/main/redux-slices/rtk-query/mutations/mutations.js.map +1 -0
  63. package/dist/main/redux-slices/rtk-query/queries/addQueryEndpoints.d.ts +16 -0
  64. package/dist/main/redux-slices/rtk-query/queries/addQueryEndpoints.d.ts.map +1 -0
  65. package/dist/main/redux-slices/rtk-query/queries/addQueryEndpoints.js +280 -0
  66. package/dist/main/redux-slices/rtk-query/queries/addQueryEndpoints.js.map +1 -0
  67. package/dist/main/redux-slices/rtk-query/queries/queries.d.ts +56 -0
  68. package/dist/main/redux-slices/rtk-query/queries/queries.d.ts.map +1 -0
  69. package/dist/main/redux-slices/rtk-query/queries/queries.js +3 -0
  70. package/dist/main/redux-slices/rtk-query/queries/queries.js.map +1 -0
  71. package/dist/main/redux-slices/rtk-query/returnTypes.d.ts +16 -0
  72. package/dist/main/redux-slices/rtk-query/returnTypes.d.ts.map +1 -0
  73. package/dist/main/redux-slices/rtk-query/returnTypes.js +3 -0
  74. package/dist/main/redux-slices/rtk-query/returnTypes.js.map +1 -0
  75. package/dist/main/redux-slices/rtk-query/sfApiSlice.d.ts +33 -0
  76. package/dist/main/redux-slices/rtk-query/sfApiSlice.d.ts.map +1 -0
  77. package/dist/main/redux-slices/rtk-query/sfApiSlice.js +25 -0
  78. package/dist/main/redux-slices/rtk-query/sfApiSlice.js.map +1 -0
  79. package/dist/main/redux-slices/rtk-query/sfApiSliceInferredType.d.ts +3 -0
  80. package/dist/main/redux-slices/rtk-query/sfApiSliceInferredType.d.ts.map +1 -0
  81. package/dist/main/redux-slices/rtk-query/sfApiSliceInferredType.js +3 -0
  82. package/dist/main/redux-slices/rtk-query/sfApiSliceInferredType.js.map +1 -0
  83. package/dist/main/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.d.ts +106 -0
  84. package/dist/main/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.d.ts.map +1 -0
  85. package/dist/main/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.js +14 -0
  86. package/dist/main/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.js.map +1 -0
  87. package/dist/main/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.d.ts +72 -0
  88. package/dist/main/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.d.ts.map +1 -0
  89. package/dist/main/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.js +62 -0
  90. package/dist/main/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.js.map +1 -0
  91. package/dist/main/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.d.ts +40 -0
  92. package/dist/main/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.d.ts.map +1 -0
  93. package/dist/main/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.js +52 -0
  94. package/dist/main/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.js.map +1 -0
  95. package/dist/main/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.d.ts +16 -0
  96. package/dist/main/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.d.ts.map +1 -0
  97. package/dist/main/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.js +16 -0
  98. package/dist/main/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.js.map +1 -0
  99. package/dist/main/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.d.ts +50 -0
  100. package/dist/main/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.d.ts.map +1 -0
  101. package/dist/main/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.js +3 -0
  102. package/dist/main/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.js.map +1 -0
  103. package/dist/main/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.d.ts +26 -0
  104. package/dist/main/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.d.ts.map +1 -0
  105. package/dist/main/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.js +3 -0
  106. package/dist/main/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.js.map +1 -0
  107. package/dist/main/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.d.ts +7 -0
  108. package/dist/main/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.d.ts.map +1 -0
  109. package/dist/main/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.js +29 -0
  110. package/dist/main/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.js.map +1 -0
  111. package/dist/main/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.d.ts +3 -0
  112. package/dist/main/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.d.ts.map +1 -0
  113. package/dist/main/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.js +3 -0
  114. package/dist/main/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.js.map +1 -0
  115. package/dist/main/redux-slices/rtk-query/subgraph-slice/subgraphSlice.d.ts +22 -0
  116. package/dist/main/redux-slices/rtk-query/subgraph-slice/subgraphSlice.d.ts.map +1 -0
  117. package/dist/main/redux-slices/rtk-query/subgraph-slice/subgraphSlice.js +37 -0
  118. package/dist/main/redux-slices/rtk-query/subgraph-slice/subgraphSlice.js.map +1 -0
  119. package/dist/main/redux-slices/transactions/createTransactionSlice.d.ts +12 -0
  120. package/dist/main/redux-slices/transactions/createTransactionSlice.d.ts.map +1 -0
  121. package/dist/main/redux-slices/transactions/createTransactionSlice.js +15 -0
  122. package/dist/main/redux-slices/transactions/createTransactionSlice.js.map +1 -0
  123. package/{build/module → dist/main}/redux-slices/transactions/registerNewTransaction.d.ts +1 -0
  124. package/dist/main/redux-slices/transactions/registerNewTransaction.d.ts.map +1 -0
  125. package/dist/main/redux-slices/transactions/registerNewTransaction.js +33 -0
  126. package/dist/main/redux-slices/transactions/registerNewTransaction.js.map +1 -0
  127. package/{build/module → dist/main}/redux-slices/transactions/trackTransaction.d.ts +1 -0
  128. package/dist/main/redux-slices/transactions/trackTransaction.d.ts.map +1 -0
  129. package/dist/main/redux-slices/transactions/trackTransaction.js +64 -0
  130. package/dist/main/redux-slices/transactions/trackTransaction.js.map +1 -0
  131. package/dist/main/redux-slices/transactions/trackedTransaction.d.ts +12 -0
  132. package/dist/main/redux-slices/transactions/trackedTransaction.d.ts.map +1 -0
  133. package/dist/main/redux-slices/transactions/trackedTransaction.js +11 -0
  134. package/dist/main/redux-slices/transactions/trackedTransaction.js.map +1 -0
  135. package/dist/main/sdkReduxConfig.d.ts +95 -0
  136. package/dist/main/sdkReduxConfig.d.ts.map +1 -0
  137. package/dist/main/sdkReduxConfig.js +102 -0
  138. package/dist/main/sdkReduxConfig.js.map +1 -0
  139. package/dist/main/sdkReduxInitialization.d.ts +74 -0
  140. package/dist/main/sdkReduxInitialization.d.ts.map +1 -0
  141. package/dist/main/sdkReduxInitialization.js +55 -0
  142. package/dist/main/sdkReduxInitialization.js.map +1 -0
  143. package/{build → dist}/main/utils.d.ts +1 -0
  144. package/dist/main/utils.d.ts.map +1 -0
  145. package/{build → dist}/main/utils.js +1 -1
  146. package/dist/main/utils.js.map +1 -0
  147. package/dist/module/index.d.ts +13 -0
  148. package/dist/module/index.d.ts.map +1 -0
  149. package/dist/module/index.js +12 -0
  150. package/dist/module/index.js.map +1 -0
  151. package/{build → dist}/module/redux-slices/argTypes.d.ts +11 -13
  152. package/dist/module/redux-slices/argTypes.d.ts.map +1 -0
  153. package/dist/module/redux-slices/argTypes.js +2 -0
  154. package/dist/module/redux-slices/argTypes.js.map +1 -0
  155. package/{build → dist}/module/redux-slices/rtk-query/cacheTags/CacheTagTypes.d.ts +1 -0
  156. package/dist/module/redux-slices/rtk-query/cacheTags/CacheTagTypes.d.ts.map +1 -0
  157. package/dist/module/redux-slices/rtk-query/cacheTags/CacheTagTypes.js +14 -0
  158. package/dist/module/redux-slices/rtk-query/cacheTags/CacheTagTypes.js.map +1 -0
  159. package/{build → dist}/module/redux-slices/rtk-query/cacheTags/eventTags.d.ts +1 -0
  160. package/dist/module/redux-slices/rtk-query/cacheTags/eventTags.d.ts.map +1 -0
  161. package/dist/module/redux-slices/rtk-query/cacheTags/eventTags.js +8 -0
  162. package/dist/module/redux-slices/rtk-query/cacheTags/eventTags.js.map +1 -0
  163. package/{build → dist}/module/redux-slices/rtk-query/cacheTags/indexTags.d.ts +2 -1
  164. package/dist/module/redux-slices/rtk-query/cacheTags/indexTags.d.ts.map +1 -0
  165. package/dist/module/redux-slices/rtk-query/cacheTags/indexTags.js +26 -0
  166. package/dist/module/redux-slices/rtk-query/cacheTags/indexTags.js.map +1 -0
  167. package/{build → dist}/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.d.ts +1 -0
  168. package/dist/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.d.ts.map +1 -0
  169. package/dist/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.js +142 -0
  170. package/dist/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.js.map +1 -0
  171. package/{build/main → dist/module}/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.d.ts +1 -0
  172. package/dist/module/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.d.ts.map +1 -0
  173. package/dist/module/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js +17 -0
  174. package/dist/module/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js.map +1 -0
  175. package/{build/main → dist/module}/redux-slices/rtk-query/cacheTags/streamTags.d.ts +2 -1
  176. package/dist/module/redux-slices/rtk-query/cacheTags/streamTags.d.ts.map +1 -0
  177. package/dist/module/redux-slices/rtk-query/cacheTags/streamTags.js +25 -0
  178. package/dist/module/redux-slices/rtk-query/cacheTags/streamTags.js.map +1 -0
  179. package/{build/main → dist/module}/redux-slices/rtk-query/cacheTags/tokenTags.d.ts +2 -1
  180. package/dist/module/redux-slices/rtk-query/cacheTags/tokenTags.d.ts.map +1 -0
  181. package/dist/module/redux-slices/rtk-query/cacheTags/tokenTags.js +25 -0
  182. package/dist/module/redux-slices/rtk-query/cacheTags/tokenTags.js.map +1 -0
  183. package/dist/module/redux-slices/rtk-query/cacheTime.d.ts +9 -0
  184. package/dist/module/redux-slices/rtk-query/cacheTime.d.ts.map +1 -0
  185. package/dist/module/redux-slices/rtk-query/cacheTime.js +10 -0
  186. package/dist/module/redux-slices/rtk-query/cacheTime.js.map +1 -0
  187. package/dist/module/redux-slices/rtk-query/createApiWithReactHooks.d.ts +7 -0
  188. package/dist/module/redux-slices/rtk-query/createApiWithReactHooks.d.ts.map +1 -0
  189. package/dist/module/redux-slices/rtk-query/createApiWithReactHooks.js +8 -0
  190. package/dist/module/redux-slices/rtk-query/createApiWithReactHooks.js.map +1 -0
  191. package/dist/module/redux-slices/rtk-query/createApiWithoutReactHooks.d.ts +7 -0
  192. package/dist/module/redux-slices/rtk-query/createApiWithoutReactHooks.d.ts.map +1 -0
  193. package/dist/module/redux-slices/rtk-query/createApiWithoutReactHooks.js +8 -0
  194. package/dist/module/redux-slices/rtk-query/createApiWithoutReactHooks.js.map +1 -0
  195. package/dist/module/redux-slices/rtk-query/getSerializeQueryArgs.d.ts +3 -0
  196. package/dist/module/redux-slices/rtk-query/getSerializeQueryArgs.d.ts.map +1 -0
  197. package/dist/module/redux-slices/rtk-query/getSerializeQueryArgs.js +36 -0
  198. package/dist/module/redux-slices/rtk-query/getSerializeQueryArgs.js.map +1 -0
  199. package/dist/module/redux-slices/rtk-query/mutations/addMutationEndpoints.d.ts +21 -0
  200. package/dist/module/redux-slices/rtk-query/mutations/addMutationEndpoints.d.ts.map +1 -0
  201. package/dist/module/redux-slices/rtk-query/mutations/addMutationEndpoints.js +405 -0
  202. package/dist/module/redux-slices/rtk-query/mutations/addMutationEndpoints.js.map +1 -0
  203. package/dist/module/redux-slices/rtk-query/mutations/mutations.d.ts +140 -0
  204. package/dist/module/redux-slices/rtk-query/mutations/mutations.d.ts.map +1 -0
  205. package/dist/module/redux-slices/rtk-query/mutations/mutations.js +2 -0
  206. package/dist/module/redux-slices/rtk-query/mutations/mutations.js.map +1 -0
  207. package/dist/module/redux-slices/rtk-query/queries/addQueryEndpoints.d.ts +16 -0
  208. package/dist/module/redux-slices/rtk-query/queries/addQueryEndpoints.d.ts.map +1 -0
  209. package/dist/module/redux-slices/rtk-query/queries/addQueryEndpoints.js +276 -0
  210. package/dist/module/redux-slices/rtk-query/queries/addQueryEndpoints.js.map +1 -0
  211. package/dist/module/redux-slices/rtk-query/queries/queries.d.ts +56 -0
  212. package/dist/module/redux-slices/rtk-query/queries/queries.d.ts.map +1 -0
  213. package/dist/module/redux-slices/rtk-query/queries/queries.js +2 -0
  214. package/dist/module/redux-slices/rtk-query/queries/queries.js.map +1 -0
  215. package/dist/module/redux-slices/rtk-query/returnTypes.d.ts +16 -0
  216. package/dist/module/redux-slices/rtk-query/returnTypes.d.ts.map +1 -0
  217. package/dist/module/redux-slices/rtk-query/returnTypes.js +2 -0
  218. package/dist/module/redux-slices/rtk-query/returnTypes.js.map +1 -0
  219. package/dist/module/redux-slices/rtk-query/sfApiSlice.d.ts +33 -0
  220. package/dist/module/redux-slices/rtk-query/sfApiSlice.d.ts.map +1 -0
  221. package/dist/module/redux-slices/rtk-query/sfApiSlice.js +20 -0
  222. package/dist/module/redux-slices/rtk-query/sfApiSlice.js.map +1 -0
  223. package/dist/module/redux-slices/rtk-query/sfApiSliceInferredType.d.ts +3 -0
  224. package/dist/module/redux-slices/rtk-query/sfApiSliceInferredType.d.ts.map +1 -0
  225. package/dist/module/redux-slices/rtk-query/sfApiSliceInferredType.js +2 -0
  226. package/dist/module/redux-slices/rtk-query/sfApiSliceInferredType.js.map +1 -0
  227. package/dist/module/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.d.ts +106 -0
  228. package/dist/module/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.d.ts.map +1 -0
  229. package/dist/module/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.js +11 -0
  230. package/dist/module/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.js.map +1 -0
  231. package/dist/module/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.d.ts +72 -0
  232. package/dist/module/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.d.ts.map +1 -0
  233. package/dist/module/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.js +58 -0
  234. package/dist/module/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.js.map +1 -0
  235. package/dist/module/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.d.ts +40 -0
  236. package/dist/module/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.d.ts.map +1 -0
  237. package/dist/module/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.js +48 -0
  238. package/dist/module/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.js.map +1 -0
  239. package/dist/module/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.d.ts +16 -0
  240. package/dist/module/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.d.ts.map +1 -0
  241. package/dist/module/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.js +12 -0
  242. package/dist/module/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.js.map +1 -0
  243. package/dist/module/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.d.ts +50 -0
  244. package/dist/module/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.d.ts.map +1 -0
  245. package/dist/module/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.js +2 -0
  246. package/dist/module/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.js.map +1 -0
  247. package/dist/module/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.d.ts +26 -0
  248. package/dist/module/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.d.ts.map +1 -0
  249. package/dist/module/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.js +2 -0
  250. package/dist/module/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.js.map +1 -0
  251. package/dist/module/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.d.ts +7 -0
  252. package/dist/module/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.d.ts.map +1 -0
  253. package/dist/module/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.js +25 -0
  254. package/dist/module/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.js.map +1 -0
  255. package/dist/module/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.d.ts +3 -0
  256. package/dist/module/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.d.ts.map +1 -0
  257. package/dist/module/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.js +2 -0
  258. package/dist/module/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.js.map +1 -0
  259. package/dist/module/redux-slices/rtk-query/subgraph-slice/subgraphSlice.d.ts +22 -0
  260. package/dist/module/redux-slices/rtk-query/subgraph-slice/subgraphSlice.d.ts.map +1 -0
  261. package/dist/module/redux-slices/rtk-query/subgraph-slice/subgraphSlice.js +31 -0
  262. package/dist/module/redux-slices/rtk-query/subgraph-slice/subgraphSlice.js.map +1 -0
  263. package/dist/module/redux-slices/transactions/createTransactionSlice.d.ts +12 -0
  264. package/dist/module/redux-slices/transactions/createTransactionSlice.d.ts.map +1 -0
  265. package/dist/module/redux-slices/transactions/createTransactionSlice.js +11 -0
  266. package/dist/module/redux-slices/transactions/createTransactionSlice.js.map +1 -0
  267. package/{build/main → dist/module}/redux-slices/transactions/registerNewTransaction.d.ts +1 -0
  268. package/dist/module/redux-slices/transactions/registerNewTransaction.d.ts.map +1 -0
  269. package/dist/module/redux-slices/transactions/registerNewTransaction.js +29 -0
  270. package/dist/module/redux-slices/transactions/registerNewTransaction.js.map +1 -0
  271. package/{build/main → dist/module}/redux-slices/transactions/trackTransaction.d.ts +1 -0
  272. package/dist/module/redux-slices/transactions/trackTransaction.d.ts.map +1 -0
  273. package/dist/module/redux-slices/transactions/trackTransaction.js +60 -0
  274. package/dist/module/redux-slices/transactions/trackTransaction.js.map +1 -0
  275. package/dist/module/redux-slices/transactions/trackedTransaction.d.ts +12 -0
  276. package/dist/module/redux-slices/transactions/trackedTransaction.d.ts.map +1 -0
  277. package/dist/module/redux-slices/transactions/trackedTransaction.js +8 -0
  278. package/dist/module/redux-slices/transactions/trackedTransaction.js.map +1 -0
  279. package/dist/module/sdkReduxConfig.d.ts +95 -0
  280. package/dist/module/sdkReduxConfig.d.ts.map +1 -0
  281. package/dist/module/sdkReduxConfig.js +89 -0
  282. package/dist/module/sdkReduxConfig.js.map +1 -0
  283. package/dist/module/sdkReduxInitialization.d.ts +74 -0
  284. package/dist/module/sdkReduxInitialization.d.ts.map +1 -0
  285. package/dist/module/sdkReduxInitialization.js +47 -0
  286. package/dist/module/sdkReduxInitialization.js.map +1 -0
  287. package/{build → dist}/module/utils.d.ts +1 -0
  288. package/dist/module/utils.d.ts.map +1 -0
  289. package/{build → dist}/module/utils.js +1 -1
  290. package/dist/module/utils.js.map +1 -0
  291. package/package.json +19 -22
  292. package/build/main/SuperfluidContext.d.ts +0 -31
  293. package/build/main/SuperfluidContext.js +0 -49
  294. package/build/main/createSdkReduxParts.d.ts +0 -23
  295. package/build/main/createSdkReduxParts.js +0 -28
  296. package/build/main/index.d.ts +0 -29
  297. package/build/main/index.js +0 -41
  298. package/build/main/redux-slices/argTypes.js +0 -3
  299. package/build/main/redux-slices/rtk-query/cacheTags/CacheTagTypes.js +0 -18
  300. package/build/main/redux-slices/rtk-query/cacheTags/eventTags.js +0 -12
  301. package/build/main/redux-slices/rtk-query/cacheTags/indexTags.js +0 -31
  302. package/build/main/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js +0 -21
  303. package/build/main/redux-slices/rtk-query/cacheTags/streamTags.js +0 -30
  304. package/build/main/redux-slices/rtk-query/cacheTags/tokenTags.js +0 -30
  305. package/build/main/redux-slices/rtk-query/mutations/approveIndexSubscription.d.ts +0 -19
  306. package/build/main/redux-slices/rtk-query/mutations/approveIndexSubscription.js +0 -45
  307. package/build/main/redux-slices/rtk-query/mutations/claimFromIndexSubscription.d.ts +0 -21
  308. package/build/main/redux-slices/rtk-query/mutations/claimFromIndexSubscription.js +0 -46
  309. package/build/main/redux-slices/rtk-query/mutations/createFlow.d.ts +0 -19
  310. package/build/main/redux-slices/rtk-query/mutations/createFlow.js +0 -50
  311. package/build/main/redux-slices/rtk-query/mutations/createIndex.d.ts +0 -17
  312. package/build/main/redux-slices/rtk-query/mutations/createIndex.js +0 -50
  313. package/build/main/redux-slices/rtk-query/mutations/deleteFlow.d.ts +0 -17
  314. package/build/main/redux-slices/rtk-query/mutations/deleteFlow.js +0 -48
  315. package/build/main/redux-slices/rtk-query/mutations/deleteIndexSubscription.d.ts +0 -21
  316. package/build/main/redux-slices/rtk-query/mutations/deleteIndexSubscription.js +0 -46
  317. package/build/main/redux-slices/rtk-query/mutations/distributeToIndex.d.ts +0 -19
  318. package/build/main/redux-slices/rtk-query/mutations/distributeToIndex.js +0 -48
  319. package/build/main/redux-slices/rtk-query/mutations/downgradeFromSuperToken.d.ts +0 -15
  320. package/build/main/redux-slices/rtk-query/mutations/downgradeFromSuperToken.js +0 -46
  321. package/build/main/redux-slices/rtk-query/mutations/monitorForEventsToInvalidateCache.d.ts +0 -16
  322. package/build/main/redux-slices/rtk-query/mutations/monitorForEventsToInvalidateCache.js +0 -40
  323. package/build/main/redux-slices/rtk-query/mutations/revokeIndexSubscription.d.ts +0 -19
  324. package/build/main/redux-slices/rtk-query/mutations/revokeIndexSubscription.js +0 -45
  325. package/build/main/redux-slices/rtk-query/mutations/transferSuperToken.d.ts +0 -17
  326. package/build/main/redux-slices/rtk-query/mutations/transferSuperToken.js +0 -47
  327. package/build/main/redux-slices/rtk-query/mutations/updateFlow.d.ts +0 -19
  328. package/build/main/redux-slices/rtk-query/mutations/updateFlow.js +0 -49
  329. package/build/main/redux-slices/rtk-query/mutations/updateIndexSubscriptionUnits.d.ts +0 -21
  330. package/build/main/redux-slices/rtk-query/mutations/updateIndexSubscriptionUnits.js +0 -46
  331. package/build/main/redux-slices/rtk-query/mutations/upgradeToSuperToken.d.ts +0 -16
  332. package/build/main/redux-slices/rtk-query/mutations/upgradeToSuperToken.js +0 -65
  333. package/build/main/redux-slices/rtk-query/queries/getAllowanceForUpgradeToSuperToken.d.ts +0 -17
  334. package/build/main/redux-slices/rtk-query/queries/getAllowanceForUpgradeToSuperToken.js +0 -43
  335. package/build/main/redux-slices/rtk-query/queries/getIndex.d.ts +0 -17
  336. package/build/main/redux-slices/rtk-query/queries/getIndex.js +0 -43
  337. package/build/main/redux-slices/rtk-query/queries/getIndexSubscription.d.ts +0 -17
  338. package/build/main/redux-slices/rtk-query/queries/getIndexSubscription.js +0 -44
  339. package/build/main/redux-slices/rtk-query/queries/getRealtimeBalance.d.ts +0 -22
  340. package/build/main/redux-slices/rtk-query/queries/getRealtimeBalance.js +0 -75
  341. package/build/main/redux-slices/rtk-query/queries/listEvents.d.ts +0 -15
  342. package/build/main/redux-slices/rtk-query/queries/listEvents.js +0 -59
  343. package/build/main/redux-slices/rtk-query/queries/listIndexSubscriptions.d.ts +0 -15
  344. package/build/main/redux-slices/rtk-query/queries/listIndexSubscriptions.js +0 -41
  345. package/build/main/redux-slices/rtk-query/queries/listIndexes.d.ts +0 -16
  346. package/build/main/redux-slices/rtk-query/queries/listIndexes.js +0 -42
  347. package/build/main/redux-slices/rtk-query/queries/listStreams.d.ts +0 -16
  348. package/build/main/redux-slices/rtk-query/queries/listStreams.js +0 -41
  349. package/build/main/redux-slices/rtk-query/queries/listSuperTokens.d.ts +0 -14
  350. package/build/main/redux-slices/rtk-query/queries/listSuperTokens.js +0 -39
  351. package/build/main/redux-slices/rtk-query/queries/listUserInteractedSuperTokens.d.ts +0 -15
  352. package/build/main/redux-slices/rtk-query/queries/listUserInteractedSuperTokens.js +0 -56
  353. package/build/main/redux-slices/rtk-query/rtkQuerySlice.d.ts +0 -3
  354. package/build/main/redux-slices/rtk-query/rtkQuerySlice.js +0 -53
  355. package/build/main/redux-slices/rtk-query/rtkQuerySliceBaseQuery.d.ts +0 -21
  356. package/build/main/redux-slices/rtk-query/rtkQuerySliceBaseQuery.js +0 -14
  357. package/build/main/redux-slices/transactions/registerNewTransaction.js +0 -33
  358. package/build/main/redux-slices/transactions/trackTransaction.js +0 -66
  359. package/build/main/redux-slices/transactions/transactionSlice.d.ts +0 -36
  360. package/build/main/redux-slices/transactions/transactionSlice.js +0 -19
  361. package/build/module/SuperfluidContext.d.ts +0 -31
  362. package/build/module/SuperfluidContext.js +0 -46
  363. package/build/module/createSdkReduxParts.d.ts +0 -23
  364. package/build/module/createSdkReduxParts.js +0 -23
  365. package/build/module/index.d.ts +0 -29
  366. package/build/module/index.js +0 -29
  367. package/build/module/redux-slices/argTypes.js +0 -2
  368. package/build/module/redux-slices/rtk-query/cacheTags/CacheTagTypes.js +0 -14
  369. package/build/module/redux-slices/rtk-query/cacheTags/eventTags.js +0 -8
  370. package/build/module/redux-slices/rtk-query/cacheTags/indexTags.js +0 -26
  371. package/build/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.js +0 -144
  372. package/build/module/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js +0 -17
  373. package/build/module/redux-slices/rtk-query/cacheTags/streamTags.js +0 -25
  374. package/build/module/redux-slices/rtk-query/cacheTags/tokenTags.js +0 -25
  375. package/build/module/redux-slices/rtk-query/mutations/approveIndexSubscription.d.ts +0 -19
  376. package/build/module/redux-slices/rtk-query/mutations/approveIndexSubscription.js +0 -43
  377. package/build/module/redux-slices/rtk-query/mutations/claimFromIndexSubscription.d.ts +0 -21
  378. package/build/module/redux-slices/rtk-query/mutations/claimFromIndexSubscription.js +0 -44
  379. package/build/module/redux-slices/rtk-query/mutations/createFlow.d.ts +0 -19
  380. package/build/module/redux-slices/rtk-query/mutations/createFlow.js +0 -48
  381. package/build/module/redux-slices/rtk-query/mutations/createIndex.d.ts +0 -17
  382. package/build/module/redux-slices/rtk-query/mutations/createIndex.js +0 -48
  383. package/build/module/redux-slices/rtk-query/mutations/deleteFlow.d.ts +0 -17
  384. package/build/module/redux-slices/rtk-query/mutations/deleteFlow.js +0 -46
  385. package/build/module/redux-slices/rtk-query/mutations/deleteIndexSubscription.d.ts +0 -21
  386. package/build/module/redux-slices/rtk-query/mutations/deleteIndexSubscription.js +0 -44
  387. package/build/module/redux-slices/rtk-query/mutations/distributeToIndex.d.ts +0 -19
  388. package/build/module/redux-slices/rtk-query/mutations/distributeToIndex.js +0 -46
  389. package/build/module/redux-slices/rtk-query/mutations/downgradeFromSuperToken.d.ts +0 -15
  390. package/build/module/redux-slices/rtk-query/mutations/downgradeFromSuperToken.js +0 -44
  391. package/build/module/redux-slices/rtk-query/mutations/monitorForEventsToInvalidateCache.d.ts +0 -16
  392. package/build/module/redux-slices/rtk-query/mutations/monitorForEventsToInvalidateCache.js +0 -38
  393. package/build/module/redux-slices/rtk-query/mutations/revokeIndexSubscription.d.ts +0 -19
  394. package/build/module/redux-slices/rtk-query/mutations/revokeIndexSubscription.js +0 -43
  395. package/build/module/redux-slices/rtk-query/mutations/transferSuperToken.d.ts +0 -17
  396. package/build/module/redux-slices/rtk-query/mutations/transferSuperToken.js +0 -45
  397. package/build/module/redux-slices/rtk-query/mutations/updateFlow.d.ts +0 -19
  398. package/build/module/redux-slices/rtk-query/mutations/updateFlow.js +0 -47
  399. package/build/module/redux-slices/rtk-query/mutations/updateIndexSubscriptionUnits.d.ts +0 -21
  400. package/build/module/redux-slices/rtk-query/mutations/updateIndexSubscriptionUnits.js +0 -44
  401. package/build/module/redux-slices/rtk-query/mutations/upgradeToSuperToken.d.ts +0 -16
  402. package/build/module/redux-slices/rtk-query/mutations/upgradeToSuperToken.js +0 -63
  403. package/build/module/redux-slices/rtk-query/queries/getAllowanceForUpgradeToSuperToken.d.ts +0 -17
  404. package/build/module/redux-slices/rtk-query/queries/getAllowanceForUpgradeToSuperToken.js +0 -41
  405. package/build/module/redux-slices/rtk-query/queries/getIndex.d.ts +0 -17
  406. package/build/module/redux-slices/rtk-query/queries/getIndex.js +0 -41
  407. package/build/module/redux-slices/rtk-query/queries/getIndexSubscription.d.ts +0 -17
  408. package/build/module/redux-slices/rtk-query/queries/getIndexSubscription.js +0 -42
  409. package/build/module/redux-slices/rtk-query/queries/getRealtimeBalance.d.ts +0 -22
  410. package/build/module/redux-slices/rtk-query/queries/getRealtimeBalance.js +0 -73
  411. package/build/module/redux-slices/rtk-query/queries/listEvents.d.ts +0 -15
  412. package/build/module/redux-slices/rtk-query/queries/listEvents.js +0 -57
  413. package/build/module/redux-slices/rtk-query/queries/listIndexSubscriptions.d.ts +0 -15
  414. package/build/module/redux-slices/rtk-query/queries/listIndexSubscriptions.js +0 -39
  415. package/build/module/redux-slices/rtk-query/queries/listIndexes.d.ts +0 -16
  416. package/build/module/redux-slices/rtk-query/queries/listIndexes.js +0 -40
  417. package/build/module/redux-slices/rtk-query/queries/listStreams.d.ts +0 -16
  418. package/build/module/redux-slices/rtk-query/queries/listStreams.js +0 -39
  419. package/build/module/redux-slices/rtk-query/queries/listSuperTokens.d.ts +0 -14
  420. package/build/module/redux-slices/rtk-query/queries/listSuperTokens.js +0 -37
  421. package/build/module/redux-slices/rtk-query/queries/listUserInteractedSuperTokens.d.ts +0 -15
  422. package/build/module/redux-slices/rtk-query/queries/listUserInteractedSuperTokens.js +0 -54
  423. package/build/module/redux-slices/rtk-query/rtkQuerySlice.d.ts +0 -3
  424. package/build/module/redux-slices/rtk-query/rtkQuerySlice.js +0 -47
  425. package/build/module/redux-slices/rtk-query/rtkQuerySliceBaseQuery.d.ts +0 -21
  426. package/build/module/redux-slices/rtk-query/rtkQuerySliceBaseQuery.js +0 -10
  427. package/build/module/redux-slices/transactions/registerNewTransaction.js +0 -29
  428. package/build/module/redux-slices/transactions/trackTransaction.js +0 -62
  429. package/build/module/redux-slices/transactions/transactionSlice.d.ts +0 -36
  430. package/build/module/redux-slices/transactions/transactionSlice.js +0 -19
@@ -0,0 +1,74 @@
1
+ import { CreateApi } from '@reduxjs/toolkit/dist/query';
2
+ import { Framework } from '@superfluid-finance/sdk-core';
3
+ import { Signer } from 'ethers';
4
+ /**
5
+ * For initializing "sfApi" Redux slice.
6
+ *
7
+ * @param createApi Pass in either {@see createApiWithReactHooks} or {@see createApiWithoutReactHooks}.
8
+ * You can wrap the function with your own function to add even more configuration to the RTK-Query API (e.g. "redux-persist" support).
9
+ */
10
+ export declare const initializeSfApiSlice: <T extends keyof import("@reduxjs/toolkit/dist/query").ApiModules<any, any, any, any>>(createApi: CreateApi<T>) => {
11
+ sfApi: import("@reduxjs/toolkit/dist/query").Api<import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, {
12
+ approveIndexSubscription: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").ApproveIndexSubscription, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
13
+ claimFromIndexSubscription: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").ClaimFromIndexSubscription, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
14
+ createFlow: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").CreateFlow, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
15
+ createIndex: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").CreateIndex, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
16
+ deleteFlow: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").DeleteFlow, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
17
+ deleteIndexSubscription: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").DeleteIndexSubscription, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
18
+ distributeToIndex: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").DistributeToIndex, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
19
+ downgradeFromSuperToken: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").DowngradeFromSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
20
+ monitorForEventsToInvalidateCache: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").MonitorForEventsToInvalidateCache, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, true, "sfApi">;
21
+ revokeIndexSubscription: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").RevokeIndexSubscription, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
22
+ transferSuperToken: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").TransferSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
23
+ updateFlow: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").UpdateFlow, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
24
+ updateIndexSubscriptionUnits: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").UpdateIndexSubscriptionUnits, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
25
+ upgradeToSuperToken: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").UpgradeToSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
26
+ getAllowanceForUpgradeToSuperToken: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetAllowanceForUpgradeToSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, string, string>;
27
+ getIndex: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetIndex, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Index, string>;
28
+ getIndexSubscription: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Subscription, string>;
29
+ getRealtimeBalance: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetRealtimeBalance, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").GetRealtimeBalanceResult, string>;
30
+ listEvents: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListEvents, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").AllEvents>, string>;
31
+ listIndexes: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListIndexes, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndex>, string>;
32
+ listIndexSubscriptions: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndexSubscription>, string>;
33
+ listStreams: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListStreams, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IStream>, string>;
34
+ listSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ISuperToken>, string>;
35
+ listUserInteractedSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListUserInteractedSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ILightAccountTokenSnapshot>, string>;
36
+ }, "sfApi", import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, T>;
37
+ };
38
+ /**
39
+ * For initializing "sfApi" Redux slice.
40
+ *
41
+ * @param createApi Pass in either {@see createApiWithReactHooks} or {@see createApiWithoutReactHooks}.
42
+ * You can wrap the function with your own function to add even more configuration to the RTK-Query API (e.g. "redux-persist" support).
43
+ */
44
+ export declare const initializeSubgraphSlice: <T extends keyof import("@reduxjs/toolkit/dist/query").ApiModules<any, any, any, any>>(createApi: CreateApi<T>) => import("@reduxjs/toolkit/dist/query").Api<import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
45
+ chainId: number;
46
+ handle: (framework: Framework) => Promise<unknown>;
47
+ }, unknown, import("@superfluid-finance/sdk-core").SFError, Record<string, unknown>, {}>, {}, "sfSubgraph", import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, T>;
48
+ /**
49
+ * For initializing "sfTransaction" Redux slice.
50
+ */
51
+ export declare const initializeSfTransactionSlice: () => {
52
+ sfTransactions: import("@reduxjs/toolkit").Slice<import("@reduxjs/toolkit").EntityState<import(".").TrackedTransaction>, {
53
+ upsertTransaction: {
54
+ <S extends import("@reduxjs/toolkit").EntityState<import(".").TrackedTransaction>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S, import("@reduxjs/toolkit").EntityState<import(".").TrackedTransaction>, S>, entity: import(".").TrackedTransaction): S;
55
+ <S_1 extends import("@reduxjs/toolkit").EntityState<import(".").TrackedTransaction>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_1, import("@reduxjs/toolkit").EntityState<import(".").TrackedTransaction>, S_1>, entity: {
56
+ payload: import(".").TrackedTransaction;
57
+ type: string;
58
+ }): S_1;
59
+ };
60
+ }, "sfTransactions">;
61
+ };
62
+ /**
63
+ * SDK-Redux needs to know where to get the signer for mutations (i.e. transaction signing & broadcasting)
64
+ * @param chainId The chain.
65
+ * @param signer The Ethers signer getter. Can be either Promise or instance.
66
+ */
67
+ export declare const setSignerForSdkRedux: (chainId: number, signer: (() => Promise<Signer>) | Signer) => void;
68
+ /**
69
+ * SDK-Redux needs to know where to get SDK-Core's Framework for data querying.
70
+ * @param chainId The chain.
71
+ * @param framework The SDK-Framework getter. Can be either Promise or instance.
72
+ */
73
+ export declare const setFrameworkForSdkRedux: (chainId: number, framework: (() => Promise<Framework>) | Framework) => void;
74
+ //# sourceMappingURL=sdkReduxInitialization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdkReduxInitialization.d.ts","sourceRoot":"","sources":["../../src/sdkReduxInitialization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAEtD,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAO9B;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;wLAInC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;CAIxC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,YAAa,MAAM,UAAU,CAAC,MAAM,QAAQ,MAAM,CAAC,CAAC,GAAG,MAAM,SACpD,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,YAAa,MAAM,aAAa,CAAC,MAAM,QAAQ,SAAS,CAAC,CAAC,GAAG,SAAS,SAC1D,CAAC"}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setFrameworkForSdkRedux = exports.setSignerForSdkRedux = exports.initializeSfTransactionSlice = exports.initializeSubgraphSlice = exports.initializeSfApiSlice = void 0;
4
+ const sfApiSlice_1 = require("./redux-slices/rtk-query/sfApiSlice");
5
+ const subgraphSlice_1 = require("./redux-slices/rtk-query/subgraph-slice/subgraphSlice");
6
+ const createTransactionSlice_1 = require("./redux-slices/transactions/createTransactionSlice");
7
+ const sdkReduxConfig_1 = require("./sdkReduxConfig");
8
+ /**
9
+ * For initializing "sfApi" Redux slice.
10
+ *
11
+ * @param createApi Pass in either {@see createApiWithReactHooks} or {@see createApiWithoutReactHooks}.
12
+ * You can wrap the function with your own function to add even more configuration to the RTK-Query API (e.g. "redux-persist" support).
13
+ */
14
+ const initializeSfApiSlice = (createApi) => {
15
+ const slice = (0, sfApiSlice_1.createApiSlice)(createApi);
16
+ (0, sdkReduxConfig_1.getConfig)().setApiSlice(slice);
17
+ return { sfApi: slice };
18
+ };
19
+ exports.initializeSfApiSlice = initializeSfApiSlice;
20
+ /**
21
+ * For initializing "sfApi" Redux slice.
22
+ *
23
+ * @param createApi Pass in either {@see createApiWithReactHooks} or {@see createApiWithoutReactHooks}.
24
+ * You can wrap the function with your own function to add even more configuration to the RTK-Query API (e.g. "redux-persist" support).
25
+ */
26
+ const initializeSubgraphSlice = (createApi) => {
27
+ const slice = (0, subgraphSlice_1.createSubgraphSlice)(createApi);
28
+ (0, sdkReduxConfig_1.getConfig)().setSubgraphSlice(slice);
29
+ return slice;
30
+ };
31
+ exports.initializeSubgraphSlice = initializeSubgraphSlice;
32
+ /**
33
+ * For initializing "sfTransaction" Redux slice.
34
+ */
35
+ const initializeSfTransactionSlice = () => {
36
+ const slice = (0, createTransactionSlice_1.createTransactionSlice)();
37
+ (0, sdkReduxConfig_1.getConfig)().setTransactionSlice(slice);
38
+ return { sfTransactions: slice };
39
+ };
40
+ exports.initializeSfTransactionSlice = initializeSfTransactionSlice;
41
+ /**
42
+ * SDK-Redux needs to know where to get the signer for mutations (i.e. transaction signing & broadcasting)
43
+ * @param chainId The chain.
44
+ * @param signer The Ethers signer getter. Can be either Promise or instance.
45
+ */
46
+ const setSignerForSdkRedux = (chainId, signer) => (0, sdkReduxConfig_1.getConfig)().setSigner(chainId, signer);
47
+ exports.setSignerForSdkRedux = setSignerForSdkRedux;
48
+ /**
49
+ * SDK-Redux needs to know where to get SDK-Core's Framework for data querying.
50
+ * @param chainId The chain.
51
+ * @param framework The SDK-Framework getter. Can be either Promise or instance.
52
+ */
53
+ const setFrameworkForSdkRedux = (chainId, framework) => (0, sdkReduxConfig_1.getConfig)().setFramework(chainId, framework);
54
+ exports.setFrameworkForSdkRedux = setFrameworkForSdkRedux;
55
+ //# sourceMappingURL=sdkReduxInitialization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdkReduxInitialization.js","sourceRoot":"","sources":["../../src/sdkReduxInitialization.ts"],"names":[],"mappings":";;;AAKA,oEAAmE;AACnE,yFAA0F;AAC1F,+FAA0F;AAC1F,qDAA2C;AAE3C;;;;;GAKG;AACI,MAAM,oBAAoB,GAAG,CAAuB,SAAuB,EAAE,EAAE;IAClF,MAAM,KAAK,GAAG,IAAA,2BAAc,EAAC,SAAS,CAAC,CAAC;IACxC,IAAA,0BAAS,GAAE,CAAC,WAAW,CAAC,KAAY,CAAC,CAAC;IACtC,OAAO,EAAC,KAAK,EAAE,KAAK,EAAC,CAAC;AAC1B,CAAC,CAAC;AAJW,QAAA,oBAAoB,wBAI/B;AAEF;;;;;GAKG;AACI,MAAM,uBAAuB,GAAG,CAAuB,SAAuB,EAAE,EAAE;IACrF,MAAM,KAAK,GAAG,IAAA,mCAAmB,EAAC,SAAS,CAAC,CAAC;IAC7C,IAAA,0BAAS,GAAE,CAAC,gBAAgB,CAAC,KAAY,CAAC,CAAC;IAC3C,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC;AAJW,QAAA,uBAAuB,2BAIlC;AAEF;;GAEG;AACI,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAC7C,MAAM,KAAK,GAAG,IAAA,+CAAsB,GAAE,CAAC;IACvC,IAAA,0BAAS,GAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACvC,OAAO,EAAC,cAAc,EAAE,KAAK,EAAC,CAAC;AACnC,CAAC,CAAC;AAJW,QAAA,4BAA4B,gCAIvC;AAEF;;;;GAIG;AACI,MAAM,oBAAoB,GAAG,CAAC,OAAe,EAAE,MAAwC,EAAE,EAAE,CAC9F,IAAA,0BAAS,GAAE,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAD9B,QAAA,oBAAoB,wBACU;AAE3C;;;;GAIG;AACI,MAAM,uBAAuB,GAAG,CAAC,OAAe,EAAE,SAAiD,EAAE,EAAE,CAC1G,IAAA,0BAAS,GAAE,CAAC,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AADpC,QAAA,uBAAuB,2BACa"}
@@ -23,3 +23,4 @@ export declare enum MillisecondTimes {
23
23
  ThreeMinutes = 180000,
24
24
  FiveMinutes = 300000
25
25
  }
26
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,SAAS,kBAAqB,CAAC;AAE5C;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,GAAG,OAAO,EAAE,GAAG,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAE/E;AAED;;;GAGG;AACH,oBAAY,gBAAgB;IACxB,SAAS,OAAO;IAChB,WAAW,OAAO;IAClB,aAAa,QAAQ;IACrB,SAAS,QAAQ;IACjB,UAAU,SAAS;IACnB,YAAY,SAAS;IACrB,WAAW,SAAS;CACvB"}
@@ -31,4 +31,4 @@ var MillisecondTimes;
31
31
  MillisecondTimes[MillisecondTimes["ThreeMinutes"] = 180000] = "ThreeMinutes";
32
32
  MillisecondTimes[MillisecondTimes["FiveMinutes"] = 300000] = "FiveMinutes";
33
33
  })(MillisecondTimes = exports.MillisecondTimes || (exports.MillisecondTimes = {}));
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUE7Ozs7R0FJRztBQUNJLE1BQU0sU0FBUyxHQUFHLENBQUksR0FBTSxFQUFFLEVBQUUsQ0FBQyxHQUFHLENBQUM7QUFBL0IsUUFBQSxTQUFTLGFBQXNCO0FBRTVDOzs7O0dBSUc7QUFDSCxTQUFnQixRQUFRLENBQ3BCLFNBQTRCLEVBQzVCLEdBQUcsUUFBYTtJQUVoQixPQUFPLFNBQVMsQ0FBQyxDQUFDLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUM7QUFDckMsQ0FBQztBQUxELDRCQUtDO0FBRUQ7OztHQUdHO0FBQ0gsSUFBWSxnQkFRWDtBQVJELFdBQVksZ0JBQWdCO0lBQ3hCLG9FQUFnQixDQUFBO0lBQ2hCLHdFQUFrQixDQUFBO0lBQ2xCLDZFQUFxQixDQUFBO0lBQ3JCLHFFQUFpQixDQUFBO0lBQ2pCLHdFQUFtQixDQUFBO0lBQ25CLDRFQUFxQixDQUFBO0lBQ3JCLDBFQUFvQixDQUFBO0FBQ3hCLENBQUMsRUFSVyxnQkFBZ0IsR0FBaEIsd0JBQWdCLEtBQWhCLHdCQUFnQixRQVEzQiJ9
34
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACI,MAAM,SAAS,GAAG,CAAI,GAAM,EAAE,EAAE,CAAC,GAAG,CAAC;AAA/B,QAAA,SAAS,aAAsB;AAE5C;;;;GAIG;AACH,SAAgB,QAAQ,CAAI,SAA4B,EAAE,GAAG,QAAa;IACtE,OAAO,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;AACrC,CAAC;AAFD,4BAEC;AAED;;;GAGG;AACH,IAAY,gBAQX;AARD,WAAY,gBAAgB;IACxB,oEAAgB,CAAA;IAChB,wEAAkB,CAAA;IAClB,6EAAqB,CAAA;IACrB,qEAAiB,CAAA;IACjB,wEAAmB,CAAA;IACnB,4EAAqB,CAAA;IACrB,0EAAoB,CAAA;AACxB,CAAC,EARW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAQ3B"}
@@ -0,0 +1,13 @@
1
+ export * as _sdkCore from '@superfluid-finance/sdk-core';
2
+ export * from './sdkReduxInitialization';
3
+ export * from './redux-slices/argTypes';
4
+ export * from './redux-slices/rtk-query/queries/queries';
5
+ export * from './redux-slices/rtk-query/subgraph-slice/entityQueryArgs';
6
+ export * from './redux-slices/rtk-query/mutations/mutations';
7
+ export { ValidationError, PossibleErrors } from './redux-slices/rtk-query/returnTypes';
8
+ export * from './redux-slices/transactions/trackedTransaction';
9
+ export * from './redux-slices/rtk-query/createApiWithReactHooks';
10
+ export * from './redux-slices/rtk-query/createApiWithoutReactHooks';
11
+ export * from './redux-slices/rtk-query/subgraph-slice/customSubgraphQuery';
12
+ export * from './redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AAEzD,cAAc,0BAA0B,CAAC;AAEzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0CAA0C,CAAC;AACzD,cAAc,yDAAyD,CAAC;AACxE,cAAc,8CAA8C,CAAC;AAE7D,OAAO,EAAC,eAAe,EAAE,cAAc,EAAC,MAAM,sCAAsC,CAAC;AAErF,cAAc,gDAAgD,CAAC;AAE/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AAEpE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,mEAAmE,CAAC"}
@@ -0,0 +1,12 @@
1
+ export * as _sdkCore from '@superfluid-finance/sdk-core';
2
+ export * from './sdkReduxInitialization';
3
+ export * from './redux-slices/argTypes';
4
+ export * from './redux-slices/rtk-query/queries/queries';
5
+ export * from './redux-slices/rtk-query/subgraph-slice/entityQueryArgs';
6
+ export * from './redux-slices/rtk-query/mutations/mutations';
7
+ export * from './redux-slices/transactions/trackedTransaction';
8
+ export * from './redux-slices/rtk-query/createApiWithReactHooks';
9
+ export * from './redux-slices/rtk-query/createApiWithoutReactHooks';
10
+ export * from './redux-slices/rtk-query/subgraph-slice/customSubgraphQuery';
11
+ export * from './redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints';
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AAEzD,cAAc,0BAA0B,CAAC;AAEzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0CAA0C,CAAC;AACzD,cAAc,yDAAyD,CAAC;AACxE,cAAc,8CAA8C,CAAC;AAI7D,cAAc,gDAAgD,CAAC;AAE/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AAEpE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,mEAAmE,CAAC"}
@@ -1,32 +1,29 @@
1
1
  /**
2
2
  * Information about the transaction to locate it.
3
3
  */
4
- export declare type TransactionInfo = {
4
+ export interface TransactionInfo {
5
5
  /** The transaction's network chain ID. */
6
6
  chainId: number;
7
7
  /** The transaction hash. */
8
8
  hash: string;
9
- };
10
- /**
11
- *
12
- */
13
- export declare type QueryArg = {
9
+ }
10
+ export interface BaseQuery<_TReturns> {
14
11
  /** Queried network's chain ID. */
15
12
  chainId: number;
16
- };
13
+ }
17
14
  /**
18
- *
15
+ * A query that returns a list of objects in paginated manner.
19
16
  */
20
- export declare type PaginatedQueryArg = QueryArg & {
17
+ export interface BasePaginatedQuery<TReturns> extends BaseQuery<TReturns> {
21
18
  /** How many entries to skip. */
22
19
  skip: number;
23
20
  /** How many entries to return. */
24
21
  take: number;
25
- };
22
+ }
26
23
  /**
27
- * TEST
24
+ * A mutation that changes the state of a super token.
28
25
  */
29
- export declare type SuperTokenMutationArg = {
26
+ export interface BaseSuperTokenMutation {
30
27
  /** The network's chain ID where transactions will be broadcast. */
31
28
  chainId: number;
32
29
  /** SuperToken the mutation will affect. */
@@ -38,7 +35,7 @@ export declare type SuperTokenMutationArg = {
38
35
  * If set to `false` then the mutation will not be blocking, i.e. the react hook / redux thunk will not return.
39
36
  */
40
37
  waitForConfirmation: boolean | NothingBoolean;
41
- };
38
+ }
42
39
  /**
43
40
  * Input for strings that is ignored.
44
41
  */
@@ -51,3 +48,4 @@ export declare type NothingNumber = undefined;
51
48
  * Input for booleans that is ignored.
52
49
  */
53
50
  export declare type NothingBoolean = undefined;
51
+ //# sourceMappingURL=argTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"argTypes.d.ts","sourceRoot":"","sources":["../../../src/redux-slices/argTypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,SAAS,CAAC,SAAS;IAChC,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB,CAAC,QAAQ,CAAE,SAAQ,SAAS,CAAC,QAAQ,CAAC;IACrE,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,oEAAoE;IACpE,OAAO,EAAE,MAAM,CAAC;IAChB,2CAA2C;IAC3C,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAAC;CACjD;AAED;;GAEG;AACH,oBAAY,aAAa,GAAG,EAAE,GAAG,SAAS,CAAC;AAE3C;;GAEG;AACH,oBAAY,aAAa,GAAG,SAAS,CAAC;AAEtC;;GAEG;AACH,oBAAY,cAAc,GAAG,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=argTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"argTypes.js","sourceRoot":"","sources":["../../../src/redux-slices/argTypes.ts"],"names":[],"mappings":""}
@@ -13,3 +13,4 @@ export declare const createTag: (type: CacheTagTypes, ...keys: (string | number)
13
13
  type: CacheTagTypes;
14
14
  id: string;
15
15
  };
16
+ //# sourceMappingURL=CacheTagTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CacheTagTypes.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/CacheTagTypes.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,oBAAY,aAAa,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,SAAS,SAAU,aAAa,WAAW,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;;;CAGzE,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Create a cache tag for RTK-Query.
3
+ * @private
4
+ * @category Cache Tags
5
+ */
6
+ export const createTag = (type, ...keys) => ({
7
+ type: type,
8
+ id: keys.join('_').toLowerCase(),
9
+ });
10
+ // Order of address priorities if all present:
11
+ // 1. SuperToken Address
12
+ // 2. Publisher / Sender / From Address
13
+ // 3. Subscriber / Receiver / To Address
14
+ //# sourceMappingURL=CacheTagTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CacheTagTypes.js","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/CacheTagTypes.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAmB,EAAE,GAAG,IAAyB,EAAE,EAAE,CAAC,CAAC;IAC7E,IAAI,EAAE,IAAI;IACV,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE;CACnC,CAAC,CAAC;AAEH,8CAA8C;AAC9C,wBAAwB;AACxB,uCAAuC;AACvC,wCAAwC"}
@@ -7,3 +7,4 @@ export declare const createEventTag: (chainId: number) => {
7
7
  type: import("./CacheTagTypes").CacheTagTypes;
8
8
  id: string;
9
9
  };
10
+ //# sourceMappingURL=eventTags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventTags.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/eventTags.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,cAAc,YAAa,MAAM;;;CAAgC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { createTag } from './CacheTagTypes';
2
+ /**
3
+ * The simplest cache tag.
4
+ * @private
5
+ * @category Cache Tags
6
+ */
7
+ export const createEventTag = (chainId) => createTag('Event', chainId);
8
+ //# sourceMappingURL=eventTags.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventTags.js","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/eventTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAE1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC"}
@@ -21,7 +21,7 @@ declare type IndexTagArg = {
21
21
  * @private
22
22
  * @category Cache Tags
23
23
  */
24
- export declare const createIndexTags: ({ chainId, address1, address2, address3, indexId, }: IndexTagArg) => {
24
+ export declare const createIndexTags: ({ chainId, address1, address2, address3, indexId }: IndexTagArg) => {
25
25
  type: import("./CacheTagTypes").CacheTagTypes;
26
26
  id: string;
27
27
  }[];
@@ -34,3 +34,4 @@ export declare const getMostSpecificIndexTag: (arg: IndexTagArg) => {
34
34
  id: string;
35
35
  };
36
36
  export {};
37
+ //# sourceMappingURL=indexTags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexTags.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/indexTags.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAI7C;;;;;;;;;GASG;AACH,aAAK,WAAW,GAAG;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,QAAQ,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,QAAQ,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,OAAO,EAAE,MAAM,GAAG,aAAa,CAAC;CACnC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,uDAAsD,WAAW;;;GAY5F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAS,WAAW;;;CAEvD,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { insertIf } from '../../../utils';
2
+ import { createTag } from './CacheTagTypes';
3
+ /**
4
+ * Creates all possible index cache tag combinations.
5
+ * @private
6
+ * @category Cache Tags
7
+ */
8
+ export const createIndexTags = ({ chainId, address1, address2, address3, indexId }) => [
9
+ indexTag(chainId),
10
+ ...insertIf(address1, indexTag(chainId, address1)),
11
+ ...insertIf(address2, indexTag(chainId, address2)),
12
+ ...insertIf(address3, indexTag(chainId, address3)),
13
+ ...insertIf(address1 && address2, indexTag(chainId, address1, address2)),
14
+ ...insertIf(address1 && address3, indexTag(chainId, address1, address3)),
15
+ ...insertIf(address1 && address2 && address3, indexTag(chainId, address1, address2, address3)),
16
+ ...insertIf(address1 && address2 && address3 && indexId, indexTag(chainId, address1, address2, address3, indexId)),
17
+ ];
18
+ /**
19
+ * @private
20
+ * @category Cache Tags
21
+ */
22
+ export const getMostSpecificIndexTag = (arg) => {
23
+ return createIndexTags(arg).reverse()[0];
24
+ };
25
+ const indexTag = (chainId, ...keys) => createTag('Index', chainId, ...keys);
26
+ //# sourceMappingURL=indexTags.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexTags.js","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/indexTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAGxC,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAoB1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAc,EAAE,EAAE,CAAC;IAC9F,QAAQ,CAAC,OAAO,CAAC;IACjB,GAAG,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAS,CAAC,CAAC;IACnD,GAAG,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAS,CAAC,CAAC;IACnD,GAAG,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAS,CAAC,CAAC;IACnD,GAAG,QAAQ,CAAC,QAAQ,IAAI,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAS,EAAE,QAAS,CAAC,CAAC;IAC1E,GAAG,QAAQ,CAAC,QAAQ,IAAI,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAS,EAAE,QAAS,CAAC,CAAC;IAC1E,GAAG,QAAQ,CAAC,QAAQ,IAAI,QAAQ,IAAI,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAS,EAAE,QAAS,EAAE,QAAS,CAAC,CAAC;IACjG,GAAG,QAAQ,CACP,QAAQ,IAAI,QAAQ,IAAI,QAAQ,IAAI,OAAO,EAC3C,QAAQ,CAAC,OAAO,EAAE,QAAS,EAAE,QAAS,EAAE,QAAS,EAAE,OAAQ,CAAC,CAC/D;CACJ,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAAgB,EAAE,EAAE;IACxD,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,OAAe,EAAE,GAAG,IAAc,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC"}
@@ -7,3 +7,4 @@ import { AllEvents } from '@superfluid-finance/sdk-core';
7
7
  * @category Cache Tags
8
8
  */
9
9
  export declare const invalidateCacheTagsForEvents: (chainId: number, events: AllEvents[], dispatch: ThunkDispatch<any, any, AnyAction>) => void;
10
+ //# sourceMappingURL=invalidateCacheTagsForEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invalidateCacheTagsForEvents.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AASvD;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,YAC5B,MAAM,UACP,SAAS,EAAE,YACT,cAAc,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,SAQ/C,CAAC"}
@@ -0,0 +1,142 @@
1
+ import { getApiSlice, getSubgraphSlice } from '../../../sdkReduxConfig';
2
+ import { createEventTag } from './eventTags';
3
+ import { createIndexTags } from './indexTags';
4
+ import { createStreamsTags } from './streamTags';
5
+ import { createTokenTags } from './tokenTags';
6
+ /**
7
+ * Based on event type, invalidate all possible relevant cache tags.
8
+ * Cache tag invalidation will trigger re-querying of data.
9
+ * @private
10
+ * @category Cache Tags
11
+ */
12
+ export const invalidateCacheTagsForEvents = (chainId, events, dispatch) => {
13
+ const tagsToInvalidate = events
14
+ .map((event) => [createEventTag(chainId), ...getEventSpecificTags(event, chainId)])
15
+ .flat();
16
+ dispatch(getApiSlice().util.invalidateTags(tagsToInvalidate));
17
+ dispatch(getSubgraphSlice().util.invalidateTags(tagsToInvalidate));
18
+ };
19
+ const getEventSpecificTags = (event, chainId) => {
20
+ switch (event.name) {
21
+ case 'SubscriptionApproved':
22
+ case 'IndexDistributionClaimed':
23
+ case 'IndexSubscribed':
24
+ case 'IndexUnitsUpdated':
25
+ case 'IndexUnsubscribed':
26
+ case 'SubscriptionDistributionClaimed':
27
+ case 'SubscriptionRevoked':
28
+ case 'SubscriptionUnitsUpdated':
29
+ return createIndexTags({
30
+ chainId,
31
+ address1: event.token,
32
+ address2: event.publisher,
33
+ address3: event.subscriber,
34
+ indexId: event.indexId,
35
+ });
36
+ case 'IndexCreated':
37
+ case 'IndexUpdated':
38
+ return createIndexTags({
39
+ chainId,
40
+ address1: event.token,
41
+ address2: event.publisher,
42
+ address3: undefined,
43
+ indexId: event.indexId,
44
+ });
45
+ case 'FlowUpdated':
46
+ return createStreamsTags({
47
+ chainId,
48
+ address1: event.token,
49
+ address2: event.sender,
50
+ address3: event.receiver,
51
+ });
52
+ case 'TokenUpgraded':
53
+ case 'TokenDowngraded':
54
+ return createTokenTags({
55
+ chainId,
56
+ address1: event.token,
57
+ address2: event.account,
58
+ address3: undefined,
59
+ });
60
+ case 'Transfer':
61
+ return createTokenTags({
62
+ chainId,
63
+ address1: event.token,
64
+ address2: event.from,
65
+ address3: event.to,
66
+ });
67
+ case 'AgreementLiquidatedBy':
68
+ return createStreamsTags({
69
+ chainId,
70
+ address1: event.token,
71
+ address2: event.penaltyAccount,
72
+ address3: undefined,
73
+ });
74
+ case 'AgreementClassRegistered':
75
+ return [];
76
+ case 'AgreementClassUpdated':
77
+ return [];
78
+ case 'AppRegistered':
79
+ return [];
80
+ case 'Burned':
81
+ return [];
82
+ case 'CFAv1LiquidationPeriodChanged':
83
+ return [];
84
+ case 'ConfigChanged':
85
+ return [];
86
+ case 'CustomSuperTokenCreated':
87
+ return createTokenTags({
88
+ chainId,
89
+ address1: event.token,
90
+ address3: undefined,
91
+ address2: undefined,
92
+ });
93
+ case 'GovernanceReplaced':
94
+ return [];
95
+ case 'Jail':
96
+ return [];
97
+ case 'Minted':
98
+ return createTokenTags({
99
+ chainId,
100
+ address1: event.to,
101
+ address2: undefined,
102
+ address3: undefined,
103
+ });
104
+ case 'RewardAddressChanged':
105
+ return [];
106
+ case 'RoleAdminChanged':
107
+ return [];
108
+ case 'RoleGranted':
109
+ return [];
110
+ case 'RoleRevoked':
111
+ return [];
112
+ case 'Sent':
113
+ return createTokenTags({
114
+ chainId,
115
+ address1: event.to,
116
+ address2: undefined,
117
+ address3: undefined,
118
+ });
119
+ case 'SuperTokenLogicUpdated':
120
+ case 'SuperTokenCreated':
121
+ return createTokenTags({
122
+ chainId,
123
+ address1: event.token,
124
+ address2: undefined,
125
+ address3: undefined,
126
+ });
127
+ case 'SuperTokenFactoryUpdated':
128
+ return [];
129
+ case 'SuperTokenLogicCreated':
130
+ return [];
131
+ case 'TrustedForwarderChanged':
132
+ return createTokenTags({
133
+ chainId,
134
+ address1: event.superToken,
135
+ address2: undefined,
136
+ address3: undefined,
137
+ });
138
+ default:
139
+ throw Error('Unknown event type!');
140
+ }
141
+ };
142
+ //# sourceMappingURL=invalidateCacheTagsForEvents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invalidateCacheTagsForEvents.js","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,WAAW,EAAE,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAE5C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CACxC,OAAe,EACf,MAAmB,EACnB,QAA4C,EAC9C,EAAE;IACA,MAAM,gBAAgB,GAAG,MAAM;SAC1B,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,GAAG,oBAAoB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;SAClF,IAAI,EAAE,CAAC;IAEZ,QAAQ,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAC9D,QAAQ,CAAC,gBAAgB,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC;AACvE,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,KAAgB,EAAE,OAAe,EAAE,EAAE;IAC/D,QAAQ,KAAK,CAAC,IAAI,EAAE;QAChB,KAAK,sBAAsB,CAAC;QAC5B,KAAK,0BAA0B,CAAC;QAChC,KAAK,iBAAiB,CAAC;QACvB,KAAK,mBAAmB,CAAC;QACzB,KAAK,mBAAmB,CAAC;QACzB,KAAK,iCAAiC,CAAC;QACvC,KAAK,qBAAqB,CAAC;QAC3B,KAAK,0BAA0B;YAC3B,OAAO,eAAe,CAAC;gBACnB,OAAO;gBACP,QAAQ,EAAE,KAAK,CAAC,KAAK;gBACrB,QAAQ,EAAE,KAAK,CAAC,SAAS;gBACzB,QAAQ,EAAE,KAAK,CAAC,UAAU;gBAC1B,OAAO,EAAE,KAAK,CAAC,OAAO;aACzB,CAAC,CAAC;QACP,KAAK,cAAc,CAAC;QACpB,KAAK,cAAc;YACf,OAAO,eAAe,CAAC;gBACnB,OAAO;gBACP,QAAQ,EAAE,KAAK,CAAC,KAAK;gBACrB,QAAQ,EAAE,KAAK,CAAC,SAAS;gBACzB,QAAQ,EAAE,SAAS;gBACnB,OAAO,EAAE,KAAK,CAAC,OAAO;aACzB,CAAC,CAAC;QACP,KAAK,aAAa;YACd,OAAO,iBAAiB,CAAC;gBACrB,OAAO;gBACP,QAAQ,EAAE,KAAK,CAAC,KAAK;gBACrB,QAAQ,EAAE,KAAK,CAAC,MAAM;gBACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;aAC3B,CAAC,CAAC;QACP,KAAK,eAAe,CAAC;QACrB,KAAK,iBAAiB;YAClB,OAAO,eAAe,CAAC;gBACnB,OAAO;gBACP,QAAQ,EAAE,KAAK,CAAC,KAAK;gBACrB,QAAQ,EAAE,KAAK,CAAC,OAAO;gBACvB,QAAQ,EAAE,SAAS;aACtB,CAAC,CAAC;QACP,KAAK,UAAU;YACX,OAAO,eAAe,CAAC;gBACnB,OAAO;gBACP,QAAQ,EAAE,KAAK,CAAC,KAAK;gBACrB,QAAQ,EAAE,KAAK,CAAC,IAAI;gBACpB,QAAQ,EAAE,KAAK,CAAC,EAAE;aACrB,CAAC,CAAC;QACP,KAAK,uBAAuB;YACxB,OAAO,iBAAiB,CAAC;gBACrB,OAAO;gBACP,QAAQ,EAAE,KAAK,CAAC,KAAK;gBACrB,QAAQ,EAAE,KAAK,CAAC,cAAc;gBAC9B,QAAQ,EAAE,SAAS;aACtB,CAAC,CAAC;QACP,KAAK,0BAA0B;YAC3B,OAAO,EAAE,CAAC;QACd,KAAK,uBAAuB;YACxB,OAAO,EAAE,CAAC;QACd,KAAK,eAAe;YAChB,OAAO,EAAE,CAAC;QACd,KAAK,QAAQ;YACT,OAAO,EAAE,CAAC;QACd,KAAK,+BAA+B;YAChC,OAAO,EAAE,CAAC;QACd,KAAK,eAAe;YAChB,OAAO,EAAE,CAAC;QACd,KAAK,yBAAyB;YAC1B,OAAO,eAAe,CAAC;gBACnB,OAAO;gBACP,QAAQ,EAAE,KAAK,CAAC,KAAK;gBACrB,QAAQ,EAAE,SAAS;gBACnB,QAAQ,EAAE,SAAS;aACtB,CAAC,CAAC;QACP,KAAK,oBAAoB;YACrB,OAAO,EAAE,CAAC;QACd,KAAK,MAAM;YACP,OAAO,EAAE,CAAC;QACd,KAAK,QAAQ;YACT,OAAO,eAAe,CAAC;gBACnB,OAAO;gBACP,QAAQ,EAAE,KAAK,CAAC,EAAE;gBAClB,QAAQ,EAAE,SAAS;gBACnB,QAAQ,EAAE,SAAS;aACtB,CAAC,CAAC;QACP,KAAK,sBAAsB;YACvB,OAAO,EAAE,CAAC;QACd,KAAK,kBAAkB;YACnB,OAAO,EAAE,CAAC;QACd,KAAK,aAAa;YACd,OAAO,EAAE,CAAC;QACd,KAAK,aAAa;YACd,OAAO,EAAE,CAAC;QACd,KAAK,MAAM;YACP,OAAO,eAAe,CAAC;gBACnB,OAAO;gBACP,QAAQ,EAAE,KAAK,CAAC,EAAE;gBAClB,QAAQ,EAAE,SAAS;gBACnB,QAAQ,EAAE,SAAS;aACtB,CAAC,CAAC;QACP,KAAK,wBAAwB,CAAC;QAC9B,KAAK,mBAAmB;YACpB,OAAO,eAAe,CAAC;gBACnB,OAAO;gBACP,QAAQ,EAAE,KAAK,CAAC,KAAK;gBACrB,QAAQ,EAAE,SAAS;gBACnB,QAAQ,EAAE,SAAS;aACtB,CAAC,CAAC;QACP,KAAK,0BAA0B;YAC3B,OAAO,EAAE,CAAC;QACd,KAAK,wBAAwB;YACzB,OAAO,EAAE,CAAC;QACd,KAAK,yBAAyB;YAC1B,OAAO,eAAe,CAAC;gBACnB,OAAO;gBACP,QAAQ,EAAE,KAAK,CAAC,UAAU;gBAC1B,QAAQ,EAAE,SAAS;gBACnB,QAAQ,EAAE,SAAS;aACtB,CAAC,CAAC;QACP;YACI,MAAM,KAAK,CAAC,qBAAqB,CAAC,CAAC;KAC1C;AACL,CAAC,CAAC"}
@@ -8,3 +8,4 @@ import { TransactionInfo } from '../../argTypes';
8
8
  * @category Cache Tags
9
9
  */
10
10
  export declare const monitorAddressForNextEventToInvalidateCache: (address: string, transactionInfo: TransactionInfo, dispatch: ThunkDispatch<any, any, AnyAction>) => Promise<void>;
11
+ //# sourceMappingURL=monitorAddressForNextEventToInvalidateCache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monitorAddressForNextEventToInvalidateCache.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAI/C,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAI/C;;;;;GAKG;AACH,eAAO,MAAM,2CAA2C,YAC3C,MAAM,mBACE,eAAe,YACtB,cAAc,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,kBAY/C,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { getFramework } from '../../../sdkReduxConfig';
2
+ import { MillisecondTimes } from '../../../utils';
3
+ import { invalidateCacheTagsForEvents } from './invalidateCacheTagsForEvents';
4
+ /**
5
+ * Monitors given address for next event to invalidate cache and then stops.
6
+ * NOTE: Optimizations for robustness could be done here.
7
+ * @private
8
+ * @category Cache Tags
9
+ */
10
+ export const monitorAddressForNextEventToInvalidateCache = async (address, transactionInfo, dispatch) => {
11
+ const framework = await getFramework(transactionInfo.chainId);
12
+ framework.query.on((events, unsubscribe) => {
13
+ invalidateCacheTagsForEvents(transactionInfo.chainId, events, dispatch);
14
+ unsubscribe();
15
+ }, MillisecondTimes.OneSecond, address, MillisecondTimes.OneMinute);
16
+ };
17
+ //# sourceMappingURL=monitorAddressForNextEventToInvalidateCache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monitorAddressForNextEventToInvalidateCache.js","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,YAAY,EAAC,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAG,KAAK,EAC5D,OAAe,EACf,eAAgC,EAChC,QAA4C,EAC9C,EAAE;IACA,MAAM,SAAS,GAAG,MAAM,YAAY,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAC9D,SAAS,CAAC,KAAK,CAAC,EAAE,CACd,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE;QACpB,4BAA4B,CAAC,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;QACxE,WAAW,EAAE,CAAC;IAClB,CAAC,EACD,gBAAgB,CAAC,SAAS,EAC1B,OAAO,EACP,gBAAgB,CAAC,SAAS,CAC7B,CAAC;AACN,CAAC,CAAC"}
@@ -20,7 +20,7 @@ declare type StreamTagArg = {
20
20
  * @private
21
21
  * @category Cache Tags
22
22
  */
23
- export declare const createStreamsTags: ({ chainId, address1, address2, address3, }: StreamTagArg) => {
23
+ export declare const createStreamsTags: ({ chainId, address1, address2, address3 }: StreamTagArg) => {
24
24
  type: import("./CacheTagTypes").CacheTagTypes;
25
25
  id: string;
26
26
  }[];
@@ -33,3 +33,4 @@ export declare const getMostSpecificStreamTag: (arg: StreamTagArg) => {
33
33
  id: string;
34
34
  };
35
35
  export {};
36
+ //# sourceMappingURL=streamTags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streamTags.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/streamTags.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAI7C;;;;;;;;;GASG;AACH,aAAK,YAAY,GAAG;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,QAAQ,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,QAAQ,EAAE,MAAM,GAAG,aAAa,CAAC;CACpC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,8CAA6C,YAAY;;;GAQtF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,QAAS,YAAY;;;CAEzD,CAAC"}