@poolzfinance/api4 1.11.45 → 1.11.46
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/adminListOfCollateral.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +1 -1
- 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 +10 -0
- package/dist/types/graphql/graphql.d.ts +116 -0
- package/package.json +1 -1
|
@@ -14,6 +14,12 @@ declare const documents: {
|
|
|
14
14
|
"\nmutation AdminCleanCache {\n adminCleanCache {\n result {\n id\n }\n messages {\n code\n message\n }\n errors {\n code\n message\n }\n success\n }\n}": DocumentNode<types.AdminCleanCacheMutation, types.Exact<{
|
|
15
15
|
[key: string]: never;
|
|
16
16
|
}>>;
|
|
17
|
+
"\n query AdminListOfCollateral($chainId: Int!, $collateralAddress: String!, $limit: Int!, $page: Int!) {\n adminListOfCollateral(\n chainId: $chainId\n collateralAddress: $collateralAddress\n limit: $limit\n page: $page\n ) {\n PoolId\n TokenAmountInWei\n MainCoinAmountInWei\n FinishTime\n }\n}": DocumentNode<types.AdminListOfCollateralQuery, types.Exact<{
|
|
18
|
+
chainId: number;
|
|
19
|
+
collateralAddress: string;
|
|
20
|
+
limit: number;
|
|
21
|
+
page: number;
|
|
22
|
+
}>>;
|
|
17
23
|
"\n query GetApprovedContracts($onlyApproved: Boolean!) {\n approvedContracts(onlyApproved: $onlyApproved) {\n ContractAddress\n Status\n }\n }": DocumentNode<types.GetApprovedContractsQuery, types.Exact<{
|
|
18
24
|
onlyApproved: boolean;
|
|
19
25
|
}>>;
|
|
@@ -198,6 +204,10 @@ export declare function gql(source: string): unknown;
|
|
|
198
204
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
199
205
|
*/
|
|
200
206
|
export declare function gql(source: "\nmutation AdminCleanCache {\n adminCleanCache {\n result {\n id\n }\n messages {\n code\n message\n }\n errors {\n code\n message\n }\n success\n }\n}"): (typeof documents)["\nmutation AdminCleanCache {\n adminCleanCache {\n result {\n id\n }\n messages {\n code\n message\n }\n errors {\n code\n message\n }\n success\n }\n}"];
|
|
207
|
+
/**
|
|
208
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
209
|
+
*/
|
|
210
|
+
export declare function gql(source: "\n query AdminListOfCollateral($chainId: Int!, $collateralAddress: String!, $limit: Int!, $page: Int!) {\n adminListOfCollateral(\n chainId: $chainId\n collateralAddress: $collateralAddress\n limit: $limit\n page: $page\n ) {\n PoolId\n TokenAmountInWei\n MainCoinAmountInWei\n FinishTime\n }\n}"): (typeof documents)["\n query AdminListOfCollateral($chainId: Int!, $collateralAddress: String!, $limit: Int!, $page: Int!) {\n adminListOfCollateral(\n chainId: $chainId\n collateralAddress: $collateralAddress\n limit: $limit\n page: $page\n ) {\n PoolId\n TokenAmountInWei\n MainCoinAmountInWei\n FinishTime\n }\n}"];
|
|
201
211
|
/**
|
|
202
212
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
203
213
|
*/
|
|
@@ -106,6 +106,13 @@ export type AdminKycProxy = {
|
|
|
106
106
|
SubmitCount?: Maybe<Scalars['Int']['output']>;
|
|
107
107
|
WaitingDate?: Maybe<Scalars['String']['output']>;
|
|
108
108
|
};
|
|
109
|
+
export type AdminListOfCollateral = {
|
|
110
|
+
__typename?: 'AdminListOfCollateral';
|
|
111
|
+
FinishTime: Scalars['Int']['output'];
|
|
112
|
+
MainCoinAmountInWei: Scalars['String']['output'];
|
|
113
|
+
PoolId: Scalars['Int']['output'];
|
|
114
|
+
TokenAmountInWei: Scalars['String']['output'];
|
|
115
|
+
};
|
|
109
116
|
export type AdminNonEvmInvested = {
|
|
110
117
|
__typename?: 'AdminNonEvmInvested';
|
|
111
118
|
AmountIn: Scalars['Float']['output'];
|
|
@@ -171,6 +178,34 @@ export type CleanCacheResult = {
|
|
|
171
178
|
__typename?: 'CleanCacheResult';
|
|
172
179
|
id: Scalars['String']['output'];
|
|
173
180
|
};
|
|
181
|
+
export type CreateAssetRequest = {
|
|
182
|
+
Message: CreateAssetRequest_Message;
|
|
183
|
+
Signature: Scalars['String']['input'];
|
|
184
|
+
};
|
|
185
|
+
export type CreateAssetRequest_Asset = {
|
|
186
|
+
RefundDetails?: InputMaybe<CreateAssetRequest_TransactionDetail>;
|
|
187
|
+
UserAddress: Scalars['String']['input'];
|
|
188
|
+
WithdrawalDetails: CreateAssetRequest_TransactionDetail;
|
|
189
|
+
};
|
|
190
|
+
export type CreateAssetRequest_Builder = {
|
|
191
|
+
FinishTime?: InputMaybe<Scalars['Int']['input']>;
|
|
192
|
+
ProviderAddress: Scalars['String']['input'];
|
|
193
|
+
StartTime?: InputMaybe<Scalars['Int']['input']>;
|
|
194
|
+
WeiAmount: Scalars['String']['input'];
|
|
195
|
+
};
|
|
196
|
+
export type CreateAssetRequest_Message = {
|
|
197
|
+
Assets: Array<CreateAssetRequest_Asset>;
|
|
198
|
+
RefundFinishTime: Scalars['String']['input'];
|
|
199
|
+
};
|
|
200
|
+
export type CreateAssetRequest_TransactionDetail = {
|
|
201
|
+
Builders: Array<CreateAssetRequest_Builder>;
|
|
202
|
+
ChainId: Scalars['Int']['input'];
|
|
203
|
+
PoolId: Scalars['Int']['input'];
|
|
204
|
+
};
|
|
205
|
+
export type CreateAssetResponse = {
|
|
206
|
+
__typename?: 'CreateAssetResponse';
|
|
207
|
+
StatusCode: Scalars['Int']['output'];
|
|
208
|
+
};
|
|
174
209
|
export type DaoSenderHistory = {
|
|
175
210
|
__typename?: 'DaoSenderHistory';
|
|
176
211
|
ChainId: Scalars['Int']['output'];
|
|
@@ -194,6 +229,19 @@ export type DataOnAuth = {
|
|
|
194
229
|
photo_url?: InputMaybe<Scalars['String']['input']>;
|
|
195
230
|
username?: InputMaybe<Scalars['String']['input']>;
|
|
196
231
|
};
|
|
232
|
+
export type DeleteAssetRequest = {
|
|
233
|
+
Message: DeleteAssetRequest_Message;
|
|
234
|
+
Signature: Scalars['String']['input'];
|
|
235
|
+
};
|
|
236
|
+
export type DeleteAssetRequest_Message = {
|
|
237
|
+
ChainId: Scalars['Int']['input'];
|
|
238
|
+
PoolId: Scalars['Int']['input'];
|
|
239
|
+
Users: Array<Scalars['String']['input']>;
|
|
240
|
+
};
|
|
241
|
+
export type DeleteAssetResponse = {
|
|
242
|
+
__typename?: 'DeleteAssetResponse';
|
|
243
|
+
StatusCode: Scalars['Int']['output'];
|
|
244
|
+
};
|
|
197
245
|
export type GenerateTokenFromSignature = {
|
|
198
246
|
__typename?: 'GenerateTokenFromSignature';
|
|
199
247
|
token: Scalars['String']['output'];
|
|
@@ -252,7 +300,9 @@ export type Mutation = {
|
|
|
252
300
|
addUser: AdminUsers;
|
|
253
301
|
adminAddAction: AdminAction;
|
|
254
302
|
adminCleanCache: CleanCache;
|
|
303
|
+
adminCreateAsset: CreateAssetResponse;
|
|
255
304
|
adminDeleteAction: Scalars['Boolean']['output'];
|
|
305
|
+
adminDeleteAsset: DeleteAssetResponse;
|
|
256
306
|
adminUpdateAction: ActionSettings;
|
|
257
307
|
createSeasonPass: SeasonPass;
|
|
258
308
|
createSeasonPasses: Array<SeasonPass>;
|
|
@@ -295,9 +345,15 @@ export type MutationAddUserArgs = {
|
|
|
295
345
|
export type MutationAdminAddActionArgs = {
|
|
296
346
|
action: AdminAddAction;
|
|
297
347
|
};
|
|
348
|
+
export type MutationAdminCreateAssetArgs = {
|
|
349
|
+
request: CreateAssetRequest;
|
|
350
|
+
};
|
|
298
351
|
export type MutationAdminDeleteActionArgs = {
|
|
299
352
|
settingsId: Scalars['Int']['input'];
|
|
300
353
|
};
|
|
354
|
+
export type MutationAdminDeleteAssetArgs = {
|
|
355
|
+
request: DeleteAssetRequest;
|
|
356
|
+
};
|
|
301
357
|
export type MutationAdminUpdateActionArgs = {
|
|
302
358
|
action: UpdateAction;
|
|
303
359
|
};
|
|
@@ -502,9 +558,11 @@ export type Query = {
|
|
|
502
558
|
adminAutoSignUp: Array<AdminAutoSignUp>;
|
|
503
559
|
adminGetActions: Array<GetAction>;
|
|
504
560
|
adminKycProxy: Array<AdminKycProxy>;
|
|
561
|
+
adminListOfCollateral: Array<AdminListOfCollateral>;
|
|
505
562
|
adminNonEvmInvested: Array<AdminNonEvmInvested>;
|
|
506
563
|
/** @deprecated Use a new query 'adminNonEvmInvested'. */
|
|
507
564
|
adminNonEvmWallet: Array<AdminNonEvmWallet>;
|
|
565
|
+
adminReadAssets: ReadAssetsResponse;
|
|
508
566
|
adminRpcWallets: Array<RpcWallet>;
|
|
509
567
|
adminSignUpV2: Array<AdminSignUpV2>;
|
|
510
568
|
adminUsers: Array<AdminUsers>;
|
|
@@ -556,6 +614,12 @@ export type QueryAdminAutoSignUpArgs = {
|
|
|
556
614
|
export type QueryAdminKycProxyArgs = {
|
|
557
615
|
status?: InputMaybe<Scalars['String']['input']>;
|
|
558
616
|
};
|
|
617
|
+
export type QueryAdminListOfCollateralArgs = {
|
|
618
|
+
chainId: Scalars['Int']['input'];
|
|
619
|
+
collateralAddress: Scalars['String']['input'];
|
|
620
|
+
limit: Scalars['Int']['input'];
|
|
621
|
+
page: Scalars['Int']['input'];
|
|
622
|
+
};
|
|
559
623
|
export type QueryAdminNonEvmInvestedArgs = {
|
|
560
624
|
chainName: Scalars['String']['input'];
|
|
561
625
|
poolId: Scalars['Long']['input'];
|
|
@@ -563,6 +627,9 @@ export type QueryAdminNonEvmInvestedArgs = {
|
|
|
563
627
|
export type QueryAdminNonEvmWalletArgs = {
|
|
564
628
|
chainName: Scalars['String']['input'];
|
|
565
629
|
};
|
|
630
|
+
export type QueryAdminReadAssetsArgs = {
|
|
631
|
+
request: Array<ReadAssetsRequest>;
|
|
632
|
+
};
|
|
566
633
|
export type QueryAdminRpcWalletsArgs = {
|
|
567
634
|
IDs: Array<InputMaybe<Scalars['Int']['input']>>;
|
|
568
635
|
};
|
|
@@ -665,6 +732,33 @@ export type QueryVaultsArgs = {
|
|
|
665
732
|
tokenAddress?: InputMaybe<Scalars['String']['input']>;
|
|
666
733
|
updateTotalSupply?: InputMaybe<Scalars['Boolean']['input']>;
|
|
667
734
|
};
|
|
735
|
+
export type ReadAssetResponse_Asset = {
|
|
736
|
+
__typename?: 'ReadAssetResponse_Asset';
|
|
737
|
+
ChainId: Scalars['Int']['output'];
|
|
738
|
+
Dispensers: Array<ReadAssetResponse_Dispenser>;
|
|
739
|
+
PoolId: Scalars['Int']['output'];
|
|
740
|
+
};
|
|
741
|
+
export type ReadAssetResponse_Builder = {
|
|
742
|
+
__typename?: 'ReadAssetResponse_Builder';
|
|
743
|
+
FinishTime?: Maybe<Scalars['Int']['output']>;
|
|
744
|
+
ProviderAddress: Scalars['String']['output'];
|
|
745
|
+
StartTime?: Maybe<Scalars['Int']['output']>;
|
|
746
|
+
WeiAmount: Scalars['String']['output'];
|
|
747
|
+
};
|
|
748
|
+
export type ReadAssetResponse_Dispenser = {
|
|
749
|
+
__typename?: 'ReadAssetResponse_Dispenser';
|
|
750
|
+
Builders: Array<ReadAssetResponse_Builder>;
|
|
751
|
+
RefundFinishTime: Scalars['String']['output'];
|
|
752
|
+
UserAddress: Scalars['String']['output'];
|
|
753
|
+
};
|
|
754
|
+
export type ReadAssetsRequest = {
|
|
755
|
+
ChainId: Scalars['Int']['input'];
|
|
756
|
+
PoolId: Scalars['Int']['input'];
|
|
757
|
+
};
|
|
758
|
+
export type ReadAssetsResponse = {
|
|
759
|
+
__typename?: 'ReadAssetsResponse';
|
|
760
|
+
Assets: Array<ReadAssetResponse_Asset>;
|
|
761
|
+
};
|
|
668
762
|
export type RpcWallet = {
|
|
669
763
|
__typename?: 'RpcWallet';
|
|
670
764
|
Id: Scalars['Int']['output'];
|
|
@@ -860,6 +954,22 @@ export type AdminCleanCacheMutation = {
|
|
|
860
954
|
}>;
|
|
861
955
|
};
|
|
862
956
|
};
|
|
957
|
+
export type AdminListOfCollateralQueryVariables = Exact<{
|
|
958
|
+
chainId: Scalars['Int']['input'];
|
|
959
|
+
collateralAddress: Scalars['String']['input'];
|
|
960
|
+
limit: Scalars['Int']['input'];
|
|
961
|
+
page: Scalars['Int']['input'];
|
|
962
|
+
}>;
|
|
963
|
+
export type AdminListOfCollateralQuery = {
|
|
964
|
+
__typename?: 'Query';
|
|
965
|
+
adminListOfCollateral: Array<{
|
|
966
|
+
__typename?: 'AdminListOfCollateral';
|
|
967
|
+
PoolId: number;
|
|
968
|
+
TokenAmountInWei: string;
|
|
969
|
+
MainCoinAmountInWei: string;
|
|
970
|
+
FinishTime: number;
|
|
971
|
+
}>;
|
|
972
|
+
};
|
|
863
973
|
export type GetApprovedContractsQueryVariables = Exact<{
|
|
864
974
|
onlyApproved: Scalars['Boolean']['input'];
|
|
865
975
|
}>;
|
|
@@ -1526,6 +1636,12 @@ export type DataQuery = {
|
|
|
1526
1636
|
export declare const AdminCleanCacheDocument: DocumentNode<AdminCleanCacheMutation, Exact<{
|
|
1527
1637
|
[key: string]: never;
|
|
1528
1638
|
}>>;
|
|
1639
|
+
export declare const AdminListOfCollateralDocument: DocumentNode<AdminListOfCollateralQuery, Exact<{
|
|
1640
|
+
chainId: Scalars['Int']['input'];
|
|
1641
|
+
collateralAddress: Scalars['String']['input'];
|
|
1642
|
+
limit: Scalars['Int']['input'];
|
|
1643
|
+
page: Scalars['Int']['input'];
|
|
1644
|
+
}>>;
|
|
1529
1645
|
export declare const GetApprovedContractsDocument: DocumentNode<GetApprovedContractsQuery, Exact<{
|
|
1530
1646
|
onlyApproved: Scalars['Boolean']['input'];
|
|
1531
1647
|
}>>;
|