@ocap/client 1.14.2 → 1.14.6
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 +30 -195
- package/dist/bundle.js +3 -3
- package/dist/report.html +2 -2
- package/dist/schema/graphql.json +395 -1866
- package/dist/schema/graphql.txt +2 -2
- package/dist/types.js +43 -492
- package/dist/types.js.map +1 -1
- package/docs/QUERIES.md +35 -507
- package/docs/README.md +103 -668
- package/lib/base.js +1 -1
- package/lib/node.d.ts +30 -195
- package/lib/schema/graphql.json +395 -1866
- package/lib/schema/graphql.txt +2 -2
- package/lib/types.js +43 -492
- package/lib/types.js.map +1 -1
- package/package.json +11 -11
package/dist/types.js
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
* // getDelegateState,
|
|
16
16
|
* // getTokenState,
|
|
17
17
|
* // getEvidenceState,
|
|
18
|
-
* // getSwapState,
|
|
19
18
|
* // getForgeState,
|
|
20
19
|
* // getTx,
|
|
21
20
|
* // getBlock,
|
|
@@ -23,18 +22,12 @@
|
|
|
23
22
|
* // getUnconfirmedTxs,
|
|
24
23
|
* // getChainInfo,
|
|
25
24
|
* // getConfig,
|
|
26
|
-
* // getHealthStatus,
|
|
27
25
|
* // getNetInfo,
|
|
28
26
|
* // getNodeInfo,
|
|
29
27
|
* // getValidatorsInfo,
|
|
30
|
-
* // getForgeStats,
|
|
31
|
-
* // getForgeStatsByDay,
|
|
32
|
-
* // getForgeStatsByHour,
|
|
33
|
-
* // getSwapStatistics,
|
|
34
28
|
* // listAssetTransactions,
|
|
35
29
|
* // listAssets,
|
|
36
30
|
* // listBlocks,
|
|
37
|
-
* // listSwap,
|
|
38
31
|
* // listTopAccounts,
|
|
39
32
|
* // listTransactions,
|
|
40
33
|
* // listTokens,
|
|
@@ -171,23 +164,6 @@
|
|
|
171
164
|
* @property {Array<string>} assets
|
|
172
165
|
*/
|
|
173
166
|
|
|
174
|
-
/**
|
|
175
|
-
* Structure of GraphQLClient.ByDayInput
|
|
176
|
-
*
|
|
177
|
-
* @memberof GraphQLClient
|
|
178
|
-
* @typedef {object} GraphQLClient.ByDayInput
|
|
179
|
-
* @property {string} startDate
|
|
180
|
-
* @property {string} endDate
|
|
181
|
-
*/
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Structure of GraphQLClient.ByHourInput
|
|
185
|
-
*
|
|
186
|
-
* @memberof GraphQLClient
|
|
187
|
-
* @typedef {object} GraphQLClient.ByHourInput
|
|
188
|
-
* @property {string} date
|
|
189
|
-
*/
|
|
190
|
-
|
|
191
167
|
/**
|
|
192
168
|
* Structure of GraphQLClient.FactoryFilterInput
|
|
193
169
|
*
|
|
@@ -287,14 +263,6 @@
|
|
|
287
263
|
* @property {number} height
|
|
288
264
|
*/
|
|
289
265
|
|
|
290
|
-
/**
|
|
291
|
-
* Structure of GraphQLClient.RequestGetSwapStatisticsInput
|
|
292
|
-
*
|
|
293
|
-
* @memberof GraphQLClient
|
|
294
|
-
* @typedef {object} GraphQLClient.RequestGetSwapStatisticsInput
|
|
295
|
-
* @property {string} address
|
|
296
|
-
*/
|
|
297
|
-
|
|
298
266
|
/**
|
|
299
267
|
* Structure of GraphQLClient.RequestGetTxInput
|
|
300
268
|
*
|
|
@@ -390,17 +358,6 @@
|
|
|
390
358
|
* @property {...GraphQLClient.AssetFilterInput} assetFilter
|
|
391
359
|
*/
|
|
392
360
|
|
|
393
|
-
/**
|
|
394
|
-
* Structure of GraphQLClient.RequestListSwapInput
|
|
395
|
-
*
|
|
396
|
-
* @memberof GraphQLClient
|
|
397
|
-
* @typedef {object} GraphQLClient.RequestListSwapInput
|
|
398
|
-
* @property {...GraphQLClient.PageInput} paging
|
|
399
|
-
* @property {string} sender
|
|
400
|
-
* @property {string} receiver
|
|
401
|
-
* @property {boolean} available
|
|
402
|
-
*/
|
|
403
|
-
|
|
404
361
|
/**
|
|
405
362
|
* Structure of GraphQLClient.RequestListTokensInput
|
|
406
363
|
*
|
|
@@ -537,15 +494,6 @@
|
|
|
537
494
|
* @property {...GraphQLClient.RoleType} role
|
|
538
495
|
*/
|
|
539
496
|
|
|
540
|
-
/**
|
|
541
|
-
* Structure of GraphQLClient.AbciServerStatus
|
|
542
|
-
*
|
|
543
|
-
* @memberof GraphQLClient
|
|
544
|
-
* @typedef {object} GraphQLClient.AbciServerStatus
|
|
545
|
-
* @property {string} abciConsensus
|
|
546
|
-
* @property {string} abciInfo
|
|
547
|
-
*/
|
|
548
|
-
|
|
549
497
|
/**
|
|
550
498
|
* Structure of GraphQLClient.AccountConfig
|
|
551
499
|
*
|
|
@@ -603,10 +551,6 @@
|
|
|
603
551
|
* @property {Array<string>} migratedTo
|
|
604
552
|
* @property {Array<string>} migratedFrom
|
|
605
553
|
* @property {string} numAssets
|
|
606
|
-
* @property {...GraphQLClient.StakeContext} stake
|
|
607
|
-
* @property {...GraphQLClient.CircularQueue} pinnedFiles
|
|
608
|
-
* @property {string} depositReceived
|
|
609
|
-
* @property {...GraphQLClient.CircularQueue} withdrawItems
|
|
610
554
|
* @property {Array<...GraphQLClient.IndexedTokenInput>} tokens
|
|
611
555
|
* @property {...GraphQLClient.Any} data
|
|
612
556
|
*/
|
|
@@ -631,7 +575,7 @@
|
|
|
631
575
|
* @property {string} address
|
|
632
576
|
* @property {Array<string>} assets
|
|
633
577
|
* @property {Array<...GraphQLClient.VariableInput>} variables
|
|
634
|
-
* @property {...GraphQLClient.
|
|
578
|
+
* @property {...GraphQLClient.NFTIssuer} issuer
|
|
635
579
|
* @property {...GraphQLClient.Any} data
|
|
636
580
|
*/
|
|
637
581
|
|
|
@@ -645,7 +589,7 @@
|
|
|
645
589
|
* @property {Array<...GraphQLClient.TransactionInput>} inputs
|
|
646
590
|
* @property {string} owner
|
|
647
591
|
* @property {Array<...GraphQLClient.VariableInput>} variables
|
|
648
|
-
* @property {...GraphQLClient.
|
|
592
|
+
* @property {...GraphQLClient.NFTIssuer} issuer
|
|
649
593
|
* @property {...GraphQLClient.Any} data
|
|
650
594
|
*/
|
|
651
595
|
|
|
@@ -658,15 +602,6 @@
|
|
|
658
602
|
* @property {string} value
|
|
659
603
|
*/
|
|
660
604
|
|
|
661
|
-
/**
|
|
662
|
-
* Structure of GraphQLClient.AssetDisplay
|
|
663
|
-
*
|
|
664
|
-
* @memberof GraphQLClient
|
|
665
|
-
* @typedef {object} GraphQLClient.AssetDisplay
|
|
666
|
-
* @property {string} type
|
|
667
|
-
* @property {string} content
|
|
668
|
-
*/
|
|
669
|
-
|
|
670
605
|
/**
|
|
671
606
|
* Structure of GraphQLClient.AssetFactoryHook
|
|
672
607
|
*
|
|
@@ -708,20 +643,10 @@
|
|
|
708
643
|
* @property {string} balance
|
|
709
644
|
* @property {Array<...GraphQLClient.IndexedTokenInput>} tokens
|
|
710
645
|
* @property {number} numMinted
|
|
711
|
-
* @property {...GraphQLClient.
|
|
646
|
+
* @property {...GraphQLClient.NFTDisplay} display
|
|
712
647
|
* @property {string} lastSettlement
|
|
713
648
|
*/
|
|
714
649
|
|
|
715
|
-
/**
|
|
716
|
-
* Structure of GraphQLClient.AssetIssuer
|
|
717
|
-
*
|
|
718
|
-
* @memberof GraphQLClient
|
|
719
|
-
* @typedef {object} GraphQLClient.AssetIssuer
|
|
720
|
-
* @property {string} id
|
|
721
|
-
* @property {string} pk
|
|
722
|
-
* @property {string} name
|
|
723
|
-
*/
|
|
724
|
-
|
|
725
650
|
/**
|
|
726
651
|
* Structure of GraphQLClient.AssetState
|
|
727
652
|
*
|
|
@@ -736,7 +661,9 @@
|
|
|
736
661
|
* @property {string} consumedTime
|
|
737
662
|
* @property {string} issuer
|
|
738
663
|
* @property {string} parent
|
|
739
|
-
* @property {...GraphQLClient.
|
|
664
|
+
* @property {...GraphQLClient.NFTEndpoint} endpoint
|
|
665
|
+
* @property {...GraphQLClient.NFTDisplay} display
|
|
666
|
+
* @property {Array<string>} tags
|
|
740
667
|
* @property {...GraphQLClient.StateContext} context
|
|
741
668
|
* @property {...GraphQLClient.Any} data
|
|
742
669
|
*/
|
|
@@ -831,18 +758,6 @@
|
|
|
831
758
|
* @property {string} value
|
|
832
759
|
*/
|
|
833
760
|
|
|
834
|
-
/**
|
|
835
|
-
* Structure of GraphQLClient.CircularQueue
|
|
836
|
-
*
|
|
837
|
-
* @memberof GraphQLClient
|
|
838
|
-
* @typedef {object} GraphQLClient.CircularQueue
|
|
839
|
-
* @property {Array<string>} items
|
|
840
|
-
* @property {string} typeUrl
|
|
841
|
-
* @property {number} maxItems
|
|
842
|
-
* @property {boolean} circular
|
|
843
|
-
* @property {boolean} fifo
|
|
844
|
-
*/
|
|
845
|
-
|
|
846
761
|
/**
|
|
847
762
|
* Structure of GraphQLClient.ClaimBlockRewardTx
|
|
848
763
|
*
|
|
@@ -913,34 +828,7 @@
|
|
|
913
828
|
*/
|
|
914
829
|
|
|
915
830
|
/**
|
|
916
|
-
* Structure of GraphQLClient.
|
|
917
|
-
*
|
|
918
|
-
* @memberof GraphQLClient
|
|
919
|
-
* @typedef {object} GraphQLClient.ConsensusStatus
|
|
920
|
-
* @property {boolean} health
|
|
921
|
-
* @property {boolean} synced
|
|
922
|
-
* @property {string} blockHeight
|
|
923
|
-
*/
|
|
924
|
-
|
|
925
|
-
/**
|
|
926
|
-
* Structure of GraphQLClient.CreateAssetTx
|
|
927
|
-
*
|
|
928
|
-
* Checkout the following snippet for the format of CreateAssetTx:
|
|
929
|
-
* ```json
|
|
930
|
-
{
|
|
931
|
-
"moniker": "abc",
|
|
932
|
-
"data": {
|
|
933
|
-
"typeUrl": "abc",
|
|
934
|
-
"value": "abc"
|
|
935
|
-
},
|
|
936
|
-
"readonly": true,
|
|
937
|
-
"transferrable": true,
|
|
938
|
-
"ttl": 123,
|
|
939
|
-
"parent": "abc",
|
|
940
|
-
"address": "abc",
|
|
941
|
-
"issuer": "abc"
|
|
942
|
-
}
|
|
943
|
-
* ```
|
|
831
|
+
* Structure of GraphQLClient.CreateAssetTx
|
|
944
832
|
*
|
|
945
833
|
* @memberof GraphQLClient
|
|
946
834
|
* @typedef {object} GraphQLClient.CreateAssetTx
|
|
@@ -952,6 +840,9 @@
|
|
|
952
840
|
* @property {string} parent
|
|
953
841
|
* @property {string} address
|
|
954
842
|
* @property {string} issuer
|
|
843
|
+
* @property {...GraphQLClient.NFTEndpoint} endpoint
|
|
844
|
+
* @property {...GraphQLClient.NFTDisplay} display
|
|
845
|
+
* @property {Array<string>} tags
|
|
955
846
|
*/
|
|
956
847
|
|
|
957
848
|
/**
|
|
@@ -968,7 +859,7 @@
|
|
|
968
859
|
* @property {...GraphQLClient.CreateAssetTx} output
|
|
969
860
|
* @property {Array<...GraphQLClient.AssetFactoryHook>} hooks
|
|
970
861
|
* @property {string} address
|
|
971
|
-
* @property {...GraphQLClient.
|
|
862
|
+
* @property {...GraphQLClient.NFTDisplay} display
|
|
972
863
|
* @property {...GraphQLClient.Any} data
|
|
973
864
|
*/
|
|
974
865
|
|
|
@@ -1190,15 +1081,6 @@
|
|
|
1190
1081
|
* @property {...GraphQLClient.Any} data
|
|
1191
1082
|
*/
|
|
1192
1083
|
|
|
1193
|
-
/**
|
|
1194
|
-
* Structure of GraphQLClient.DiskSpaceStatus
|
|
1195
|
-
*
|
|
1196
|
-
* @memberof GraphQLClient
|
|
1197
|
-
* @typedef {object} GraphQLClient.DiskSpaceStatus
|
|
1198
|
-
* @property {string} forgeUsage
|
|
1199
|
-
* @property {string} total
|
|
1200
|
-
*/
|
|
1201
|
-
|
|
1202
1084
|
/**
|
|
1203
1085
|
* Structure of GraphQLClient.Evidence
|
|
1204
1086
|
*
|
|
@@ -1297,43 +1179,6 @@
|
|
|
1297
1179
|
* @property {...GraphQLClient.UpgradeTasks} value
|
|
1298
1180
|
*/
|
|
1299
1181
|
|
|
1300
|
-
/**
|
|
1301
|
-
* Structure of GraphQLClient.ForgeStats
|
|
1302
|
-
*
|
|
1303
|
-
* @memberof GraphQLClient
|
|
1304
|
-
* @typedef {object} GraphQLClient.ForgeStats
|
|
1305
|
-
* @property {Array<string>} numBlocks
|
|
1306
|
-
* @property {Array<string>} numTxs
|
|
1307
|
-
* @property {Array<string>} numStakes
|
|
1308
|
-
* @property {Array<number>} numValidators
|
|
1309
|
-
* @property {Array<string>} numAccountMigrateTxs
|
|
1310
|
-
* @property {Array<string>} numCreateAssetTxs
|
|
1311
|
-
* @property {Array<number>} numConsensusUpgradeTxs
|
|
1312
|
-
* @property {Array<string>} numDeclareTxs
|
|
1313
|
-
* @property {Array<string>} numDeclareFileTxs
|
|
1314
|
-
* @property {Array<string>} numExchangeTxs
|
|
1315
|
-
* @property {Array<string>} numStakeTxs
|
|
1316
|
-
* @property {Array<number>} numSysUpgradeTxs
|
|
1317
|
-
* @property {Array<string>} numTransferTxs
|
|
1318
|
-
* @property {Array<string>} numUpdateAssetTxs
|
|
1319
|
-
* @property {Array<string>} numConsumeAssetTxs
|
|
1320
|
-
* @property {Array<number>} tps
|
|
1321
|
-
* @property {number} maxTps
|
|
1322
|
-
* @property {number} avgTps
|
|
1323
|
-
* @property {number} avgBlockTime
|
|
1324
|
-
*/
|
|
1325
|
-
|
|
1326
|
-
/**
|
|
1327
|
-
* Structure of GraphQLClient.ForgeStatus
|
|
1328
|
-
*
|
|
1329
|
-
* @memberof GraphQLClient
|
|
1330
|
-
* @typedef {object} GraphQLClient.ForgeStatus
|
|
1331
|
-
* @property {boolean} health
|
|
1332
|
-
* @property {string} abiServer
|
|
1333
|
-
* @property {string} forgeWeb
|
|
1334
|
-
* @property {...GraphQLClient.AbciServerStatus} abciServer
|
|
1335
|
-
*/
|
|
1336
|
-
|
|
1337
1182
|
/**
|
|
1338
1183
|
* Structure of GraphQLClient.ForgeToken
|
|
1339
1184
|
*
|
|
@@ -1362,17 +1207,6 @@
|
|
|
1362
1207
|
* @property {number} longitude
|
|
1363
1208
|
*/
|
|
1364
1209
|
|
|
1365
|
-
/**
|
|
1366
|
-
* Structure of GraphQLClient.HealthStatus
|
|
1367
|
-
*
|
|
1368
|
-
* @memberof GraphQLClient
|
|
1369
|
-
* @typedef {object} GraphQLClient.HealthStatus
|
|
1370
|
-
* @property {...GraphQLClient.ConsensusStatus} consensus
|
|
1371
|
-
* @property {...GraphQLClient.NetworkStatus} network
|
|
1372
|
-
* @property {...GraphQLClient.StorageStatus} storage
|
|
1373
|
-
* @property {...GraphQLClient.ForgeStatus} forge
|
|
1374
|
-
*/
|
|
1375
|
-
|
|
1376
1210
|
/**
|
|
1377
1211
|
* Structure of GraphQLClient.IndexedAccountState
|
|
1378
1212
|
*
|
|
@@ -1411,6 +1245,9 @@
|
|
|
1411
1245
|
* @property {string} parent
|
|
1412
1246
|
* @property {boolean} transferrable
|
|
1413
1247
|
* @property {string} ttl
|
|
1248
|
+
* @property {...GraphQLClient.NFTDisplay} display
|
|
1249
|
+
* @property {...GraphQLClient.NFTEndpoint} endpoint
|
|
1250
|
+
* @property {Array<string>} tags
|
|
1414
1251
|
* @property {...GraphQLClient.Any} data
|
|
1415
1252
|
*/
|
|
1416
1253
|
|
|
@@ -1459,7 +1296,7 @@
|
|
|
1459
1296
|
* @property {string} lastSettlement
|
|
1460
1297
|
* @property {string} genesisTime
|
|
1461
1298
|
* @property {string} renaissanceTime
|
|
1462
|
-
* @property {...GraphQLClient.
|
|
1299
|
+
* @property {...GraphQLClient.NFTDisplay} display
|
|
1463
1300
|
*/
|
|
1464
1301
|
|
|
1465
1302
|
/**
|
|
@@ -1733,6 +1570,34 @@
|
|
|
1733
1570
|
* @property {...GraphQLClient.Any} data
|
|
1734
1571
|
*/
|
|
1735
1572
|
|
|
1573
|
+
/**
|
|
1574
|
+
* Structure of GraphQLClient.NFTDisplay
|
|
1575
|
+
*
|
|
1576
|
+
* @memberof GraphQLClient
|
|
1577
|
+
* @typedef {object} GraphQLClient.NFTDisplay
|
|
1578
|
+
* @property {string} type
|
|
1579
|
+
* @property {string} content
|
|
1580
|
+
*/
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* Structure of GraphQLClient.NFTEndpoint
|
|
1584
|
+
*
|
|
1585
|
+
* @memberof GraphQLClient
|
|
1586
|
+
* @typedef {object} GraphQLClient.NFTEndpoint
|
|
1587
|
+
* @property {string} id
|
|
1588
|
+
* @property {string} scope
|
|
1589
|
+
*/
|
|
1590
|
+
|
|
1591
|
+
/**
|
|
1592
|
+
* Structure of GraphQLClient.NFTIssuer
|
|
1593
|
+
*
|
|
1594
|
+
* @memberof GraphQLClient
|
|
1595
|
+
* @typedef {object} GraphQLClient.NFTIssuer
|
|
1596
|
+
* @property {string} id
|
|
1597
|
+
* @property {string} pk
|
|
1598
|
+
* @property {string} name
|
|
1599
|
+
*/
|
|
1600
|
+
|
|
1736
1601
|
/**
|
|
1737
1602
|
* Structure of GraphQLClient.NetInfo
|
|
1738
1603
|
*
|
|
@@ -1744,15 +1609,6 @@
|
|
|
1744
1609
|
* @property {Array<...GraphQLClient.PeerInfo>} peers
|
|
1745
1610
|
*/
|
|
1746
1611
|
|
|
1747
|
-
/**
|
|
1748
|
-
* Structure of GraphQLClient.NetworkStatus
|
|
1749
|
-
*
|
|
1750
|
-
* @memberof GraphQLClient
|
|
1751
|
-
* @typedef {object} GraphQLClient.NetworkStatus
|
|
1752
|
-
* @property {boolean} health
|
|
1753
|
-
* @property {number} numPeers
|
|
1754
|
-
*/
|
|
1755
|
-
|
|
1756
1612
|
/**
|
|
1757
1613
|
* Structure of GraphQLClient.NodeInfo
|
|
1758
1614
|
*
|
|
@@ -1966,60 +1822,6 @@
|
|
|
1966
1822
|
* @property {...GraphQLClient.ForgeState} state
|
|
1967
1823
|
*/
|
|
1968
1824
|
|
|
1969
|
-
/**
|
|
1970
|
-
* Structure of GraphQLClient.ResponseGetForgeStats
|
|
1971
|
-
*
|
|
1972
|
-
* @memberof GraphQLClient
|
|
1973
|
-
* @typedef {object} GraphQLClient.ResponseGetForgeStats
|
|
1974
|
-
* @property {string} code
|
|
1975
|
-
* @property {...GraphQLClient.ForgeStats} forgeStats
|
|
1976
|
-
*/
|
|
1977
|
-
|
|
1978
|
-
/**
|
|
1979
|
-
* Structure of GraphQLClient.ResponseGetHealthStatus
|
|
1980
|
-
*
|
|
1981
|
-
* Checkout the following snippet for the format of ResponseGetHealthStatus:
|
|
1982
|
-
* ```json
|
|
1983
|
-
{
|
|
1984
|
-
"code": "abc",
|
|
1985
|
-
"healthStatus": {
|
|
1986
|
-
"consensus": {
|
|
1987
|
-
"health": true,
|
|
1988
|
-
"synced": true,
|
|
1989
|
-
"blockHeight": "abc"
|
|
1990
|
-
},
|
|
1991
|
-
"network": {
|
|
1992
|
-
"health": true,
|
|
1993
|
-
"numPeers": 123
|
|
1994
|
-
},
|
|
1995
|
-
"storage": {
|
|
1996
|
-
"health": true,
|
|
1997
|
-
"indexerServer": "abc",
|
|
1998
|
-
"stateDb": "abc",
|
|
1999
|
-
"diskSpace": {
|
|
2000
|
-
"forgeUsage": "abc",
|
|
2001
|
-
"total": "abc"
|
|
2002
|
-
}
|
|
2003
|
-
},
|
|
2004
|
-
"forge": {
|
|
2005
|
-
"health": true,
|
|
2006
|
-
"abiServer": "abc",
|
|
2007
|
-
"forgeWeb": "abc",
|
|
2008
|
-
"abciServer": {
|
|
2009
|
-
"abciConsensus": "abc",
|
|
2010
|
-
"abciInfo": "abc"
|
|
2011
|
-
}
|
|
2012
|
-
}
|
|
2013
|
-
}
|
|
2014
|
-
}
|
|
2015
|
-
* ```
|
|
2016
|
-
*
|
|
2017
|
-
* @memberof GraphQLClient
|
|
2018
|
-
* @typedef {object} GraphQLClient.ResponseGetHealthStatus
|
|
2019
|
-
* @property {string} code
|
|
2020
|
-
* @property {...GraphQLClient.HealthStatus} healthStatus
|
|
2021
|
-
*/
|
|
2022
|
-
|
|
2023
1825
|
/**
|
|
2024
1826
|
* Structure of GraphQLClient.ResponseGetNetInfo
|
|
2025
1827
|
*
|
|
@@ -2065,38 +1867,6 @@
|
|
|
2065
1867
|
* @property {...GraphQLClient.StakeState} state
|
|
2066
1868
|
*/
|
|
2067
1869
|
|
|
2068
|
-
/**
|
|
2069
|
-
* Structure of GraphQLClient.ResponseGetSwapState
|
|
2070
|
-
*
|
|
2071
|
-
* @memberof GraphQLClient
|
|
2072
|
-
* @typedef {object} GraphQLClient.ResponseGetSwapState
|
|
2073
|
-
* @property {string} code
|
|
2074
|
-
* @property {...GraphQLClient.SwapState} state
|
|
2075
|
-
*/
|
|
2076
|
-
|
|
2077
|
-
/**
|
|
2078
|
-
* Structure of GraphQLClient.ResponseGetSwapStatistics
|
|
2079
|
-
*
|
|
2080
|
-
* Checkout the following snippet for the format of ResponseGetSwapStatistics:
|
|
2081
|
-
* ```json
|
|
2082
|
-
{
|
|
2083
|
-
"code": "abc",
|
|
2084
|
-
"statistics": {
|
|
2085
|
-
"address": "abc",
|
|
2086
|
-
"lockedValueOut": "abc",
|
|
2087
|
-
"lockedValueIn": "abc",
|
|
2088
|
-
"lockedAssetsOut": 123,
|
|
2089
|
-
"lockedAssetsIn": 123
|
|
2090
|
-
}
|
|
2091
|
-
}
|
|
2092
|
-
* ```
|
|
2093
|
-
*
|
|
2094
|
-
* @memberof GraphQLClient
|
|
2095
|
-
* @typedef {object} GraphQLClient.ResponseGetSwapStatistics
|
|
2096
|
-
* @property {string} code
|
|
2097
|
-
* @property {...GraphQLClient.SwapStatistics} statistics
|
|
2098
|
-
*/
|
|
2099
|
-
|
|
2100
1870
|
/**
|
|
2101
1871
|
* Structure of GraphQLClient.ResponseGetTokenState
|
|
2102
1872
|
*
|
|
@@ -2214,16 +1984,6 @@
|
|
|
2214
1984
|
* @property {Array<...GraphQLClient.IndexedStakeState>} stakes
|
|
2215
1985
|
*/
|
|
2216
1986
|
|
|
2217
|
-
/**
|
|
2218
|
-
* Structure of GraphQLClient.ResponseListSwap
|
|
2219
|
-
*
|
|
2220
|
-
* @memberof GraphQLClient
|
|
2221
|
-
* @typedef {object} GraphQLClient.ResponseListSwap
|
|
2222
|
-
* @property {string} code
|
|
2223
|
-
* @property {...GraphQLClient.PageInfo} page
|
|
2224
|
-
* @property {Array<...GraphQLClient.SwapState>} swap
|
|
2225
|
-
*/
|
|
2226
|
-
|
|
2227
1987
|
/**
|
|
2228
1988
|
* Structure of GraphQLClient.ResponseListTokens
|
|
2229
1989
|
*
|
|
@@ -2409,18 +2169,6 @@
|
|
|
2409
2169
|
* @property {string} id
|
|
2410
2170
|
*/
|
|
2411
2171
|
|
|
2412
|
-
/**
|
|
2413
|
-
* Structure of GraphQLClient.StakeContext
|
|
2414
|
-
*
|
|
2415
|
-
* @memberof GraphQLClient
|
|
2416
|
-
* @typedef {object} GraphQLClient.StakeContext
|
|
2417
|
-
* @property {string} totalStakes
|
|
2418
|
-
* @property {string} totalUnstakes
|
|
2419
|
-
* @property {string} totalReceivedStakes
|
|
2420
|
-
* @property {...GraphQLClient.CircularQueue} recentStakes
|
|
2421
|
-
* @property {...GraphQLClient.CircularQueue} recentReceivedStakes
|
|
2422
|
-
*/
|
|
2423
|
-
|
|
2424
2172
|
/**
|
|
2425
2173
|
* Structure of GraphQLClient.StakeState
|
|
2426
2174
|
*
|
|
@@ -2465,46 +2213,6 @@
|
|
|
2465
2213
|
* @property {string} renaissanceTime
|
|
2466
2214
|
*/
|
|
2467
2215
|
|
|
2468
|
-
/**
|
|
2469
|
-
* Structure of GraphQLClient.StorageStatus
|
|
2470
|
-
*
|
|
2471
|
-
* @memberof GraphQLClient
|
|
2472
|
-
* @typedef {object} GraphQLClient.StorageStatus
|
|
2473
|
-
* @property {boolean} health
|
|
2474
|
-
* @property {string} indexerServer
|
|
2475
|
-
* @property {string} stateDb
|
|
2476
|
-
* @property {...GraphQLClient.DiskSpaceStatus} diskSpace
|
|
2477
|
-
*/
|
|
2478
|
-
|
|
2479
|
-
/**
|
|
2480
|
-
* Structure of GraphQLClient.SwapState
|
|
2481
|
-
*
|
|
2482
|
-
* @memberof GraphQLClient
|
|
2483
|
-
* @typedef {object} GraphQLClient.SwapState
|
|
2484
|
-
* @property {string} hash
|
|
2485
|
-
* @property {string} address
|
|
2486
|
-
* @property {string} hashkey
|
|
2487
|
-
* @property {string} sender
|
|
2488
|
-
* @property {string} receiver
|
|
2489
|
-
* @property {string} value
|
|
2490
|
-
* @property {Array<string>} assets
|
|
2491
|
-
* @property {number} locktime
|
|
2492
|
-
* @property {string} hashlock
|
|
2493
|
-
* @property {...GraphQLClient.StateContext} context
|
|
2494
|
-
*/
|
|
2495
|
-
|
|
2496
|
-
/**
|
|
2497
|
-
* Structure of GraphQLClient.SwapStatistics
|
|
2498
|
-
*
|
|
2499
|
-
* @memberof GraphQLClient
|
|
2500
|
-
* @typedef {object} GraphQLClient.SwapStatistics
|
|
2501
|
-
* @property {string} address
|
|
2502
|
-
* @property {string} lockedValueOut
|
|
2503
|
-
* @property {string} lockedValueIn
|
|
2504
|
-
* @property {number} lockedAssetsOut
|
|
2505
|
-
* @property {number} lockedAssetsIn
|
|
2506
|
-
*/
|
|
2507
|
-
|
|
2508
2216
|
/**
|
|
2509
2217
|
* Structure of GraphQLClient.TokenInfo
|
|
2510
2218
|
*
|
|
@@ -3011,27 +2719,6 @@
|
|
|
3011
2719
|
* @property {string} hash
|
|
3012
2720
|
*/
|
|
3013
2721
|
|
|
3014
|
-
/**
|
|
3015
|
-
* Structure of GraphQLClient.GetSwapStateParams
|
|
3016
|
-
*
|
|
3017
|
-
* Checkout the following snippet for the format of GetSwapStateParams:
|
|
3018
|
-
* ```json
|
|
3019
|
-
{
|
|
3020
|
-
"address": "abc",
|
|
3021
|
-
"height": "abc",
|
|
3022
|
-
"keys": [
|
|
3023
|
-
"abc"
|
|
3024
|
-
]
|
|
3025
|
-
}
|
|
3026
|
-
* ```
|
|
3027
|
-
*
|
|
3028
|
-
* @memberof GraphQLClient
|
|
3029
|
-
* @typedef {object} GraphQLClient.GetSwapStateParams
|
|
3030
|
-
* @property {string} address
|
|
3031
|
-
* @property {string} height
|
|
3032
|
-
* @property {Array<string>} keys
|
|
3033
|
-
*/
|
|
3034
|
-
|
|
3035
2722
|
/**
|
|
3036
2723
|
* Structure of GraphQLClient.GetForgeStateParams
|
|
3037
2724
|
*
|
|
@@ -3126,53 +2813,6 @@
|
|
|
3126
2813
|
* @property {boolean} parsed
|
|
3127
2814
|
*/
|
|
3128
2815
|
|
|
3129
|
-
/**
|
|
3130
|
-
* Structure of GraphQLClient.GetForgeStatsByDayParams
|
|
3131
|
-
*
|
|
3132
|
-
* Checkout the following snippet for the format of GetForgeStatsByDayParams:
|
|
3133
|
-
* ```json
|
|
3134
|
-
{
|
|
3135
|
-
"endDate": "abc",
|
|
3136
|
-
"startDate": "abc"
|
|
3137
|
-
}
|
|
3138
|
-
* ```
|
|
3139
|
-
*
|
|
3140
|
-
* @memberof GraphQLClient
|
|
3141
|
-
* @typedef {object} GraphQLClient.GetForgeStatsByDayParams
|
|
3142
|
-
* @property {string} endDate
|
|
3143
|
-
* @property {string} startDate
|
|
3144
|
-
*/
|
|
3145
|
-
|
|
3146
|
-
/**
|
|
3147
|
-
* Structure of GraphQLClient.GetForgeStatsByHourParams
|
|
3148
|
-
*
|
|
3149
|
-
* Checkout the following snippet for the format of GetForgeStatsByHourParams:
|
|
3150
|
-
* ```json
|
|
3151
|
-
{
|
|
3152
|
-
"date": "abc"
|
|
3153
|
-
}
|
|
3154
|
-
* ```
|
|
3155
|
-
*
|
|
3156
|
-
* @memberof GraphQLClient
|
|
3157
|
-
* @typedef {object} GraphQLClient.GetForgeStatsByHourParams
|
|
3158
|
-
* @property {string} date
|
|
3159
|
-
*/
|
|
3160
|
-
|
|
3161
|
-
/**
|
|
3162
|
-
* Structure of GraphQLClient.GetSwapStatisticsParams
|
|
3163
|
-
*
|
|
3164
|
-
* Checkout the following snippet for the format of GetSwapStatisticsParams:
|
|
3165
|
-
* ```json
|
|
3166
|
-
{
|
|
3167
|
-
"address": "abc"
|
|
3168
|
-
}
|
|
3169
|
-
* ```
|
|
3170
|
-
*
|
|
3171
|
-
* @memberof GraphQLClient
|
|
3172
|
-
* @typedef {object} GraphQLClient.GetSwapStatisticsParams
|
|
3173
|
-
* @property {string} address
|
|
3174
|
-
*/
|
|
3175
|
-
|
|
3176
2816
|
/**
|
|
3177
2817
|
* Structure of GraphQLClient.ListAssetTransactionsParams
|
|
3178
2818
|
*
|
|
@@ -3228,27 +2868,6 @@
|
|
|
3228
2868
|
* @property {...GraphQLClient.TimeFilterInput} timeFilter
|
|
3229
2869
|
*/
|
|
3230
2870
|
|
|
3231
|
-
/**
|
|
3232
|
-
* Structure of GraphQLClient.ListSwapParams
|
|
3233
|
-
*
|
|
3234
|
-
* Checkout the following snippet for the format of ListSwapParams:
|
|
3235
|
-
* ```json
|
|
3236
|
-
{
|
|
3237
|
-
"available": true,
|
|
3238
|
-
"paging": "abc",
|
|
3239
|
-
"receiver": "abc",
|
|
3240
|
-
"sender": "abc"
|
|
3241
|
-
}
|
|
3242
|
-
* ```
|
|
3243
|
-
*
|
|
3244
|
-
* @memberof GraphQLClient
|
|
3245
|
-
* @typedef {object} GraphQLClient.ListSwapParams
|
|
3246
|
-
* @property {boolean} available
|
|
3247
|
-
* @property {string} paging
|
|
3248
|
-
* @property {string} receiver
|
|
3249
|
-
* @property {string} sender
|
|
3250
|
-
*/
|
|
3251
|
-
|
|
3252
2871
|
/**
|
|
3253
2872
|
* Structure of GraphQLClient.ListTopAccountsParams
|
|
3254
2873
|
*
|
|
@@ -4725,16 +4344,6 @@
|
|
|
4725
4344
|
* @returns {Promise<GraphQLClient.ResponseGetEvidenceState>} Checkout {@link GraphQLClient.ResponseGetEvidenceState} for resolved data format
|
|
4726
4345
|
*/
|
|
4727
4346
|
|
|
4728
|
-
/**
|
|
4729
|
-
* getSwapState
|
|
4730
|
-
*
|
|
4731
|
-
* @name GraphQLClient#getSwapState
|
|
4732
|
-
* @param {GraphQLClient.GetSwapStateParams} params
|
|
4733
|
-
* @function
|
|
4734
|
-
* @memberof GraphQLClient
|
|
4735
|
-
* @returns {Promise<GraphQLClient.ResponseGetSwapState>} Checkout {@link GraphQLClient.ResponseGetSwapState} for resolved data format
|
|
4736
|
-
*/
|
|
4737
|
-
|
|
4738
4347
|
/**
|
|
4739
4348
|
* getForgeState
|
|
4740
4349
|
*
|
|
@@ -4804,15 +4413,6 @@
|
|
|
4804
4413
|
* @returns {Promise<GraphQLClient.ResponseGetConfig>} Checkout {@link GraphQLClient.ResponseGetConfig} for resolved data format
|
|
4805
4414
|
*/
|
|
4806
4415
|
|
|
4807
|
-
/**
|
|
4808
|
-
* getHealthStatus
|
|
4809
|
-
*
|
|
4810
|
-
* @name GraphQLClient#getHealthStatus
|
|
4811
|
-
* @function
|
|
4812
|
-
* @memberof GraphQLClient
|
|
4813
|
-
* @returns {Promise<GraphQLClient.ResponseGetHealthStatus>} Checkout {@link GraphQLClient.ResponseGetHealthStatus} for resolved data format
|
|
4814
|
-
*/
|
|
4815
|
-
|
|
4816
4416
|
/**
|
|
4817
4417
|
* getNetInfo
|
|
4818
4418
|
*
|
|
@@ -4840,45 +4440,6 @@
|
|
|
4840
4440
|
* @returns {Promise<GraphQLClient.ResponseGetValidatorsInfo>} Checkout {@link GraphQLClient.ResponseGetValidatorsInfo} for resolved data format
|
|
4841
4441
|
*/
|
|
4842
4442
|
|
|
4843
|
-
/**
|
|
4844
|
-
* getForgeStats
|
|
4845
|
-
*
|
|
4846
|
-
* @name GraphQLClient#getForgeStats
|
|
4847
|
-
* @function
|
|
4848
|
-
* @memberof GraphQLClient
|
|
4849
|
-
* @returns {Promise<GraphQLClient.ResponseGetForgeStats>} Checkout {@link GraphQLClient.ResponseGetForgeStats} for resolved data format
|
|
4850
|
-
*/
|
|
4851
|
-
|
|
4852
|
-
/**
|
|
4853
|
-
* getForgeStatsByDay
|
|
4854
|
-
*
|
|
4855
|
-
* @name GraphQLClient#getForgeStatsByDay
|
|
4856
|
-
* @param {GraphQLClient.GetForgeStatsByDayParams} params
|
|
4857
|
-
* @function
|
|
4858
|
-
* @memberof GraphQLClient
|
|
4859
|
-
* @returns {Promise<GraphQLClient.ResponseGetForgeStats>} Checkout {@link GraphQLClient.ResponseGetForgeStats} for resolved data format
|
|
4860
|
-
*/
|
|
4861
|
-
|
|
4862
|
-
/**
|
|
4863
|
-
* getForgeStatsByHour
|
|
4864
|
-
*
|
|
4865
|
-
* @name GraphQLClient#getForgeStatsByHour
|
|
4866
|
-
* @param {GraphQLClient.GetForgeStatsByHourParams} params
|
|
4867
|
-
* @function
|
|
4868
|
-
* @memberof GraphQLClient
|
|
4869
|
-
* @returns {Promise<GraphQLClient.ResponseGetForgeStats>} Checkout {@link GraphQLClient.ResponseGetForgeStats} for resolved data format
|
|
4870
|
-
*/
|
|
4871
|
-
|
|
4872
|
-
/**
|
|
4873
|
-
* getSwapStatistics
|
|
4874
|
-
*
|
|
4875
|
-
* @name GraphQLClient#getSwapStatistics
|
|
4876
|
-
* @param {GraphQLClient.GetSwapStatisticsParams} params
|
|
4877
|
-
* @function
|
|
4878
|
-
* @memberof GraphQLClient
|
|
4879
|
-
* @returns {Promise<GraphQLClient.ResponseGetSwapStatistics>} Checkout {@link GraphQLClient.ResponseGetSwapStatistics} for resolved data format
|
|
4880
|
-
*/
|
|
4881
|
-
|
|
4882
4443
|
/**
|
|
4883
4444
|
* listAssetTransactions
|
|
4884
4445
|
*
|
|
@@ -4909,16 +4470,6 @@
|
|
|
4909
4470
|
* @returns {Promise<GraphQLClient.ResponseListBlocks>} Checkout {@link GraphQLClient.ResponseListBlocks} for resolved data format
|
|
4910
4471
|
*/
|
|
4911
4472
|
|
|
4912
|
-
/**
|
|
4913
|
-
* listSwap
|
|
4914
|
-
*
|
|
4915
|
-
* @name GraphQLClient#listSwap
|
|
4916
|
-
* @param {GraphQLClient.ListSwapParams} params
|
|
4917
|
-
* @function
|
|
4918
|
-
* @memberof GraphQLClient
|
|
4919
|
-
* @returns {Promise<GraphQLClient.ResponseListSwap>} Checkout {@link GraphQLClient.ResponseListSwap} for resolved data format
|
|
4920
|
-
*/
|
|
4921
|
-
|
|
4922
4473
|
/**
|
|
4923
4474
|
* listTopAccounts
|
|
4924
4475
|
*
|