@superfluid-finance/sdk-core 0.1.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/LICENSE +9 -0
- package/README.md +487 -0
- package/dist/main/BatchCall.d.ts +53 -0
- package/dist/main/ConstantFlowAgreementV1.d.ts +74 -0
- package/dist/main/Framework.d.ts +75 -0
- package/dist/main/Host.d.ts +18 -0
- package/dist/main/InstantDistributionAgreementV1.d.ts +107 -0
- package/dist/main/Operation.d.ts +38 -0
- package/dist/main/Query.d.ts +31 -0
- package/dist/main/SFError.d.ts +13 -0
- package/dist/main/SuperToken.d.ts +191 -0
- package/dist/main/Token.d.ts +76 -0
- package/dist/main/constants.d.ts +10 -0
- package/dist/main/events.d.ts +255 -0
- package/dist/main/frameworkHelpers.d.ts +20 -0
- package/dist/main/index.d.ts +19 -0
- package/dist/main/index.js +7522 -0
- package/dist/main/interfaces.d.ts +307 -0
- package/dist/main/mapGetAllEventsQueryEvents.d.ts +3 -0
- package/dist/main/ordering.d.ts +13 -0
- package/dist/main/pagination.d.ts +65 -0
- package/dist/main/subgraph/SubgraphClient.d.ts +16 -0
- package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +45 -0
- package/dist/main/subgraph/queries/getAllEvents.generated.d.ts +651 -0
- package/dist/main/subgraph/queries/getIndexSubscriptions.generated.d.ts +46 -0
- package/dist/main/subgraph/queries/getIndexes.generated.d.ts +44 -0
- package/dist/main/subgraph/queries/getStreams.generated.d.ts +58 -0
- package/dist/main/subgraph/queries/getTokens.generated.d.ts +27 -0
- package/dist/main/subgraph/schema.generated.d.ts +6487 -0
- package/dist/main/typechain/ERC20WithTokenInfo.d.ts +159 -0
- package/dist/main/typechain/IConstantFlowAgreementV1.d.ts +305 -0
- package/dist/main/typechain/IInstantDistributionAgreementV1.d.ts +585 -0
- package/dist/main/typechain/IResolver.d.ts +57 -0
- package/dist/main/typechain/SuperToken.d.ts +1011 -0
- package/dist/main/typechain/Superfluid.d.ts +780 -0
- package/dist/main/typechain/SuperfluidLoader.d.ts +55 -0
- package/dist/main/typechain/TestToken.d.ts +207 -0
- package/dist/main/typechain/common.d.ts +21 -0
- package/dist/main/typechain/factories/ERC20WithTokenInfo__factory.d.ts +35 -0
- package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.d.ts +35 -0
- package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts +35 -0
- package/dist/main/typechain/factories/IResolver__factory.d.ts +22 -0
- package/dist/main/typechain/factories/SuperToken__factory.d.ts +46 -0
- package/dist/main/typechain/factories/SuperfluidLoader__factory.d.ts +37 -0
- package/dist/main/typechain/factories/Superfluid__factory.d.ts +82 -0
- package/dist/main/typechain/factories/TestToken__factory.d.ts +46 -0
- package/dist/main/typechain/index.d.ts +16 -0
- package/dist/main/types.d.ts +2 -0
- package/dist/main/utils.d.ts +89 -0
- package/dist/main/validation.d.ts +8 -0
- package/dist/module/BatchCall.d.ts +53 -0
- package/dist/module/ConstantFlowAgreementV1.d.ts +74 -0
- package/dist/module/Framework.d.ts +75 -0
- package/dist/module/Host.d.ts +18 -0
- package/dist/module/InstantDistributionAgreementV1.d.ts +107 -0
- package/dist/module/Operation.d.ts +38 -0
- package/dist/module/Query.d.ts +31 -0
- package/dist/module/SFError.d.ts +13 -0
- package/dist/module/SuperToken.d.ts +191 -0
- package/dist/module/Token.d.ts +76 -0
- package/dist/module/constants.d.ts +10 -0
- package/dist/module/events.d.ts +255 -0
- package/dist/module/frameworkHelpers.d.ts +20 -0
- package/dist/module/index.d.ts +19 -0
- package/dist/module/index.js +7488 -0
- package/dist/module/interfaces.d.ts +307 -0
- package/dist/module/mapGetAllEventsQueryEvents.d.ts +3 -0
- package/dist/module/ordering.d.ts +13 -0
- package/dist/module/pagination.d.ts +65 -0
- package/dist/module/subgraph/SubgraphClient.d.ts +16 -0
- package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +45 -0
- package/dist/module/subgraph/queries/getAllEvents.generated.d.ts +651 -0
- package/dist/module/subgraph/queries/getIndexSubscriptions.generated.d.ts +46 -0
- package/dist/module/subgraph/queries/getIndexes.generated.d.ts +44 -0
- package/dist/module/subgraph/queries/getStreams.generated.d.ts +58 -0
- package/dist/module/subgraph/queries/getTokens.generated.d.ts +27 -0
- package/dist/module/subgraph/schema.generated.d.ts +6487 -0
- package/dist/module/typechain/ERC20WithTokenInfo.d.ts +159 -0
- package/dist/module/typechain/IConstantFlowAgreementV1.d.ts +305 -0
- package/dist/module/typechain/IInstantDistributionAgreementV1.d.ts +585 -0
- package/dist/module/typechain/IResolver.d.ts +57 -0
- package/dist/module/typechain/SuperToken.d.ts +1011 -0
- package/dist/module/typechain/Superfluid.d.ts +780 -0
- package/dist/module/typechain/SuperfluidLoader.d.ts +55 -0
- package/dist/module/typechain/TestToken.d.ts +207 -0
- package/dist/module/typechain/common.d.ts +21 -0
- package/dist/module/typechain/factories/ERC20WithTokenInfo__factory.d.ts +35 -0
- package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.d.ts +35 -0
- package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts +35 -0
- package/dist/module/typechain/factories/IResolver__factory.d.ts +22 -0
- package/dist/module/typechain/factories/SuperToken__factory.d.ts +46 -0
- package/dist/module/typechain/factories/SuperfluidLoader__factory.d.ts +37 -0
- package/dist/module/typechain/factories/Superfluid__factory.d.ts +82 -0
- package/dist/module/typechain/factories/TestToken__factory.d.ts +46 -0
- package/dist/module/typechain/index.d.ts +16 -0
- package/dist/module/types.d.ts +2 -0
- package/dist/module/utils.d.ts +89 -0
- package/dist/module/validation.d.ts +8 -0
- package/dist/umd/BatchCall.d.ts +53 -0
- package/dist/umd/ConstantFlowAgreementV1.d.ts +74 -0
- package/dist/umd/Framework.d.ts +75 -0
- package/dist/umd/Host.d.ts +18 -0
- package/dist/umd/InstantDistributionAgreementV1.d.ts +107 -0
- package/dist/umd/Operation.d.ts +38 -0
- package/dist/umd/Query.d.ts +31 -0
- package/dist/umd/SFError.d.ts +13 -0
- package/dist/umd/SuperToken.d.ts +191 -0
- package/dist/umd/Token.d.ts +76 -0
- package/dist/umd/constants.d.ts +10 -0
- package/dist/umd/events.d.ts +255 -0
- package/dist/umd/frameworkHelpers.d.ts +20 -0
- package/dist/umd/index.d.ts +19 -0
- package/dist/umd/index.js +7524 -0
- package/dist/umd/interfaces.d.ts +307 -0
- package/dist/umd/mapGetAllEventsQueryEvents.d.ts +3 -0
- package/dist/umd/ordering.d.ts +13 -0
- package/dist/umd/pagination.d.ts +65 -0
- package/dist/umd/subgraph/SubgraphClient.d.ts +16 -0
- package/dist/umd/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +45 -0
- package/dist/umd/subgraph/queries/getAllEvents.generated.d.ts +651 -0
- package/dist/umd/subgraph/queries/getIndexSubscriptions.generated.d.ts +46 -0
- package/dist/umd/subgraph/queries/getIndexes.generated.d.ts +44 -0
- package/dist/umd/subgraph/queries/getStreams.generated.d.ts +58 -0
- package/dist/umd/subgraph/queries/getTokens.generated.d.ts +27 -0
- package/dist/umd/subgraph/schema.generated.d.ts +6487 -0
- package/dist/umd/typechain/ERC20WithTokenInfo.d.ts +159 -0
- package/dist/umd/typechain/IConstantFlowAgreementV1.d.ts +305 -0
- package/dist/umd/typechain/IInstantDistributionAgreementV1.d.ts +585 -0
- package/dist/umd/typechain/IResolver.d.ts +57 -0
- package/dist/umd/typechain/SuperToken.d.ts +1011 -0
- package/dist/umd/typechain/Superfluid.d.ts +780 -0
- package/dist/umd/typechain/SuperfluidLoader.d.ts +55 -0
- package/dist/umd/typechain/TestToken.d.ts +207 -0
- package/dist/umd/typechain/common.d.ts +21 -0
- package/dist/umd/typechain/factories/ERC20WithTokenInfo__factory.d.ts +35 -0
- package/dist/umd/typechain/factories/IConstantFlowAgreementV1__factory.d.ts +35 -0
- package/dist/umd/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts +35 -0
- package/dist/umd/typechain/factories/IResolver__factory.d.ts +22 -0
- package/dist/umd/typechain/factories/SuperToken__factory.d.ts +46 -0
- package/dist/umd/typechain/factories/SuperfluidLoader__factory.d.ts +37 -0
- package/dist/umd/typechain/factories/Superfluid__factory.d.ts +82 -0
- package/dist/umd/typechain/factories/TestToken__factory.d.ts +46 -0
- package/dist/umd/typechain/index.d.ts +16 -0
- package/dist/umd/types.d.ts +2 -0
- package/dist/umd/utils.d.ts +89 -0
- package/dist/umd/validation.d.ts +8 -0
- package/package.json +77 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as Types from '../schema.generated';
|
|
2
|
+
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
3
|
+
export declare type GetIndexesQueryVariables = Types.Exact<{
|
|
4
|
+
where?: Types.Index_Filter;
|
|
5
|
+
skip?: Types.Scalars['Int'];
|
|
6
|
+
first?: Types.Scalars['Int'];
|
|
7
|
+
orderBy?: Types.Index_OrderBy;
|
|
8
|
+
orderDirection?: Types.OrderDirection;
|
|
9
|
+
}>;
|
|
10
|
+
export declare type GetIndexesQuery = {
|
|
11
|
+
result: Array<{
|
|
12
|
+
id: string;
|
|
13
|
+
createdAtTimestamp: string;
|
|
14
|
+
createdAtBlockNumber: string;
|
|
15
|
+
updatedAtTimestamp: string;
|
|
16
|
+
updatedAtBlockNumber: string;
|
|
17
|
+
indexId: string;
|
|
18
|
+
indexValue: string;
|
|
19
|
+
totalSubscriptionsWithUnits: number;
|
|
20
|
+
totalUnitsPending: string;
|
|
21
|
+
totalUnitsApproved: string;
|
|
22
|
+
totalUnits: string;
|
|
23
|
+
totalAmountDistributedUntilUpdatedAt: string;
|
|
24
|
+
token: {
|
|
25
|
+
id: string;
|
|
26
|
+
createdAtTimestamp: string;
|
|
27
|
+
createdAtBlockNumber: string;
|
|
28
|
+
name: string;
|
|
29
|
+
symbol: string;
|
|
30
|
+
isListed: boolean;
|
|
31
|
+
underlyingAddress: string;
|
|
32
|
+
};
|
|
33
|
+
publisher: {
|
|
34
|
+
id: string;
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
};
|
|
38
|
+
export declare const GetIndexesDocument: DocumentNode<GetIndexesQuery, Types.Exact<{
|
|
39
|
+
where?: Types.Index_Filter | undefined;
|
|
40
|
+
skip?: number | undefined;
|
|
41
|
+
first?: number | undefined;
|
|
42
|
+
orderBy?: Types.Index_OrderBy | undefined;
|
|
43
|
+
orderDirection?: Types.OrderDirection | undefined;
|
|
44
|
+
}>>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as Types from '../schema.generated';
|
|
2
|
+
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
3
|
+
export declare type GetStreamsQueryVariables = Types.Exact<{
|
|
4
|
+
where?: Types.Stream_Filter;
|
|
5
|
+
skip?: Types.Scalars['Int'];
|
|
6
|
+
first?: Types.Scalars['Int'];
|
|
7
|
+
orderBy?: Types.Stream_OrderBy;
|
|
8
|
+
orderDirection?: Types.OrderDirection;
|
|
9
|
+
}>;
|
|
10
|
+
export declare type GetStreamsQuery = {
|
|
11
|
+
result: Array<{
|
|
12
|
+
id: string;
|
|
13
|
+
createdAtTimestamp: string;
|
|
14
|
+
createdAtBlockNumber: string;
|
|
15
|
+
updatedAtTimestamp: string;
|
|
16
|
+
updatedAtBlockNumber: string;
|
|
17
|
+
currentFlowRate: string;
|
|
18
|
+
streamedUntilUpdatedAt: string;
|
|
19
|
+
token: {
|
|
20
|
+
id: string;
|
|
21
|
+
createdAtTimestamp: string;
|
|
22
|
+
createdAtBlockNumber: string;
|
|
23
|
+
name: string;
|
|
24
|
+
symbol: string;
|
|
25
|
+
isListed: boolean;
|
|
26
|
+
underlyingAddress: string;
|
|
27
|
+
};
|
|
28
|
+
sender: {
|
|
29
|
+
id: string;
|
|
30
|
+
};
|
|
31
|
+
receiver: {
|
|
32
|
+
id: string;
|
|
33
|
+
};
|
|
34
|
+
flowUpdatedEvents: Array<{
|
|
35
|
+
id: string;
|
|
36
|
+
blockNumber: string;
|
|
37
|
+
timestamp: string;
|
|
38
|
+
transactionHash: string;
|
|
39
|
+
token: string;
|
|
40
|
+
sender: string;
|
|
41
|
+
receiver: string;
|
|
42
|
+
flowRate: string;
|
|
43
|
+
totalSenderFlowRate: string;
|
|
44
|
+
totalReceiverFlowRate: string;
|
|
45
|
+
userData: string;
|
|
46
|
+
oldFlowRate: string;
|
|
47
|
+
type: number;
|
|
48
|
+
totalAmountStreamedUntilTimestamp: string;
|
|
49
|
+
}>;
|
|
50
|
+
}>;
|
|
51
|
+
};
|
|
52
|
+
export declare const GetStreamsDocument: DocumentNode<GetStreamsQuery, Types.Exact<{
|
|
53
|
+
where?: Types.Stream_Filter | undefined;
|
|
54
|
+
skip?: number | undefined;
|
|
55
|
+
first?: number | undefined;
|
|
56
|
+
orderBy?: Types.Stream_OrderBy | undefined;
|
|
57
|
+
orderDirection?: Types.OrderDirection | undefined;
|
|
58
|
+
}>>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as Types from '../schema.generated';
|
|
2
|
+
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
3
|
+
export declare type GetTokensQueryVariables = Types.Exact<{
|
|
4
|
+
where?: Types.Token_Filter;
|
|
5
|
+
skip?: Types.Scalars['Int'];
|
|
6
|
+
first?: Types.Scalars['Int'];
|
|
7
|
+
orderBy?: Types.Token_OrderBy;
|
|
8
|
+
orderDirection?: Types.OrderDirection;
|
|
9
|
+
}>;
|
|
10
|
+
export declare type GetTokensQuery = {
|
|
11
|
+
result: Array<{
|
|
12
|
+
id: string;
|
|
13
|
+
createdAtTimestamp: string;
|
|
14
|
+
createdAtBlockNumber: string;
|
|
15
|
+
name: string;
|
|
16
|
+
symbol: string;
|
|
17
|
+
isListed: boolean;
|
|
18
|
+
underlyingAddress: string;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
export declare const GetTokensDocument: DocumentNode<GetTokensQuery, Types.Exact<{
|
|
22
|
+
where?: Types.Token_Filter | undefined;
|
|
23
|
+
skip?: number | undefined;
|
|
24
|
+
first?: number | undefined;
|
|
25
|
+
orderBy?: Types.Token_OrderBy | undefined;
|
|
26
|
+
orderDirection?: Types.OrderDirection | undefined;
|
|
27
|
+
}>>;
|