@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,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
|
|
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 @@
|
|
|
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 @@
|
|
|
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"}
|