@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
@@ -1,16 +0,0 @@
1
- import { IStream, PagedResult } from '@superfluid-finance/sdk-core';
2
- import { NothingString, PaginatedQueryArg } from '../../argTypes';
3
- export declare type ListStreamsArg = PaginatedQueryArg & {
4
- senderAddress: string | NothingString;
5
- receiverAddress: string | NothingString;
6
- superTokenAddress: string | NothingString;
7
- };
8
- export declare const
9
- /**
10
- * @category React Hooks
11
- */
12
- useListStreamsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<ListStreamsArg, 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<IStream>, string>>,
13
- /**
14
- * @category React Hooks
15
- */
16
- useLazyListStreamsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<ListStreamsArg, 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<IStream>, string>>;
@@ -1,39 +0,0 @@
1
- import { createSkipPaging, } from '@superfluid-finance/sdk-core';
2
- import { getSfContext } from '../../../createSdkReduxParts';
3
- import { getMostSpecificStreamTag } from '../cacheTags/streamTags';
4
- import { rtkQuerySlice } from '../rtkQuerySlice';
5
- const apiSlice = rtkQuerySlice.injectEndpoints({
6
- endpoints: (builder) => ({
7
- listStreams: builder.query({
8
- providesTags: (_result, _error, arg) => [
9
- getMostSpecificStreamTag({
10
- chainId: arg.chainId,
11
- address1: arg.superTokenAddress,
12
- address3: arg.receiverAddress,
13
- address2: arg.senderAddress,
14
- }),
15
- ],
16
- queryFn: async (arg) => {
17
- const framework = await getSfContext().getFramework(arg.chainId);
18
- return {
19
- data: await framework.query.listStreams({
20
- sender: arg.senderAddress,
21
- receiver: arg.receiverAddress,
22
- token: arg.superTokenAddress,
23
- }, createSkipPaging(arg)),
24
- };
25
- },
26
- }),
27
- }),
28
- overrideExisting: false,
29
- });
30
- export const {
31
- /**
32
- * @category React Hooks
33
- */
34
- useListStreamsQuery,
35
- /**
36
- * @category React Hooks
37
- */
38
- useLazyListStreamsQuery, } = apiSlice;
39
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdFN0cmVhbXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvcmVkdXgtc2xpY2VzL3J0ay1xdWVyeS9xdWVyaWVzL2xpc3RTdHJlYW1zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDSCxnQkFBZ0IsR0FHbkIsTUFBTSw4QkFBOEIsQ0FBQztBQUV0QyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sOEJBQThCLENBQUM7QUFFMUQsT0FBTyxFQUFDLHdCQUF3QixFQUFDLE1BQU0seUJBQXlCLENBQUM7QUFDakUsT0FBTyxFQUFDLGFBQWEsRUFBQyxNQUFNLGtCQUFrQixDQUFDO0FBUS9DLE1BQU0sUUFBUSxHQUFHLGFBQWEsQ0FBQyxlQUFlLENBQUM7SUFDM0MsU0FBUyxFQUFFLENBQUMsT0FBTyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQ3JCLFdBQVcsRUFBRSxPQUFPLENBQUMsS0FBSyxDQUF1QztZQUM3RCxZQUFZLEVBQUUsQ0FBQyxPQUFPLEVBQUUsTUFBTSxFQUFFLEdBQUcsRUFBRSxFQUFFLENBQUM7Z0JBQ3BDLHdCQUF3QixDQUFDO29CQUNyQixPQUFPLEVBQUUsR0FBRyxDQUFDLE9BQU87b0JBQ3BCLFFBQVEsRUFBRSxHQUFHLENBQUMsaUJBQWlCO29CQUMvQixRQUFRLEVBQUUsR0FBRyxDQUFDLGVBQWU7b0JBQzdCLFFBQVEsRUFBRSxHQUFHLENBQUMsYUFBYTtpQkFDOUIsQ0FBQzthQUNMO1lBQ0QsT0FBTyxFQUFFLEtBQUssRUFBRSxHQUFHLEVBQUUsRUFBRTtnQkFDbkIsTUFBTSxTQUFTLEdBQUcsTUFBTSxZQUFZLEVBQUUsQ0FBQyxZQUFZLENBQy9DLEdBQUcsQ0FBQyxPQUFPLENBQ2QsQ0FBQztnQkFFRixPQUFPO29CQUNILElBQUksRUFBRSxNQUFNLFNBQVMsQ0FBQyxLQUFLLENBQUMsV0FBVyxDQUNuQzt3QkFDSSxNQUFNLEVBQUUsR0FBRyxDQUFDLGFBQWE7d0JBQ3pCLFFBQVEsRUFBRSxHQUFHLENBQUMsZUFBZTt3QkFDN0IsS0FBSyxFQUFFLEdBQUcsQ0FBQyxpQkFBaUI7cUJBQy9CLEVBQ0QsZ0JBQWdCLENBQUMsR0FBRyxDQUFDLENBQ3hCO2lCQUNKLENBQUM7WUFDTixDQUFDO1NBQ0osQ0FBQztLQUNMLENBQUM7SUFDRixnQkFBZ0IsRUFBRSxLQUFLO0NBQzFCLENBQUMsQ0FBQztBQUVILE1BQU0sQ0FBQyxNQUFNO0FBQ1Q7O0dBRUc7QUFDSCxtQkFBbUI7QUFDbkI7O0dBRUc7QUFDSCx1QkFBdUIsR0FDMUIsR0FBRyxRQUFRLENBQUMifQ==
@@ -1,14 +0,0 @@
1
- import { ISuperToken, PagedResult } from '@superfluid-finance/sdk-core';
2
- import { NothingBoolean, PaginatedQueryArg } from '../../argTypes';
3
- export declare type ListSuperTokensArg = PaginatedQueryArg & {
4
- isListed: boolean | NothingBoolean;
5
- };
6
- export declare const
7
- /**
8
- * @category React Hooks
9
- */
10
- useListSuperTokensQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<ListSuperTokensArg, 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<ISuperToken>, string>>,
11
- /**
12
- * @category React Hooks
13
- */
14
- useLazyListSuperTokensQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<ListSuperTokensArg, 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<ISuperToken>, string>>;
@@ -1,37 +0,0 @@
1
- import { createSkipPaging, } from '@superfluid-finance/sdk-core';
2
- import { getSfContext } from '../../../createSdkReduxParts';
3
- import { getMostSpecificTokenTag } from '../cacheTags/tokenTags';
4
- import { rtkQuerySlice } from '../rtkQuerySlice';
5
- const apiSlice = rtkQuerySlice.injectEndpoints({
6
- endpoints: (builder) => ({
7
- listSuperTokens: builder.query({
8
- providesTags: (_result, _error, arg) => [
9
- getMostSpecificTokenTag({
10
- chainId: arg.chainId,
11
- address1: undefined,
12
- address2: undefined,
13
- address3: undefined,
14
- }),
15
- ],
16
- queryFn: async (arg) => {
17
- const framework = await getSfContext().getFramework(arg.chainId);
18
- return {
19
- data: await framework.query.listAllSuperTokens({
20
- isListed: arg.isListed,
21
- }, createSkipPaging(arg)),
22
- };
23
- },
24
- }),
25
- }),
26
- overrideExisting: false,
27
- });
28
- export const {
29
- /**
30
- * @category React Hooks
31
- */
32
- useListSuperTokensQuery,
33
- /**
34
- * @category React Hooks
35
- */
36
- useLazyListSuperTokensQuery, } = apiSlice;
37
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdFN1cGVyVG9rZW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3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RQUFRO3FCQUN6QixFQUNELGdCQUFnQixDQUFDLEdBQUcsQ0FBQyxDQUN4QjtpQkFDSixDQUFDO1lBQ04sQ0FBQztTQUNKLENBQUM7S0FDTCxDQUFDO0lBQ0YsZ0JBQWdCLEVBQUUsS0FBSztDQUMxQixDQUFDLENBQUM7QUFFSCxNQUFNLENBQUMsTUFBTTtBQUNUOztHQUVHO0FBQ0gsdUJBQXVCO0FBQ3ZCOztHQUVHO0FBQ0gsMkJBQTJCLEdBQzlCLEdBQUcsUUFBUSxDQUFDIn0=
@@ -1,15 +0,0 @@
1
- import { ILightAccountTokenSnapshot, PagedResult } from '@superfluid-finance/sdk-core';
2
- import { NothingString, PaginatedQueryArg } from '../../argTypes';
3
- export declare type ListUserInteractedSuperTokensArg = PaginatedQueryArg & {
4
- accountAddress: string | NothingString;
5
- superTokenAddress: string | NothingString;
6
- };
7
- export declare const
8
- /**
9
- * @category React Hooks
10
- */
11
- useListUserInteractedSuperTokensQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<ListUserInteractedSuperTokensArg, 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<ILightAccountTokenSnapshot>, string>>,
12
- /**
13
- * @category React Hooks
14
- */
15
- useLazyListUserInteractedSuperTokensQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<ListUserInteractedSuperTokensArg, 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<ILightAccountTokenSnapshot>, string>>;
@@ -1,54 +0,0 @@
1
- import { createSkipPaging, } from '@superfluid-finance/sdk-core';
2
- import { getSfContext } from '../../../createSdkReduxParts';
3
- import { getMostSpecificIndexTag } from '../cacheTags/indexTags';
4
- import { getMostSpecificStreamTag } from '../cacheTags/streamTags';
5
- import { getMostSpecificTokenTag } from '../cacheTags/tokenTags';
6
- import { rtkQuerySlice } from '../rtkQuerySlice';
7
- const apiSlice = rtkQuerySlice.injectEndpoints({
8
- endpoints: (builder) => ({
9
- listUserInteractedSuperTokens: builder.query({
10
- providesTags: (_result, _error, arg) => [
11
- getMostSpecificTokenTag({
12
- chainId: arg.chainId,
13
- address1: arg.superTokenAddress,
14
- address2: arg.accountAddress,
15
- address3: undefined,
16
- }),
17
- getMostSpecificIndexTag({
18
- chainId: arg.chainId,
19
- address1: arg.superTokenAddress,
20
- address2: arg.accountAddress,
21
- address3: undefined,
22
- indexId: undefined,
23
- }),
24
- getMostSpecificStreamTag({
25
- chainId: arg.chainId,
26
- address1: arg.superTokenAddress,
27
- address2: arg.accountAddress,
28
- address3: undefined,
29
- }),
30
- ],
31
- queryFn: async (arg) => {
32
- const framework = await getSfContext().getFramework(arg.chainId);
33
- const pagedResult = await framework.query.listUserInteractedSuperTokens({
34
- token: arg.superTokenAddress,
35
- account: arg.accountAddress,
36
- }, createSkipPaging({ skip: arg.skip, take: arg.take }));
37
- return {
38
- data: pagedResult,
39
- };
40
- },
41
- }),
42
- }),
43
- overrideExisting: false,
44
- });
45
- export const {
46
- /**
47
- * @category React Hooks
48
- */
49
- useListUserInteractedSuperTokensQuery,
50
- /**
51
- * @category React Hooks
52
- */
53
- useLazyListUserInteractedSuperTokensQuery, } = apiSlice;
54
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdFVzZXJJbnRlcmFjdGVk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FNO0FBQ1Q7O0dBRUc7QUFDSCxxQ0FBcUM7QUFDckM7O0dBRUc7QUFDSCx5Q0FBeUMsR0FDNUMsR0FBRyxRQUFRLENBQUMifQ==
@@ -1,3 +0,0 @@
1
- import { CacheTagTypes } from './cacheTags/CacheTagTypes';
2
- export declare const rtkQuerySlice: import("@reduxjs/toolkit/dist/query/apiTypes").Api<import("@reduxjs/toolkit/dist/query/baseQueryTypes").BaseQueryFn<import("../argTypes").QueryArg | import("../argTypes").SuperTokenMutationArg, import("../argTypes").TransactionInfo | Record<string, unknown>, import("./rtkQuerySliceBaseQuery").ValidationError, unknown, import("./rtkQuerySliceBaseQuery").MutationMeta>, {}, "sfApi", CacheTagTypes, typeof import("@reduxjs/toolkit/dist/query/core/module").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react/module").reactHooksModuleName>;
3
- export declare type SuperfluidApiReduxSliceType = typeof rtkQuerySlice;
@@ -1,47 +0,0 @@
1
- import { isPlainObject } from '@reduxjs/toolkit';
2
- import { createApi } from '@reduxjs/toolkit/dist/query/react';
3
- import _ from 'lodash';
4
- import { typeGuard } from '../../utils';
5
- import { rtkQuerySliceBaseQuery } from './rtkQuerySliceBaseQuery';
6
- export const rtkQuerySlice = createApi({
7
- reducerPath: 'sfApi',
8
- baseQuery: rtkQuerySliceBaseQuery(),
9
- tagTypes: [
10
- typeGuard('Event'),
11
- typeGuard('Index'),
12
- typeGuard('Stream'),
13
- typeGuard('Token'),
14
- ],
15
- endpoints: () => ({}),
16
- serializeQueryArgs: ({ endpointName, queryArgs }) => {
17
- // NOTE: The code below is taken from Redux Toolkit's repository from `defaultSerializeQueryArgs.ts`.
18
- // Comment from RTK-Query: Sort the object keys before stringifying, to prevent useQuery({ a: 1, b: 2 }) having a different cache key than useQuery({ b: 2, a: 1 })
19
- return `${endpointName}(${JSON.stringify(queryArgs, (_key, value) => isPlainObject(value)
20
- ? Object.keys(value)
21
- .sort()
22
- .reduce((acc, key) => {
23
- acc[key] = normalizeValue(value[key]);
24
- return acc;
25
- }, {})
26
- : normalizeValue(value))})`;
27
- },
28
- });
29
- // NOTE: Regex taken from Ethers.
30
- const isAddressRegex = /^(0x)?[0-9a-fA-F]{40}$/;
31
- // Normalize addresses and empty strings for cache keys.
32
- const normalizeValue = (value) => lowerCaseIfAddress(undefinedIfEmpty(value));
33
- const undefinedIfEmpty = (value) => {
34
- if (value === '') {
35
- return undefined;
36
- }
37
- return value;
38
- };
39
- const lowerCaseIfAddress = (value) => {
40
- if (_.isString(value)) {
41
- if (value.match(isAddressRegex)) {
42
- return value.toLowerCase();
43
- }
44
- }
45
- return value;
46
- };
47
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnRrUXVlcnlTbGljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yZWR1eC1zbGljZXMvcnRrLXF1ZXJ5L3J0a1F1ZXJ5U2xpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLGFBQWEsRUFBQyxNQUFNLGtCQUFrQixDQUFDO0FBQy9DLE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSxtQ0FBbUMsQ0FBQztBQUM1RCxPQUFPLENBQUMsTUFBTSxRQUFRLENBQUM7QUFFdkIsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLGFBQWEsQ0FBQztBQUd0QyxPQUFPLEVBQUMsc0JBQXNCLEVBQUMsTUFBTSwwQkFBMEIsQ0FBQztBQUVoRSxNQUFNLENBQUMsTUFBTSxhQUFhLEdBQUcsU0FBUyxDQUFDO0lBQ25DLFdBQVcsRUFBRSxPQUFPO0lBQ3BCLFNBQVMsRUFBRSxzQkFBc0IsRUFBRTtJQUNuQyxRQUFRLEVBQUU7UUFDTixTQUFTLENBQWdCLE9BQU8sQ0FBQztRQUNqQyxTQUFTLENBQWdCLE9BQU8sQ0FBQztRQUNqQy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QUFFLEVBQUU7SUFDeEMsSUFBSSxLQUFLLEtBQUssRUFBRSxFQUFFO1FBQ2QsT0FBTyxTQUFTLENBQUM7S0FDcEI7SUFDRCxPQUFPLEtBQUssQ0FBQztBQUNqQixDQUFDLENBQUM7QUFFRixNQUFNLGtCQUFrQixHQUFHLENBQUMsS0FBYyxFQUFFLEVBQUU7SUFDMUMsSUFBSSxDQUFDLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxFQUFFO1FBQ25CLElBQUksS0FBSyxDQUFDLEtBQUssQ0FBQyxjQUFjLENBQUMsRUFBRTtZQUM3QixPQUFPLEtBQUssQ0FBQyxXQUFXLEVBQUUsQ0FBQztTQUM5QjtLQUNKO0lBQ0QsT0FBTyxLQUFLLENBQUM7QUFDakIsQ0FBQyxDQUFDIn0=
@@ -1,21 +0,0 @@
1
- import { SerializedError } from '@reduxjs/toolkit';
2
- import { BaseQueryFn } from '@reduxjs/toolkit/dist/query/react';
3
- import { QueryArg, SuperTokenMutationArg, TransactionInfo } from '../argTypes';
4
- export declare type ValidationError = {
5
- /**
6
- * NOTE: Keep it named "message" to have same structure with Redux Toolkit's SerializedError.
7
- */
8
- message: string;
9
- };
10
- export declare type MutationMeta = {
11
- /**
12
- * The address will be monitored for events to invalidate cache.
13
- */
14
- monitorAddress: string;
15
- };
16
- /**
17
- * Creates a "fake" baseQuery to be used if your api *only* uses the `queryFn` definition syntax.
18
- * This also allows you to specify a specific error type to be shared by all your `queryFn` definitions.
19
- */
20
- export declare function rtkQuerySliceBaseQuery(): BaseQueryFn<SuperTokenMutationArg | QueryArg, TransactionInfo | Record<string, unknown>, ValidationError, unknown, MutationMeta>;
21
- export declare type PossibleErrors = ValidationError | SerializedError;
@@ -1,10 +0,0 @@
1
- /**
2
- * Creates a "fake" baseQuery to be used if your api *only* uses the `queryFn` definition syntax.
3
- * This also allows you to specify a specific error type to be shared by all your `queryFn` definitions.
4
- */
5
- export function rtkQuerySliceBaseQuery() {
6
- return function () {
7
- throw new Error('All queries & mutations must use the `queryFn` definition syntax.');
8
- };
9
- }
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnRrUXVlcnlTbGljZUJhc2VRdWVyeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yZWR1eC1zbGljZXMvcnRrLXF1ZXJ5L3J0a1F1ZXJ5U2xpY2VCYXNlUXVlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJBOzs7R0FHRztBQUNILE1BQU0sVUFBVSxzQkFBc0I7SUFPbEMsT0FBTztRQUNILE1BQU0sSUFBSSxLQUFLLENBQ1gsbUVBQW1FLENBQ3RFLENBQUM7SUFDTixDQUFDLENBQUM7QUFDTixDQUFDIn0=
@@ -1,29 +0,0 @@
1
- import { getSfContext } from '../../createSdkReduxParts';
2
- import { trackTransaction, waitForOneConfirmation } from './trackTransaction';
3
- /**
4
- * Transactions have to be registered for them to be tracked inside the redux store and monitored for re-orgs.
5
- */
6
- export const registerNewTransaction = async (
7
- /**
8
- * The chain ID transaction is on.
9
- * WARNING: Don't pass `chainId` off of ether's `TransactionResponse` because it's not set correctly on timely manner.
10
- */
11
- chainId, transactionHash,
12
- /**
13
- * Whether to wait for one transaction confirmation.
14
- */
15
- waitForConfirmation,
16
- /**
17
- * For dispatching redux thunks.
18
- */
19
- dispatch) => {
20
- const framework = await getSfContext().getFramework(chainId);
21
- dispatch(trackTransaction({
22
- chainId,
23
- hash: transactionHash,
24
- }));
25
- if (waitForConfirmation) {
26
- await waitForOneConfirmation(framework.settings.provider, transactionHash);
27
- }
28
- };
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnaXN0ZXJOZXdUcmFuc2FjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yZWR1eC1zbGljZXMvdHJhbnNhY3Rpb25zL3JlZ2lzdGVyTmV3VHJhbnNhY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBRXZELE9BQU8sRUFBQyxnQkFBZ0IsRUFBRSxzQkFBc0IsRUFBQyxNQUFNLG9CQUFvQixDQUFDO0FBRTVFOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sc0JBQXNCLEdBQUcsS0FBSztBQUN2Qzs7O0dBR0c7QUFDSCxPQUFlLEVBQ2YsZUFBdUI7QUFDdkI7O0dBRUc7QUFDSCxtQkFBNEI7QUFDNUI7O0dBRUc7QUFDSCxRQUFzQyxFQUN4QyxFQUFFO0lBQ0EsTUFBTSxTQUFTLEdBQUcsTUFBTSxZQUFZLEVBQUUsQ0FBQyxZQUFZLENBQUMsT0FBTyxDQUFDLENBQUM7SUFFN0QsUUFBUSxDQUNKLGdCQUFnQixDQUFDO1FBQ2IsT0FBTztRQUNQLElBQUksRUFBRSxlQUFlO0tBQ3hCLENBQUMsQ0FDTCxDQUFDO0lBRUYsSUFBSSxtQkFBbUIsRUFBRTtRQUNyQixNQUFNLHNCQUFzQixDQUN4QixTQUFTLENBQUMsUUFBUSxDQUFDLFFBQVEsRUFDM0IsZUFBZSxDQUNsQixDQUFDO0tBQ0w7QUFDTCxDQUFDLENBQUMifQ==
@@ -1,62 +0,0 @@
1
- // Having a single "track" action makes it easy to use transaction tracking logic.
2
- import { createAsyncThunk } from '@reduxjs/toolkit';
3
- import { ethers } from 'ethers';
4
- import { getSfContext } from '../../createSdkReduxParts';
5
- import { MillisecondTimes } from '../../utils';
6
- import { rtkQuerySlice } from '../rtk-query/rtkQuerySlice';
7
- import { transactionSlice, transactionSlicePrefix } from './transactionSlice';
8
- /**
9
- *
10
- * @param provider
11
- * @param transactionHash
12
- */
13
- export const waitForOneConfirmation = (provider, transactionHash) => provider.waitForTransaction(transactionHash, 1, MillisecondTimes.TenMinutes);
14
- /**
15
- *
16
- */
17
- export const trackTransaction = createAsyncThunk(`${transactionSlicePrefix}/trackTransaction`, async (arg, { dispatch }) => {
18
- dispatch(transactionSlice.actions.upsertTransaction({
19
- chainId: arg.chainId,
20
- hash: arg.hash,
21
- status: 'Pending',
22
- }));
23
- const framework = await getSfContext().getFramework(arg.chainId);
24
- waitForOneConfirmation(framework.settings.provider, arg.hash)
25
- .then((_transactionReceipt) => {
26
- // When Ethers successfully returns then we assume the transaction was mined as per documentation: https://docs.ethers.io/v5/api/providers/provider/#Provider-waitForTransaction
27
- dispatch(transactionSlice.actions.upsertTransaction({
28
- chainId: arg.chainId,
29
- hash: arg.hash,
30
- status: 'Succeeded',
31
- }));
32
- monitorForLateErrors(framework.settings.provider, arg, dispatch);
33
- })
34
- .catch((ethersError) => {
35
- notifyOfError(ethersError, arg, dispatch);
36
- });
37
- });
38
- // i.e. monitor for re-orgs...
39
- const monitorForLateErrors = (provider, { chainId, hash }, dispatch) => {
40
- provider
41
- .waitForTransaction(hash, 5, MillisecondTimes.TenMinutes)
42
- // When there's no error then that means a re-org didn't happen.
43
- .catch((ethersError) => {
44
- if (ethersError.code != ethers.errors.TIMEOUT) {
45
- // Completely reset API cache.
46
- dispatch(rtkQuerySlice.util.resetApiState());
47
- notifyOfError(ethersError, { chainId, hash: hash }, dispatch);
48
- }
49
- });
50
- };
51
- const notifyOfError = (ethersError, { chainId, hash }, dispatch) => {
52
- dispatch(transactionSlice.actions.upsertTransaction({
53
- chainId: chainId,
54
- hash: hash,
55
- status: ethersError.code === ethers.errors.TIMEOUT
56
- ? 'Unknown'
57
- : 'Failed',
58
- ethersErrorCode: ethersError.code,
59
- ethersErrorMessage: ethersError.message,
60
- }));
61
- };
62
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhY2tUcmFuc2FjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzI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Z0U7U0FDL0QsS0FBSyxDQUFDLENBQUMsV0FBd0IsRUFBRSxFQUFFO1FBQ2hDLElBQUksV0FBVyxDQUFDLElBQUksSUFBSSxNQUFNLENBQUMsTUFBTSxDQUFDLE9BQU8sRUFBRTtZQUMzQyw4QkFBOEI7WUFDOUIsUUFBUSxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsYUFBYSxFQUFFLENBQUMsQ0FBQztZQUM3QyxhQUFhLENBQUMsV0FBVyxFQUFFLEVBQUMsT0FBTyxFQUFFLElBQUksRUFBRSxJQUFJLEVBQUMsRUFBRSxRQUFRLENBQUMsQ0FBQztTQUMvRDtJQUNMLENBQUMsQ0FBQyxDQUFDO0FBQ1gsQ0FBQyxDQUFDO0FBRUYsTUFBTSxhQUFhLEdBQUcsQ0FDbEIsV0FBd0IsRUFDeEIsRUFBQyxPQUFPLEVBQUUsSUFBSSxFQUFrQixFQUNoQyxRQUFrQixFQUNwQixFQUFFO0lBQ0EsUUFBUSxDQUNKLGdCQUFnQixDQUFDLE9BQU8sQ0FBQyxpQkFBaUIsQ0FBQztRQUN2QyxPQUFPLEVBQUUsT0FBTztRQUNoQixJQUFJLEVBQUUsSUFBSTtRQUNWLE1BQU0sRUFDRixXQUFXLENBQUMsSUFBSSxLQUFLLE1BQU0sQ0FBQyxNQUFNLENBQUMsT0FBTztZQUN0QyxDQUFDLENBQUMsU0FBUztZQUNYLENBQUMsQ0FBQyxRQUFRO1FBQ2xCLGVBQWUsRUFBRSxXQUFXLENBQUMsSUFBSTtRQUNqQyxrQkFBa0IsRUFBRSxXQUFXLENBQUMsT0FBTztLQUMxQyxDQUFDLENBQ0wsQ0FBQztBQUNOLENBQUMsQ0FBQyJ9
@@ -1,36 +0,0 @@
1
- import { ethers } from 'ethers';
2
- export declare type TransactionStatus = 'Pending' | 'Succeeded' | 'Failed' | 'Unknown';
3
- export interface TrackedTransaction {
4
- chainId: number;
5
- hash: string;
6
- status: TransactionStatus;
7
- ethersErrorCode?: ethers.errors;
8
- ethersErrorMessage?: string;
9
- }
10
- export declare const transactionsAdapter: import("@reduxjs/toolkit").EntityAdapter<TrackedTransaction>;
11
- export declare const transactionSelectors: import("@reduxjs/toolkit").EntitySelectors<TrackedTransaction, import("@reduxjs/toolkit").EntityState<TrackedTransaction>>;
12
- export declare const transactionSlicePrefix: "sfTransactions";
13
- export declare const transactionSlice: {
14
- name: "sfTransactions";
15
- reducer: import("redux").Reducer<import("@reduxjs/toolkit").EntityState<TrackedTransaction>, import("redux").AnyAction>;
16
- actions: import("@reduxjs/toolkit").CaseReducerActions<{
17
- upsertTransaction: {
18
- <S extends import("@reduxjs/toolkit").EntityState<TrackedTransaction>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S, import("@reduxjs/toolkit").EntityState<TrackedTransaction>, S>, entity: TrackedTransaction): S;
19
- <S_1 extends import("@reduxjs/toolkit").EntityState<TrackedTransaction>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_1, import("@reduxjs/toolkit").EntityState<TrackedTransaction>, S_1>, entity: {
20
- payload: TrackedTransaction;
21
- type: string;
22
- }): S_1;
23
- };
24
- }>;
25
- caseReducers: {
26
- upsertTransaction: {
27
- <S extends import("@reduxjs/toolkit").EntityState<TrackedTransaction>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S, import("@reduxjs/toolkit").EntityState<TrackedTransaction>, S>, entity: TrackedTransaction): S;
28
- <S_1 extends import("@reduxjs/toolkit").EntityState<TrackedTransaction>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_1, import("@reduxjs/toolkit").EntityState<TrackedTransaction>, S_1>, entity: {
29
- payload: TrackedTransaction;
30
- type: string;
31
- }): S_1;
32
- };
33
- };
34
- reducerPath: "sfTransactions";
35
- };
36
- export declare type SuperfluidTransactionReduxSlice = typeof transactionSlice;
@@ -1,19 +0,0 @@
1
- import { createEntityAdapter, createSlice } from '@reduxjs/toolkit';
2
- const getTransactionId = (transaction) => `${transaction.chainId}_${transaction.hash}`;
3
- export const transactionsAdapter = createEntityAdapter({
4
- selectId: (transaction) => getTransactionId(transaction),
5
- sortComparer: (a, b) => getTransactionId(a).localeCompare(getTransactionId(b)),
6
- });
7
- export const transactionSelectors = transactionsAdapter.getSelectors();
8
- export const transactionSlicePrefix = 'sfTransactions';
9
- export const transactionSlice = {
10
- reducerPath: transactionSlicePrefix,
11
- ...createSlice({
12
- name: transactionSlicePrefix,
13
- initialState: transactionsAdapter.getInitialState(),
14
- reducers: {
15
- upsertTransaction: transactionsAdapter.upsertOne,
16
- },
17
- }),
18
- };
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb25TbGljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9yZWR1eC1zbGljZXMvdHJhbnNhY3Rpb25zL3RyYW5zYWN0aW9uU2xpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLG1CQUFtQixFQUFFLFdBQVcsRUFBQyxNQUFNLGtCQUFrQixDQUFDO0FBY2xFLE1BQU0sZ0JBQWdCLEdBQUcsQ0FBQyxXQUErQixFQUFFLEVBQUUsQ0FDekQsR0FBRyxXQUFXLENBQUMsT0FBTyxJQUFJLFdBQVcsQ0FBQyxJQUFJLEVBQUUsQ0FBQztBQUVqRCxNQUFNLENBQUMsTUFBTSxtQkFBbUIsR0FBRyxtQkFBbUIsQ0FBcUI7SUFDdkUsUUFBUSxFQUFFLENBQUMsV0FBVyxFQUFFLEVBQUUsQ0FBQyxnQkFBZ0IsQ0FBQyxXQUFXLENBQUM7SUFDeEQsWUFBWSxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxFQUFFLENBQ25CLGdCQUFnQixDQUFDLENBQUMsQ0FBQyxDQUFDLGFBQWEsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDLENBQUM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