@iotexproject/kit 0.0.71 → 0.0.73

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 (2) hide show
  1. package/dist/index.d.ts +615 -9
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2,7 +2,571 @@
2
2
 
3
3
  import postgres from 'postgres';
4
4
 
5
+ declare class VerifyingProxyEntity {
6
+ address: `0x${string}`;
7
+ chainId: string;
8
+ static abi: readonly [
9
+ {
10
+ readonly inputs: readonly [
11
+ {
12
+ readonly internalType: "address";
13
+ readonly name: "_ioIDStore";
14
+ readonly type: "address";
15
+ },
16
+ {
17
+ readonly internalType: "address";
18
+ readonly name: "_projectRegistry";
19
+ readonly type: "address";
20
+ },
21
+ {
22
+ readonly internalType: "address";
23
+ readonly name: "_deviceNFTImplementation";
24
+ readonly type: "address";
25
+ }
26
+ ];
27
+ readonly stateMutability: "nonpayable";
28
+ readonly type: "constructor";
29
+ },
30
+ {
31
+ readonly anonymous: false;
32
+ readonly inputs: readonly [
33
+ {
34
+ readonly indexed: true;
35
+ readonly internalType: "address";
36
+ readonly name: "gauge";
37
+ readonly type: "address";
38
+ }
39
+ ];
40
+ readonly name: "DeviceGaugeSetted";
41
+ readonly type: "event";
42
+ },
43
+ {
44
+ readonly anonymous: false;
45
+ readonly inputs: readonly [
46
+ {
47
+ readonly indexed: false;
48
+ readonly internalType: "uint8";
49
+ readonly name: "version";
50
+ readonly type: "uint8";
51
+ }
52
+ ];
53
+ readonly name: "Initialized";
54
+ readonly type: "event";
55
+ },
56
+ {
57
+ readonly anonymous: false;
58
+ readonly inputs: readonly [
59
+ {
60
+ readonly indexed: true;
61
+ readonly internalType: "address";
62
+ readonly name: "previousOwner";
63
+ readonly type: "address";
64
+ },
65
+ {
66
+ readonly indexed: true;
67
+ readonly internalType: "address";
68
+ readonly name: "newOwner";
69
+ readonly type: "address";
70
+ }
71
+ ];
72
+ readonly name: "OwnershipTransferred";
73
+ readonly type: "event";
74
+ },
75
+ {
76
+ readonly anonymous: false;
77
+ readonly inputs: readonly [
78
+ {
79
+ readonly indexed: true;
80
+ readonly internalType: "address";
81
+ readonly name: "owner";
82
+ readonly type: "address";
83
+ },
84
+ {
85
+ readonly indexed: true;
86
+ readonly internalType: "address";
87
+ readonly name: "device";
88
+ readonly type: "address";
89
+ },
90
+ {
91
+ readonly indexed: false;
92
+ readonly internalType: "uint256";
93
+ readonly name: "deviceTokenId";
94
+ readonly type: "uint256";
95
+ },
96
+ {
97
+ readonly indexed: false;
98
+ readonly internalType: "uint256";
99
+ readonly name: "ioIDTokenID";
100
+ readonly type: "uint256";
101
+ }
102
+ ];
103
+ readonly name: "Registered";
104
+ readonly type: "event";
105
+ },
106
+ {
107
+ readonly anonymous: false;
108
+ readonly inputs: readonly [
109
+ {
110
+ readonly indexed: true;
111
+ readonly internalType: "address";
112
+ readonly name: "oldVerifier";
113
+ readonly type: "address";
114
+ },
115
+ {
116
+ readonly indexed: true;
117
+ readonly internalType: "address";
118
+ readonly name: "newVerifier";
119
+ readonly type: "address";
120
+ }
121
+ ];
122
+ readonly name: "VerifierChanged";
123
+ readonly type: "event";
124
+ },
125
+ {
126
+ readonly inputs: readonly [
127
+ ];
128
+ readonly name: "VERSION";
129
+ readonly outputs: readonly [
130
+ {
131
+ readonly internalType: "string";
132
+ readonly name: "";
133
+ readonly type: "string";
134
+ }
135
+ ];
136
+ readonly stateMutability: "view";
137
+ readonly type: "function";
138
+ },
139
+ {
140
+ readonly inputs: readonly [
141
+ {
142
+ readonly internalType: "uint256";
143
+ readonly name: "_amount";
144
+ readonly type: "uint256";
145
+ }
146
+ ];
147
+ readonly name: "applyIoIDs";
148
+ readonly outputs: readonly [
149
+ ];
150
+ readonly stateMutability: "payable";
151
+ readonly type: "function";
152
+ },
153
+ {
154
+ readonly inputs: readonly [
155
+ {
156
+ readonly internalType: "address";
157
+ readonly name: "_to";
158
+ readonly type: "address";
159
+ }
160
+ ];
161
+ readonly name: "approveProjectNFT";
162
+ readonly outputs: readonly [
163
+ ];
164
+ readonly stateMutability: "nonpayable";
165
+ readonly type: "function";
166
+ },
167
+ {
168
+ readonly inputs: readonly [
169
+ {
170
+ readonly internalType: "address";
171
+ readonly name: "_verifier";
172
+ readonly type: "address";
173
+ }
174
+ ];
175
+ readonly name: "changeVerifier";
176
+ readonly outputs: readonly [
177
+ ];
178
+ readonly stateMutability: "nonpayable";
179
+ readonly type: "function";
180
+ },
181
+ {
182
+ readonly inputs: readonly [
183
+ ];
184
+ readonly name: "deviceGauge";
185
+ readonly outputs: readonly [
186
+ {
187
+ readonly internalType: "address";
188
+ readonly name: "";
189
+ readonly type: "address";
190
+ }
191
+ ];
192
+ readonly stateMutability: "view";
193
+ readonly type: "function";
194
+ },
195
+ {
196
+ readonly inputs: readonly [
197
+ ];
198
+ readonly name: "deviceNFT";
199
+ readonly outputs: readonly [
200
+ {
201
+ readonly internalType: "contract IDeviceNFT";
202
+ readonly name: "";
203
+ readonly type: "address";
204
+ }
205
+ ];
206
+ readonly stateMutability: "view";
207
+ readonly type: "function";
208
+ },
209
+ {
210
+ readonly inputs: readonly [
211
+ ];
212
+ readonly name: "deviceNFTImplementation";
213
+ readonly outputs: readonly [
214
+ {
215
+ readonly internalType: "address";
216
+ readonly name: "";
217
+ readonly type: "address";
218
+ }
219
+ ];
220
+ readonly stateMutability: "view";
221
+ readonly type: "function";
222
+ },
223
+ {
224
+ readonly inputs: readonly [
225
+ {
226
+ readonly internalType: "uint256";
227
+ readonly name: "_amount";
228
+ readonly type: "uint256";
229
+ }
230
+ ];
231
+ readonly name: "incrementMinterAllowance";
232
+ readonly outputs: readonly [
233
+ ];
234
+ readonly stateMutability: "nonpayable";
235
+ readonly type: "function";
236
+ },
237
+ {
238
+ readonly inputs: readonly [
239
+ {
240
+ readonly internalType: "uint8";
241
+ readonly name: "_type";
242
+ readonly type: "uint8";
243
+ },
244
+ {
245
+ readonly internalType: "address";
246
+ readonly name: "_verifier";
247
+ readonly type: "address";
248
+ },
249
+ {
250
+ readonly internalType: "string";
251
+ readonly name: "_projectName";
252
+ readonly type: "string";
253
+ },
254
+ {
255
+ readonly internalType: "string";
256
+ readonly name: "_name";
257
+ readonly type: "string";
258
+ },
259
+ {
260
+ readonly internalType: "string";
261
+ readonly name: "_symbol";
262
+ readonly type: "string";
263
+ },
264
+ {
265
+ readonly internalType: "uint256";
266
+ readonly name: "_amount";
267
+ readonly type: "uint256";
268
+ }
269
+ ];
270
+ readonly name: "initialize";
271
+ readonly outputs: readonly [
272
+ ];
273
+ readonly stateMutability: "payable";
274
+ readonly type: "function";
275
+ },
276
+ {
277
+ readonly inputs: readonly [
278
+ {
279
+ readonly internalType: "uint256";
280
+ readonly name: "_projectId";
281
+ readonly type: "uint256";
282
+ },
283
+ {
284
+ readonly internalType: "address";
285
+ readonly name: "_verifier";
286
+ readonly type: "address";
287
+ },
288
+ {
289
+ readonly internalType: "address";
290
+ readonly name: "_deviceNFT";
291
+ readonly type: "address";
292
+ },
293
+ {
294
+ readonly internalType: "uint256";
295
+ readonly name: "_amount";
296
+ readonly type: "uint256";
297
+ }
298
+ ];
299
+ readonly name: "initialize";
300
+ readonly outputs: readonly [
301
+ ];
302
+ readonly stateMutability: "nonpayable";
303
+ readonly type: "function";
304
+ },
305
+ {
306
+ readonly inputs: readonly [
307
+ ];
308
+ readonly name: "ioIDStore";
309
+ readonly outputs: readonly [
310
+ {
311
+ readonly internalType: "address";
312
+ readonly name: "";
313
+ readonly type: "address";
314
+ }
315
+ ];
316
+ readonly stateMutability: "view";
317
+ readonly type: "function";
318
+ },
319
+ {
320
+ readonly inputs: readonly [
321
+ {
322
+ readonly internalType: "address";
323
+ readonly name: "_owner";
324
+ readonly type: "address";
325
+ }
326
+ ];
327
+ readonly name: "migrate";
328
+ readonly outputs: readonly [
329
+ ];
330
+ readonly stateMutability: "nonpayable";
331
+ readonly type: "function";
332
+ },
333
+ {
334
+ readonly inputs: readonly [
335
+ {
336
+ readonly internalType: "address";
337
+ readonly name: "";
338
+ readonly type: "address";
339
+ },
340
+ {
341
+ readonly internalType: "address";
342
+ readonly name: "";
343
+ readonly type: "address";
344
+ },
345
+ {
346
+ readonly internalType: "uint256";
347
+ readonly name: "";
348
+ readonly type: "uint256";
349
+ },
350
+ {
351
+ readonly internalType: "bytes";
352
+ readonly name: "";
353
+ readonly type: "bytes";
354
+ }
355
+ ];
356
+ readonly name: "onERC721Received";
357
+ readonly outputs: readonly [
358
+ {
359
+ readonly internalType: "bytes4";
360
+ readonly name: "";
361
+ readonly type: "bytes4";
362
+ }
363
+ ];
364
+ readonly stateMutability: "nonpayable";
365
+ readonly type: "function";
366
+ },
367
+ {
368
+ readonly inputs: readonly [
369
+ ];
370
+ readonly name: "owner";
371
+ readonly outputs: readonly [
372
+ {
373
+ readonly internalType: "address";
374
+ readonly name: "";
375
+ readonly type: "address";
376
+ }
377
+ ];
378
+ readonly stateMutability: "view";
379
+ readonly type: "function";
380
+ },
381
+ {
382
+ readonly inputs: readonly [
383
+ ];
384
+ readonly name: "projectId";
385
+ readonly outputs: readonly [
386
+ {
387
+ readonly internalType: "uint256";
388
+ readonly name: "";
389
+ readonly type: "uint256";
390
+ }
391
+ ];
392
+ readonly stateMutability: "view";
393
+ readonly type: "function";
394
+ },
395
+ {
396
+ readonly inputs: readonly [
397
+ ];
398
+ readonly name: "projectRegistry";
399
+ readonly outputs: readonly [
400
+ {
401
+ readonly internalType: "address";
402
+ readonly name: "";
403
+ readonly type: "address";
404
+ }
405
+ ];
406
+ readonly stateMutability: "view";
407
+ readonly type: "function";
408
+ },
409
+ {
410
+ readonly inputs: readonly [
411
+ {
412
+ readonly internalType: "bytes";
413
+ readonly name: "_verifySignature";
414
+ readonly type: "bytes";
415
+ },
416
+ {
417
+ readonly internalType: "bytes32";
418
+ readonly name: "_hash";
419
+ readonly type: "bytes32";
420
+ },
421
+ {
422
+ readonly internalType: "string";
423
+ readonly name: "_uri";
424
+ readonly type: "string";
425
+ },
426
+ {
427
+ readonly internalType: "address";
428
+ readonly name: "_owner";
429
+ readonly type: "address";
430
+ },
431
+ {
432
+ readonly internalType: "address";
433
+ readonly name: "_device";
434
+ readonly type: "address";
435
+ },
436
+ {
437
+ readonly internalType: "uint8";
438
+ readonly name: "_v";
439
+ readonly type: "uint8";
440
+ },
441
+ {
442
+ readonly internalType: "bytes32";
443
+ readonly name: "_r";
444
+ readonly type: "bytes32";
445
+ },
446
+ {
447
+ readonly internalType: "bytes32";
448
+ readonly name: "_s";
449
+ readonly type: "bytes32";
450
+ }
451
+ ];
452
+ readonly name: "register";
453
+ readonly outputs: readonly [
454
+ ];
455
+ readonly stateMutability: "payable";
456
+ readonly type: "function";
457
+ },
458
+ {
459
+ readonly inputs: readonly [
460
+ ];
461
+ readonly name: "renounceOwnership";
462
+ readonly outputs: readonly [
463
+ ];
464
+ readonly stateMutability: "nonpayable";
465
+ readonly type: "function";
466
+ },
467
+ {
468
+ readonly inputs: readonly [
469
+ {
470
+ readonly internalType: "address";
471
+ readonly name: "_gauge";
472
+ readonly type: "address";
473
+ }
474
+ ];
475
+ readonly name: "setDeviceGauge";
476
+ readonly outputs: readonly [
477
+ ];
478
+ readonly stateMutability: "nonpayable";
479
+ readonly type: "function";
480
+ },
481
+ {
482
+ readonly inputs: readonly [
483
+ {
484
+ readonly internalType: "string";
485
+ readonly name: "_name";
486
+ readonly type: "string";
487
+ },
488
+ {
489
+ readonly internalType: "bytes";
490
+ readonly name: "_value";
491
+ readonly type: "bytes";
492
+ }
493
+ ];
494
+ readonly name: "setMetadata";
495
+ readonly outputs: readonly [
496
+ ];
497
+ readonly stateMutability: "nonpayable";
498
+ readonly type: "function";
499
+ },
500
+ {
501
+ readonly inputs: readonly [
502
+ {
503
+ readonly internalType: "string";
504
+ readonly name: "_name";
505
+ readonly type: "string";
506
+ }
507
+ ];
508
+ readonly name: "setName";
509
+ readonly outputs: readonly [
510
+ ];
511
+ readonly stateMutability: "nonpayable";
512
+ readonly type: "function";
513
+ },
514
+ {
515
+ readonly inputs: readonly [
516
+ {
517
+ readonly internalType: "address";
518
+ readonly name: "newOwner";
519
+ readonly type: "address";
520
+ }
521
+ ];
522
+ readonly name: "transferOwnership";
523
+ readonly outputs: readonly [
524
+ ];
525
+ readonly stateMutability: "nonpayable";
526
+ readonly type: "function";
527
+ },
528
+ {
529
+ readonly inputs: readonly [
530
+ ];
531
+ readonly name: "verifier";
532
+ readonly outputs: readonly [
533
+ {
534
+ readonly internalType: "address";
535
+ readonly name: "";
536
+ readonly type: "address";
537
+ }
538
+ ];
539
+ readonly stateMutability: "view";
540
+ readonly type: "function";
541
+ }
542
+ ];
543
+ verifier: () => Promise<any>;
544
+ deviceNFT: () => Promise<any>;
545
+ deviceGauge: () => Promise<any>;
546
+ projectAppliedAmount(): Promise<string>;
547
+ projectActivedAmount(): Promise<string>;
548
+ ioIDStore(): Promise<"" | `0x${string}`>;
549
+ projectId(): Promise<string>;
550
+ project(): Promise<string>;
551
+ projectName(): Promise<string>;
552
+ projectType(): Promise<number | "">;
553
+ setDeviceGauge: (_gauge: `0x${string}`) => Promise<any>;
554
+ applyIoIDs: (_amount: string) => Promise<any>;
555
+ }
5
556
  declare class IoID {
557
+ verfiyerProxyList(args: {
558
+ addresses: `0x${string}`[];
559
+ }): Promise<import("@dappworks/kit/aiem").QueryReturnType<VerifyingProxyEntity, {
560
+ address: true;
561
+ chainId: true;
562
+ projectActivedAmount: true;
563
+ projectAppliedAmount: true;
564
+ projectName: true;
565
+ projectType: true;
566
+ deviceNFT: true;
567
+ verifier: true;
568
+ deviceGauge: true;
569
+ }>[]>;
6
570
  create(args: {
7
571
  _type: string;
8
572
  _verifier: `0x${string}`;
@@ -11,12 +575,40 @@ declare class IoID {
11
575
  _symbol: string;
12
576
  _amount: string;
13
577
  }): Promise<{
14
- totalPrice: string;
578
+ address: string;
579
+ value: string;
580
+ data: any;
581
+ error?: undefined;
582
+ } | {
583
+ error: unknown;
584
+ address?: undefined;
585
+ value?: undefined;
586
+ data?: undefined;
587
+ }>;
588
+ setGauge(args: {
589
+ address: `0x${string}`;
590
+ gauge: `0x${string}`;
591
+ }): Promise<{
592
+ address: `0x${string}`;
593
+ data: any;
594
+ error?: undefined;
595
+ } | {
596
+ error: unknown;
597
+ address?: undefined;
598
+ data?: undefined;
599
+ }>;
600
+ applyIoIDs(args: {
601
+ address: `0x${string}`;
602
+ amount: number;
603
+ }): Promise<{
604
+ value: string;
605
+ address: `0x${string}`;
15
606
  data: any;
16
607
  error?: undefined;
17
608
  } | {
18
609
  error: unknown;
19
- totalPrice?: undefined;
610
+ value?: undefined;
611
+ address?: undefined;
20
612
  data?: undefined;
21
613
  }>;
22
614
  }
@@ -3230,8 +3822,8 @@ declare class GaugeEntity {
3230
3822
  }>;
3231
3823
  votingApr(): Promise<string>;
3232
3824
  someAddress(): Promise<{
3233
- voterAddress: `0x${string}`;
3234
- vaultAddress: `0x${string}`;
3825
+ voterAddress: string;
3826
+ vaultAddress: string;
3235
3827
  }>;
3236
3828
  left: () => Promise<any>;
3237
3829
  voter: () => Promise<any>;
@@ -4537,11 +5129,7 @@ declare class MarshallDao {
4537
5129
  getRewardFromGauge(args: {
4538
5130
  gaugeAddress: string;
4539
5131
  account: `0x${string}`;
4540
- }): Promise<{
4541
- data: any;
4542
- address: string;
4543
- title: string;
4544
- }[] | undefined>;
5132
+ }): Promise<any>;
4545
5133
  batchGetRewardFromGauge(args: {
4546
5134
  gaugeAddress: any[];
4547
5135
  account: `0x${string}`;
@@ -7168,6 +7756,18 @@ export interface Dapp {
7168
7756
  url: string;
7169
7757
  weight: number;
7170
7758
  }
7759
+ export interface EcosystemDapp {
7760
+ date: string;
7761
+ id: string;
7762
+ logo: string;
7763
+ slug: string;
7764
+ status: string;
7765
+ tag: string;
7766
+ telegram: string;
7767
+ title: string;
7768
+ twitter: string;
7769
+ website: string;
7770
+ }
7171
7771
  declare class UseHub {
7172
7772
  constructor();
7173
7773
  rewardSummary(args: {
@@ -7246,6 +7846,12 @@ declare class UseHub {
7246
7846
  } | {
7247
7847
  error: any;
7248
7848
  }>;
7849
+ ecosystem(): Promise<{
7850
+ dappList: EcosystemDapp[];
7851
+ tags: string[];
7852
+ } | {
7853
+ error: any;
7854
+ }>;
7249
7855
  }
7250
7856
  declare const modules: {
7251
7857
  mimo: Mimo;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iotexproject/kit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "v0.0.71",
5
+ "version": "v0.0.73",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {