@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.
Files changed (147) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +487 -0
  3. package/dist/main/BatchCall.d.ts +53 -0
  4. package/dist/main/ConstantFlowAgreementV1.d.ts +74 -0
  5. package/dist/main/Framework.d.ts +75 -0
  6. package/dist/main/Host.d.ts +18 -0
  7. package/dist/main/InstantDistributionAgreementV1.d.ts +107 -0
  8. package/dist/main/Operation.d.ts +38 -0
  9. package/dist/main/Query.d.ts +31 -0
  10. package/dist/main/SFError.d.ts +13 -0
  11. package/dist/main/SuperToken.d.ts +191 -0
  12. package/dist/main/Token.d.ts +76 -0
  13. package/dist/main/constants.d.ts +10 -0
  14. package/dist/main/events.d.ts +255 -0
  15. package/dist/main/frameworkHelpers.d.ts +20 -0
  16. package/dist/main/index.d.ts +19 -0
  17. package/dist/main/index.js +7522 -0
  18. package/dist/main/interfaces.d.ts +307 -0
  19. package/dist/main/mapGetAllEventsQueryEvents.d.ts +3 -0
  20. package/dist/main/ordering.d.ts +13 -0
  21. package/dist/main/pagination.d.ts +65 -0
  22. package/dist/main/subgraph/SubgraphClient.d.ts +16 -0
  23. package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +45 -0
  24. package/dist/main/subgraph/queries/getAllEvents.generated.d.ts +651 -0
  25. package/dist/main/subgraph/queries/getIndexSubscriptions.generated.d.ts +46 -0
  26. package/dist/main/subgraph/queries/getIndexes.generated.d.ts +44 -0
  27. package/dist/main/subgraph/queries/getStreams.generated.d.ts +58 -0
  28. package/dist/main/subgraph/queries/getTokens.generated.d.ts +27 -0
  29. package/dist/main/subgraph/schema.generated.d.ts +6487 -0
  30. package/dist/main/typechain/ERC20WithTokenInfo.d.ts +159 -0
  31. package/dist/main/typechain/IConstantFlowAgreementV1.d.ts +305 -0
  32. package/dist/main/typechain/IInstantDistributionAgreementV1.d.ts +585 -0
  33. package/dist/main/typechain/IResolver.d.ts +57 -0
  34. package/dist/main/typechain/SuperToken.d.ts +1011 -0
  35. package/dist/main/typechain/Superfluid.d.ts +780 -0
  36. package/dist/main/typechain/SuperfluidLoader.d.ts +55 -0
  37. package/dist/main/typechain/TestToken.d.ts +207 -0
  38. package/dist/main/typechain/common.d.ts +21 -0
  39. package/dist/main/typechain/factories/ERC20WithTokenInfo__factory.d.ts +35 -0
  40. package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.d.ts +35 -0
  41. package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts +35 -0
  42. package/dist/main/typechain/factories/IResolver__factory.d.ts +22 -0
  43. package/dist/main/typechain/factories/SuperToken__factory.d.ts +46 -0
  44. package/dist/main/typechain/factories/SuperfluidLoader__factory.d.ts +37 -0
  45. package/dist/main/typechain/factories/Superfluid__factory.d.ts +82 -0
  46. package/dist/main/typechain/factories/TestToken__factory.d.ts +46 -0
  47. package/dist/main/typechain/index.d.ts +16 -0
  48. package/dist/main/types.d.ts +2 -0
  49. package/dist/main/utils.d.ts +89 -0
  50. package/dist/main/validation.d.ts +8 -0
  51. package/dist/module/BatchCall.d.ts +53 -0
  52. package/dist/module/ConstantFlowAgreementV1.d.ts +74 -0
  53. package/dist/module/Framework.d.ts +75 -0
  54. package/dist/module/Host.d.ts +18 -0
  55. package/dist/module/InstantDistributionAgreementV1.d.ts +107 -0
  56. package/dist/module/Operation.d.ts +38 -0
  57. package/dist/module/Query.d.ts +31 -0
  58. package/dist/module/SFError.d.ts +13 -0
  59. package/dist/module/SuperToken.d.ts +191 -0
  60. package/dist/module/Token.d.ts +76 -0
  61. package/dist/module/constants.d.ts +10 -0
  62. package/dist/module/events.d.ts +255 -0
  63. package/dist/module/frameworkHelpers.d.ts +20 -0
  64. package/dist/module/index.d.ts +19 -0
  65. package/dist/module/index.js +7488 -0
  66. package/dist/module/interfaces.d.ts +307 -0
  67. package/dist/module/mapGetAllEventsQueryEvents.d.ts +3 -0
  68. package/dist/module/ordering.d.ts +13 -0
  69. package/dist/module/pagination.d.ts +65 -0
  70. package/dist/module/subgraph/SubgraphClient.d.ts +16 -0
  71. package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +45 -0
  72. package/dist/module/subgraph/queries/getAllEvents.generated.d.ts +651 -0
  73. package/dist/module/subgraph/queries/getIndexSubscriptions.generated.d.ts +46 -0
  74. package/dist/module/subgraph/queries/getIndexes.generated.d.ts +44 -0
  75. package/dist/module/subgraph/queries/getStreams.generated.d.ts +58 -0
  76. package/dist/module/subgraph/queries/getTokens.generated.d.ts +27 -0
  77. package/dist/module/subgraph/schema.generated.d.ts +6487 -0
  78. package/dist/module/typechain/ERC20WithTokenInfo.d.ts +159 -0
  79. package/dist/module/typechain/IConstantFlowAgreementV1.d.ts +305 -0
  80. package/dist/module/typechain/IInstantDistributionAgreementV1.d.ts +585 -0
  81. package/dist/module/typechain/IResolver.d.ts +57 -0
  82. package/dist/module/typechain/SuperToken.d.ts +1011 -0
  83. package/dist/module/typechain/Superfluid.d.ts +780 -0
  84. package/dist/module/typechain/SuperfluidLoader.d.ts +55 -0
  85. package/dist/module/typechain/TestToken.d.ts +207 -0
  86. package/dist/module/typechain/common.d.ts +21 -0
  87. package/dist/module/typechain/factories/ERC20WithTokenInfo__factory.d.ts +35 -0
  88. package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.d.ts +35 -0
  89. package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts +35 -0
  90. package/dist/module/typechain/factories/IResolver__factory.d.ts +22 -0
  91. package/dist/module/typechain/factories/SuperToken__factory.d.ts +46 -0
  92. package/dist/module/typechain/factories/SuperfluidLoader__factory.d.ts +37 -0
  93. package/dist/module/typechain/factories/Superfluid__factory.d.ts +82 -0
  94. package/dist/module/typechain/factories/TestToken__factory.d.ts +46 -0
  95. package/dist/module/typechain/index.d.ts +16 -0
  96. package/dist/module/types.d.ts +2 -0
  97. package/dist/module/utils.d.ts +89 -0
  98. package/dist/module/validation.d.ts +8 -0
  99. package/dist/umd/BatchCall.d.ts +53 -0
  100. package/dist/umd/ConstantFlowAgreementV1.d.ts +74 -0
  101. package/dist/umd/Framework.d.ts +75 -0
  102. package/dist/umd/Host.d.ts +18 -0
  103. package/dist/umd/InstantDistributionAgreementV1.d.ts +107 -0
  104. package/dist/umd/Operation.d.ts +38 -0
  105. package/dist/umd/Query.d.ts +31 -0
  106. package/dist/umd/SFError.d.ts +13 -0
  107. package/dist/umd/SuperToken.d.ts +191 -0
  108. package/dist/umd/Token.d.ts +76 -0
  109. package/dist/umd/constants.d.ts +10 -0
  110. package/dist/umd/events.d.ts +255 -0
  111. package/dist/umd/frameworkHelpers.d.ts +20 -0
  112. package/dist/umd/index.d.ts +19 -0
  113. package/dist/umd/index.js +7524 -0
  114. package/dist/umd/interfaces.d.ts +307 -0
  115. package/dist/umd/mapGetAllEventsQueryEvents.d.ts +3 -0
  116. package/dist/umd/ordering.d.ts +13 -0
  117. package/dist/umd/pagination.d.ts +65 -0
  118. package/dist/umd/subgraph/SubgraphClient.d.ts +16 -0
  119. package/dist/umd/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +45 -0
  120. package/dist/umd/subgraph/queries/getAllEvents.generated.d.ts +651 -0
  121. package/dist/umd/subgraph/queries/getIndexSubscriptions.generated.d.ts +46 -0
  122. package/dist/umd/subgraph/queries/getIndexes.generated.d.ts +44 -0
  123. package/dist/umd/subgraph/queries/getStreams.generated.d.ts +58 -0
  124. package/dist/umd/subgraph/queries/getTokens.generated.d.ts +27 -0
  125. package/dist/umd/subgraph/schema.generated.d.ts +6487 -0
  126. package/dist/umd/typechain/ERC20WithTokenInfo.d.ts +159 -0
  127. package/dist/umd/typechain/IConstantFlowAgreementV1.d.ts +305 -0
  128. package/dist/umd/typechain/IInstantDistributionAgreementV1.d.ts +585 -0
  129. package/dist/umd/typechain/IResolver.d.ts +57 -0
  130. package/dist/umd/typechain/SuperToken.d.ts +1011 -0
  131. package/dist/umd/typechain/Superfluid.d.ts +780 -0
  132. package/dist/umd/typechain/SuperfluidLoader.d.ts +55 -0
  133. package/dist/umd/typechain/TestToken.d.ts +207 -0
  134. package/dist/umd/typechain/common.d.ts +21 -0
  135. package/dist/umd/typechain/factories/ERC20WithTokenInfo__factory.d.ts +35 -0
  136. package/dist/umd/typechain/factories/IConstantFlowAgreementV1__factory.d.ts +35 -0
  137. package/dist/umd/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts +35 -0
  138. package/dist/umd/typechain/factories/IResolver__factory.d.ts +22 -0
  139. package/dist/umd/typechain/factories/SuperToken__factory.d.ts +46 -0
  140. package/dist/umd/typechain/factories/SuperfluidLoader__factory.d.ts +37 -0
  141. package/dist/umd/typechain/factories/Superfluid__factory.d.ts +82 -0
  142. package/dist/umd/typechain/factories/TestToken__factory.d.ts +46 -0
  143. package/dist/umd/typechain/index.d.ts +16 -0
  144. package/dist/umd/types.d.ts +2 -0
  145. package/dist/umd/utils.d.ts +89 -0
  146. package/dist/umd/validation.d.ts +8 -0
  147. 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
+ }>>;