@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
|
@@ -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,3 +1,4 @@
|
|
|
1
|
+
import { miniSerializeError } from '@reduxjs/toolkit';
|
|
1
2
|
import { SFError } from '@superfluid-finance/sdk-core';
|
|
2
3
|
import { getFramework } from '../../../sdkReduxConfig';
|
|
3
4
|
import { typeGuard } from '../../../utils';
|
|
@@ -19,8 +20,15 @@ export const handleSubgraphQueryWithFramework = async ({ chainId, handle }) => {
|
|
|
19
20
|
}
|
|
20
21
|
catch (error) {
|
|
21
22
|
if (error instanceof SFError) {
|
|
23
|
+
const serializedSFError = {
|
|
24
|
+
message: error.message,
|
|
25
|
+
type: error.type,
|
|
26
|
+
};
|
|
27
|
+
if (error.errorObject) {
|
|
28
|
+
serializedSFError.errorObject = miniSerializeError(error.errorObject);
|
|
29
|
+
}
|
|
22
30
|
return {
|
|
23
|
-
error:
|
|
31
|
+
error: serializedSFError,
|
|
24
32
|
};
|
|
25
33
|
}
|
|
26
34
|
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":[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C,WAAW,EAAE;gBACnB,iBAAiB,CAAC,WAAW,GAAG,kBAAkB,CAAC,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"}
|
|
@@ -64,21 +64,21 @@ export declare const getApiSlice: () => import("@reduxjs/toolkit/dist/query").Ap
|
|
|
64
64
|
updateFlow: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").UpdateFlow, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
65
65
|
updateIndexSubscriptionUnits: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").UpdateIndexSubscriptionUnits, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
66
66
|
upgradeToSuperToken: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").UpgradeToSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
67
|
-
getAllowanceForUpgradeToSuperToken: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetAllowanceForUpgradeToSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, string,
|
|
68
|
-
getIndex: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetIndex, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Index,
|
|
69
|
-
getIndexSubscription: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Subscription,
|
|
70
|
-
getRealtimeBalance: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetRealtimeBalance, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").GetRealtimeBalanceResult,
|
|
71
|
-
listEvents: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListEvents, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").AllEvents>,
|
|
72
|
-
listIndexes: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListIndexes, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndex>,
|
|
73
|
-
listIndexSubscriptions: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndexSubscription>,
|
|
74
|
-
listStreams: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListStreams, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IStream>,
|
|
75
|
-
listSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ISuperToken>,
|
|
76
|
-
listUserInteractedSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListUserInteractedSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ILightAccountTokenSnapshot>,
|
|
67
|
+
getAllowanceForUpgradeToSuperToken: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetAllowanceForUpgradeToSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, string, "sfApi">;
|
|
68
|
+
getIndex: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetIndex, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Index, "sfApi">;
|
|
69
|
+
getIndexSubscription: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Subscription, "sfApi">;
|
|
70
|
+
getRealtimeBalance: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetRealtimeBalance, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").GetRealtimeBalanceResult, "sfApi">;
|
|
71
|
+
listEvents: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListEvents, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").AllEvents>, "sfApi">;
|
|
72
|
+
listIndexes: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListIndexes, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndex>, "sfApi">;
|
|
73
|
+
listIndexSubscriptions: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndexSubscription>, "sfApi">;
|
|
74
|
+
listStreams: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListStreams, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IStream>, "sfApi">;
|
|
75
|
+
listSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ISuperToken>, "sfApi">;
|
|
76
|
+
listUserInteractedSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListUserInteractedSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ILightAccountTokenSnapshot>, "sfApi">;
|
|
77
77
|
}, "sfApi", import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, keyof import("@reduxjs/toolkit/dist/query").ApiModules<any, any, any, any>>;
|
|
78
78
|
export declare const getSubgraphSlice: () => import("@reduxjs/toolkit/dist/query").Api<import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
79
79
|
chainId: number;
|
|
80
80
|
handle: (framework: Framework) => Promise<unknown>;
|
|
81
|
-
}, unknown, import("
|
|
81
|
+
}, unknown, import("./redux-slices/rtk-query/returnTypes").SerializedSFError, Record<string, unknown>, {}>, {}, "sfSubgraph", import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, keyof import("@reduxjs/toolkit/dist/query").ApiModules<any, any, any, any>>;
|
|
82
82
|
export declare const getTransactionSlice: () => import("@reduxjs/toolkit").Slice<import("@reduxjs/toolkit").EntityState<import(".").TrackedTransaction>, {
|
|
83
83
|
upsertTransaction: {
|
|
84
84
|
<S extends import("@reduxjs/toolkit").EntityState<import(".").TrackedTransaction>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S, import("@reduxjs/toolkit").EntityState<import(".").TrackedTransaction>, S>, entity: import(".").TrackedTransaction): S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdkReduxConfig.d.ts","sourceRoot":"","sources":["../../src/sdkReduxConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAG9B,OAAO,EAAC,sB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C;CAGhG;AAED,eAAO,MAAM,SAAS,4CAAsC,CAAC;AAC7D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;iKAAkC,CAAC;AAC3D,eAAO,MAAM,gBAAgB;;;mRAAuC,CAAC;AACrE,eAAO,MAAM,mBAAmB;;;;;;;;oBAA0C,CAAC;AAC3E,eAAO,MAAM,YAAY,YAAa,MAAM,uBAAsC,CAAC;AACnF,eAAO,MAAM,SAAS,YAAa,MAAM,oBAAmC,CAAC;AAC7E,eAAO,MAAM,qBAAqB,YAAa,MAAM,oDAA+C,CAAC"}
|
|
@@ -23,16 +23,16 @@ export declare const initializeSfApiSlice: <T extends keyof import("@reduxjs/too
|
|
|
23
23
|
updateFlow: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").UpdateFlow, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
24
24
|
updateIndexSubscriptionUnits: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").UpdateIndexSubscriptionUnits, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
25
25
|
upgradeToSuperToken: import("@reduxjs/toolkit/dist/query").MutationDefinition<import(".").UpgradeToSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").TransactionInfo, "sfApi">;
|
|
26
|
-
getAllowanceForUpgradeToSuperToken: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetAllowanceForUpgradeToSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, string,
|
|
27
|
-
getIndex: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetIndex, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Index,
|
|
28
|
-
getIndexSubscription: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Subscription,
|
|
29
|
-
getRealtimeBalance: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetRealtimeBalance, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").GetRealtimeBalanceResult,
|
|
30
|
-
listEvents: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListEvents, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").AllEvents>,
|
|
31
|
-
listIndexes: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListIndexes, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndex>,
|
|
32
|
-
listIndexSubscriptions: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndexSubscription>,
|
|
33
|
-
listStreams: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListStreams, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IStream>,
|
|
34
|
-
listSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ISuperToken>,
|
|
35
|
-
listUserInteractedSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListUserInteractedSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ILightAccountTokenSnapshot>,
|
|
26
|
+
getAllowanceForUpgradeToSuperToken: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetAllowanceForUpgradeToSuperToken, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, string, "sfApi">;
|
|
27
|
+
getIndex: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetIndex, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Index, "sfApi">;
|
|
28
|
+
getIndexSubscription: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").IWeb3Subscription, "sfApi">;
|
|
29
|
+
getRealtimeBalance: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").GetRealtimeBalance, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import(".").GetRealtimeBalanceResult, "sfApi">;
|
|
30
|
+
listEvents: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListEvents, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").AllEvents>, "sfApi">;
|
|
31
|
+
listIndexes: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListIndexes, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndex>, "sfApi">;
|
|
32
|
+
listIndexSubscriptions: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListIndexSubscriptions, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IIndexSubscription>, "sfApi">;
|
|
33
|
+
listStreams: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListStreams, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").IStream>, "sfApi">;
|
|
34
|
+
listSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ISuperToken>, "sfApi">;
|
|
35
|
+
listUserInteractedSuperTokens: import("@reduxjs/toolkit/dist/query").QueryDefinition<import(".").ListUserInteractedSuperTokens, import("@reduxjs/toolkit/dist/query").BaseQueryFn<void, unknown, import(".").ValidationError, Record<string, unknown>, import("./redux-slices/rtk-query/returnTypes").MutationMeta>, import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, import("@superfluid-finance/sdk-core").PagedResult<import("@superfluid-finance/sdk-core").ILightAccountTokenSnapshot>, "sfApi">;
|
|
36
36
|
}, "sfApi", import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, T>;
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
@@ -44,7 +44,7 @@ export declare const initializeSfApiSlice: <T extends keyof import("@reduxjs/too
|
|
|
44
44
|
export declare const initializeSubgraphSlice: <T extends keyof import("@reduxjs/toolkit/dist/query").ApiModules<any, any, any, any>>(createApi: CreateApi<T>) => import("@reduxjs/toolkit/dist/query").Api<import("@reduxjs/toolkit/dist/query").BaseQueryFn<{
|
|
45
45
|
chainId: number;
|
|
46
46
|
handle: (framework: Framework) => Promise<unknown>;
|
|
47
|
-
}, unknown, import("
|
|
47
|
+
}, unknown, import("./redux-slices/rtk-query/returnTypes").SerializedSFError, Record<string, unknown>, {}>, {}, "sfSubgraph", import("./redux-slices/rtk-query/cacheTags/CacheTagTypes").CacheTagTypes, T>;
|
|
48
48
|
/**
|
|
49
49
|
* For initializing "sfTransaction" Redux slice.
|
|
50
50
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdkReduxInitialization.d.ts","sourceRoot":"","sources":["../../src/sdkReduxInitialization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAEtD,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAO9B;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;
|
|
1
|
+
{"version":3,"file":"sdkReduxInitialization.d.ts","sourceRoot":"","sources":["../../src/sdkReduxInitialization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAEtD,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAO9B;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;0MAInC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;CAIxC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,YAAa,MAAM,UAAU,CAAC,MAAM,QAAQ,MAAM,CAAC,CAAC,GAAG,MAAM,SACpD,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,YAAa,MAAM,aAAa,CAAC,MAAM,QAAQ,SAAS,CAAC,CAAC,GAAG,SAAS,SAC1D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superfluid-finance/sdk-redux",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2-dev.0d5b0ff.0",
|
|
4
4
|
"description": "SDK Redux for streamlined front-end application development with Superfluid Protocol",
|
|
5
5
|
"homepage": "https://docs.superfluid.finance/",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/superfluid-finance/protocol-monorepo.git
|
|
8
|
+
"url": "https://github.com/superfluid-finance/protocol-monorepo.git",
|
|
9
|
+
"directory": "packages/sdk-redux"
|
|
9
10
|
},
|
|
10
11
|
"license": "MIT",
|
|
11
12
|
"main": "dist/main/index.js",
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
"module": "dist/module/index.js",
|
|
14
15
|
"keywords": [],
|
|
15
16
|
"scripts": {
|
|
16
|
-
"pre-commit": "run-s lint
|
|
17
|
+
"pre-commit": "if [ ! -z \"$(git status -s .)\" ];then run-s lint:*;else true;fi",
|
|
17
18
|
"build": "rm -rf dist && run-p build:*",
|
|
18
19
|
"build:main": "tsc -p tsconfig.json",
|
|
19
20
|
"build:module": "tsc -p tsconfig.module.json",
|
|
@@ -26,9 +27,10 @@
|
|
|
26
27
|
"test": "echo 'TODO: Tests'",
|
|
27
28
|
"watch:build": "tsc -p tsconfig.json -w",
|
|
28
29
|
"doc": "run-s doc:html",
|
|
29
|
-
"doc:html": "typedoc src/ --out dist/docs",
|
|
30
|
+
"doc:html": "typedoc src/ --out dist/docs && copyfiles -f ./sf-logo.png ./dist/docs/",
|
|
30
31
|
"doc:json": "typedoc src/ --json dist/docs/typedoc.json",
|
|
31
|
-
"check-updates": "ncu --target minor --dep prod,dev"
|
|
32
|
+
"check-updates": "ncu --target minor --dep prod,dev",
|
|
33
|
+
"cloc": "sh tasks/cloc.sh"
|
|
32
34
|
},
|
|
33
35
|
"engines": {
|
|
34
36
|
"node": ">=12"
|
|
@@ -41,6 +43,7 @@
|
|
|
41
43
|
"devDependencies": {
|
|
42
44
|
"@typescript-eslint/eslint-plugin": "^5.10.2",
|
|
43
45
|
"@typescript-eslint/parser": "^5.10.2",
|
|
46
|
+
"copyfiles": "^2.4.1",
|
|
44
47
|
"eslint": "^8.8.0",
|
|
45
48
|
"eslint-config-prettier": "^8.3.0",
|
|
46
49
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
@@ -53,7 +56,7 @@
|
|
|
53
56
|
},
|
|
54
57
|
"peerDependencies": {
|
|
55
58
|
"@reduxjs/toolkit": "^1.6.0 || ^1.7.0",
|
|
56
|
-
"@superfluid-finance/sdk-core": "0.3.
|
|
59
|
+
"@superfluid-finance/sdk-core": "0.3.1"
|
|
57
60
|
},
|
|
58
61
|
"files": [
|
|
59
62
|
"dist/main",
|