@poolzfinance/api4 1.15.6 → 1.15.8
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/dist/endpoints/daoSenderHistory.d.ts +7 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.modern.js +2 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +1 -1
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/graphql/gql.d.ts +7 -2
- package/dist/types/graphql/graphql.d.ts +59 -1
- package/package.json +1 -1
|
@@ -22,13 +22,14 @@ type Documents = {
|
|
|
22
22
|
"\n query BoostProxyData($campaignCodes: [String!]!) {\n boostProxy(campaignCodes: $campaignCodes) {\n Actions\n Participants\n TotalUsers\n DataKey\n CampaignName\n TotalEntries\n CampaignCode\n }\n}": typeof types.BoostProxyDataDocument;
|
|
23
23
|
"\n query BoostProxyUsers($campaignCodes: [String!]!) {\n boostProxy(campaignCodes: $campaignCodes) {\n Actions\n Participants\n TotalUsers\n CampaignName\n TotalEntries\n CampaignCode\n DataKey\n Users {\n Address\n Entries\n }\n }\n}": typeof types.BoostProxyUsersDocument;
|
|
24
24
|
"\n query DaoSenderHistory($page: Int!) {\n daoSenderHistory(page: $page) {\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n }\n currentPage\n totalPages\n }\n }\n": typeof types.DaoSenderHistoryDocument;
|
|
25
|
+
"\n query DaoSenderHistoryV2($limit: Int!, $nextToken: String) {\n daoSenderHistoryV2(limit: $limit, nextToken: $nextToken) {\n nextToken\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n TokenObject {\n Address\n Decimals\n Name\n Symbol\n }\n }\n }\n }\n": typeof types.DaoSenderHistoryV2Document;
|
|
25
26
|
"\n mutation AdminCreateAsset($Request: CreateAssetRequest!) {\n adminCreateAsset(\n request: $Request\n ) {\n StatusCode\n }\n}": typeof types.AdminCreateAssetDocument;
|
|
26
27
|
"\n query MyAssets($limit: Int!, $page: Int!) {\n myAssets(limit: $limit, page: $page) {\n TotalAssets\n Assets {\n UserAddress\n RefundFinishTime\n WithdrawalDetail {\n ChainId\n PoolId\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n RefundDetail {\n ChainId\n PoolId\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n }\n }\n}": typeof types.MyAssetsDocument;
|
|
27
28
|
"\n query RetrieveSignature($request: RetrieveSignatureRequest!) {\n retrieveSignature(request: $request) {\n ValidUntil\n Receiver\n ChainId\n PoolId\n Signature\n IsRefund\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n}": typeof types.RetrieveSignatureDocument;
|
|
28
29
|
"\n mutation GenerateSignature($request: GenerateSignatureRequest!) {\n generateSignature(request: $request) {\n ValidFrom\n CurrentTime\n }\n}": typeof types.GenerateSignatureDocument;
|
|
29
30
|
"\n query MyQuery {\n time\n}": typeof types.MyQueryDocument;
|
|
30
31
|
"\nmutation GenerateTokenFromSignature($eip4361message: String!, $signature: String!) {\n generateTokenFromSignature(eip4361message: $eip4361message, signature: $signature){\n token\n validUntil\n }\n}": typeof types.GenerateTokenFromSignatureDocument;
|
|
31
|
-
"\n query GetTokenBalances($userAddress: String!, $chainId: Int!, $limit: Int) {\n getTokenBalances(userAddress: $userAddress, chainId: $chainId, limit: $limit) {\n pagination {\n current_page\n next_page\n total_pages\n }\n data {\n contract\n value\n name\n symbol\n }\n }\n }\n": typeof types.GetTokenBalancesDocument;
|
|
32
|
+
"\n query GetTokenBalances($userAddress: String!, $chainId: Int!, $limit: Int) {\n getTokenBalances(userAddress: $userAddress, chainId: $chainId, limit: $limit) {\n pagination {\n current_page\n next_page\n total_pages\n }\n data {\n contract\n value\n name\n symbol\n decimals\n }\n }\n }\n": typeof types.GetTokenBalancesDocument;
|
|
32
33
|
"\n query GenerateMyInvestSignature($projectId: String!, $weiAmount: String!) {\n generateMyInvestSignature(projectId: $projectId, weiAmount: $weiAmount) {\n Signature\n ValidUntil\n PoolzBackId\n }\n }\n": typeof types.GenerateMyInvestSignatureDocument;
|
|
33
34
|
"\n query getLeaderboardByAddress($address: String) {\n leaderBoard(address: $address) {\n Amount\n Owner\n Rank\n }\n}": typeof types.GetLeaderboardByAddressDocument;
|
|
34
35
|
"\n query getLeaderboard {\n leaderBoard {\n Rank\n Owner\n Amount\n }\n}": typeof types.GetLeaderboardDocument;
|
|
@@ -109,6 +110,10 @@ export declare function gql(source: "\n query BoostProxyUsers($campaignCodes: [
|
|
|
109
110
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
110
111
|
*/
|
|
111
112
|
export declare function gql(source: "\n query DaoSenderHistory($page: Int!) {\n daoSenderHistory(page: $page) {\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n }\n currentPage\n totalPages\n }\n }\n"): (typeof documents)["\n query DaoSenderHistory($page: Int!) {\n daoSenderHistory(page: $page) {\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n }\n currentPage\n totalPages\n }\n }\n"];
|
|
113
|
+
/**
|
|
114
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
115
|
+
*/
|
|
116
|
+
export declare function gql(source: "\n query DaoSenderHistoryV2($limit: Int!, $nextToken: String) {\n daoSenderHistoryV2(limit: $limit, nextToken: $nextToken) {\n nextToken\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n TokenObject {\n Address\n Decimals\n Name\n Symbol\n }\n }\n }\n }\n"): (typeof documents)["\n query DaoSenderHistoryV2($limit: Int!, $nextToken: String) {\n daoSenderHistoryV2(limit: $limit, nextToken: $nextToken) {\n nextToken\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n TokenObject {\n Address\n Decimals\n Name\n Symbol\n }\n }\n }\n }\n"];
|
|
112
117
|
/**
|
|
113
118
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
114
119
|
*/
|
|
@@ -136,7 +141,7 @@ export declare function gql(source: "\nmutation GenerateTokenFromSignature($eip4
|
|
|
136
141
|
/**
|
|
137
142
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
138
143
|
*/
|
|
139
|
-
export declare function gql(source: "\n query GetTokenBalances($userAddress: String!, $chainId: Int!, $limit: Int) {\n getTokenBalances(userAddress: $userAddress, chainId: $chainId, limit: $limit) {\n pagination {\n current_page\n next_page\n total_pages\n }\n data {\n contract\n value\n name\n symbol\n }\n }\n }\n"): (typeof documents)["\n query GetTokenBalances($userAddress: String!, $chainId: Int!, $limit: Int) {\n getTokenBalances(userAddress: $userAddress, chainId: $chainId, limit: $limit) {\n pagination {\n current_page\n next_page\n total_pages\n }\n data {\n contract\n value\n name\n symbol\n }\n }\n }\n"];
|
|
144
|
+
export declare function gql(source: "\n query GetTokenBalances($userAddress: String!, $chainId: Int!, $limit: Int) {\n getTokenBalances(userAddress: $userAddress, chainId: $chainId, limit: $limit) {\n pagination {\n current_page\n next_page\n total_pages\n }\n data {\n contract\n value\n name\n symbol\n decimals\n }\n }\n }\n"): (typeof documents)["\n query GetTokenBalances($userAddress: String!, $chainId: Int!, $limit: Int) {\n getTokenBalances(userAddress: $userAddress, chainId: $chainId, limit: $limit) {\n pagination {\n current_page\n next_page\n total_pages\n }\n data {\n contract\n value\n name\n symbol\n decimals\n }\n }\n }\n"];
|
|
140
145
|
/**
|
|
141
146
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
142
147
|
*/
|
|
@@ -187,6 +187,27 @@ export type DaoSenderHistoryPage = {
|
|
|
187
187
|
items?: Maybe<Array<DaoSenderHistory>>;
|
|
188
188
|
totalPages: Scalars['Int']['output'];
|
|
189
189
|
};
|
|
190
|
+
export type DaoSenderHistoryV2 = {
|
|
191
|
+
__typename?: 'DaoSenderHistoryV2';
|
|
192
|
+
items: Array<DaoSenderHistoryV2_Item>;
|
|
193
|
+
nextToken?: Maybe<Scalars['String']['output']>;
|
|
194
|
+
};
|
|
195
|
+
export type DaoSenderHistoryV2_Item = {
|
|
196
|
+
__typename?: 'DaoSenderHistoryV2_Item';
|
|
197
|
+
ChainId: Scalars['Int']['output'];
|
|
198
|
+
Token: Scalars['String']['output'];
|
|
199
|
+
TokenObject: DaoSenderHistoryV2_Token;
|
|
200
|
+
TotalAmount: Scalars['Float']['output'];
|
|
201
|
+
TxHash: Scalars['String']['output'];
|
|
202
|
+
UserCount: Scalars['Int']['output'];
|
|
203
|
+
};
|
|
204
|
+
export type DaoSenderHistoryV2_Token = {
|
|
205
|
+
__typename?: 'DaoSenderHistoryV2_Token';
|
|
206
|
+
Address: Scalars['String']['output'];
|
|
207
|
+
Decimals: Scalars['Int']['output'];
|
|
208
|
+
Name: Scalars['String']['output'];
|
|
209
|
+
Symbol: Scalars['String']['output'];
|
|
210
|
+
};
|
|
190
211
|
export type DeleteAssetRequest = {
|
|
191
212
|
Message: DeleteAssetRequest_Message;
|
|
192
213
|
Signature: Scalars['String']['input'];
|
|
@@ -445,8 +466,12 @@ export type Query = {
|
|
|
445
466
|
adminUsersTotalSpents: Array<AdminUsersTotalSpents>;
|
|
446
467
|
approvedContractsV2: Array<ApprovedContractsV2>;
|
|
447
468
|
boostProxy: Array<BoostProxy>;
|
|
448
|
-
/**
|
|
469
|
+
/**
|
|
470
|
+
* Will be updated in new endoint.
|
|
471
|
+
* @deprecated Use new 'daoSenderHistoryV2' endpoint.
|
|
472
|
+
*/
|
|
449
473
|
daoSenderHistory: DaoSenderHistoryPage;
|
|
474
|
+
daoSenderHistoryV2: DaoSenderHistoryV2;
|
|
450
475
|
generateMyInvestSignature: GenerateMyInvestSignature;
|
|
451
476
|
getTokenBalances?: Maybe<TokenBalances>;
|
|
452
477
|
leaderBoard: Array<LeaderBoard>;
|
|
@@ -516,6 +541,11 @@ export type QueryDaoSenderHistoryArgs = {
|
|
|
516
541
|
page: Scalars['Int']['input'];
|
|
517
542
|
};
|
|
518
543
|
/** --- your entry point --- */
|
|
544
|
+
export type QueryDaoSenderHistoryV2Args = {
|
|
545
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
546
|
+
nextToken?: InputMaybe<Scalars['String']['input']>;
|
|
547
|
+
};
|
|
548
|
+
/** --- your entry point --- */
|
|
519
549
|
export type QueryGenerateMyInvestSignatureArgs = {
|
|
520
550
|
projectId: Scalars['String']['input'];
|
|
521
551
|
weiAmount: Scalars['String']['input'];
|
|
@@ -847,6 +877,32 @@ export type DaoSenderHistoryQuery = {
|
|
|
847
877
|
}> | null;
|
|
848
878
|
};
|
|
849
879
|
};
|
|
880
|
+
export type DaoSenderHistoryV2QueryVariables = Exact<{
|
|
881
|
+
limit: Scalars['Int']['input'];
|
|
882
|
+
nextToken?: InputMaybe<Scalars['String']['input']>;
|
|
883
|
+
}>;
|
|
884
|
+
export type DaoSenderHistoryV2Query = {
|
|
885
|
+
__typename?: 'Query';
|
|
886
|
+
daoSenderHistoryV2: {
|
|
887
|
+
__typename?: 'DaoSenderHistoryV2';
|
|
888
|
+
nextToken?: string | null;
|
|
889
|
+
items: Array<{
|
|
890
|
+
__typename?: 'DaoSenderHistoryV2_Item';
|
|
891
|
+
ChainId: number;
|
|
892
|
+
TxHash: string;
|
|
893
|
+
Token: string;
|
|
894
|
+
UserCount: number;
|
|
895
|
+
TotalAmount: number;
|
|
896
|
+
TokenObject: {
|
|
897
|
+
__typename?: 'DaoSenderHistoryV2_Token';
|
|
898
|
+
Address: string;
|
|
899
|
+
Decimals: number;
|
|
900
|
+
Name: string;
|
|
901
|
+
Symbol: string;
|
|
902
|
+
};
|
|
903
|
+
}>;
|
|
904
|
+
};
|
|
905
|
+
};
|
|
850
906
|
export type AdminCreateAssetMutationVariables = Exact<{
|
|
851
907
|
Request: CreateAssetRequest;
|
|
852
908
|
}>;
|
|
@@ -970,6 +1026,7 @@ export type GetTokenBalancesQuery = {
|
|
|
970
1026
|
value: number;
|
|
971
1027
|
name: string;
|
|
972
1028
|
symbol: string;
|
|
1029
|
+
decimals: number;
|
|
973
1030
|
}>;
|
|
974
1031
|
} | null;
|
|
975
1032
|
};
|
|
@@ -1297,6 +1354,7 @@ export declare const GetApprovedContractsV2Document: DocumentNode<GetApprovedCon
|
|
|
1297
1354
|
export declare const BoostProxyDataDocument: DocumentNode<BoostProxyDataQuery, BoostProxyDataQueryVariables>;
|
|
1298
1355
|
export declare const BoostProxyUsersDocument: DocumentNode<BoostProxyUsersQuery, BoostProxyUsersQueryVariables>;
|
|
1299
1356
|
export declare const DaoSenderHistoryDocument: DocumentNode<DaoSenderHistoryQuery, DaoSenderHistoryQueryVariables>;
|
|
1357
|
+
export declare const DaoSenderHistoryV2Document: DocumentNode<DaoSenderHistoryV2Query, DaoSenderHistoryV2QueryVariables>;
|
|
1300
1358
|
export declare const AdminCreateAssetDocument: DocumentNode<AdminCreateAssetMutation, AdminCreateAssetMutationVariables>;
|
|
1301
1359
|
export declare const MyAssetsDocument: DocumentNode<MyAssetsQuery, MyAssetsQueryVariables>;
|
|
1302
1360
|
export declare const RetrieveSignatureDocument: DocumentNode<RetrieveSignatureQuery, RetrieveSignatureQueryVariables>;
|