@dodoex/api 3.4.0 → 3.5.0-cp.2

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.
@@ -14,4 +14,5 @@ export type { MiningMiningInfo } from './services/mining';
14
14
  export { TokenApi } from './services/TokenApi';
15
15
  export { SwapApi } from './services/swap/SwapApi';
16
16
  export { SystemApi } from './services/system/SystemApi';
17
+ export { cpGraphqlQuery } from './services/cp';
17
18
  export type ExcludeNone<T> = NonNullable<T>;
@@ -90,7 +90,110 @@ export declare class SwapWidgetApi {
90
90
  }>;
91
91
  convertConfigToSwapWidgetProps(configTokenList: ConfigTokenList): {
92
92
  tokenList: TokenList;
93
- theme: any;
93
+ theme: {
94
+ palette?: {
95
+ primary?: {
96
+ light?: string | undefined;
97
+ main?: string | undefined;
98
+ dark?: string | undefined;
99
+ contrastText?: string | undefined;
100
+ } | undefined;
101
+ secondary?: {
102
+ light?: string | undefined;
103
+ main?: string | undefined;
104
+ dark?: string | undefined;
105
+ contrastText?: string | undefined;
106
+ } | undefined;
107
+ error?: {
108
+ light?: string | undefined;
109
+ main?: string | undefined;
110
+ dark?: string | undefined;
111
+ contrastText?: string | undefined;
112
+ } | undefined;
113
+ warning?: {
114
+ light?: string | undefined;
115
+ main?: string | undefined;
116
+ dark?: string | undefined;
117
+ contrastText?: string | undefined;
118
+ } | undefined;
119
+ success?: {
120
+ light?: string | undefined;
121
+ main?: string | undefined;
122
+ dark?: string | undefined;
123
+ contrastText?: string | undefined;
124
+ } | undefined;
125
+ purple?: {
126
+ light?: string | undefined;
127
+ main?: string | undefined;
128
+ dark?: string | undefined;
129
+ contrastText?: string | undefined;
130
+ } | undefined;
131
+ mode?: "light" | "dark" | undefined;
132
+ text?: {
133
+ primary?: string | undefined;
134
+ secondary?: string | undefined;
135
+ disabled?: string | undefined;
136
+ placeholder?: string | undefined;
137
+ link?: string | undefined;
138
+ } | undefined;
139
+ border?: {
140
+ main?: string | undefined;
141
+ disabled?: string | undefined;
142
+ light?: string | undefined;
143
+ } | undefined;
144
+ hover?: {
145
+ default?: string | undefined;
146
+ } | undefined;
147
+ background?: {
148
+ default?: string | undefined;
149
+ paper?: string | undefined;
150
+ paperContrast?: string | undefined;
151
+ paperDarkContrast?: string | undefined;
152
+ backdrop?: string | undefined;
153
+ input?: string | undefined;
154
+ tag?: string | undefined;
155
+ } | undefined;
156
+ tabActive?: {
157
+ light?: string | undefined;
158
+ main?: string | undefined;
159
+ dark?: string | undefined;
160
+ contrastText?: string | undefined;
161
+ } | undefined;
162
+ getContrastText?: {} | undefined;
163
+ } | undefined;
164
+ shape?: {
165
+ borderRadius?: string | number | undefined;
166
+ } | undefined;
167
+ breakpoints?: {
168
+ step?: number | undefined;
169
+ unit?: string | undefined;
170
+ keys?: ("mobile" | "tablet" | "laptop" | "desktop" | "largeDesktop" | undefined)[] | undefined;
171
+ values?: {
172
+ mobile?: number | undefined;
173
+ tablet?: number | undefined;
174
+ laptop?: number | undefined;
175
+ desktop?: number | undefined;
176
+ largeDesktop?: number | undefined;
177
+ } | undefined;
178
+ up?: {} | undefined;
179
+ down?: {} | undefined;
180
+ between?: {} | undefined;
181
+ only?: {} | undefined;
182
+ not?: {} | undefined;
183
+ } | undefined;
184
+ direction?: "ltr" | "rtl" | undefined;
185
+ mixins?: {} | undefined;
186
+ shadows?: {} | undefined;
187
+ spacing?: number | readonly (string | number)[] | {} | {} | {} | undefined;
188
+ transitions?: {} | undefined;
189
+ components?: {
190
+ [x: string]: any;
191
+ } | undefined;
192
+ typography?: {} | undefined;
193
+ zIndex?: {
194
+ [x: string]: number | undefined;
195
+ } | undefined;
196
+ } | undefined;
94
197
  rebateAddress: string | null;
95
198
  rebateRatio: number | null;
96
199
  swapSlippage: number | null | undefined;
@@ -107,7 +210,110 @@ export declare class SwapWidgetApi {
107
210
  getConfigSwapWidgetProps(projectId: string, apikey: string): Promise<{
108
211
  swapWidgetProps: {
109
212
  tokenList: TokenList;
110
- theme: any;
213
+ theme: {
214
+ palette?: {
215
+ primary?: {
216
+ light?: string | undefined;
217
+ main?: string | undefined;
218
+ dark?: string | undefined;
219
+ contrastText?: string | undefined;
220
+ } | undefined;
221
+ secondary?: {
222
+ light?: string | undefined;
223
+ main?: string | undefined;
224
+ dark?: string | undefined;
225
+ contrastText?: string | undefined;
226
+ } | undefined;
227
+ error?: {
228
+ light?: string | undefined;
229
+ main?: string | undefined;
230
+ dark?: string | undefined;
231
+ contrastText?: string | undefined;
232
+ } | undefined;
233
+ warning?: {
234
+ light?: string | undefined;
235
+ main?: string | undefined;
236
+ dark?: string | undefined;
237
+ contrastText?: string | undefined;
238
+ } | undefined;
239
+ success?: {
240
+ light?: string | undefined;
241
+ main?: string | undefined;
242
+ dark?: string | undefined;
243
+ contrastText?: string | undefined;
244
+ } | undefined;
245
+ purple?: {
246
+ light?: string | undefined;
247
+ main?: string | undefined;
248
+ dark?: string | undefined;
249
+ contrastText?: string | undefined;
250
+ } | undefined;
251
+ mode?: "light" | "dark" | undefined;
252
+ text?: {
253
+ primary?: string | undefined;
254
+ secondary?: string | undefined;
255
+ disabled?: string | undefined;
256
+ placeholder?: string | undefined;
257
+ link?: string | undefined;
258
+ } | undefined;
259
+ border?: {
260
+ main?: string | undefined;
261
+ disabled?: string | undefined;
262
+ light?: string | undefined;
263
+ } | undefined;
264
+ hover?: {
265
+ default?: string | undefined;
266
+ } | undefined;
267
+ background?: {
268
+ default?: string | undefined;
269
+ paper?: string | undefined;
270
+ paperContrast?: string | undefined;
271
+ paperDarkContrast?: string | undefined;
272
+ backdrop?: string | undefined;
273
+ input?: string | undefined;
274
+ tag?: string | undefined;
275
+ } | undefined;
276
+ tabActive?: {
277
+ light?: string | undefined;
278
+ main?: string | undefined;
279
+ dark?: string | undefined;
280
+ contrastText?: string | undefined;
281
+ } | undefined;
282
+ getContrastText?: {} | undefined;
283
+ } | undefined;
284
+ shape?: {
285
+ borderRadius?: string | number | undefined;
286
+ } | undefined;
287
+ breakpoints?: {
288
+ step?: number | undefined;
289
+ unit?: string | undefined;
290
+ keys?: ("mobile" | "tablet" | "laptop" | "desktop" | "largeDesktop" | undefined)[] | undefined;
291
+ values?: {
292
+ mobile?: number | undefined;
293
+ tablet?: number | undefined;
294
+ laptop?: number | undefined;
295
+ desktop?: number | undefined;
296
+ largeDesktop?: number | undefined;
297
+ } | undefined;
298
+ up?: {} | undefined;
299
+ down?: {} | undefined;
300
+ between?: {} | undefined;
301
+ only?: {} | undefined;
302
+ not?: {} | undefined;
303
+ } | undefined;
304
+ direction?: "ltr" | "rtl" | undefined;
305
+ mixins?: {} | undefined;
306
+ shadows?: {} | undefined;
307
+ spacing?: number | readonly (string | number)[] | {} | {} | {} | undefined;
308
+ transitions?: {} | undefined;
309
+ components?: {
310
+ [x: string]: any;
311
+ } | undefined;
312
+ typography?: {} | undefined;
313
+ zIndex?: {
314
+ [x: string]: number | undefined;
315
+ } | undefined;
316
+ } | undefined;
111
317
  rebateAddress: string | null;
112
318
  rebateRatio: number | null;
113
319
  swapSlippage: number | null | undefined;
@@ -0,0 +1,32 @@
1
+ export declare const cpGraphqlQuery: {
2
+ fetchCPList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchCpListQuery, import("../../gql/graphql").Exact<{
3
+ first?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
4
+ where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").CrowdPooling_Filter>;
5
+ }>>;
6
+ fetchCPDetail: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchCpDetailQuery, import("../../gql/graphql").Exact<{
7
+ id: import("../../gql/graphql").Scalars["ID"]["input"];
8
+ where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").CrowdPooling_Filter>;
9
+ }>>;
10
+ fetchIOPCPList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchIopcpListQuery, import("../../gql/graphql").Exact<{
11
+ where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Crowd_Pooling_Read_ServercrowdpoolingListFilter>;
12
+ voteWhere?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Crowd_Pooling_Read_ServercrowdpoolingVoteListFilter>;
13
+ }>>;
14
+ fetchBidPosition: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchBidPositionQuery, import("../../gql/graphql").Exact<{
15
+ where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").BidPosition_Filter>;
16
+ }>>;
17
+ fetchCPDayData: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchCpDayDataQuery, import("../../gql/graphql").Exact<{
18
+ first?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
19
+ where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").CrowdPoolingDayData_Filter>;
20
+ }>>;
21
+ fetchCPHourData: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchCpHourDataQuery, import("../../gql/graphql").Exact<{
22
+ first?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
23
+ where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").CrowdPoolingHourData_Filter>;
24
+ }>>;
25
+ fetchCPBids: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchCpBidsQuery, import("../../gql/graphql").Exact<{
26
+ first?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
27
+ skip?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
28
+ where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").BidHistory_Filter>;
29
+ orderBy?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").BidHistory_OrderBy>;
30
+ orderDirection?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").OrderDirection>;
31
+ }>>;
32
+ };
@@ -0,0 +1 @@
1
+ export { cpGraphqlQuery } from './graphqlQuery';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodoex/api",
3
- "version": "3.4.0",
3
+ "version": "3.5.0-cp.2",
4
4
  "description": "DODO API Kit",
5
5
  "source": "src/index.ts",
6
6
  "types": "dist/types/index.d.ts",