@superfluid-finance/sdk-redux 0.2.1-dev.dfb06a3.0 → 0.2.2-dev.0d5b0ff.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 +4 -0
- package/README.md +1 -1
- package/dist/main/index.js +5 -1
- package/dist/main/index.js.map +1 -1
- package/dist/main/redux-slices/rtk-query/queries/addQueryEndpoints.d.ts +10 -10
- package/dist/main/redux-slices/rtk-query/returnTypes.d.ts +12 -1
- package/dist/main/redux-slices/rtk-query/returnTypes.d.ts.map +1 -1
- package/dist/main/redux-slices/rtk-query/sfApiSlice.d.ts +10 -10
- package/dist/main/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.d.ts +25 -25
- package/dist/main/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.d.ts +16 -16
- package/dist/main/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.d.ts +8 -8
- package/dist/main/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.d.ts +1 -1
- package/dist/main/redux-slices/rtk-query/subgraph-slice/subgraphSlice.d.ts +5 -4
- package/dist/main/redux-slices/rtk-query/subgraph-slice/subgraphSlice.d.ts.map +1 -1
- package/dist/main/redux-slices/rtk-query/subgraph-slice/subgraphSlice.js +9 -1
- package/dist/main/redux-slices/rtk-query/subgraph-slice/subgraphSlice.js.map +1 -1
- package/dist/main/sdkReduxConfig.d.ts +11 -11
- package/dist/main/sdkReduxConfig.d.ts.map +1 -1
- package/dist/main/sdkReduxInitialization.d.ts +11 -11
- package/dist/main/sdkReduxInitialization.d.ts.map +1 -1
- package/dist/module/redux-slices/rtk-query/queries/addQueryEndpoints.d.ts +10 -10
- package/dist/module/redux-slices/rtk-query/returnTypes.d.ts +12 -1
- package/dist/module/redux-slices/rtk-query/returnTypes.d.ts.map +1 -1
- package/dist/module/redux-slices/rtk-query/sfApiSlice.d.ts +10 -10
- package/dist/module/redux-slices/rtk-query/subgraph-slice/allSubgraphSliceEndpoints.d.ts +25 -25
- package/dist/module/redux-slices/rtk-query/subgraph-slice/createEntityQueryEndpoints.d.ts +16 -16
- package/dist/module/redux-slices/rtk-query/subgraph-slice/createEventQueryEndpoints.d.ts +8 -8
- package/dist/module/redux-slices/rtk-query/subgraph-slice/customSubgraphQuery.d.ts +1 -1
- package/dist/module/redux-slices/rtk-query/subgraph-slice/subgraphSlice.d.ts +5 -4
- package/dist/module/redux-slices/rtk-query/subgraph-slice/subgraphSlice.d.ts.map +1 -1
- package/dist/module/redux-slices/rtk-query/subgraph-slice/subgraphSlice.js +9 -1
- package/dist/module/redux-slices/rtk-query/subgraph-slice/subgraphSlice.js.map +1 -1
- package/dist/module/sdkReduxConfig.d.ts +11 -11
- package/dist/module/sdkReduxConfig.d.ts.map +1 -1
- package/dist/module/sdkReduxInitialization.d.ts +11 -11
- package/dist/module/sdkReduxInitialization.d.ts.map +1 -1
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to the SDK-redux will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## [0.2.1] - 2022-02-16
|
|
5
|
+
### Added
|
|
6
|
+
- Using SDK-Core@v0.3.1, SDK-core bug fix propagated to SDK-redux
|
|
4
7
|
## [0.2.0] - 2022-02-01
|
|
5
8
|
### Added
|
|
6
9
|
- Introduce new Redux slice `sfSubgraph` ([#571])
|
|
@@ -21,6 +24,7 @@ All notable changes to the SDK-redux will be documented in this file.
|
|
|
21
24
|
- Handle errors and offer user opportunity to retry
|
|
22
25
|
|
|
23
26
|
|
|
27
|
+
[0.2.1]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-redux%40v0.2.0...sdk-redux%40v0.2.1
|
|
24
28
|
[0.2.0]: https://github.com/superfluid-finance/protocol-monorepo/compare/sdk-redux%40v0.1.0...sdk-redux%40v0.2.0
|
|
25
29
|
[0.1.0]: https://github.com/superfluid-finance/protocol-monorepo/releases/tag/sdk-redux%40v0.1.0
|
|
26
30
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<h1 align="center">sdk-redux</h1>
|
|
2
2
|
<div align="center">
|
|
3
|
-
<img width="300" padding="0 0 10px" alt="Superfluid logo" src="
|
|
3
|
+
<img width="300" padding="0 0 10px" alt="Superfluid logo" src="./sf-logo.png" />
|
|
4
4
|
<p>
|
|
5
5
|
<a href="https://www.npmjs.com/package/@superfluid-finance/sdk-redux" target="_blank">
|
|
6
6
|
<img alt="Version" src="https://img.shields.io/npm/v/@superfluid-finance/sdk-redux.svg">
|
package/dist/main/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/main/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yEAAyD;AAEzD,2DAAyC;AAEzC,0DAAwC;AACxC,2EAAyD;AACzD,0FAAwE;AACxE,+EAA6D;AAI7D,iFAA+D;AAE/D,mFAAiE;AACjE,sFAAoE;AAEpE,8FAA4E;AAC5E,oGAAkF"}
|
|
@@ -2,15 +2,15 @@ import { AllEvents, IIndex, IIndexSubscription, ILightAccountTokenSnapshot, IStr
|
|
|
2
2
|
import { ApiSliceEndpointBuilder } from '../sfApiSlice';
|
|
3
3
|
import { GetAllowanceForUpgradeToSuperToken, GetIndex, GetIndexSubscriptions, GetRealtimeBalance, GetRealtimeBalanceResult, ListEvents, ListIndexes, ListIndexSubscriptions, ListStreams, ListSuperTokens, ListUserInteractedSuperTokens } from './queries';
|
|
4
4
|
export declare const addQueryEndpoints: (builder: ApiSliceEndpointBuilder) => {
|
|
5
|
-
getAllowanceForUpgradeToSuperToken: import("@reduxjs/toolkit/dist/query").QueryDefinition<GetAllowanceForUpgradeToSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, string,
|
|
6
|
-
getIndex: import("@reduxjs/toolkit/dist/query").QueryDefinition<GetIndex, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, IWeb3Index,
|
|
7
|
-
getIndexSubscription: import("@reduxjs/toolkit/dist/query").QueryDefinition<GetIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, IWeb3Subscription,
|
|
8
|
-
getRealtimeBalance: import("@reduxjs/toolkit/dist/query").QueryDefinition<GetRealtimeBalance, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, GetRealtimeBalanceResult,
|
|
9
|
-
listEvents: import("@reduxjs/toolkit/dist/query").QueryDefinition<ListEvents, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<AllEvents>,
|
|
10
|
-
listIndexes: import("@reduxjs/toolkit/dist/query").QueryDefinition<ListIndexes, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<IIndex>,
|
|
11
|
-
listIndexSubscriptions: import("@reduxjs/toolkit/dist/query").QueryDefinition<ListIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<IIndexSubscription>,
|
|
12
|
-
listStreams: import("@reduxjs/toolkit/dist/query").QueryDefinition<ListStreams, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<IStream>,
|
|
13
|
-
listSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<ListSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<ISuperToken>,
|
|
14
|
-
listUserInteractedSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<ListUserInteractedSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<ILightAccountTokenSnapshot>,
|
|
5
|
+
getAllowanceForUpgradeToSuperToken: import("@reduxjs/toolkit/dist/query").QueryDefinition<GetAllowanceForUpgradeToSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, string, "sfApi">;
|
|
6
|
+
getIndex: import("@reduxjs/toolkit/dist/query").QueryDefinition<GetIndex, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, IWeb3Index, "sfApi">;
|
|
7
|
+
getIndexSubscription: import("@reduxjs/toolkit/dist/query").QueryDefinition<GetIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, IWeb3Subscription, "sfApi">;
|
|
8
|
+
getRealtimeBalance: import("@reduxjs/toolkit/dist/query").QueryDefinition<GetRealtimeBalance, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, GetRealtimeBalanceResult, "sfApi">;
|
|
9
|
+
listEvents: import("@reduxjs/toolkit/dist/query").QueryDefinition<ListEvents, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<AllEvents>, "sfApi">;
|
|
10
|
+
listIndexes: import("@reduxjs/toolkit/dist/query").QueryDefinition<ListIndexes, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<IIndex>, "sfApi">;
|
|
11
|
+
listIndexSubscriptions: import("@reduxjs/toolkit/dist/query").QueryDefinition<ListIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<IIndexSubscription>, "sfApi">;
|
|
12
|
+
listStreams: import("@reduxjs/toolkit/dist/query").QueryDefinition<ListStreams, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<IStream>, "sfApi">;
|
|
13
|
+
listSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<ListSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<ISuperToken>, "sfApi">;
|
|
14
|
+
listUserInteractedSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<ListUserInteractedSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import("../returnTypes").ValidationError, Record<string, unknown>, import("../returnTypes").MutationMeta>, import("../cacheTags/CacheTagTypes").CacheTagTypes, PagedResult<ILightAccountTokenSnapshot>, "sfApi">;
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=addQueryEndpoints.d.ts.map
|
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
import { SerializedError } from '@reduxjs/toolkit';
|
|
2
|
-
import { SFError } from '@superfluid-finance/sdk-core';
|
|
2
|
+
import { ErrorType, SFError } from '@superfluid-finance/sdk-core';
|
|
3
3
|
export declare type ValidationError = {
|
|
4
4
|
/**
|
|
5
5
|
* NOTE: Keep it named "message" to have same structure with Redux Toolkit's SerializedError.
|
|
6
6
|
*/
|
|
7
7
|
message: string;
|
|
8
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* Effectively {@see SFError} serialized because Redux can't store class instances.
|
|
11
|
+
*/
|
|
12
|
+
export declare type SerializedSFError = {
|
|
13
|
+
/**
|
|
14
|
+
* NOTE: Keep it named "message" to have same structure with Redux Toolkit's SerializedError.
|
|
15
|
+
*/
|
|
16
|
+
message: string;
|
|
17
|
+
type: ErrorType;
|
|
18
|
+
errorObject?: SerializedError;
|
|
19
|
+
};
|
|
9
20
|
export declare type MutationMeta = {
|
|
10
21
|
/**
|
|
11
22
|
* The address will be monitored for events to invalidate cache.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"returnTypes.d.ts","sourceRoot":"","sources":["../../../../src/redux-slices/rtk-query/returnTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"returnTypes.d.ts","sourceRoot":"","sources":["../../../../src/redux-slices/rtk-query/returnTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAC,SAAS,EAAE,OAAO,EAAC,MAAM,8BAA8B,CAAC;AAEhE,oBAAY,eAAe,GAAG;IAC1B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,oBAAY,iBAAiB,GAAG;IAC5B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,CAAC,EAAE,eAAe,CAAC;CACjC,CAAC;AAEF,oBAAY,YAAY,GAAG;IACvB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,oBAAY,cAAc,GAAG,eAAe,GAAG,eAAe,GAAG,OAAO,CAAC"}
|
|
@@ -17,16 +17,16 @@ export declare const createApiSlice: <T extends keyof import("@reduxjs/toolkit/q
|
|
|
17
17
|
updateFlow: import("@reduxjs/toolkit/query").MutationDefinition<import("./mutations/mutations").UpdateFlow, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("../argTypes").TransactionInfo, "sfApi">;
|
|
18
18
|
updateIndexSubscriptionUnits: import("@reduxjs/toolkit/query").MutationDefinition<import("./mutations/mutations").UpdateIndexSubscriptionUnits, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("../argTypes").TransactionInfo, "sfApi">;
|
|
19
19
|
upgradeToSuperToken: import("@reduxjs/toolkit/query").MutationDefinition<import("./mutations/mutations").UpgradeToSuperToken, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("../argTypes").TransactionInfo, "sfApi">;
|
|
20
|
-
getAllowanceForUpgradeToSuperToken: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").GetAllowanceForUpgradeToSuperToken, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, string,
|
|
21
|
-
getIndex: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").GetIndex, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Index,
|
|
22
|
-
getIndexSubscription: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").GetIndexSubscriptions, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Subscription,
|
|
23
|
-
getRealtimeBalance: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").GetRealtimeBalance, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("./queries/queries").GetRealtimeBalanceResult,
|
|
24
|
-
listEvents: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").ListEvents, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").AllEvents>,
|
|
25
|
-
listIndexes: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").ListIndexes, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndex>,
|
|
26
|
-
listIndexSubscriptions: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").ListIndexSubscriptions, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndexSubscription>,
|
|
27
|
-
listStreams: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").ListStreams, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IStream>,
|
|
28
|
-
listSuperTokens: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").ListSuperTokens, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ISuperToken>,
|
|
29
|
-
listUserInteractedSuperTokens: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").ListUserInteractedSuperTokens, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ILightAccountTokenSnapshot>,
|
|
20
|
+
getAllowanceForUpgradeToSuperToken: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").GetAllowanceForUpgradeToSuperToken, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, string, "sfApi">;
|
|
21
|
+
getIndex: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").GetIndex, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Index, "sfApi">;
|
|
22
|
+
getIndexSubscription: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").GetIndexSubscriptions, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Subscription, "sfApi">;
|
|
23
|
+
getRealtimeBalance: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").GetRealtimeBalance, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("./queries/queries").GetRealtimeBalanceResult, "sfApi">;
|
|
24
|
+
listEvents: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").ListEvents, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").AllEvents>, "sfApi">;
|
|
25
|
+
listIndexes: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").ListIndexes, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndex>, "sfApi">;
|
|
26
|
+
listIndexSubscriptions: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").ListIndexSubscriptions, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndexSubscription>, "sfApi">;
|
|
27
|
+
listStreams: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").ListStreams, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IStream>, "sfApi">;
|
|
28
|
+
listSuperTokens: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").ListSuperTokens, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ISuperToken>, "sfApi">;
|
|
29
|
+
listUserInteractedSuperTokens: import("@reduxjs/toolkit/query").QueryDefinition<import("./queries/queries").ListUserInteractedSuperTokens, BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>, CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ILightAccountTokenSnapshot>, "sfApi">;
|
|
30
30
|
}, "sfApi", CacheTagTypes, T>;
|
|
31
31
|
export declare function apiSliceBaseQuery(): BaseQueryFn<void, unknown, ValidationError, Record<string, unknown>, MutationMeta>;
|
|
32
32
|
export declare type ApiSliceEndpointBuilder = EndpointBuilder<ReturnType<typeof apiSliceBaseQuery>, CacheTagTypes, 'sfApi'>;
|
|
@@ -4,103 +4,103 @@ export declare const allSubgraphSliceEndpoints: {
|
|
|
4
4
|
event: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./eventQueryArgs").EventQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
5
5
|
chainId: number;
|
|
6
6
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
7
|
-
}, unknown, import("
|
|
7
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").AllEvents | null, string>;
|
|
8
8
|
events: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./eventQueryArgs").EventsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
9
9
|
chainId: number;
|
|
10
10
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
11
|
-
}, unknown, import("
|
|
11
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").AllEvents>, string>;
|
|
12
12
|
flowUpdatedEvent: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./eventQueryArgs").FlowUpdatedEventQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
13
13
|
chainId: number;
|
|
14
14
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
15
|
-
}, unknown, import("
|
|
15
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").FlowUpdatedEvent | null, string>;
|
|
16
16
|
flowUpdatedEvents: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./eventQueryArgs").FlowUpdatedEventsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
17
17
|
chainId: number;
|
|
18
18
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
19
|
-
}, unknown, import("
|
|
19
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").FlowUpdatedEvent>, string>;
|
|
20
20
|
indexUpdatedEvent: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./eventQueryArgs").IndexUpdatedEventQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
21
21
|
chainId: number;
|
|
22
22
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
23
|
-
}, unknown, import("
|
|
23
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").IndexUpdatedEvent | null, string>;
|
|
24
24
|
indexUpdatedEvents: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./eventQueryArgs").IndexUpdatedEventsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
25
25
|
chainId: number;
|
|
26
26
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
27
|
-
}, unknown, import("
|
|
27
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IndexUpdatedEvent>, string>;
|
|
28
28
|
subscriptionUnitsUpdatedEvent: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./eventQueryArgs").SubscriptionUnitsUpdatedEventQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
29
29
|
chainId: number;
|
|
30
30
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
31
|
-
}, unknown, import("
|
|
31
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").SubscriptionUnitsUpdatedEvent | null, string>;
|
|
32
32
|
subscriptionUnitsUpdatedEvents: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./eventQueryArgs").SubscriptionUnitsUpdatedEventsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
33
33
|
chainId: number;
|
|
34
34
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
35
|
-
}, unknown, import("
|
|
35
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").SubscriptionUnitsUpdatedEvent>, string>;
|
|
36
36
|
account: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").AccountQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
37
37
|
chainId: number;
|
|
38
38
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
39
|
-
}, unknown, import("
|
|
39
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").Account | null, string>;
|
|
40
40
|
accounts: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").AccountsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
41
41
|
chainId: number;
|
|
42
42
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
43
|
-
}, unknown, import("
|
|
43
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").Account>, string>;
|
|
44
44
|
accountTokenSnapshot: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").AccountTokenSnapshotQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
45
45
|
chainId: number;
|
|
46
46
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
47
|
-
}, unknown, import("
|
|
47
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").AccountTokenSnapshot | null, string>;
|
|
48
48
|
accountTokenSnapshots: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").AccountTokenSnapshotsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
49
49
|
chainId: number;
|
|
50
50
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
51
|
-
}, unknown, import("
|
|
51
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").AccountTokenSnapshot>, string>;
|
|
52
52
|
index: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").IndexQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
53
53
|
chainId: number;
|
|
54
54
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
55
|
-
}, unknown, import("
|
|
55
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").Index | null, string>;
|
|
56
56
|
indexes: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").IndexesQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
57
57
|
chainId: number;
|
|
58
58
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
59
|
-
}, unknown, import("
|
|
59
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").Index>, string>;
|
|
60
60
|
indexSubscription: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").IndexSubscriptionQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
61
61
|
chainId: number;
|
|
62
62
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
63
|
-
}, unknown, import("
|
|
63
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").IndexSubscription | null, string>;
|
|
64
64
|
indexSubscriptions: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").IndexSubscriptionsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
65
65
|
chainId: number;
|
|
66
66
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
67
|
-
}, unknown, import("
|
|
67
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IndexSubscription>, string>;
|
|
68
68
|
stream: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").StreamQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
69
69
|
chainId: number;
|
|
70
70
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
71
|
-
}, unknown, import("
|
|
71
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").Stream | null, string>;
|
|
72
72
|
streams: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").StreamsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
73
73
|
chainId: number;
|
|
74
74
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
75
|
-
}, unknown, import("
|
|
75
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").Stream>, string>;
|
|
76
76
|
streamPeriod: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").StreamPeriodQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
77
77
|
chainId: number;
|
|
78
78
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
79
|
-
}, unknown, import("
|
|
79
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").StreamPeriod | null, string>;
|
|
80
80
|
streamPeriods: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").StreamPeriodsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
81
81
|
chainId: number;
|
|
82
82
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
83
|
-
}, unknown, import("
|
|
83
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").StreamPeriod>, string>;
|
|
84
84
|
token: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").TokenQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
85
85
|
chainId: number;
|
|
86
86
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
87
|
-
}, unknown, import("
|
|
87
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").Token | null, string>;
|
|
88
88
|
tokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").TokensQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
89
89
|
chainId: number;
|
|
90
90
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
91
|
-
}, unknown, import("
|
|
91
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").Token>, string>;
|
|
92
92
|
tokenStatistic: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").TokenStatisticQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
93
93
|
chainId: number;
|
|
94
94
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
95
|
-
}, unknown, import("
|
|
95
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").TokenStatistic | null, string>;
|
|
96
96
|
tokenStatistics: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./entityQueryArgs").TokenStatisticsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
97
97
|
chainId: number;
|
|
98
98
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
99
|
-
}, unknown, import("
|
|
99
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").TokenStatistic>, string>;
|
|
100
100
|
custom: import("@reduxjs/toolkit/dist/query").QueryDefinition<import("./customSubgraphQuery").CustomSubgraphQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
101
101
|
chainId: number;
|
|
102
102
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
103
|
-
}, unknown, import("
|
|
103
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, unknown, "sfSubgraph">;
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
106
|
//# sourceMappingURL=allSubgraphSliceEndpoints.d.ts.map
|
|
@@ -7,66 +7,66 @@ export declare const createEntityQueryEndpoints: (builder: SubgraphSliceEndpoint
|
|
|
7
7
|
account: QueryDefinition<AccountQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
8
8
|
chainId: number;
|
|
9
9
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
10
|
-
}, unknown, import("
|
|
10
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, Account | null, string>;
|
|
11
11
|
accounts: QueryDefinition<AccountsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
12
12
|
chainId: number;
|
|
13
13
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
14
|
-
}, unknown, import("
|
|
14
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, PagedResult<Account>, string>;
|
|
15
15
|
accountTokenSnapshot: QueryDefinition<AccountTokenSnapshotQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
16
16
|
chainId: number;
|
|
17
17
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
18
|
-
}, unknown, import("
|
|
18
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, AccountTokenSnapshot | null, string>;
|
|
19
19
|
accountTokenSnapshots: QueryDefinition<AccountTokenSnapshotsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
20
20
|
chainId: number;
|
|
21
21
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
22
|
-
}, unknown, import("
|
|
22
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, PagedResult<AccountTokenSnapshot>, string>;
|
|
23
23
|
index: QueryDefinition<IndexQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
24
24
|
chainId: number;
|
|
25
25
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
26
|
-
}, unknown, import("
|
|
26
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, Index | null, string>;
|
|
27
27
|
indexes: QueryDefinition<IndexesQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
28
28
|
chainId: number;
|
|
29
29
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
30
|
-
}, unknown, import("
|
|
30
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, PagedResult<Index>, string>;
|
|
31
31
|
indexSubscription: QueryDefinition<IndexSubscriptionQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
32
32
|
chainId: number;
|
|
33
33
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
34
|
-
}, unknown, import("
|
|
34
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, IndexSubscription | null, string>;
|
|
35
35
|
indexSubscriptions: QueryDefinition<IndexSubscriptionsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
36
36
|
chainId: number;
|
|
37
37
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
38
|
-
}, unknown, import("
|
|
38
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, PagedResult<IndexSubscription>, string>;
|
|
39
39
|
stream: QueryDefinition<StreamQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
40
40
|
chainId: number;
|
|
41
41
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
42
|
-
}, unknown, import("
|
|
42
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, Stream | null, string>;
|
|
43
43
|
streams: QueryDefinition<StreamsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
44
44
|
chainId: number;
|
|
45
45
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
46
|
-
}, unknown, import("
|
|
46
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, PagedResult<Stream>, string>;
|
|
47
47
|
streamPeriod: QueryDefinition<StreamPeriodQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
48
48
|
chainId: number;
|
|
49
49
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
50
|
-
}, unknown, import("
|
|
50
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, StreamPeriod | null, string>;
|
|
51
51
|
streamPeriods: QueryDefinition<StreamPeriodsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
52
52
|
chainId: number;
|
|
53
53
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
54
|
-
}, unknown, import("
|
|
54
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, PagedResult<StreamPeriod>, string>;
|
|
55
55
|
token: QueryDefinition<TokenQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
56
56
|
chainId: number;
|
|
57
57
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
58
|
-
}, unknown, import("
|
|
58
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, Token | null, string>;
|
|
59
59
|
tokens: QueryDefinition<TokensQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
60
60
|
chainId: number;
|
|
61
61
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
62
|
-
}, unknown, import("
|
|
62
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, PagedResult<Token>, string>;
|
|
63
63
|
tokenStatistic: QueryDefinition<TokenStatisticQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
64
64
|
chainId: number;
|
|
65
65
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
66
|
-
}, unknown, import("
|
|
66
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, TokenStatistic | null, string>;
|
|
67
67
|
tokenStatistics: QueryDefinition<TokenStatisticsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
68
68
|
chainId: number;
|
|
69
69
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
70
|
-
}, unknown, import("
|
|
70
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, PagedResult<TokenStatistic>, string>;
|
|
71
71
|
};
|
|
72
72
|
//# sourceMappingURL=createEntityQueryEndpoints.d.ts.map
|
|
@@ -7,34 +7,34 @@ export declare const createEventQueryEndpoints: (builder: SubgraphSliceEndpointB
|
|
|
7
7
|
event: QueryDefinition<EventQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
8
8
|
chainId: number;
|
|
9
9
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
10
|
-
}, unknown, import("
|
|
10
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, AllEvents | null, string>;
|
|
11
11
|
events: QueryDefinition<EventsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
12
12
|
chainId: number;
|
|
13
13
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
14
|
-
}, unknown, import("
|
|
14
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, PagedResult<AllEvents>, string>;
|
|
15
15
|
flowUpdatedEvent: QueryDefinition<FlowUpdatedEventQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
16
16
|
chainId: number;
|
|
17
17
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
18
|
-
}, unknown, import("
|
|
18
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, FlowUpdatedEvent | null, string>;
|
|
19
19
|
flowUpdatedEvents: QueryDefinition<FlowUpdatedEventsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
20
20
|
chainId: number;
|
|
21
21
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
22
|
-
}, unknown, import("
|
|
22
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, PagedResult<FlowUpdatedEvent>, string>;
|
|
23
23
|
indexUpdatedEvent: QueryDefinition<IndexUpdatedEventQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
24
24
|
chainId: number;
|
|
25
25
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
26
|
-
}, unknown, import("
|
|
26
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, IndexUpdatedEvent | null, string>;
|
|
27
27
|
indexUpdatedEvents: QueryDefinition<IndexUpdatedEventsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
28
28
|
chainId: number;
|
|
29
29
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
30
|
-
}, unknown, import("
|
|
30
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, PagedResult<IndexUpdatedEvent>, string>;
|
|
31
31
|
subscriptionUnitsUpdatedEvent: QueryDefinition<SubscriptionUnitsUpdatedEventQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
32
32
|
chainId: number;
|
|
33
33
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
34
|
-
}, unknown, import("
|
|
34
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, SubscriptionUnitsUpdatedEvent | null, string>;
|
|
35
35
|
subscriptionUnitsUpdatedEvents: QueryDefinition<SubscriptionUnitsUpdatedEventsQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
36
36
|
chainId: number;
|
|
37
37
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
38
|
-
}, unknown, import("
|
|
38
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, CacheTagTypes, PagedResult<SubscriptionUnitsUpdatedEvent>, string>;
|
|
39
39
|
};
|
|
40
40
|
//# sourceMappingURL=createEventQueryEndpoints.d.ts.map
|
|
@@ -11,6 +11,6 @@ export declare const createCustomQueryEndpoints: (builder: SubgraphSliceEndpoint
|
|
|
11
11
|
custom: import("@reduxjs/toolkit/dist/query").QueryDefinition<CustomSubgraphQuery, import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
12
12
|
chainId: number;
|
|
13
13
|
handle: (framework: import("@superfluid-finance/sdk-core").Framework) => Promise<unknown>;
|
|
14
|
-
}, unknown, import("
|
|
14
|
+
}, unknown, import("../returnTypes").SerializedSFError, Record<string, unknown>, {}>, import("../cacheTags/CacheTagTypes").CacheTagTypes, unknown, "sfSubgraph">;
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=customSubgraphQuery.d.ts.map
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { BaseQueryFn } from '@reduxjs/toolkit/dist/query';
|
|
2
2
|
import { EndpointBuilder } from '@reduxjs/toolkit/dist/query/endpointDefinitions';
|
|
3
3
|
import { CreateApi } from '@reduxjs/toolkit/query';
|
|
4
|
-
import { Framework
|
|
4
|
+
import { Framework } from '@superfluid-finance/sdk-core';
|
|
5
5
|
import { CacheTagTypes } from '../cacheTags/CacheTagTypes';
|
|
6
|
-
|
|
6
|
+
import { SerializedSFError } from '../returnTypes';
|
|
7
|
+
export declare const createSubgraphSlice: <T extends keyof import("@reduxjs/toolkit/dist/query").ApiModules<any, any, any, any>>(createRtkQueryApi: CreateApi<T>) => import("@reduxjs/toolkit/dist/query").Api<BaseQueryFn<SubgraphSliceArgs, unknown, SerializedSFError, Record<string, unknown>, {}>, {}, "sfSubgraph", CacheTagTypes, T>;
|
|
7
8
|
export declare type SubgraphSliceEndpointBuilder = EndpointBuilder<SubgraphSliceBaseQueryType, CacheTagTypes, 'sfSubgraph'>;
|
|
8
9
|
declare type SubgraphSliceArgs = {
|
|
9
10
|
chainId: number;
|
|
10
11
|
handle: (framework: Framework) => Promise<unknown>;
|
|
11
12
|
};
|
|
12
|
-
export declare const subgraphSliceBaseQuery: () => BaseQueryFn<SubgraphSliceArgs, unknown,
|
|
13
|
+
export declare const subgraphSliceBaseQuery: () => BaseQueryFn<SubgraphSliceArgs, unknown, SerializedSFError, Record<string, unknown>>;
|
|
13
14
|
export declare type SubgraphSliceBaseQueryType = ReturnType<typeof subgraphSliceBaseQuery>;
|
|
14
15
|
export declare const handleSubgraphQueryWithFramework: ({ chainId, handle }: SubgraphSliceArgs) => Promise<{
|
|
15
16
|
data: unknown;
|
|
16
17
|
error?: undefined;
|
|
17
18
|
} | {
|
|
18
|
-
error:
|
|
19
|
+
error: SerializedSFError;
|
|
19
20
|
data?: undefined;
|
|
20
21
|
}>;
|
|
21
22
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subgraphSlice.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/subgraph-slice/subgraphSlice.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"subgraphSlice.d.ts","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/subgraph-slice/subgraphSlice.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAC;AAExD,OAAO,EAAC,eAAe,EAAC,MAAM,iDAAiD,CAAC;AAChF,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,SAAS,EAAU,MAAM,8BAA8B,CAAC;AAIhE,OAAO,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AAGzD,OAAO,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,mSAQ1B,CAAC;AAEP,oBAAY,4BAA4B,GAAG,eAAe,CAAC,0BAA0B,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;AAEpH,aAAK,iBAAiB,GAAG;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;CAAC,CAAC;AAE/F,eAAO,MAAM,sBAAsB,QAAO,YACtC,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,OAAO,MAAM,EAAE,OAAO,CAAC,CACU,CAAC;AAEtC,oBAAY,0BAA0B,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEnF,eAAO,MAAM,gCAAgC,wBAA6B,iBAAiB;;;;;;EAoB1F,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.handleSubgraphQueryWithFramework = exports.subgraphSliceBaseQuery = exports.createSubgraphSlice = void 0;
|
|
4
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
4
5
|
const sdk_core_1 = require("@superfluid-finance/sdk-core");
|
|
5
6
|
const sdkReduxConfig_1 = require("../../../sdkReduxConfig");
|
|
6
7
|
const utils_1 = require("../../../utils");
|
|
@@ -24,8 +25,15 @@ const handleSubgraphQueryWithFramework = async ({ chainId, handle }) => {
|
|
|
24
25
|
}
|
|
25
26
|
catch (error) {
|
|
26
27
|
if (error instanceof sdk_core_1.SFError) {
|
|
28
|
+
const serializedSFError = {
|
|
29
|
+
message: error.message,
|
|
30
|
+
type: error.type,
|
|
31
|
+
};
|
|
32
|
+
if (error.errorObject) {
|
|
33
|
+
serializedSFError.errorObject = (0, toolkit_1.miniSerializeError)(error.errorObject);
|
|
34
|
+
}
|
|
27
35
|
return {
|
|
28
|
-
error:
|
|
36
|
+
error: serializedSFError,
|
|
29
37
|
};
|
|
30
38
|
}
|
|
31
39
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subgraphSlice.js","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/subgraph-slice/subgraphSlice.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"subgraphSlice.js","sourceRoot":"","sources":["../../../../../src/redux-slices/rtk-query/subgraph-slice/subgraphSlice.ts"],"names":[],"mappings":";;;AAAA,8CAAoD;AAKpD,2DAAgE;AAEhE,4DAAqD;AACrD,0CAAyC;AAEzC,4CAAuC;AACvC,oEAA+D;AAGxD,MAAM,mBAAmB,GAAG,CAAuB,iBAA+B,EAAE,EAAE,CACzF,iBAAiB,CAAC;IACd,iBAAiB,EAAE,qBAAS,CAAC,SAAS;IACtC,WAAW,EAAE,YAAY;IACzB,SAAS,EAAE,IAAA,8BAAsB,GAAE;IACnC,QAAQ,EAAE,IAAA,iBAAS,EAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC3E,SAAS,EAAE,CAAC,QAAsC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC;IAC3D,kBAAkB,EAAE,IAAA,6CAAqB,GAAE;CAC9C,CAAC,CAAC;AARM,QAAA,mBAAmB,uBAQzB;AAMA,MAAM,sBAAsB,GAAG,GAKpC,EAAE,CAAC,wCAAgC,CAAC;AALzB,QAAA,sBAAsB,0BAKG;AAI/B,MAAM,gCAAgC,GAAG,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAoB,EAAE,EAAE;IAC3F,IAAI;QACA,MAAM,SAAS,GAAG,MAAM,IAAA,6BAAY,EAAC,OAAO,CAAC,CAAC;QAC9C,OAAO,EAAC,IAAI,EAAE,MAAM,MAAM,CAAC,SAAS,CAAC,EAAC,CAAC;KAC1C;IAAC,OAAO,KAAK,EAAE;QACZ,IAAI,KAAK,YAAY,kBAAO,EAAE;YAC1B,MAAM,iBAAiB,GAAsB;gBACzC,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,IAAI,EAAE,KAAK,CAAC,IAAI;aACnB,CAAC;YACF,IAAI,KAAK,CAAC,WAAW,EAAE;gBACnB,iBAAiB,CAAC,WAAW,GAAG,IAAA,4BAAkB,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;aACzE;YACD,OAAO;gBACH,KAAK,EAAE,iBAAiB;aAC3B,CAAC;SACL;aAAM;YACH,MAAM,KAAK,CAAC;SACf;KACJ;AACL,CAAC,CAAC;AApBW,QAAA,gCAAgC,oCAoB3C"}
|