@ocap/client 1.29.14 → 1.29.16
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/base.js +1 -1
- package/dist/browser.d.ts +874 -401
- package/dist/bundle.js +1 -1
- package/dist/report.html +2 -2
- package/dist/schema/graphql.json +34 -2
- package/dist/schema/graphql.txt +3 -3
- package/dist/types.js +205 -24
- package/dist/types.js.map +1 -1
- package/docs/QUERIES.md +1 -0
- package/docs/README.md +209 -4
- package/lib/base.js +1 -1
- package/lib/node.d.ts +874 -401
- package/lib/schema/graphql.json +34 -2
- package/lib/schema/graphql.txt +3 -3
- package/lib/types.js +205 -24
- package/lib/types.js.map +1 -1
- package/package.json +16 -16
package/dist/types.js
CHANGED
|
@@ -217,7 +217,15 @@
|
|
|
217
217
|
*/
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
|
-
* Structure of GraphQLClient.RequestEstimateGasInput
|
|
220
|
+
* Structure of GraphQLClient.RequestEstimateGasInput
|
|
221
|
+
*
|
|
222
|
+
* Checkout the following snippet for the format of RequestEstimateGasInput:
|
|
223
|
+
* ```json
|
|
224
|
+
{
|
|
225
|
+
"typeUrl": "abc",
|
|
226
|
+
"tx": "abc"
|
|
227
|
+
}
|
|
228
|
+
* ```
|
|
221
229
|
*
|
|
222
230
|
* @memberof GraphQLClient
|
|
223
231
|
* @typedef {object} GraphQLClient.RequestEstimateGasInput
|
|
@@ -237,7 +245,15 @@
|
|
|
237
245
|
*/
|
|
238
246
|
|
|
239
247
|
/**
|
|
240
|
-
* Structure of GraphQLClient.RequestGetAccountTokensInput
|
|
248
|
+
* Structure of GraphQLClient.RequestGetAccountTokensInput
|
|
249
|
+
*
|
|
250
|
+
* Checkout the following snippet for the format of RequestGetAccountTokensInput:
|
|
251
|
+
* ```json
|
|
252
|
+
{
|
|
253
|
+
"address": "abc",
|
|
254
|
+
"token": "abc"
|
|
255
|
+
}
|
|
256
|
+
* ```
|
|
241
257
|
*
|
|
242
258
|
* @memberof GraphQLClient
|
|
243
259
|
* @typedef {object} GraphQLClient.RequestGetAccountTokensInput
|
|
@@ -246,7 +262,14 @@
|
|
|
246
262
|
*/
|
|
247
263
|
|
|
248
264
|
/**
|
|
249
|
-
* Structure of GraphQLClient.RequestGetBlockInput
|
|
265
|
+
* Structure of GraphQLClient.RequestGetBlockInput
|
|
266
|
+
*
|
|
267
|
+
* Checkout the following snippet for the format of RequestGetBlockInput:
|
|
268
|
+
* ```json
|
|
269
|
+
{
|
|
270
|
+
"height": 123
|
|
271
|
+
}
|
|
272
|
+
* ```
|
|
250
273
|
*
|
|
251
274
|
* @memberof GraphQLClient
|
|
252
275
|
* @typedef {object} GraphQLClient.RequestGetBlockInput
|
|
@@ -254,7 +277,14 @@
|
|
|
254
277
|
*/
|
|
255
278
|
|
|
256
279
|
/**
|
|
257
|
-
* Structure of GraphQLClient.RequestGetBlocksInput
|
|
280
|
+
* Structure of GraphQLClient.RequestGetBlocksInput
|
|
281
|
+
*
|
|
282
|
+
* Checkout the following snippet for the format of RequestGetBlocksInput:
|
|
283
|
+
* ```json
|
|
284
|
+
{
|
|
285
|
+
"emptyExcluded": true
|
|
286
|
+
}
|
|
287
|
+
* ```
|
|
258
288
|
*
|
|
259
289
|
* @memberof GraphQLClient
|
|
260
290
|
* @typedef {object} GraphQLClient.RequestGetBlocksInput
|
|
@@ -264,7 +294,14 @@
|
|
|
264
294
|
*/
|
|
265
295
|
|
|
266
296
|
/**
|
|
267
|
-
* Structure of GraphQLClient.RequestGetConfigInput
|
|
297
|
+
* Structure of GraphQLClient.RequestGetConfigInput
|
|
298
|
+
*
|
|
299
|
+
* Checkout the following snippet for the format of RequestGetConfigInput:
|
|
300
|
+
* ```json
|
|
301
|
+
{
|
|
302
|
+
"parsed": true
|
|
303
|
+
}
|
|
304
|
+
* ```
|
|
268
305
|
*
|
|
269
306
|
* @memberof GraphQLClient
|
|
270
307
|
* @typedef {object} GraphQLClient.RequestGetConfigInput
|
|
@@ -272,7 +309,14 @@
|
|
|
272
309
|
*/
|
|
273
310
|
|
|
274
311
|
/**
|
|
275
|
-
* Structure of GraphQLClient.RequestGetEvidenceStateInput
|
|
312
|
+
* Structure of GraphQLClient.RequestGetEvidenceStateInput
|
|
313
|
+
*
|
|
314
|
+
* Checkout the following snippet for the format of RequestGetEvidenceStateInput:
|
|
315
|
+
* ```json
|
|
316
|
+
{
|
|
317
|
+
"hash": "abc"
|
|
318
|
+
}
|
|
319
|
+
* ```
|
|
276
320
|
*
|
|
277
321
|
* @memberof GraphQLClient
|
|
278
322
|
* @typedef {object} GraphQLClient.RequestGetEvidenceStateInput
|
|
@@ -280,7 +324,16 @@
|
|
|
280
324
|
*/
|
|
281
325
|
|
|
282
326
|
/**
|
|
283
|
-
* Structure of GraphQLClient.RequestGetRollupBlockInput
|
|
327
|
+
* Structure of GraphQLClient.RequestGetRollupBlockInput
|
|
328
|
+
*
|
|
329
|
+
* Checkout the following snippet for the format of RequestGetRollupBlockInput:
|
|
330
|
+
* ```json
|
|
331
|
+
{
|
|
332
|
+
"hash": "abc",
|
|
333
|
+
"height": 123,
|
|
334
|
+
"rollupAddress": "abc"
|
|
335
|
+
}
|
|
336
|
+
* ```
|
|
284
337
|
*
|
|
285
338
|
* @memberof GraphQLClient
|
|
286
339
|
* @typedef {object} GraphQLClient.RequestGetRollupBlockInput
|
|
@@ -300,7 +353,14 @@
|
|
|
300
353
|
*/
|
|
301
354
|
|
|
302
355
|
/**
|
|
303
|
-
* Structure of GraphQLClient.RequestGetTokenDistributionInput
|
|
356
|
+
* Structure of GraphQLClient.RequestGetTokenDistributionInput
|
|
357
|
+
*
|
|
358
|
+
* Checkout the following snippet for the format of RequestGetTokenDistributionInput:
|
|
359
|
+
* ```json
|
|
360
|
+
{
|
|
361
|
+
"tokenAddress": "abc"
|
|
362
|
+
}
|
|
363
|
+
* ```
|
|
304
364
|
*
|
|
305
365
|
* @memberof GraphQLClient
|
|
306
366
|
* @typedef {object} GraphQLClient.RequestGetTokenDistributionInput
|
|
@@ -308,7 +368,14 @@
|
|
|
308
368
|
*/
|
|
309
369
|
|
|
310
370
|
/**
|
|
311
|
-
* Structure of GraphQLClient.RequestGetTxInput
|
|
371
|
+
* Structure of GraphQLClient.RequestGetTxInput
|
|
372
|
+
*
|
|
373
|
+
* Checkout the following snippet for the format of RequestGetTxInput:
|
|
374
|
+
* ```json
|
|
375
|
+
{
|
|
376
|
+
"hash": "abc"
|
|
377
|
+
}
|
|
378
|
+
* ```
|
|
312
379
|
*
|
|
313
380
|
* @memberof GraphQLClient
|
|
314
381
|
* @typedef {object} GraphQLClient.RequestGetTxInput
|
|
@@ -316,7 +383,14 @@
|
|
|
316
383
|
*/
|
|
317
384
|
|
|
318
385
|
/**
|
|
319
|
-
* Structure of GraphQLClient.RequestListAssetTransactionsInput
|
|
386
|
+
* Structure of GraphQLClient.RequestListAssetTransactionsInput
|
|
387
|
+
*
|
|
388
|
+
* Checkout the following snippet for the format of RequestListAssetTransactionsInput:
|
|
389
|
+
* ```json
|
|
390
|
+
{
|
|
391
|
+
"address": "abc"
|
|
392
|
+
}
|
|
393
|
+
* ```
|
|
320
394
|
*
|
|
321
395
|
* @memberof GraphQLClient
|
|
322
396
|
* @typedef {object} GraphQLClient.RequestListAssetTransactionsInput
|
|
@@ -325,7 +399,15 @@
|
|
|
325
399
|
*/
|
|
326
400
|
|
|
327
401
|
/**
|
|
328
|
-
* Structure of GraphQLClient.RequestListAssetsInput
|
|
402
|
+
* Structure of GraphQLClient.RequestListAssetsInput
|
|
403
|
+
*
|
|
404
|
+
* Checkout the following snippet for the format of RequestListAssetsInput:
|
|
405
|
+
* ```json
|
|
406
|
+
{
|
|
407
|
+
"ownerAddress": "abc",
|
|
408
|
+
"factoryAddress": "abc"
|
|
409
|
+
}
|
|
410
|
+
* ```
|
|
329
411
|
*
|
|
330
412
|
* @memberof GraphQLClient
|
|
331
413
|
* @typedef {object} GraphQLClient.RequestListAssetsInput
|
|
@@ -336,7 +418,14 @@
|
|
|
336
418
|
*/
|
|
337
419
|
|
|
338
420
|
/**
|
|
339
|
-
* Structure of GraphQLClient.RequestListBlocksInput
|
|
421
|
+
* Structure of GraphQLClient.RequestListBlocksInput
|
|
422
|
+
*
|
|
423
|
+
* Checkout the following snippet for the format of RequestListBlocksInput:
|
|
424
|
+
* ```json
|
|
425
|
+
{
|
|
426
|
+
"proposer": "abc"
|
|
427
|
+
}
|
|
428
|
+
* ```
|
|
340
429
|
*
|
|
341
430
|
* @memberof GraphQLClient
|
|
342
431
|
* @typedef {object} GraphQLClient.RequestListBlocksInput
|
|
@@ -349,7 +438,15 @@
|
|
|
349
438
|
*/
|
|
350
439
|
|
|
351
440
|
/**
|
|
352
|
-
* Structure of GraphQLClient.RequestListDelegationsInput
|
|
441
|
+
* Structure of GraphQLClient.RequestListDelegationsInput
|
|
442
|
+
*
|
|
443
|
+
* Checkout the following snippet for the format of RequestListDelegationsInput:
|
|
444
|
+
* ```json
|
|
445
|
+
{
|
|
446
|
+
"from": "abc",
|
|
447
|
+
"to": "abc"
|
|
448
|
+
}
|
|
449
|
+
* ```
|
|
353
450
|
*
|
|
354
451
|
* @memberof GraphQLClient
|
|
355
452
|
* @typedef {object} GraphQLClient.RequestListDelegationsInput
|
|
@@ -371,7 +468,16 @@
|
|
|
371
468
|
*/
|
|
372
469
|
|
|
373
470
|
/**
|
|
374
|
-
* Structure of GraphQLClient.RequestListRollupBlocksInput
|
|
471
|
+
* Structure of GraphQLClient.RequestListRollupBlocksInput
|
|
472
|
+
*
|
|
473
|
+
* Checkout the following snippet for the format of RequestListRollupBlocksInput:
|
|
474
|
+
* ```json
|
|
475
|
+
{
|
|
476
|
+
"rollupAddress": "abc",
|
|
477
|
+
"tokenAddress": "abc",
|
|
478
|
+
"proposer": "abc"
|
|
479
|
+
}
|
|
480
|
+
* ```
|
|
375
481
|
*
|
|
376
482
|
* @memberof GraphQLClient
|
|
377
483
|
* @typedef {object} GraphQLClient.RequestListRollupBlocksInput
|
|
@@ -385,7 +491,14 @@
|
|
|
385
491
|
*/
|
|
386
492
|
|
|
387
493
|
/**
|
|
388
|
-
* Structure of GraphQLClient.RequestListRollupValidatorsInput
|
|
494
|
+
* Structure of GraphQLClient.RequestListRollupValidatorsInput
|
|
495
|
+
*
|
|
496
|
+
* Checkout the following snippet for the format of RequestListRollupValidatorsInput:
|
|
497
|
+
* ```json
|
|
498
|
+
{
|
|
499
|
+
"rollupAddress": "abc"
|
|
500
|
+
}
|
|
501
|
+
* ```
|
|
389
502
|
*
|
|
390
503
|
* @memberof GraphQLClient
|
|
391
504
|
* @typedef {object} GraphQLClient.RequestListRollupValidatorsInput
|
|
@@ -394,7 +507,15 @@
|
|
|
394
507
|
*/
|
|
395
508
|
|
|
396
509
|
/**
|
|
397
|
-
* Structure of GraphQLClient.RequestListRollupsInput
|
|
510
|
+
* Structure of GraphQLClient.RequestListRollupsInput
|
|
511
|
+
*
|
|
512
|
+
* Checkout the following snippet for the format of RequestListRollupsInput:
|
|
513
|
+
* ```json
|
|
514
|
+
{
|
|
515
|
+
"tokenAddress": "abc",
|
|
516
|
+
"foreignTokenAddress": "abc"
|
|
517
|
+
}
|
|
518
|
+
* ```
|
|
398
519
|
*
|
|
399
520
|
* @memberof GraphQLClient
|
|
400
521
|
* @typedef {object} GraphQLClient.RequestListRollupsInput
|
|
@@ -405,7 +526,12 @@
|
|
|
405
526
|
*/
|
|
406
527
|
|
|
407
528
|
/**
|
|
408
|
-
* Structure of GraphQLClient.RequestListStakesInput
|
|
529
|
+
* Structure of GraphQLClient.RequestListStakesInput
|
|
530
|
+
*
|
|
531
|
+
* Checkout the following snippet for the format of RequestListStakesInput:
|
|
532
|
+
* ```json
|
|
533
|
+
{}
|
|
534
|
+
* ```
|
|
409
535
|
*
|
|
410
536
|
* @memberof GraphQLClient
|
|
411
537
|
* @typedef {object} GraphQLClient.RequestListStakesInput
|
|
@@ -416,7 +542,17 @@
|
|
|
416
542
|
*/
|
|
417
543
|
|
|
418
544
|
/**
|
|
419
|
-
* Structure of GraphQLClient.RequestListTokenFlowsInput
|
|
545
|
+
* Structure of GraphQLClient.RequestListTokenFlowsInput
|
|
546
|
+
*
|
|
547
|
+
* Checkout the following snippet for the format of RequestListTokenFlowsInput:
|
|
548
|
+
* ```json
|
|
549
|
+
{
|
|
550
|
+
"accountAddress": "abc",
|
|
551
|
+
"tokenAddress": "abc",
|
|
552
|
+
"depth": 123,
|
|
553
|
+
"direction": "IN"
|
|
554
|
+
}
|
|
555
|
+
* ```
|
|
420
556
|
*
|
|
421
557
|
* @memberof GraphQLClient
|
|
422
558
|
* @typedef {object} GraphQLClient.RequestListTokenFlowsInput
|
|
@@ -428,7 +564,14 @@
|
|
|
428
564
|
*/
|
|
429
565
|
|
|
430
566
|
/**
|
|
431
|
-
* Structure of GraphQLClient.RequestListTokensInput
|
|
567
|
+
* Structure of GraphQLClient.RequestListTokensInput
|
|
568
|
+
*
|
|
569
|
+
* Checkout the following snippet for the format of RequestListTokensInput:
|
|
570
|
+
* ```json
|
|
571
|
+
{
|
|
572
|
+
"issuerAddress": "abc"
|
|
573
|
+
}
|
|
574
|
+
* ```
|
|
432
575
|
*
|
|
433
576
|
* @memberof GraphQLClient
|
|
434
577
|
* @typedef {object} GraphQLClient.RequestListTokensInput
|
|
@@ -438,7 +581,14 @@
|
|
|
438
581
|
*/
|
|
439
582
|
|
|
440
583
|
/**
|
|
441
|
-
* Structure of GraphQLClient.RequestListTopAccountsInput
|
|
584
|
+
* Structure of GraphQLClient.RequestListTopAccountsInput
|
|
585
|
+
*
|
|
586
|
+
* Checkout the following snippet for the format of RequestListTopAccountsInput:
|
|
587
|
+
* ```json
|
|
588
|
+
{
|
|
589
|
+
"tokenAddress": "abc"
|
|
590
|
+
}
|
|
591
|
+
* ```
|
|
442
592
|
*
|
|
443
593
|
* @memberof GraphQLClient
|
|
444
594
|
* @typedef {object} GraphQLClient.RequestListTopAccountsInput
|
|
@@ -448,7 +598,12 @@
|
|
|
448
598
|
*/
|
|
449
599
|
|
|
450
600
|
/**
|
|
451
|
-
* Structure of GraphQLClient.RequestListTransactionsInput
|
|
601
|
+
* Structure of GraphQLClient.RequestListTransactionsInput
|
|
602
|
+
*
|
|
603
|
+
* Checkout the following snippet for the format of RequestListTransactionsInput:
|
|
604
|
+
* ```json
|
|
605
|
+
{}
|
|
606
|
+
* ```
|
|
452
607
|
*
|
|
453
608
|
* @memberof GraphQLClient
|
|
454
609
|
* @typedef {object} GraphQLClient.RequestListTransactionsInput
|
|
@@ -469,7 +624,14 @@
|
|
|
469
624
|
*/
|
|
470
625
|
|
|
471
626
|
/**
|
|
472
|
-
* Structure of GraphQLClient.RequestSearchInput
|
|
627
|
+
* Structure of GraphQLClient.RequestSearchInput
|
|
628
|
+
*
|
|
629
|
+
* Checkout the following snippet for the format of RequestSearchInput:
|
|
630
|
+
* ```json
|
|
631
|
+
{
|
|
632
|
+
"keyword": "abc"
|
|
633
|
+
}
|
|
634
|
+
* ```
|
|
473
635
|
*
|
|
474
636
|
* @memberof GraphQLClient
|
|
475
637
|
* @typedef {object} GraphQLClient.RequestSearchInput
|
|
@@ -478,7 +640,17 @@
|
|
|
478
640
|
*/
|
|
479
641
|
|
|
480
642
|
/**
|
|
481
|
-
* Structure of GraphQLClient.RequestSendTxInput
|
|
643
|
+
* Structure of GraphQLClient.RequestSendTxInput
|
|
644
|
+
*
|
|
645
|
+
* Checkout the following snippet for the format of RequestSendTxInput:
|
|
646
|
+
* ```json
|
|
647
|
+
{
|
|
648
|
+
"tx": "abc",
|
|
649
|
+
"token": "abc",
|
|
650
|
+
"commit": true,
|
|
651
|
+
"extra": "abc"
|
|
652
|
+
}
|
|
653
|
+
* ```
|
|
482
654
|
*
|
|
483
655
|
* @memberof GraphQLClient
|
|
484
656
|
* @typedef {object} GraphQLClient.RequestSendTxInput
|
|
@@ -490,7 +662,15 @@
|
|
|
490
662
|
*/
|
|
491
663
|
|
|
492
664
|
/**
|
|
493
|
-
* Structure of GraphQLClient.RequestVerifyAccountRiskInput
|
|
665
|
+
* Structure of GraphQLClient.RequestVerifyAccountRiskInput
|
|
666
|
+
*
|
|
667
|
+
* Checkout the following snippet for the format of RequestVerifyAccountRiskInput:
|
|
668
|
+
* ```json
|
|
669
|
+
{
|
|
670
|
+
"accountAddress": "abc",
|
|
671
|
+
"tokenAddress": "abc"
|
|
672
|
+
}
|
|
673
|
+
* ```
|
|
494
674
|
*
|
|
495
675
|
* @memberof GraphQLClient
|
|
496
676
|
* @typedef {object} GraphQLClient.RequestVerifyAccountRiskInput
|
|
@@ -2532,6 +2712,7 @@
|
|
|
2532
2712
|
* @typedef {object} GraphQLClient.SearchResult
|
|
2533
2713
|
* @property {string} type
|
|
2534
2714
|
* @property {string} id
|
|
2715
|
+
* @property {string} title
|
|
2535
2716
|
*/
|
|
2536
2717
|
|
|
2537
2718
|
/**
|