@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,25 @@
1
+ import { insertIf } from '../../../utils';
2
+ import { createTag } from './CacheTagTypes';
3
+ /**
4
+ * Creates all possible stream cache tag combinations.
5
+ * @private
6
+ * @category Cache Tags
7
+ */
8
+ export const createStreamsTags = ({ chainId, address1, address2, address3 }) => [
9
+ streamTag(chainId),
10
+ ...insertIf(address1, streamTag(chainId, address1)),
11
+ ...insertIf(address2, streamTag(chainId, address2)),
12
+ ...insertIf(address3, streamTag(chainId, address3)),
13
+ ...insertIf(address1 && address2, streamTag(chainId, address1, address2)),
14
+ ...insertIf(address1 && address3, streamTag(chainId, address1, address3)),
15
+ ...insertIf(address1 && address2 && address3, streamTag(chainId, address1, address2, address3)),
16
+ ];
17
+ /**
18
+ * @private
19
+ * @category Cache Tags
20
+ */
21
+ export const getMostSpecificStreamTag = (arg) => {
22
+ return createStreamsTags(arg).reverse()[0];
23
+ };
24
+ const streamTag = (chainId, ...keys) => createTag('Stream', chainId, ...keys);
25
+ //# sourceMappingURL=streamTags.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streamTags.js","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/streamTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAGxC,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAmB1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAe,EAAE,EAAE,CAAC;IACxF,SAAS,CAAC,OAAO,CAAC;IAClB,GAAG,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,OAAO,EAAE,QAAS,CAAC,CAAC;IACpD,GAAG,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,OAAO,EAAE,QAAS,CAAC,CAAC;IACpD,GAAG,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,OAAO,EAAE,QAAS,CAAC,CAAC;IACpD,GAAG,QAAQ,CAAC,QAAQ,IAAI,QAAQ,EAAE,SAAS,CAAC,OAAO,EAAE,QAAS,EAAE,QAAS,CAAC,CAAC;IAC3E,GAAG,QAAQ,CAAC,QAAQ,IAAI,QAAQ,EAAE,SAAS,CAAC,OAAO,EAAE,QAAS,EAAE,QAAS,CAAC,CAAC;IAC3E,GAAG,QAAQ,CAAC,QAAQ,IAAI,QAAQ,IAAI,QAAQ,EAAE,SAAS,CAAC,OAAO,EAAE,QAAS,EAAE,QAAS,EAAE,QAAS,CAAC,CAAC;CACrG,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,GAAiB,EAAE,EAAE;IAC1D,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;AAC/C,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,OAAe,EAAE,GAAG,IAAc,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC"}
@@ -20,7 +20,7 @@ declare type TokenTagArg = {
20
20
  * @private
21
21
  * @category Cache Tags
22
22
  */
23
- export declare const createTokenTags: ({ chainId, address1, address2, address3, }: TokenTagArg) => {
23
+ export declare const createTokenTags: ({ chainId, address1, address2, address3 }: TokenTagArg) => {
24
24
  type: import("./CacheTagTypes").CacheTagTypes;
25
25
  id: string;
26
26
  }[];
@@ -33,3 +33,4 @@ export declare const getMostSpecificTokenTag: (arg: TokenTagArg) => {
33
33
  id: string;
34
34
  };
35
35
  export {};
36
+ //# sourceMappingURL=tokenTags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokenTags.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/tokenTags.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;CACpC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,8CAA6C,WAAW;;;GAQnF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAS,WAAW;;;CAEvD,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { insertIf } from '../../../utils';
2
+ import { createTag } from './CacheTagTypes';
3
+ /**
4
+ * Creates all possible token cache tag combinations.
5
+ * @private
6
+ * @category Cache Tags
7
+ */
8
+ export const createTokenTags = ({ chainId, address1, address2, address3 }) => [
9
+ tokenTag(chainId),
10
+ ...insertIf(address1, tokenTag(chainId, address1)),
11
+ ...insertIf(address2, tokenTag(chainId, address2)),
12
+ ...insertIf(address3, tokenTag(chainId, address3)),
13
+ ...insertIf(address1 && address3, tokenTag(chainId, address1, address3)),
14
+ ...insertIf(address1 && address2, tokenTag(chainId, address1, address2)),
15
+ ...insertIf(address1 && address2 && address3, tokenTag(chainId, address1, address2, address3)),
16
+ ];
17
+ /**
18
+ * @private
19
+ * @category Cache Tags
20
+ */
21
+ export const getMostSpecificTokenTag = (arg) => {
22
+ return createTokenTags(arg).reverse()[0];
23
+ };
24
+ const tokenTag = (chainId, ...keys) => createTag('Token', chainId, ...keys);
25
+ //# sourceMappingURL=tokenTags.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokenTags.js","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/tokenTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAGxC,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAmB1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAc,EAAE,EAAE,CAAC;IACrF,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;CACpG,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"}
@@ -0,0 +1,9 @@
1
+ export declare enum CacheTime {
2
+ None = 0,
3
+ OneMinute = 60,
4
+ TwoMinutes = 120,
5
+ ThreeMinutes = 180,
6
+ FiveMinutes = 300,
7
+ Forever
8
+ }
9
+ //# sourceMappingURL=cacheTime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cacheTime.d.ts","sourceRoot":"","sources":["../../../../src/redux-slices/rtk-query/cacheTime.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACjB,IAAI,IAAI;IACR,SAAS,KAAK;IACd,UAAU,MAAM;IAChB,YAAY,MAAM;IAClB,WAAW,MAAM;IACjB,OAA0B;CAC7B"}
@@ -0,0 +1,10 @@
1
+ export var CacheTime;
2
+ (function (CacheTime) {
3
+ CacheTime[CacheTime["None"] = 0] = "None";
4
+ CacheTime[CacheTime["OneMinute"] = 60] = "OneMinute";
5
+ CacheTime[CacheTime["TwoMinutes"] = 120] = "TwoMinutes";
6
+ CacheTime[CacheTime["ThreeMinutes"] = 180] = "ThreeMinutes";
7
+ CacheTime[CacheTime["FiveMinutes"] = 300] = "FiveMinutes";
8
+ CacheTime[CacheTime["Forever"] = Number.MAX_VALUE] = "Forever";
9
+ })(CacheTime || (CacheTime = {}));
10
+ //# sourceMappingURL=cacheTime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cacheTime.js","sourceRoot":"","sources":["../../../../src/redux-slices/rtk-query/cacheTime.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,SAOX;AAPD,WAAY,SAAS;IACjB,yCAAQ,CAAA;IACR,oDAAc,CAAA;IACd,uDAAgB,CAAA;IAChB,2DAAkB,CAAA;IAClB,yDAAiB,CAAA;IACjB,iCAAU,MAAM,CAAC,SAAS,aAAA,CAAA;AAC9B,CAAC,EAPW,SAAS,KAAT,SAAS,QAOpB"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * For creating RTK-Query API (e.g. "sfApi") with auto-generated React Hooks.
3
+ *
4
+ * Read more: https://redux-toolkit.js.org/rtk-query/api/created-api/hooks
5
+ */
6
+ export declare const createApiWithReactHooks: import("@reduxjs/toolkit/query/react").CreateApi<typeof import("@reduxjs/toolkit/dist/query/core/module").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react/module").reactHooksModuleName>;
7
+ //# sourceMappingURL=createApiWithReactHooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createApiWithReactHooks.d.ts","sourceRoot":"","sources":["../../../../src/redux-slices/rtk-query/createApiWithReactHooks.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,4MAAY,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { createApi } from '@reduxjs/toolkit/query/react';
2
+ /**
3
+ * For creating RTK-Query API (e.g. "sfApi") with auto-generated React Hooks.
4
+ *
5
+ * Read more: https://redux-toolkit.js.org/rtk-query/api/created-api/hooks
6
+ */
7
+ export const createApiWithReactHooks = createApi;
8
+ //# sourceMappingURL=createApiWithReactHooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createApiWithReactHooks.js","sourceRoot":"","sources":["../../../../src/redux-slices/rtk-query/createApiWithReactHooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AAEvD;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * For creating RTK-Query API (e.g. "sfApi") without React Hooks (i.e. UI-framework agnostic).
3
+ *
4
+ * Read more: https://redux-toolkit.js.org/rtk-query/usage/usage-without-react-hooks
5
+ */
6
+ export declare const createApiWithoutReactHooks: import("@reduxjs/toolkit/query").CreateApi<typeof import("@reduxjs/toolkit/dist/query/core/module").coreModuleName>;
7
+ //# sourceMappingURL=createApiWithoutReactHooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createApiWithoutReactHooks.d.ts","sourceRoot":"","sources":["../../../../src/redux-slices/rtk-query/createApiWithoutReactHooks.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,qHAAY,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { createApi } from '@reduxjs/toolkit/query';
2
+ /**
3
+ * For creating RTK-Query API (e.g. "sfApi") without React Hooks (i.e. UI-framework agnostic).
4
+ *
5
+ * Read more: https://redux-toolkit.js.org/rtk-query/usage/usage-without-react-hooks
6
+ */
7
+ export const createApiWithoutReactHooks = createApi;
8
+ //# sourceMappingURL=createApiWithoutReactHooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createApiWithoutReactHooks.js","sourceRoot":"","sources":["../../../../src/redux-slices/rtk-query/createApiWithoutReactHooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { SerializeQueryArgs } from '@reduxjs/toolkit/dist/query/defaultSerializeQueryArgs';
2
+ export declare const getSerializeQueryArgs: () => SerializeQueryArgs<any>;
3
+ //# sourceMappingURL=getSerializeQueryArgs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSerializeQueryArgs.d.ts","sourceRoot":"","sources":["../../../../src/redux-slices/rtk-query/getSerializeQueryArgs.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,kBAAkB,EAAC,MAAM,uDAAuD,CAAC;AAEzF,eAAO,MAAM,qBAAqB,QAC1B,mBAAmB,GAAG,CAezB,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { isPlainObject } from '@reduxjs/toolkit';
2
+ export const getSerializeQueryArgs = () => ({ endpointName, queryArgs }) => {
3
+ // NOTE: The code below is taken from Redux Toolkit's repository from `defaultSerializeQueryArgs.ts`.
4
+ // 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 })
5
+ return `${endpointName}(${JSON.stringify(queryArgs, (_key, value) => isPlainObject(value)
6
+ ? Object.keys(value)
7
+ .sort()
8
+ .reduce((acc, key) => {
9
+ acc[key] = normalizeValue(value[key]);
10
+ return acc;
11
+ }, {})
12
+ : normalizeValue(value))})`;
13
+ };
14
+ // TODO(KK): The logic below is duplicated in SDK-Core. Think of a way of sharing it.
15
+ // NOTE: Regex taken from Ethers.
16
+ const isAddressRegex = /^(0x)?[0-9a-fA-F]{40}$/;
17
+ // Normalize addresses and empty strings for cache keys.
18
+ const normalizeValue = (value) => lowerCaseIfAddress(undefinedIfEmpty(value));
19
+ const undefinedIfEmpty = (value) => {
20
+ if (value === '') {
21
+ return undefined;
22
+ }
23
+ return value;
24
+ };
25
+ const lowerCaseIfAddress = (value) => {
26
+ if (typeof value === 'string') {
27
+ if (value.match(isAddressRegex)) {
28
+ return value.toLowerCase();
29
+ }
30
+ }
31
+ if (Array.isArray(value)) {
32
+ return value.map((x) => lowerCaseIfAddress(x));
33
+ }
34
+ return value;
35
+ };
36
+ //# sourceMappingURL=getSerializeQueryArgs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSerializeQueryArgs.js","sourceRoot":"","sources":["../../../../src/redux-slices/rtk-query/getSerializeQueryArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAG/C,MAAM,CAAC,MAAM,qBAAqB,GAC9B,GAA4B,EAAE,CAC9B,CAAC,EAAC,YAAY,EAAE,SAAS,EAAC,EAAE,EAAE;IAC1B,qGAAqG;IAErG,mKAAmK;IACnK,OAAO,GAAG,YAAY,IAAI,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAChE,aAAa,CAAC,KAAK,CAAC;QAChB,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;aACb,IAAI,EAAE;aACN,MAAM,CAAM,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YACtB,GAAG,CAAC,GAAG,CAAC,GAAG,cAAc,CAAE,KAAa,CAAC,GAAG,CAAC,CAAC,CAAC;YAC/C,OAAO,GAAG,CAAC;QACf,CAAC,EAAE,EAAE,CAAC;QACZ,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,CAC9B,GAAG,CAAC;AACT,CAAC,CAAC;AAEN,qFAAqF;AAErF,iCAAiC;AACjC,MAAM,cAAc,GAAG,wBAAwB,CAAC;AAEhD,wDAAwD;AACxD,MAAM,cAAc,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;AAEvF,MAAM,gBAAgB,GAAG,CAAC,KAAc,EAAE,EAAE;IACxC,IAAI,KAAK,KAAK,EAAE,EAAE;QACd,OAAO,SAAS,CAAC;KACpB;IACD,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAAW,EAAE;IACnD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC3B,IAAI,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE;YAC7B,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;SAC9B;KACJ;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACtB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;KAClD;IAED,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { TransactionInfo } from '../../argTypes';
2
+ import { MutationMeta } from '../returnTypes';
3
+ import { ApiSliceEndpointBuilder } from '../sfApiSlice';
4
+ import { ApproveIndexSubscription, ClaimFromIndexSubscription, CreateFlow, CreateIndex, DeleteFlow, DeleteIndexSubscription, DistributeToIndex, DowngradeFromSuperToken, MonitorForEventsToInvalidateCache, RevokeIndexSubscription, TransferSuperToken, UpdateFlow, UpdateIndexSubscriptionUnits, UpgradeToSuperToken } from './mutations';
5
+ export declare const addMutationEndpoints: (builder: ApiSliceEndpointBuilder) => {
6
+ approveIndexSubscription: import("@reduxjs/toolkit/dist/query").MutationDefinition<ApproveIndexSubscription, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, TransactionInfo, "sfApi">;
7
+ claimFromIndexSubscription: import("@reduxjs/toolkit/dist/query").MutationDefinition<ClaimFromIndexSubscription, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, TransactionInfo, "sfApi">;
8
+ createFlow: import("@reduxjs/toolkit/dist/query").MutationDefinition<CreateFlow, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, TransactionInfo, "sfApi">;
9
+ createIndex: import("@reduxjs/toolkit/dist/query").MutationDefinition<CreateIndex, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, TransactionInfo, "sfApi">;
10
+ deleteFlow: import("@reduxjs/toolkit/dist/query").MutationDefinition<DeleteFlow, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, TransactionInfo, "sfApi">;
11
+ deleteIndexSubscription: import("@reduxjs/toolkit/dist/query").MutationDefinition<DeleteIndexSubscription, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, TransactionInfo, "sfApi">;
12
+ distributeToIndex: import("@reduxjs/toolkit/dist/query").MutationDefinition<DistributeToIndex, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, TransactionInfo, "sfApi">;
13
+ downgradeFromSuperToken: import("@reduxjs/toolkit/dist/query").MutationDefinition<DowngradeFromSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, TransactionInfo, "sfApi">;
14
+ monitorForEventsToInvalidateCache: import("@reduxjs/toolkit/dist/query").MutationDefinition<MonitorForEventsToInvalidateCache, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, true, "sfApi">;
15
+ revokeIndexSubscription: import("@reduxjs/toolkit/dist/query").MutationDefinition<RevokeIndexSubscription, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, TransactionInfo, "sfApi">;
16
+ transferSuperToken: import("@reduxjs/toolkit/dist/query").MutationDefinition<TransferSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, TransactionInfo, "sfApi">;
17
+ updateFlow: import("@reduxjs/toolkit/dist/query").MutationDefinition<UpdateFlow, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, TransactionInfo, "sfApi">;
18
+ updateIndexSubscriptionUnits: import("@reduxjs/toolkit/dist/query").MutationDefinition<UpdateIndexSubscriptionUnits, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, TransactionInfo, "sfApi">;
19
+ upgradeToSuperToken: import("@reduxjs/toolkit/dist/query").MutationDefinition<UpgradeToSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, TransactionInfo, "sfApi">;
20
+ };
21
+ //# sourceMappingURL=addMutationEndpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addMutationEndpoints.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/mutations/addMutationEndpoints.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAI/C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,uBAAuB,EAAC,MAAM,eAAe,CAAC;AAEtD,OAAO,EACH,wBAAwB,EACxB,0BAA0B,EAC1B,UAAU,EACV,WAAW,EACX,UAAU,EACV,uBAAuB,EACvB,iBAAiB,EACjB,uBAAuB,EACvB,iCAAiC,EACjC,uBAAuB,EACvB,kBAAkB,EAClB,UAAU,EACV,4BAA4B,EAC5B,mBAAmB,EACtB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,oBAAoB,YAAa,uBAAuB;;;;;;;;;;;;;;;CA6lBnE,CAAC"}