@ocap/client 1.14.3 → 1.14.4
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 +27 -195
- package/dist/bundle.js +3 -3
- package/dist/report.html +2 -2
- package/dist/schema/graphql.json +346 -1861
- package/dist/schema/graphql.txt +2 -2
- package/dist/types.js +40 -492
- package/dist/types.js.map +1 -1
- package/docs/QUERIES.md +26 -507
- package/docs/README.md +86 -654
- package/lib/base.js +1 -1
- package/lib/node.d.ts +27 -195
- package/lib/schema/graphql.json +346 -1861
- package/lib/schema/graphql.txt +2 -2
- package/lib/types.js +40 -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
|
*
|
|
@@ -1459,7 +1293,7 @@
|
|
|
1459
1293
|
* @property {string} lastSettlement
|
|
1460
1294
|
* @property {string} genesisTime
|
|
1461
1295
|
* @property {string} renaissanceTime
|
|
1462
|
-
* @property {...GraphQLClient.
|
|
1296
|
+
* @property {...GraphQLClient.NFTDisplay} display
|
|
1463
1297
|
*/
|
|
1464
1298
|
|
|
1465
1299
|
/**
|
|
@@ -1733,6 +1567,34 @@
|
|
|
1733
1567
|
* @property {...GraphQLClient.Any} data
|
|
1734
1568
|
*/
|
|
1735
1569
|
|
|
1570
|
+
/**
|
|
1571
|
+
* Structure of GraphQLClient.NFTDisplay
|
|
1572
|
+
*
|
|
1573
|
+
* @memberof GraphQLClient
|
|
1574
|
+
* @typedef {object} GraphQLClient.NFTDisplay
|
|
1575
|
+
* @property {string} type
|
|
1576
|
+
* @property {string} content
|
|
1577
|
+
*/
|
|
1578
|
+
|
|
1579
|
+
/**
|
|
1580
|
+
* Structure of GraphQLClient.NFTEndpoint
|
|
1581
|
+
*
|
|
1582
|
+
* @memberof GraphQLClient
|
|
1583
|
+
* @typedef {object} GraphQLClient.NFTEndpoint
|
|
1584
|
+
* @property {string} id
|
|
1585
|
+
* @property {string} scope
|
|
1586
|
+
*/
|
|
1587
|
+
|
|
1588
|
+
/**
|
|
1589
|
+
* Structure of GraphQLClient.NFTIssuer
|
|
1590
|
+
*
|
|
1591
|
+
* @memberof GraphQLClient
|
|
1592
|
+
* @typedef {object} GraphQLClient.NFTIssuer
|
|
1593
|
+
* @property {string} id
|
|
1594
|
+
* @property {string} pk
|
|
1595
|
+
* @property {string} name
|
|
1596
|
+
*/
|
|
1597
|
+
|
|
1736
1598
|
/**
|
|
1737
1599
|
* Structure of GraphQLClient.NetInfo
|
|
1738
1600
|
*
|
|
@@ -1744,15 +1606,6 @@
|
|
|
1744
1606
|
* @property {Array<...GraphQLClient.PeerInfo>} peers
|
|
1745
1607
|
*/
|
|
1746
1608
|
|
|
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
1609
|
/**
|
|
1757
1610
|
* Structure of GraphQLClient.NodeInfo
|
|
1758
1611
|
*
|
|
@@ -1966,60 +1819,6 @@
|
|
|
1966
1819
|
* @property {...GraphQLClient.ForgeState} state
|
|
1967
1820
|
*/
|
|
1968
1821
|
|
|
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
1822
|
/**
|
|
2024
1823
|
* Structure of GraphQLClient.ResponseGetNetInfo
|
|
2025
1824
|
*
|
|
@@ -2065,38 +1864,6 @@
|
|
|
2065
1864
|
* @property {...GraphQLClient.StakeState} state
|
|
2066
1865
|
*/
|
|
2067
1866
|
|
|
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
1867
|
/**
|
|
2101
1868
|
* Structure of GraphQLClient.ResponseGetTokenState
|
|
2102
1869
|
*
|
|
@@ -2214,16 +1981,6 @@
|
|
|
2214
1981
|
* @property {Array<...GraphQLClient.IndexedStakeState>} stakes
|
|
2215
1982
|
*/
|
|
2216
1983
|
|
|
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
1984
|
/**
|
|
2228
1985
|
* Structure of GraphQLClient.ResponseListTokens
|
|
2229
1986
|
*
|
|
@@ -2409,18 +2166,6 @@
|
|
|
2409
2166
|
* @property {string} id
|
|
2410
2167
|
*/
|
|
2411
2168
|
|
|
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
2169
|
/**
|
|
2425
2170
|
* Structure of GraphQLClient.StakeState
|
|
2426
2171
|
*
|
|
@@ -2465,46 +2210,6 @@
|
|
|
2465
2210
|
* @property {string} renaissanceTime
|
|
2466
2211
|
*/
|
|
2467
2212
|
|
|
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
2213
|
/**
|
|
2509
2214
|
* Structure of GraphQLClient.TokenInfo
|
|
2510
2215
|
*
|
|
@@ -3011,27 +2716,6 @@
|
|
|
3011
2716
|
* @property {string} hash
|
|
3012
2717
|
*/
|
|
3013
2718
|
|
|
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
2719
|
/**
|
|
3036
2720
|
* Structure of GraphQLClient.GetForgeStateParams
|
|
3037
2721
|
*
|
|
@@ -3126,53 +2810,6 @@
|
|
|
3126
2810
|
* @property {boolean} parsed
|
|
3127
2811
|
*/
|
|
3128
2812
|
|
|
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
2813
|
/**
|
|
3177
2814
|
* Structure of GraphQLClient.ListAssetTransactionsParams
|
|
3178
2815
|
*
|
|
@@ -3228,27 +2865,6 @@
|
|
|
3228
2865
|
* @property {...GraphQLClient.TimeFilterInput} timeFilter
|
|
3229
2866
|
*/
|
|
3230
2867
|
|
|
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
2868
|
/**
|
|
3253
2869
|
* Structure of GraphQLClient.ListTopAccountsParams
|
|
3254
2870
|
*
|
|
@@ -4725,16 +4341,6 @@
|
|
|
4725
4341
|
* @returns {Promise<GraphQLClient.ResponseGetEvidenceState>} Checkout {@link GraphQLClient.ResponseGetEvidenceState} for resolved data format
|
|
4726
4342
|
*/
|
|
4727
4343
|
|
|
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
4344
|
/**
|
|
4739
4345
|
* getForgeState
|
|
4740
4346
|
*
|
|
@@ -4804,15 +4410,6 @@
|
|
|
4804
4410
|
* @returns {Promise<GraphQLClient.ResponseGetConfig>} Checkout {@link GraphQLClient.ResponseGetConfig} for resolved data format
|
|
4805
4411
|
*/
|
|
4806
4412
|
|
|
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
4413
|
/**
|
|
4817
4414
|
* getNetInfo
|
|
4818
4415
|
*
|
|
@@ -4840,45 +4437,6 @@
|
|
|
4840
4437
|
* @returns {Promise<GraphQLClient.ResponseGetValidatorsInfo>} Checkout {@link GraphQLClient.ResponseGetValidatorsInfo} for resolved data format
|
|
4841
4438
|
*/
|
|
4842
4439
|
|
|
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
4440
|
/**
|
|
4883
4441
|
* listAssetTransactions
|
|
4884
4442
|
*
|
|
@@ -4909,16 +4467,6 @@
|
|
|
4909
4467
|
* @returns {Promise<GraphQLClient.ResponseListBlocks>} Checkout {@link GraphQLClient.ResponseListBlocks} for resolved data format
|
|
4910
4468
|
*/
|
|
4911
4469
|
|
|
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
4470
|
/**
|
|
4923
4471
|
* listTopAccounts
|
|
4924
4472
|
*
|