@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.
- package/CHANGELOG.md +28 -0
- package/README.md +47 -44
- package/dist/main/index.d.ts +13 -0
- package/dist/main/index.d.ts.map +1 -0
- package/dist/main/index.js +37 -0
- package/dist/main/index.js.map +1 -0
- package/{build → dist}/main/redux-slices/argTypes.d.ts +11 -13
- package/dist/main/redux-slices/argTypes.d.ts.map +1 -0
- package/dist/main/redux-slices/argTypes.js +3 -0
- package/dist/main/redux-slices/argTypes.js.map +1 -0
- package/{build → dist}/main/redux-slices/rtk-query/cacheTags/CacheTagTypes.d.ts +1 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/CacheTagTypes.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/CacheTagTypes.js +18 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/CacheTagTypes.js.map +1 -0
- package/{build → dist}/main/redux-slices/rtk-query/cacheTags/eventTags.d.ts +1 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/eventTags.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/eventTags.js +12 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/eventTags.js.map +1 -0
- package/{build → dist}/main/redux-slices/rtk-query/cacheTags/indexTags.d.ts +2 -1
- package/dist/main/redux-slices/rtk-query/cacheTags/indexTags.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/indexTags.js +31 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/indexTags.js.map +1 -0
- package/{build → dist}/main/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.d.ts +1 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.d.ts.map +1 -0
- package/{build → dist}/main/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.js +5 -7
- package/dist/main/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.js.map +1 -0
- package/{build/module → dist/main}/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.d.ts +1 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js +21 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js.map +1 -0
- package/{build/module → dist/main}/redux-slices/rtk-query/cacheTags/streamTags.d.ts +2 -1
- package/dist/main/redux-slices/rtk-query/cacheTags/streamTags.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/streamTags.js +30 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/streamTags.js.map +1 -0
- package/{build/module → dist/main}/redux-slices/rtk-query/cacheTags/tokenTags.d.ts +2 -1
- package/dist/main/redux-slices/rtk-query/cacheTags/tokenTags.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/tokenTags.js +30 -0
- package/dist/main/redux-slices/rtk-query/cacheTags/tokenTags.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/cacheTime.d.ts +9 -0
- package/dist/main/redux-slices/rtk-query/cacheTime.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/cacheTime.js +13 -0
- package/dist/main/redux-slices/rtk-query/cacheTime.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/createApiWithReactHooks.d.ts +7 -0
- package/dist/main/redux-slices/rtk-query/createApiWithReactHooks.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/createApiWithReactHooks.js +11 -0
- package/dist/main/redux-slices/rtk-query/createApiWithReactHooks.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/createApiWithoutReactHooks.d.ts +7 -0
- package/dist/main/redux-slices/rtk-query/createApiWithoutReactHooks.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/createApiWithoutReactHooks.js +11 -0
- package/dist/main/redux-slices/rtk-query/createApiWithoutReactHooks.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/getSerializeQueryArgs.d.ts +3 -0
- package/dist/main/redux-slices/rtk-query/getSerializeQueryArgs.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/getSerializeQueryArgs.js +40 -0
- package/dist/main/redux-slices/rtk-query/getSerializeQueryArgs.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/mutations/addMutationEndpoints.d.ts +21 -0
- package/dist/main/redux-slices/rtk-query/mutations/addMutationEndpoints.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/mutations/addMutationEndpoints.js +409 -0
- package/dist/main/redux-slices/rtk-query/mutations/addMutationEndpoints.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/mutations/mutations.d.ts +140 -0
- package/dist/main/redux-slices/rtk-query/mutations/mutations.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/mutations/mutations.js +3 -0
- package/dist/main/redux-slices/rtk-query/mutations/mutations.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/queries/addQueryEndpoints.d.ts +16 -0
- package/dist/main/redux-slices/rtk-query/queries/addQueryEndpoints.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/queries/addQueryEndpoints.js +280 -0
- package/dist/main/redux-slices/rtk-query/queries/addQueryEndpoints.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/queries/queries.d.ts +56 -0
- package/dist/main/redux-slices/rtk-query/queries/queries.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/queries/queries.js +3 -0
- package/dist/main/redux-slices/rtk-query/queries/queries.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/returnTypes.d.ts +16 -0
- package/dist/main/redux-slices/rtk-query/returnTypes.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/returnTypes.js +3 -0
- package/dist/main/redux-slices/rtk-query/returnTypes.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/sfApiSlice.d.ts +33 -0
- package/dist/main/redux-slices/rtk-query/sfApiSlice.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/sfApiSlice.js +25 -0
- package/dist/main/redux-slices/rtk-query/sfApiSlice.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/sfApiSliceInferredType.d.ts +3 -0
- package/dist/main/redux-slices/rtk-query/sfApiSliceInferredType.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/sfApiSliceInferredType.js +3 -0
- package/dist/main/redux-slices/rtk-query/sfApiSliceInferredType.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.d.ts +106 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.js +14 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.d.ts +72 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.js +62 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.d.ts +40 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.js +52 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.d.ts +16 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.js +16 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.d.ts +50 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.js +3 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.d.ts +26 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.js +3 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.d.ts +7 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.js +29 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.d.ts +3 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.js +3 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.js.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/subgraphSlice.d.ts +22 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/subgraphSlice.d.ts.map +1 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/subgraphSlice.js +37 -0
- package/dist/main/redux-slices/rtk-query/subgraph-slice/subgraphSlice.js.map +1 -0
- package/dist/main/redux-slices/transactions/createTransactionSlice.d.ts +12 -0
- package/dist/main/redux-slices/transactions/createTransactionSlice.d.ts.map +1 -0
- package/dist/main/redux-slices/transactions/createTransactionSlice.js +15 -0
- package/dist/main/redux-slices/transactions/createTransactionSlice.js.map +1 -0
- package/{build/module → dist/main}/redux-slices/transactions/registerNewTransaction.d.ts +1 -0
- package/dist/main/redux-slices/transactions/registerNewTransaction.d.ts.map +1 -0
- package/dist/main/redux-slices/transactions/registerNewTransaction.js +33 -0
- package/dist/main/redux-slices/transactions/registerNewTransaction.js.map +1 -0
- package/{build/module → dist/main}/redux-slices/transactions/trackTransaction.d.ts +1 -0
- package/dist/main/redux-slices/transactions/trackTransaction.d.ts.map +1 -0
- package/dist/main/redux-slices/transactions/trackTransaction.js +64 -0
- package/dist/main/redux-slices/transactions/trackTransaction.js.map +1 -0
- package/dist/main/redux-slices/transactions/trackedTransaction.d.ts +12 -0
- package/dist/main/redux-slices/transactions/trackedTransaction.d.ts.map +1 -0
- package/dist/main/redux-slices/transactions/trackedTransaction.js +11 -0
- package/dist/main/redux-slices/transactions/trackedTransaction.js.map +1 -0
- package/dist/main/sdkReduxConfig.d.ts +95 -0
- package/dist/main/sdkReduxConfig.d.ts.map +1 -0
- package/dist/main/sdkReduxConfig.js +102 -0
- package/dist/main/sdkReduxConfig.js.map +1 -0
- package/dist/main/sdkReduxInitialization.d.ts +74 -0
- package/dist/main/sdkReduxInitialization.d.ts.map +1 -0
- package/dist/main/sdkReduxInitialization.js +55 -0
- package/dist/main/sdkReduxInitialization.js.map +1 -0
- package/{build → dist}/main/utils.d.ts +1 -0
- package/dist/main/utils.d.ts.map +1 -0
- package/{build → dist}/main/utils.js +1 -1
- package/dist/main/utils.js.map +1 -0
- package/dist/module/index.d.ts +13 -0
- package/dist/module/index.d.ts.map +1 -0
- package/dist/module/index.js +12 -0
- package/dist/module/index.js.map +1 -0
- package/{build → dist}/module/redux-slices/argTypes.d.ts +11 -13
- package/dist/module/redux-slices/argTypes.d.ts.map +1 -0
- package/dist/module/redux-slices/argTypes.js +2 -0
- package/dist/module/redux-slices/argTypes.js.map +1 -0
- package/{build → dist}/module/redux-slices/rtk-query/cacheTags/CacheTagTypes.d.ts +1 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/CacheTagTypes.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/CacheTagTypes.js +14 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/CacheTagTypes.js.map +1 -0
- package/{build → dist}/module/redux-slices/rtk-query/cacheTags/eventTags.d.ts +1 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/eventTags.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/eventTags.js +8 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/eventTags.js.map +1 -0
- package/{build → dist}/module/redux-slices/rtk-query/cacheTags/indexTags.d.ts +2 -1
- package/dist/module/redux-slices/rtk-query/cacheTags/indexTags.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/indexTags.js +26 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/indexTags.js.map +1 -0
- package/{build → dist}/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.d.ts +1 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.js +142 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.js.map +1 -0
- package/{build/main → dist/module}/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.d.ts +1 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js +17 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js.map +1 -0
- package/{build/main → dist/module}/redux-slices/rtk-query/cacheTags/streamTags.d.ts +2 -1
- package/dist/module/redux-slices/rtk-query/cacheTags/streamTags.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/streamTags.js +25 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/streamTags.js.map +1 -0
- package/{build/main → dist/module}/redux-slices/rtk-query/cacheTags/tokenTags.d.ts +2 -1
- package/dist/module/redux-slices/rtk-query/cacheTags/tokenTags.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/tokenTags.js +25 -0
- package/dist/module/redux-slices/rtk-query/cacheTags/tokenTags.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/cacheTime.d.ts +9 -0
- package/dist/module/redux-slices/rtk-query/cacheTime.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/cacheTime.js +10 -0
- package/dist/module/redux-slices/rtk-query/cacheTime.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/createApiWithReactHooks.d.ts +7 -0
- package/dist/module/redux-slices/rtk-query/createApiWithReactHooks.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/createApiWithReactHooks.js +8 -0
- package/dist/module/redux-slices/rtk-query/createApiWithReactHooks.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/createApiWithoutReactHooks.d.ts +7 -0
- package/dist/module/redux-slices/rtk-query/createApiWithoutReactHooks.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/createApiWithoutReactHooks.js +8 -0
- package/dist/module/redux-slices/rtk-query/createApiWithoutReactHooks.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/getSerializeQueryArgs.d.ts +3 -0
- package/dist/module/redux-slices/rtk-query/getSerializeQueryArgs.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/getSerializeQueryArgs.js +36 -0
- package/dist/module/redux-slices/rtk-query/getSerializeQueryArgs.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/mutations/addMutationEndpoints.d.ts +21 -0
- package/dist/module/redux-slices/rtk-query/mutations/addMutationEndpoints.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/mutations/addMutationEndpoints.js +405 -0
- package/dist/module/redux-slices/rtk-query/mutations/addMutationEndpoints.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/mutations/mutations.d.ts +140 -0
- package/dist/module/redux-slices/rtk-query/mutations/mutations.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/mutations/mutations.js +2 -0
- package/dist/module/redux-slices/rtk-query/mutations/mutations.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/queries/addQueryEndpoints.d.ts +16 -0
- package/dist/module/redux-slices/rtk-query/queries/addQueryEndpoints.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/queries/addQueryEndpoints.js +276 -0
- package/dist/module/redux-slices/rtk-query/queries/addQueryEndpoints.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/queries/queries.d.ts +56 -0
- package/dist/module/redux-slices/rtk-query/queries/queries.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/queries/queries.js +2 -0
- package/dist/module/redux-slices/rtk-query/queries/queries.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/returnTypes.d.ts +16 -0
- package/dist/module/redux-slices/rtk-query/returnTypes.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/returnTypes.js +2 -0
- package/dist/module/redux-slices/rtk-query/returnTypes.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/sfApiSlice.d.ts +33 -0
- package/dist/module/redux-slices/rtk-query/sfApiSlice.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/sfApiSlice.js +20 -0
- package/dist/module/redux-slices/rtk-query/sfApiSlice.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/sfApiSliceInferredType.d.ts +3 -0
- package/dist/module/redux-slices/rtk-query/sfApiSliceInferredType.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/sfApiSliceInferredType.js +2 -0
- package/dist/module/redux-slices/rtk-query/sfApiSliceInferredType.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.d.ts +106 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.js +11 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.d.ts +72 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.js +58 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.d.ts +40 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.js +48 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.d.ts +16 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.js +12 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.d.ts +50 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.js +2 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/entityQueryArgs.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.d.ts +26 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.js +2 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/eventQueryArgs.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.d.ts +7 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.js +25 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/provideCacheTagsFromRelevantAddresses.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.d.ts +3 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.js +2 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/sfSubgraphSliceInferredType.js.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/subgraphSlice.d.ts +22 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/subgraphSlice.d.ts.map +1 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/subgraphSlice.js +31 -0
- package/dist/module/redux-slices/rtk-query/subgraph-slice/subgraphSlice.js.map +1 -0
- package/dist/module/redux-slices/transactions/createTransactionSlice.d.ts +12 -0
- package/dist/module/redux-slices/transactions/createTransactionSlice.d.ts.map +1 -0
- package/dist/module/redux-slices/transactions/createTransactionSlice.js +11 -0
- package/dist/module/redux-slices/transactions/createTransactionSlice.js.map +1 -0
- package/{build/main → dist/module}/redux-slices/transactions/registerNewTransaction.d.ts +1 -0
- package/dist/module/redux-slices/transactions/registerNewTransaction.d.ts.map +1 -0
- package/dist/module/redux-slices/transactions/registerNewTransaction.js +29 -0
- package/dist/module/redux-slices/transactions/registerNewTransaction.js.map +1 -0
- package/{build/main → dist/module}/redux-slices/transactions/trackTransaction.d.ts +1 -0
- package/dist/module/redux-slices/transactions/trackTransaction.d.ts.map +1 -0
- package/dist/module/redux-slices/transactions/trackTransaction.js +60 -0
- package/dist/module/redux-slices/transactions/trackTransaction.js.map +1 -0
- package/dist/module/redux-slices/transactions/trackedTransaction.d.ts +12 -0
- package/dist/module/redux-slices/transactions/trackedTransaction.d.ts.map +1 -0
- package/dist/module/redux-slices/transactions/trackedTransaction.js +8 -0
- package/dist/module/redux-slices/transactions/trackedTransaction.js.map +1 -0
- package/dist/module/sdkReduxConfig.d.ts +95 -0
- package/dist/module/sdkReduxConfig.d.ts.map +1 -0
- package/dist/module/sdkReduxConfig.js +89 -0
- package/dist/module/sdkReduxConfig.js.map +1 -0
- package/dist/module/sdkReduxInitialization.d.ts +74 -0
- package/dist/module/sdkReduxInitialization.d.ts.map +1 -0
- package/dist/module/sdkReduxInitialization.js +47 -0
- package/dist/module/sdkReduxInitialization.js.map +1 -0
- package/{build → dist}/module/utils.d.ts +1 -0
- package/dist/module/utils.d.ts.map +1 -0
- package/{build → dist}/module/utils.js +1 -1
- package/dist/module/utils.js.map +1 -0
- package/package.json +19 -22
- package/build/main/SuperfluidContext.d.ts +0 -31
- package/build/main/SuperfluidContext.js +0 -49
- package/build/main/createSdkReduxParts.d.ts +0 -23
- package/build/main/createSdkReduxParts.js +0 -28
- package/build/main/index.d.ts +0 -29
- package/build/main/index.js +0 -41
- package/build/main/redux-slices/argTypes.js +0 -3
- package/build/main/redux-slices/rtk-query/cacheTags/CacheTagTypes.js +0 -18
- package/build/main/redux-slices/rtk-query/cacheTags/eventTags.js +0 -12
- package/build/main/redux-slices/rtk-query/cacheTags/indexTags.js +0 -31
- package/build/main/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js +0 -21
- package/build/main/redux-slices/rtk-query/cacheTags/streamTags.js +0 -30
- package/build/main/redux-slices/rtk-query/cacheTags/tokenTags.js +0 -30
- package/build/main/redux-slices/rtk-query/mutations/approveIndexSubscription.d.ts +0 -19
- package/build/main/redux-slices/rtk-query/mutations/approveIndexSubscription.js +0 -45
- package/build/main/redux-slices/rtk-query/mutations/claimFromIndexSubscription.d.ts +0 -21
- package/build/main/redux-slices/rtk-query/mutations/claimFromIndexSubscription.js +0 -46
- package/build/main/redux-slices/rtk-query/mutations/createFlow.d.ts +0 -19
- package/build/main/redux-slices/rtk-query/mutations/createFlow.js +0 -50
- package/build/main/redux-slices/rtk-query/mutations/createIndex.d.ts +0 -17
- package/build/main/redux-slices/rtk-query/mutations/createIndex.js +0 -50
- package/build/main/redux-slices/rtk-query/mutations/deleteFlow.d.ts +0 -17
- package/build/main/redux-slices/rtk-query/mutations/deleteFlow.js +0 -48
- package/build/main/redux-slices/rtk-query/mutations/deleteIndexSubscription.d.ts +0 -21
- package/build/main/redux-slices/rtk-query/mutations/deleteIndexSubscription.js +0 -46
- package/build/main/redux-slices/rtk-query/mutations/distributeToIndex.d.ts +0 -19
- package/build/main/redux-slices/rtk-query/mutations/distributeToIndex.js +0 -48
- package/build/main/redux-slices/rtk-query/mutations/downgradeFromSuperToken.d.ts +0 -15
- package/build/main/redux-slices/rtk-query/mutations/downgradeFromSuperToken.js +0 -46
- package/build/main/redux-slices/rtk-query/mutations/monitorForEventsToInvalidateCache.d.ts +0 -16
- package/build/main/redux-slices/rtk-query/mutations/monitorForEventsToInvalidateCache.js +0 -40
- package/build/main/redux-slices/rtk-query/mutations/revokeIndexSubscription.d.ts +0 -19
- package/build/main/redux-slices/rtk-query/mutations/revokeIndexSubscription.js +0 -45
- package/build/main/redux-slices/rtk-query/mutations/transferSuperToken.d.ts +0 -17
- package/build/main/redux-slices/rtk-query/mutations/transferSuperToken.js +0 -47
- package/build/main/redux-slices/rtk-query/mutations/updateFlow.d.ts +0 -19
- package/build/main/redux-slices/rtk-query/mutations/updateFlow.js +0 -49
- package/build/main/redux-slices/rtk-query/mutations/updateIndexSubscriptionUnits.d.ts +0 -21
- package/build/main/redux-slices/rtk-query/mutations/updateIndexSubscriptionUnits.js +0 -46
- package/build/main/redux-slices/rtk-query/mutations/upgradeToSuperToken.d.ts +0 -16
- package/build/main/redux-slices/rtk-query/mutations/upgradeToSuperToken.js +0 -65
- package/build/main/redux-slices/rtk-query/queries/getAllowanceForUpgradeToSuperToken.d.ts +0 -17
- package/build/main/redux-slices/rtk-query/queries/getAllowanceForUpgradeToSuperToken.js +0 -43
- package/build/main/redux-slices/rtk-query/queries/getIndex.d.ts +0 -17
- package/build/main/redux-slices/rtk-query/queries/getIndex.js +0 -43
- package/build/main/redux-slices/rtk-query/queries/getIndexSubscription.d.ts +0 -17
- package/build/main/redux-slices/rtk-query/queries/getIndexSubscription.js +0 -44
- package/build/main/redux-slices/rtk-query/queries/getRealtimeBalance.d.ts +0 -22
- package/build/main/redux-slices/rtk-query/queries/getRealtimeBalance.js +0 -75
- package/build/main/redux-slices/rtk-query/queries/listEvents.d.ts +0 -15
- package/build/main/redux-slices/rtk-query/queries/listEvents.js +0 -59
- package/build/main/redux-slices/rtk-query/queries/listIndexSubscriptions.d.ts +0 -15
- package/build/main/redux-slices/rtk-query/queries/listIndexSubscriptions.js +0 -41
- package/build/main/redux-slices/rtk-query/queries/listIndexes.d.ts +0 -16
- package/build/main/redux-slices/rtk-query/queries/listIndexes.js +0 -42
- package/build/main/redux-slices/rtk-query/queries/listStreams.d.ts +0 -16
- package/build/main/redux-slices/rtk-query/queries/listStreams.js +0 -41
- package/build/main/redux-slices/rtk-query/queries/listSuperTokens.d.ts +0 -14
- package/build/main/redux-slices/rtk-query/queries/listSuperTokens.js +0 -39
- package/build/main/redux-slices/rtk-query/queries/listUserInteractedSuperTokens.d.ts +0 -15
- package/build/main/redux-slices/rtk-query/queries/listUserInteractedSuperTokens.js +0 -56
- package/build/main/redux-slices/rtk-query/rtkQuerySlice.d.ts +0 -3
- package/build/main/redux-slices/rtk-query/rtkQuerySlice.js +0 -53
- package/build/main/redux-slices/rtk-query/rtkQuerySliceBaseQuery.d.ts +0 -21
- package/build/main/redux-slices/rtk-query/rtkQuerySliceBaseQuery.js +0 -14
- package/build/main/redux-slices/transactions/registerNewTransaction.js +0 -33
- package/build/main/redux-slices/transactions/trackTransaction.js +0 -66
- package/build/main/redux-slices/transactions/transactionSlice.d.ts +0 -36
- package/build/main/redux-slices/transactions/transactionSlice.js +0 -19
- package/build/module/SuperfluidContext.d.ts +0 -31
- package/build/module/SuperfluidContext.js +0 -46
- package/build/module/createSdkReduxParts.d.ts +0 -23
- package/build/module/createSdkReduxParts.js +0 -23
- package/build/module/index.d.ts +0 -29
- package/build/module/index.js +0 -29
- package/build/module/redux-slices/argTypes.js +0 -2
- package/build/module/redux-slices/rtk-query/cacheTags/CacheTagTypes.js +0 -14
- package/build/module/redux-slices/rtk-query/cacheTags/eventTags.js +0 -8
- package/build/module/redux-slices/rtk-query/cacheTags/indexTags.js +0 -26
- package/build/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.js +0 -144
- package/build/module/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js +0 -17
- package/build/module/redux-slices/rtk-query/cacheTags/streamTags.js +0 -25
- package/build/module/redux-slices/rtk-query/cacheTags/tokenTags.js +0 -25
- package/build/module/redux-slices/rtk-query/mutations/approveIndexSubscription.d.ts +0 -19
- package/build/module/redux-slices/rtk-query/mutations/approveIndexSubscription.js +0 -43
- package/build/module/redux-slices/rtk-query/mutations/claimFromIndexSubscription.d.ts +0 -21
- package/build/module/redux-slices/rtk-query/mutations/claimFromIndexSubscription.js +0 -44
- package/build/module/redux-slices/rtk-query/mutations/createFlow.d.ts +0 -19
- package/build/module/redux-slices/rtk-query/mutations/createFlow.js +0 -48
- package/build/module/redux-slices/rtk-query/mutations/createIndex.d.ts +0 -17
- package/build/module/redux-slices/rtk-query/mutations/createIndex.js +0 -48
- package/build/module/redux-slices/rtk-query/mutations/deleteFlow.d.ts +0 -17
- package/build/module/redux-slices/rtk-query/mutations/deleteFlow.js +0 -46
- package/build/module/redux-slices/rtk-query/mutations/deleteIndexSubscription.d.ts +0 -21
- package/build/module/redux-slices/rtk-query/mutations/deleteIndexSubscription.js +0 -44
- package/build/module/redux-slices/rtk-query/mutations/distributeToIndex.d.ts +0 -19
- package/build/module/redux-slices/rtk-query/mutations/distributeToIndex.js +0 -46
- package/build/module/redux-slices/rtk-query/mutations/downgradeFromSuperToken.d.ts +0 -15
- package/build/module/redux-slices/rtk-query/mutations/downgradeFromSuperToken.js +0 -44
- package/build/module/redux-slices/rtk-query/mutations/monitorForEventsToInvalidateCache.d.ts +0 -16
- package/build/module/redux-slices/rtk-query/mutations/monitorForEventsToInvalidateCache.js +0 -38
- package/build/module/redux-slices/rtk-query/mutations/revokeIndexSubscription.d.ts +0 -19
- package/build/module/redux-slices/rtk-query/mutations/revokeIndexSubscription.js +0 -43
- package/build/module/redux-slices/rtk-query/mutations/transferSuperToken.d.ts +0 -17
- package/build/module/redux-slices/rtk-query/mutations/transferSuperToken.js +0 -45
- package/build/module/redux-slices/rtk-query/mutations/updateFlow.d.ts +0 -19
- package/build/module/redux-slices/rtk-query/mutations/updateFlow.js +0 -47
- package/build/module/redux-slices/rtk-query/mutations/updateIndexSubscriptionUnits.d.ts +0 -21
- package/build/module/redux-slices/rtk-query/mutations/updateIndexSubscriptionUnits.js +0 -44
- package/build/module/redux-slices/rtk-query/mutations/upgradeToSuperToken.d.ts +0 -16
- package/build/module/redux-slices/rtk-query/mutations/upgradeToSuperToken.js +0 -63
- package/build/module/redux-slices/rtk-query/queries/getAllowanceForUpgradeToSuperToken.d.ts +0 -17
- package/build/module/redux-slices/rtk-query/queries/getAllowanceForUpgradeToSuperToken.js +0 -41
- package/build/module/redux-slices/rtk-query/queries/getIndex.d.ts +0 -17
- package/build/module/redux-slices/rtk-query/queries/getIndex.js +0 -41
- package/build/module/redux-slices/rtk-query/queries/getIndexSubscription.d.ts +0 -17
- package/build/module/redux-slices/rtk-query/queries/getIndexSubscription.js +0 -42
- package/build/module/redux-slices/rtk-query/queries/getRealtimeBalance.d.ts +0 -22
- package/build/module/redux-slices/rtk-query/queries/getRealtimeBalance.js +0 -73
- package/build/module/redux-slices/rtk-query/queries/listEvents.d.ts +0 -15
- package/build/module/redux-slices/rtk-query/queries/listEvents.js +0 -57
- package/build/module/redux-slices/rtk-query/queries/listIndexSubscriptions.d.ts +0 -15
- package/build/module/redux-slices/rtk-query/queries/listIndexSubscriptions.js +0 -39
- package/build/module/redux-slices/rtk-query/queries/listIndexes.d.ts +0 -16
- package/build/module/redux-slices/rtk-query/queries/listIndexes.js +0 -40
- package/build/module/redux-slices/rtk-query/queries/listStreams.d.ts +0 -16
- package/build/module/redux-slices/rtk-query/queries/listStreams.js +0 -39
- package/build/module/redux-slices/rtk-query/queries/listSuperTokens.d.ts +0 -14
- package/build/module/redux-slices/rtk-query/queries/listSuperTokens.js +0 -37
- package/build/module/redux-slices/rtk-query/queries/listUserInteractedSuperTokens.d.ts +0 -15
- package/build/module/redux-slices/rtk-query/queries/listUserInteractedSuperTokens.js +0 -54
- package/build/module/redux-slices/rtk-query/rtkQuerySlice.d.ts +0 -3
- package/build/module/redux-slices/rtk-query/rtkQuerySlice.js +0 -47
- package/build/module/redux-slices/rtk-query/rtkQuerySliceBaseQuery.d.ts +0 -21
- package/build/module/redux-slices/rtk-query/rtkQuerySliceBaseQuery.js +0 -10
- package/build/module/redux-slices/transactions/registerNewTransaction.js +0 -29
- package/build/module/redux-slices/transactions/trackTransaction.js +0 -62
- package/build/module/redux-slices/transactions/transactionSlice.d.ts +0 -36
- package/build/module/redux-slices/transactions/transactionSlice.js +0 -19
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { CreateApi } from '@reduxjs/toolkit/dist/query';
|
|
2
|
+
import { Framework } from '@superfluid-finance/sdk-core';
|
|
3
|
+
import { Signer } from 'ethers';
|
|
4
|
+
/**
|
|
5
|
+
* For initializing "sfApi" Redux slice.
|
|
6
|
+
*
|
|
7
|
+
* @param createApi Pass in either {@see createApiWithReactHooks} or {@see createApiWithoutReactHooks}.
|
|
8
|
+
* You can wrap the function with your own function to add even more configuration to the RTK-Query API (e.g. "redux-persist" support).
|
|
9
|
+
*/
|
|
10
|
+
export declare const initializeSfApiSlice: <T extends keyof import("@reduxjs/toolkit/dist/query").ApiModules<any, any, any, any>>(createApi: CreateApi<T>) => {
|
|
11
|
+
sfApi: import("@reduxjs/toolkit/dist/query").Api<import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, {
|
|
12
|
+
approveIndexSubscription: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").ApproveIndexSubscription, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
13
|
+
claimFromIndexSubscription: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").ClaimFromIndexSubscription, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
14
|
+
createFlow: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").CreateFlow, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
15
|
+
createIndex: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").CreateIndex, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
16
|
+
deleteFlow: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").DeleteFlow, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
17
|
+
deleteIndexSubscription: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").DeleteIndexSubscription, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
18
|
+
distributeToIndex: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").DistributeToIndex, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
19
|
+
downgradeFromSuperToken: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").DowngradeFromSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
20
|
+
monitorForEventsToInvalidateCache: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").MonitorForEventsToInvalidateCache, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, true, "sfApi">;
|
|
21
|
+
revokeIndexSubscription: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").RevokeIndexSubscription, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
22
|
+
transferSuperToken: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").TransferSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
23
|
+
updateFlow: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").UpdateFlow, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
24
|
+
updateIndexSubscriptionUnits: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").UpdateIndexSubscriptionUnits, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
25
|
+
upgradeToSuperToken: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").UpgradeToSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
26
|
+
getAllowanceForUpgradeToSuperToken: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetAllowanceForUpgradeToSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, string, string>;
|
|
27
|
+
getIndex: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetIndex, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Index, string>;
|
|
28
|
+
getIndexSubscription: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Subscription, string>;
|
|
29
|
+
getRealtimeBalance: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetRealtimeBalance, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").GetRealtimeBalanceResult, string>;
|
|
30
|
+
listEvents: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListEvents, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").AllEvents>, string>;
|
|
31
|
+
listIndexes: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListIndexes, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndex>, string>;
|
|
32
|
+
listIndexSubscriptions: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndexSubscription>, string>;
|
|
33
|
+
listStreams: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListStreams, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IStream>, string>;
|
|
34
|
+
listSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ISuperToken>, string>;
|
|
35
|
+
listUserInteractedSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListUserInteractedSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ILightAccountTokenSnapshot>, string>;
|
|
36
|
+
}, "sfApi", import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, T>;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* For initializing "sfApi" Redux slice.
|
|
40
|
+
*
|
|
41
|
+
* @param createApi Pass in either {@see createApiWithReactHooks} or {@see createApiWithoutReactHooks}.
|
|
42
|
+
* You can wrap the function with your own function to add even more configuration to the RTK-Query API (e.g. "redux-persist" support).
|
|
43
|
+
*/
|
|
44
|
+
export declare const initializeSubgraphSlice: <T extends keyof import("@reduxjs/toolkit/dist/query").ApiModules<any, any, any, any>>(createApi: CreateApi<T>) => import("@reduxjs/toolkit/dist/query").Api<import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
45
|
+
chainId: number;
|
|
46
|
+
handle: (framework: Framework) => Promise<unknown>;
|
|
47
|
+
}, unknown, import("@superfluid-finance/sdk-core").SFError, Record<string, unknown>, {}>, {}, "sfSubgraph", import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, T>;
|
|
48
|
+
/**
|
|
49
|
+
* For initializing "sfTransaction" Redux slice.
|
|
50
|
+
*/
|
|
51
|
+
export declare const initializeSfTransactionSlice: () => {
|
|
52
|
+
sfTransactions: import("@reduxjs/toolkit").Slice<import("@reduxjs/toolkit").EntityState<import(".").TrackedTransaction>, {
|
|
53
|
+
upsertTransaction: {
|
|
54
|
+
<S extends import("@reduxjs/toolkit").EntityState<import(".").TrackedTransaction>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S, import("@reduxjs/toolkit").EntityState<import(".").TrackedTransaction>, S>, entity: import(".").TrackedTransaction): S;
|
|
55
|
+
<S_1 extends import("@reduxjs/toolkit").EntityState<import(".").TrackedTransaction>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_1, import("@reduxjs/toolkit").EntityState<import(".").TrackedTransaction>, S_1>, entity: {
|
|
56
|
+
payload: import(".").TrackedTransaction;
|
|
57
|
+
type: string;
|
|
58
|
+
}): S_1;
|
|
59
|
+
};
|
|
60
|
+
}, "sfTransactions">;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* SDK-Redux needs to know where to get the signer for mutations (i.e. transaction signing & broadcasting)
|
|
64
|
+
* @param chainId The chain.
|
|
65
|
+
* @param signer The Ethers signer getter. Can be either Promise or instance.
|
|
66
|
+
*/
|
|
67
|
+
export declare const setSignerForSdkRedux: (chainId: number, signer: (() => Promise<Signer>) | Signer) => void;
|
|
68
|
+
/**
|
|
69
|
+
* SDK-Redux needs to know where to get SDK-Core's Framework for data querying.
|
|
70
|
+
* @param chainId The chain.
|
|
71
|
+
* @param framework The SDK-Framework getter. Can be either Promise or instance.
|
|
72
|
+
*/
|
|
73
|
+
export declare const setFrameworkForSdkRedux: (chainId: number, framework: (() => Promise<Framework>) | Framework) => void;
|
|
74
|
+
//# sourceMappingURL=sdkReduxInitialization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdkReduxInitialization.d.ts","sourceRoot":"","sources":["../../src/sdkReduxInitialization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAEtD,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAO9B;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;wLAInC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;CAIxC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,YAAa,MAAM,UAAU,CAAC,MAAM,QAAQ,MAAM,CAAC,CAAC,GAAG,MAAM,SACpD,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,YAAa,MAAM,aAAa,CAAC,MAAM,QAAQ,SAAS,CAAC,CAAC,GAAG,SAAS,SAC1D,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setFrameworkForSdkRedux = exports.setSignerForSdkRedux = exports.initializeSfTransactionSlice = exports.initializeSubgraphSlice = exports.initializeSfApiSlice = void 0;
|
|
4
|
+
const sfApiSlice_1 = require("./redux-slices/rtk-query/sfApiSlice");
|
|
5
|
+
const subgraphSlice_1 = require("./redux-slices/rtk-query/subgraph-slice/subgraphSlice");
|
|
6
|
+
const createTransactionSlice_1 = require("./redux-slices/transactions/createTransactionSlice");
|
|
7
|
+
const sdkReduxConfig_1 = require("./sdkReduxConfig");
|
|
8
|
+
/**
|
|
9
|
+
* For initializing "sfApi" Redux slice.
|
|
10
|
+
*
|
|
11
|
+
* @param createApi Pass in either {@see createApiWithReactHooks} or {@see createApiWithoutReactHooks}.
|
|
12
|
+
* You can wrap the function with your own function to add even more configuration to the RTK-Query API (e.g. "redux-persist" support).
|
|
13
|
+
*/
|
|
14
|
+
const initializeSfApiSlice = (createApi) => {
|
|
15
|
+
const slice = (0, sfApiSlice_1.createApiSlice)(createApi);
|
|
16
|
+
(0, sdkReduxConfig_1.getConfig)().setApiSlice(slice);
|
|
17
|
+
return { sfApi: slice };
|
|
18
|
+
};
|
|
19
|
+
exports.initializeSfApiSlice = initializeSfApiSlice;
|
|
20
|
+
/**
|
|
21
|
+
* For initializing "sfApi" Redux slice.
|
|
22
|
+
*
|
|
23
|
+
* @param createApi Pass in either {@see createApiWithReactHooks} or {@see createApiWithoutReactHooks}.
|
|
24
|
+
* You can wrap the function with your own function to add even more configuration to the RTK-Query API (e.g. "redux-persist" support).
|
|
25
|
+
*/
|
|
26
|
+
const initializeSubgraphSlice = (createApi) => {
|
|
27
|
+
const slice = (0, subgraphSlice_1.createSubgraphSlice)(createApi);
|
|
28
|
+
(0, sdkReduxConfig_1.getConfig)().setSubgraphSlice(slice);
|
|
29
|
+
return slice;
|
|
30
|
+
};
|
|
31
|
+
exports.initializeSubgraphSlice = initializeSubgraphSlice;
|
|
32
|
+
/**
|
|
33
|
+
* For initializing "sfTransaction" Redux slice.
|
|
34
|
+
*/
|
|
35
|
+
const initializeSfTransactionSlice = () => {
|
|
36
|
+
const slice = (0, createTransactionSlice_1.createTransactionSlice)();
|
|
37
|
+
(0, sdkReduxConfig_1.getConfig)().setTransactionSlice(slice);
|
|
38
|
+
return { sfTransactions: slice };
|
|
39
|
+
};
|
|
40
|
+
exports.initializeSfTransactionSlice = initializeSfTransactionSlice;
|
|
41
|
+
/**
|
|
42
|
+
* SDK-Redux needs to know where to get the signer for mutations (i.e. transaction signing & broadcasting)
|
|
43
|
+
* @param chainId The chain.
|
|
44
|
+
* @param signer The Ethers signer getter. Can be either Promise or instance.
|
|
45
|
+
*/
|
|
46
|
+
const setSignerForSdkRedux = (chainId, signer) => (0, sdkReduxConfig_1.getConfig)().setSigner(chainId, signer);
|
|
47
|
+
exports.setSignerForSdkRedux = setSignerForSdkRedux;
|
|
48
|
+
/**
|
|
49
|
+
* SDK-Redux needs to know where to get SDK-Core's Framework for data querying.
|
|
50
|
+
* @param chainId The chain.
|
|
51
|
+
* @param framework The SDK-Framework getter. Can be either Promise or instance.
|
|
52
|
+
*/
|
|
53
|
+
const setFrameworkForSdkRedux = (chainId, framework) => (0, sdkReduxConfig_1.getConfig)().setFramework(chainId, framework);
|
|
54
|
+
exports.setFrameworkForSdkRedux = setFrameworkForSdkRedux;
|
|
55
|
+
//# sourceMappingURL=sdkReduxInitialization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdkReduxInitialization.js","sourceRoot":"","sources":["../../src/sdkReduxInitialization.ts"],"names":[],"mappings":";;;AAKA,oEAAmE;AACnE,yFAA0F;AAC1F,+FAA0F;AAC1F,qDAA2C;AAE3C;;;;;GAKG;AACI,MAAM,oBAAoB,GAAG,CAAuB,SAAuB,EAAE,EAAE;IAClF,MAAM,KAAK,GAAG,IAAA,2BAAc,EAAC,SAAS,CAAC,CAAC;IACxC,IAAA,0BAAS,GAAE,CAAC,WAAW,CAAC,KAAY,CAAC,CAAC;IACtC,OAAO,EAAC,KAAK,EAAE,KAAK,EAAC,CAAC;AAC1B,CAAC,CAAC;AAJW,QAAA,oBAAoB,wBAI/B;AAEF;;;;;GAKG;AACI,MAAM,uBAAuB,GAAG,CAAuB,SAAuB,EAAE,EAAE;IACrF,MAAM,KAAK,GAAG,IAAA,mCAAmB,EAAC,SAAS,CAAC,CAAC;IAC7C,IAAA,0BAAS,GAAE,CAAC,gBAAgB,CAAC,KAAY,CAAC,CAAC;IAC3C,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC;AAJW,QAAA,uBAAuB,2BAIlC;AAEF;;GAEG;AACI,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAC7C,MAAM,KAAK,GAAG,IAAA,+CAAsB,GAAE,CAAC;IACvC,IAAA,0BAAS,GAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACvC,OAAO,EAAC,cAAc,EAAE,KAAK,EAAC,CAAC;AACnC,CAAC,CAAC;AAJW,QAAA,4BAA4B,gCAIvC;AAEF;;;;GAIG;AACI,MAAM,oBAAoB,GAAG,CAAC,OAAe,EAAE,MAAwC,EAAE,EAAE,CAC9F,IAAA,0BAAS,GAAE,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAD9B,QAAA,oBAAoB,wBACU;AAE3C;;;;GAIG;AACI,MAAM,uBAAuB,GAAG,CAAC,OAAe,EAAE,SAAiD,EAAE,EAAE,CAC1G,IAAA,0BAAS,GAAE,CAAC,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AADpC,QAAA,uBAAuB,2BACa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,SAAS,kBAAqB,CAAC;AAE5C;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,GAAG,OAAO,EAAE,GAAG,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAE/E;AAED;;;GAGG;AACH,oBAAY,gBAAgB;IACxB,SAAS,OAAO;IAChB,WAAW,OAAO;IAClB,aAAa,QAAQ;IACrB,SAAS,QAAQ;IACjB,UAAU,SAAS;IACnB,YAAY,SAAS;IACrB,WAAW,SAAS;CACvB"}
|
|
@@ -31,4 +31,4 @@ var MillisecondTimes;
|
|
|
31
31
|
MillisecondTimes[MillisecondTimes["ThreeMinutes"] = 180000] = "ThreeMinutes";
|
|
32
32
|
MillisecondTimes[MillisecondTimes["FiveMinutes"] = 300000] = "FiveMinutes";
|
|
33
33
|
})(MillisecondTimes = exports.MillisecondTimes || (exports.MillisecondTimes = {}));
|
|
34
|
-
//# sourceMappingURL=
|
|
34
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACI,MAAM,SAAS,GAAG,CAAI,GAAM,EAAE,EAAE,CAAC,GAAG,CAAC;AAA/B,QAAA,SAAS,aAAsB;AAE5C;;;;GAIG;AACH,SAAgB,QAAQ,CAAI,SAA4B,EAAE,GAAG,QAAa;IACtE,OAAO,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;AACrC,CAAC;AAFD,4BAEC;AAED;;;GAGG;AACH,IAAY,gBAQX;AARD,WAAY,gBAAgB;IACxB,oEAAgB,CAAA;IAChB,wEAAkB,CAAA;IAClB,6EAAqB,CAAA;IACrB,qEAAiB,CAAA;IACjB,wEAAmB,CAAA;IACnB,4EAAqB,CAAA;IACrB,0EAAoB,CAAA;AACxB,CAAC,EARW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAQ3B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * as _sdkCore from '@superfluid-finance/sdk-core';
|
|
2
|
+
export * from './sdkReduxInitialization';
|
|
3
|
+
export * from './redux-slices/argTypes';
|
|
4
|
+
export * from './redux-slices/rtk-query/queries/queries';
|
|
5
|
+
export * from './redux-slices/rtk-query/subgraph-slice/entityQueryArgs';
|
|
6
|
+
export * from './redux-slices/rtk-query/mutations/mutations';
|
|
7
|
+
export { ValidationError, PossibleErrors } from './redux-slices/rtk-query/returnTypes';
|
|
8
|
+
export * from './redux-slices/transactions/trackedTransaction';
|
|
9
|
+
export * from './redux-slices/rtk-query/createApiWithReactHooks';
|
|
10
|
+
export * from './redux-slices/rtk-query/createApiWithoutReactHooks';
|
|
11
|
+
export * from './redux-slices/rtk-query/subgraph-slice/customSubgraphQuery';
|
|
12
|
+
export * from './redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AAEzD,cAAc,0BAA0B,CAAC;AAEzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0CAA0C,CAAC;AACzD,cAAc,yDAAyD,CAAC;AACxE,cAAc,8CAA8C,CAAC;AAE7D,OAAO,EAAC,eAAe,EAAE,cAAc,EAAC,MAAM,sCAAsC,CAAC;AAErF,cAAc,gDAAgD,CAAC;AAE/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AAEpE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,mEAAmE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * as _sdkCore from '@superfluid-finance/sdk-core';
|
|
2
|
+
export * from './sdkReduxInitialization';
|
|
3
|
+
export * from './redux-slices/argTypes';
|
|
4
|
+
export * from './redux-slices/rtk-query/queries/queries';
|
|
5
|
+
export * from './redux-slices/rtk-query/subgraph-slice/entityQueryArgs';
|
|
6
|
+
export * from './redux-slices/rtk-query/mutations/mutations';
|
|
7
|
+
export * from './redux-slices/transactions/trackedTransaction';
|
|
8
|
+
export * from './redux-slices/rtk-query/createApiWithReactHooks';
|
|
9
|
+
export * from './redux-slices/rtk-query/createApiWithoutReactHooks';
|
|
10
|
+
export * from './redux-slices/rtk-query/subgraph-slice/customSubgraphQuery';
|
|
11
|
+
export * from './redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints';
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AAEzD,cAAc,0BAA0B,CAAC;AAEzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0CAA0C,CAAC;AACzD,cAAc,yDAAyD,CAAC;AACxE,cAAc,8CAA8C,CAAC;AAI7D,cAAc,gDAAgD,CAAC;AAE/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AAEpE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,mEAAmE,CAAC"}
|
|
@@ -1,32 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Information about the transaction to locate it.
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export interface TransactionInfo {
|
|
5
5
|
/** The transaction's network chain ID. */
|
|
6
6
|
chainId: number;
|
|
7
7
|
/** The transaction hash. */
|
|
8
8
|
hash: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
export declare type QueryArg = {
|
|
9
|
+
}
|
|
10
|
+
export interface BaseQuery<_TReturns> {
|
|
14
11
|
/** Queried network's chain ID. */
|
|
15
12
|
chainId: number;
|
|
16
|
-
}
|
|
13
|
+
}
|
|
17
14
|
/**
|
|
18
|
-
*
|
|
15
|
+
* A query that returns a list of objects in paginated manner.
|
|
19
16
|
*/
|
|
20
|
-
export
|
|
17
|
+
export interface BasePaginatedQuery<TReturns> extends BaseQuery<TReturns> {
|
|
21
18
|
/** How many entries to skip. */
|
|
22
19
|
skip: number;
|
|
23
20
|
/** How many entries to return. */
|
|
24
21
|
take: number;
|
|
25
|
-
}
|
|
22
|
+
}
|
|
26
23
|
/**
|
|
27
|
-
*
|
|
24
|
+
* A mutation that changes the state of a super token.
|
|
28
25
|
*/
|
|
29
|
-
export
|
|
26
|
+
export interface BaseSuperTokenMutation {
|
|
30
27
|
/** The network's chain ID where transactions will be broadcast. */
|
|
31
28
|
chainId: number;
|
|
32
29
|
/** SuperToken the mutation will affect. */
|
|
@@ -38,7 +35,7 @@ export declare type SuperTokenMutationArg = {
|
|
|
38
35
|
* If set to `false` then the mutation will not be blocking, i.e. the react hook / redux thunk will not return.
|
|
39
36
|
*/
|
|
40
37
|
waitForConfirmation: boolean | NothingBoolean;
|
|
41
|
-
}
|
|
38
|
+
}
|
|
42
39
|
/**
|
|
43
40
|
* Input for strings that is ignored.
|
|
44
41
|
*/
|
|
@@ -51,3 +48,4 @@ export declare type NothingNumber = undefined;
|
|
|
51
48
|
* Input for booleans that is ignored.
|
|
52
49
|
*/
|
|
53
50
|
export declare type NothingBoolean = undefined;
|
|
51
|
+
//# sourceMappingURL=argTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"argTypes.d.ts","sourceRoot":"","sources":["../../../src/redux-slices/argTypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,SAAS,CAAC,SAAS;IAChC,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB,CAAC,QAAQ,CAAE,SAAQ,SAAS,CAAC,QAAQ,CAAC;IACrE,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,oEAAoE;IACpE,OAAO,EAAE,MAAM,CAAC;IAChB,2CAA2C;IAC3C,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAAC;CACjD;AAED;;GAEG;AACH,oBAAY,aAAa,GAAG,EAAE,GAAG,SAAS,CAAC;AAE3C;;GAEG;AACH,oBAAY,aAAa,GAAG,SAAS,CAAC;AAEtC;;GAEG;AACH,oBAAY,cAAc,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"argTypes.js","sourceRoot":"","sources":["../../../src/redux-slices/argTypes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CacheTagTypes.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/CacheTagTypes.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,oBAAY,aAAa,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,SAAS,SAAU,aAAa,WAAW,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;;;CAGzE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create a cache tag for RTK-Query.
|
|
3
|
+
* @private
|
|
4
|
+
* @category Cache Tags
|
|
5
|
+
*/
|
|
6
|
+
export const createTag = (type, ...keys) => ({
|
|
7
|
+
type: type,
|
|
8
|
+
id: keys.join('_').toLowerCase(),
|
|
9
|
+
});
|
|
10
|
+
// Order of address priorities if all present:
|
|
11
|
+
// 1. SuperToken Address
|
|
12
|
+
// 2. Publisher / Sender / From Address
|
|
13
|
+
// 3. Subscriber / Receiver / To Address
|
|
14
|
+
//# sourceMappingURL=CacheTagTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CacheTagTypes.js","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/CacheTagTypes.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAmB,EAAE,GAAG,IAAyB,EAAE,EAAE,CAAC,CAAC;IAC7E,IAAI,EAAE,IAAI;IACV,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE;CACnC,CAAC,CAAC;AAEH,8CAA8C;AAC9C,wBAAwB;AACxB,uCAAuC;AACvC,wCAAwC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventTags.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/eventTags.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,cAAc,YAAa,MAAM;;;CAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventTags.js","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/eventTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAE1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -21,7 +21,7 @@ declare type IndexTagArg = {
|
|
|
21
21
|
* @private
|
|
22
22
|
* @category Cache Tags
|
|
23
23
|
*/
|
|
24
|
-
export declare const createIndexTags: ({ chainId, address1, address2, address3, indexId
|
|
24
|
+
export declare const createIndexTags: ({ chainId, address1, address2, address3, indexId }: IndexTagArg) => {
|
|
25
25
|
type: import("./CacheTagTypes").CacheTagTypes;
|
|
26
26
|
id: string;
|
|
27
27
|
}[];
|
|
@@ -34,3 +34,4 @@ export declare const getMostSpecificIndexTag: (arg: IndexTagArg) => {
|
|
|
34
34
|
id: string;
|
|
35
35
|
};
|
|
36
36
|
export {};
|
|
37
|
+
//# sourceMappingURL=indexTags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexTags.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/indexTags.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAI7C;;;;;;;;;GASG;AACH,aAAK,WAAW,GAAG;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,QAAQ,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,QAAQ,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,OAAO,EAAE,MAAM,GAAG,aAAa,CAAC;CACnC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,uDAAsD,WAAW;;;GAY5F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAS,WAAW;;;CAEvD,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { insertIf } from '../../../utils';
|
|
2
|
+
import { createTag } from './CacheTagTypes';
|
|
3
|
+
/**
|
|
4
|
+
* Creates all possible index cache tag combinations.
|
|
5
|
+
* @private
|
|
6
|
+
* @category Cache Tags
|
|
7
|
+
*/
|
|
8
|
+
export const createIndexTags = ({ chainId, address1, address2, address3, indexId }) => [
|
|
9
|
+
indexTag(chainId),
|
|
10
|
+
...insertIf(address1, indexTag(chainId, address1)),
|
|
11
|
+
...insertIf(address2, indexTag(chainId, address2)),
|
|
12
|
+
...insertIf(address3, indexTag(chainId, address3)),
|
|
13
|
+
...insertIf(address1 && address2, indexTag(chainId, address1, address2)),
|
|
14
|
+
...insertIf(address1 && address3, indexTag(chainId, address1, address3)),
|
|
15
|
+
...insertIf(address1 && address2 && address3, indexTag(chainId, address1, address2, address3)),
|
|
16
|
+
...insertIf(address1 && address2 && address3 && indexId, indexTag(chainId, address1, address2, address3, indexId)),
|
|
17
|
+
];
|
|
18
|
+
/**
|
|
19
|
+
* @private
|
|
20
|
+
* @category Cache Tags
|
|
21
|
+
*/
|
|
22
|
+
export const getMostSpecificIndexTag = (arg) => {
|
|
23
|
+
return createIndexTags(arg).reverse()[0];
|
|
24
|
+
};
|
|
25
|
+
const indexTag = (chainId, ...keys) => createTag('Index', chainId, ...keys);
|
|
26
|
+
//# sourceMappingURL=indexTags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexTags.js","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/indexTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAGxC,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAoB1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAc,EAAE,EAAE,CAAC;IAC9F,QAAQ,CAAC,OAAO,CAAC;IACjB,GAAG,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAS,CAAC,CAAC;IACnD,GAAG,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAS,CAAC,CAAC;IACnD,GAAG,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAS,CAAC,CAAC;IACnD,GAAG,QAAQ,CAAC,QAAQ,IAAI,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAS,EAAE,QAAS,CAAC,CAAC;IAC1E,GAAG,QAAQ,CAAC,QAAQ,IAAI,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAS,EAAE,QAAS,CAAC,CAAC;IAC1E,GAAG,QAAQ,CAAC,QAAQ,IAAI,QAAQ,IAAI,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAS,EAAE,QAAS,EAAE,QAAS,CAAC,CAAC;IACjG,GAAG,QAAQ,CACP,QAAQ,IAAI,QAAQ,IAAI,QAAQ,IAAI,OAAO,EAC3C,QAAQ,CAAC,OAAO,EAAE,QAAS,EAAE,QAAS,EAAE,QAAS,EAAE,OAAQ,CAAC,CAC/D;CACJ,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAAgB,EAAE,EAAE;IACxD,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,OAAe,EAAE,GAAG,IAAc,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC"}
|
package/{build → dist}/module/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.d.ts
RENAMED
|
@@ -7,3 +7,4 @@ import { AllEvents } from '@superfluid-finance/sdk-core';
|
|
|
7
7
|
* @category Cache Tags
|
|
8
8
|
*/
|
|
9
9
|
export declare const invalidateCacheTagsForEvents: (chainId: number, events: AllEvents[], dispatch: ThunkDispatch<any, any, AnyAction>) => void;
|
|
10
|
+
//# sourceMappingURL=invalidateCacheTagsForEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalidateCacheTagsForEvents.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AASvD;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,YAC5B,MAAM,UACP,SAAS,EAAE,YACT,cAAc,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,SAQ/C,CAAC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { getApiSlice, getSubgraphSlice } from '../../../sdkReduxConfig';
|
|
2
|
+
import { createEventTag } from './eventTags';
|
|
3
|
+
import { createIndexTags } from './indexTags';
|
|
4
|
+
import { createStreamsTags } from './streamTags';
|
|
5
|
+
import { createTokenTags } from './tokenTags';
|
|
6
|
+
/**
|
|
7
|
+
* Based on event type, invalidate all possible relevant cache tags.
|
|
8
|
+
* Cache tag invalidation will trigger re-querying of data.
|
|
9
|
+
* @private
|
|
10
|
+
* @category Cache Tags
|
|
11
|
+
*/
|
|
12
|
+
export const invalidateCacheTagsForEvents = (chainId, events, dispatch) => {
|
|
13
|
+
const tagsToInvalidate = events
|
|
14
|
+
.map((event) => [createEventTag(chainId), ...getEventSpecificTags(event, chainId)])
|
|
15
|
+
.flat();
|
|
16
|
+
dispatch(getApiSlice().util.invalidateTags(tagsToInvalidate));
|
|
17
|
+
dispatch(getSubgraphSlice().util.invalidateTags(tagsToInvalidate));
|
|
18
|
+
};
|
|
19
|
+
const getEventSpecificTags = (event, chainId) => {
|
|
20
|
+
switch (event.name) {
|
|
21
|
+
case 'SubscriptionApproved':
|
|
22
|
+
case 'IndexDistributionClaimed':
|
|
23
|
+
case 'IndexSubscribed':
|
|
24
|
+
case 'IndexUnitsUpdated':
|
|
25
|
+
case 'IndexUnsubscribed':
|
|
26
|
+
case 'SubscriptionDistributionClaimed':
|
|
27
|
+
case 'SubscriptionRevoked':
|
|
28
|
+
case 'SubscriptionUnitsUpdated':
|
|
29
|
+
return createIndexTags({
|
|
30
|
+
chainId,
|
|
31
|
+
address1: event.token,
|
|
32
|
+
address2: event.publisher,
|
|
33
|
+
address3: event.subscriber,
|
|
34
|
+
indexId: event.indexId,
|
|
35
|
+
});
|
|
36
|
+
case 'IndexCreated':
|
|
37
|
+
case 'IndexUpdated':
|
|
38
|
+
return createIndexTags({
|
|
39
|
+
chainId,
|
|
40
|
+
address1: event.token,
|
|
41
|
+
address2: event.publisher,
|
|
42
|
+
address3: undefined,
|
|
43
|
+
indexId: event.indexId,
|
|
44
|
+
});
|
|
45
|
+
case 'FlowUpdated':
|
|
46
|
+
return createStreamsTags({
|
|
47
|
+
chainId,
|
|
48
|
+
address1: event.token,
|
|
49
|
+
address2: event.sender,
|
|
50
|
+
address3: event.receiver,
|
|
51
|
+
});
|
|
52
|
+
case 'TokenUpgraded':
|
|
53
|
+
case 'TokenDowngraded':
|
|
54
|
+
return createTokenTags({
|
|
55
|
+
chainId,
|
|
56
|
+
address1: event.token,
|
|
57
|
+
address2: event.account,
|
|
58
|
+
address3: undefined,
|
|
59
|
+
});
|
|
60
|
+
case 'Transfer':
|
|
61
|
+
return createTokenTags({
|
|
62
|
+
chainId,
|
|
63
|
+
address1: event.token,
|
|
64
|
+
address2: event.from,
|
|
65
|
+
address3: event.to,
|
|
66
|
+
});
|
|
67
|
+
case 'AgreementLiquidatedBy':
|
|
68
|
+
return createStreamsTags({
|
|
69
|
+
chainId,
|
|
70
|
+
address1: event.token,
|
|
71
|
+
address2: event.penaltyAccount,
|
|
72
|
+
address3: undefined,
|
|
73
|
+
});
|
|
74
|
+
case 'AgreementClassRegistered':
|
|
75
|
+
return [];
|
|
76
|
+
case 'AgreementClassUpdated':
|
|
77
|
+
return [];
|
|
78
|
+
case 'AppRegistered':
|
|
79
|
+
return [];
|
|
80
|
+
case 'Burned':
|
|
81
|
+
return [];
|
|
82
|
+
case 'CFAv1LiquidationPeriodChanged':
|
|
83
|
+
return [];
|
|
84
|
+
case 'ConfigChanged':
|
|
85
|
+
return [];
|
|
86
|
+
case 'CustomSuperTokenCreated':
|
|
87
|
+
return createTokenTags({
|
|
88
|
+
chainId,
|
|
89
|
+
address1: event.token,
|
|
90
|
+
address3: undefined,
|
|
91
|
+
address2: undefined,
|
|
92
|
+
});
|
|
93
|
+
case 'GovernanceReplaced':
|
|
94
|
+
return [];
|
|
95
|
+
case 'Jail':
|
|
96
|
+
return [];
|
|
97
|
+
case 'Minted':
|
|
98
|
+
return createTokenTags({
|
|
99
|
+
chainId,
|
|
100
|
+
address1: event.to,
|
|
101
|
+
address2: undefined,
|
|
102
|
+
address3: undefined,
|
|
103
|
+
});
|
|
104
|
+
case 'RewardAddressChanged':
|
|
105
|
+
return [];
|
|
106
|
+
case 'RoleAdminChanged':
|
|
107
|
+
return [];
|
|
108
|
+
case 'RoleGranted':
|
|
109
|
+
return [];
|
|
110
|
+
case 'RoleRevoked':
|
|
111
|
+
return [];
|
|
112
|
+
case 'Sent':
|
|
113
|
+
return createTokenTags({
|
|
114
|
+
chainId,
|
|
115
|
+
address1: event.to,
|
|
116
|
+
address2: undefined,
|
|
117
|
+
address3: undefined,
|
|
118
|
+
});
|
|
119
|
+
case 'SuperTokenLogicUpdated':
|
|
120
|
+
case 'SuperTokenCreated':
|
|
121
|
+
return createTokenTags({
|
|
122
|
+
chainId,
|
|
123
|
+
address1: event.token,
|
|
124
|
+
address2: undefined,
|
|
125
|
+
address3: undefined,
|
|
126
|
+
});
|
|
127
|
+
case 'SuperTokenFactoryUpdated':
|
|
128
|
+
return [];
|
|
129
|
+
case 'SuperTokenLogicCreated':
|
|
130
|
+
return [];
|
|
131
|
+
case 'TrustedForwarderChanged':
|
|
132
|
+
return createTokenTags({
|
|
133
|
+
chainId,
|
|
134
|
+
address1: event.superToken,
|
|
135
|
+
address2: undefined,
|
|
136
|
+
address3: undefined,
|
|
137
|
+
});
|
|
138
|
+
default:
|
|
139
|
+
throw Error('Unknown event type!');
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
//# sourceMappingURL=invalidateCacheTagsForEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalidateCacheTagsForEvents.js","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/invalidateCacheTagsForEvents.ts"],"names":[],"mappings":"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"}
|
|
@@ -8,3 +8,4 @@ import { TransactionInfo } from '../../argTypes';
|
|
|
8
8
|
* @category Cache Tags
|
|
9
9
|
*/
|
|
10
10
|
export declare const monitorAddressForNextEventToInvalidateCache: (address: string, transactionInfo: TransactionInfo, dispatch: ThunkDispatch<any, any, AnyAction>) => Promise<void>;
|
|
11
|
+
//# sourceMappingURL=monitorAddressForNextEventToInvalidateCache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitorAddressForNextEventToInvalidateCache.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAI/C,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAI/C;;;;;GAKG;AACH,eAAO,MAAM,2CAA2C,YAC3C,MAAM,mBACE,eAAe,YACtB,cAAc,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,kBAY/C,CAAC"}
|
package/dist/module/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { getFramework } from '../../../sdkReduxConfig';
|
|
2
|
+
import { MillisecondTimes } from '../../../utils';
|
|
3
|
+
import { invalidateCacheTagsForEvents } from './invalidateCacheTagsForEvents';
|
|
4
|
+
/**
|
|
5
|
+
* Monitors given address for next event to invalidate cache and then stops.
|
|
6
|
+
* NOTE: Optimizations for robustness could be done here.
|
|
7
|
+
* @private
|
|
8
|
+
* @category Cache Tags
|
|
9
|
+
*/
|
|
10
|
+
export const monitorAddressForNextEventToInvalidateCache = async (address, transactionInfo, dispatch) => {
|
|
11
|
+
const framework = await getFramework(transactionInfo.chainId);
|
|
12
|
+
framework.query.on((events, unsubscribe) => {
|
|
13
|
+
invalidateCacheTagsForEvents(transactionInfo.chainId, events, dispatch);
|
|
14
|
+
unsubscribe();
|
|
15
|
+
}, MillisecondTimes.OneSecond, address, MillisecondTimes.OneMinute);
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=monitorAddressForNextEventToInvalidateCache.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitorAddressForNextEventToInvalidateCache.js","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/monitorAddressForNextEventToInvalidateCache.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,YAAY,EAAC,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAG,KAAK,EAC5D,OAAe,EACf,eAAgC,EAChC,QAA4C,EAC9C,EAAE;IACA,MAAM,SAAS,GAAG,MAAM,YAAY,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAC9D,SAAS,CAAC,KAAK,CAAC,EAAE,CACd,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE;QACpB,4BAA4B,CAAC,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;QACxE,WAAW,EAAE,CAAC;IAClB,CAAC,EACD,gBAAgB,CAAC,SAAS,EAC1B,OAAO,EACP,gBAAgB,CAAC,SAAS,CAC7B,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -20,7 +20,7 @@ declare type StreamTagArg = {
|
|
|
20
20
|
* @private
|
|
21
21
|
* @category Cache Tags
|
|
22
22
|
*/
|
|
23
|
-
export declare const createStreamsTags: ({ chainId, address1, address2, address3
|
|
23
|
+
export declare const createStreamsTags: ({ chainId, address1, address2, address3 }: StreamTagArg) => {
|
|
24
24
|
type: import("./CacheTagTypes").CacheTagTypes;
|
|
25
25
|
id: string;
|
|
26
26
|
}[];
|
|
@@ -33,3 +33,4 @@ export declare const getMostSpecificStreamTag: (arg: StreamTagArg) => {
|
|
|
33
33
|
id: string;
|
|
34
34
|
};
|
|
35
35
|
export {};
|
|
36
|
+
//# sourceMappingURL=streamTags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streamTags.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/cacheTags/streamTags.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAI7C;;;;;;;;;GASG;AACH,aAAK,YAAY,GAAG;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,QAAQ,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,QAAQ,EAAE,MAAM,GAAG,aAAa,CAAC;CACpC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,8CAA6C,YAAY;;;GAQtF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,QAAS,YAAY;;;CAEzD,CAAC"}
|