@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/docs/QUERIES.md CHANGED
@@ -10,7 +10,6 @@
10
10
  * [getDelegateState](#getdelegatestate)
11
11
  * [getTokenState](#gettokenstate)
12
12
  * [getEvidenceState](#getevidencestate)
13
- * [getSwapState](#getswapstate)
14
13
  * [getForgeState](#getforgestate)
15
14
  * [getTx](#gettx)
16
15
  * [getBlock](#getblock)
@@ -18,18 +17,12 @@
18
17
  * [getUnconfirmedTxs](#getunconfirmedtxs)
19
18
  * [getChainInfo](#getchaininfo)
20
19
  * [getConfig](#getconfig)
21
- * [getHealthStatus](#gethealthstatus)
22
20
  * [getNetInfo](#getnetinfo)
23
21
  * [getNodeInfo](#getnodeinfo)
24
22
  * [getValidatorsInfo](#getvalidatorsinfo)
25
- * [getForgeStats](#getforgestats)
26
- * [getForgeStatsByDay](#getforgestatsbyday)
27
- * [getForgeStatsByHour](#getforgestatsbyhour)
28
- * [getSwapStatistics](#getswapstatistics)
29
23
  * [listAssetTransactions](#listassettransactions)
30
24
  * [listAssets](#listassets)
31
25
  * [listBlocks](#listblocks)
32
- * [listSwap](#listswap)
33
26
  * [listTopAccounts](#listtopaccounts)
34
27
  * [listTransactions](#listtransactions)
35
28
  * [listTokens](#listtokens)
@@ -67,7 +60,6 @@
67
60
  state {
68
61
  address
69
62
  balance
70
- depositReceived
71
63
  gasBalance
72
64
  issuer
73
65
  migratedFrom
@@ -183,32 +175,6 @@
183
175
  typeUrl
184
176
  value
185
177
  }
186
- pinnedFiles {
187
- circular
188
- fifo
189
- items
190
- maxItems
191
- typeUrl
192
- }
193
- stake {
194
- totalReceivedStakes
195
- totalStakes
196
- totalUnstakes
197
- recentReceivedStakes {
198
- circular
199
- fifo
200
- items
201
- maxItems
202
- typeUrl
203
- }
204
- recentStakes {
205
- circular
206
- fifo
207
- items
208
- maxItems
209
- typeUrl
210
- }
211
- }
212
178
  tokens {
213
179
  address
214
180
  decimal
@@ -222,13 +188,6 @@
222
188
  pk
223
189
  role
224
190
  }
225
- withdrawItems {
226
- circular
227
- fifo
228
- items
229
- maxItems
230
- typeUrl
231
- }
232
191
  }
233
192
  }
234
193
  }
@@ -256,6 +215,7 @@
256
215
  owner
257
216
  parent
258
217
  readonly
218
+ tags
259
219
  transferrable
260
220
  ttl
261
221
  context {
@@ -364,24 +324,13 @@
364
324
  typeUrl
365
325
  value
366
326
  }
367
- stake {
368
- totalReceivedStakes
369
- totalStakes
370
- totalUnstakes
371
- recentReceivedStakes {
372
- circular
373
- fifo
374
- items
375
- maxItems
376
- typeUrl
377
- }
378
- recentStakes {
379
- circular
380
- fifo
381
- items
382
- maxItems
383
- typeUrl
384
- }
327
+ display {
328
+ content
329
+ type
330
+ }
331
+ endpoint {
332
+ id
333
+ scope
385
334
  }
386
335
  }
387
336
  }
@@ -549,12 +498,21 @@
549
498
  moniker
550
499
  parent
551
500
  readonly
501
+ tags
552
502
  transferrable
553
503
  ttl
554
504
  data {
555
505
  typeUrl
556
506
  value
557
507
  }
508
+ display {
509
+ content
510
+ type
511
+ }
512
+ endpoint {
513
+ id
514
+ scope
515
+ }
558
516
  }
559
517
  tokens {
560
518
  address
@@ -967,137 +925,6 @@
967
925
  }
968
926
  ```
969
927
 
970
- ### getSwapState
971
-
972
- #### Arguments
973
-
974
- * **address**, optional, null
975
- * **height**, optional, null
976
- * **keys**, optional, null
977
-
978
- #### Result Format
979
-
980
- ```graphql
981
- {
982
- getSwapState(address: "abc", height: "abc", keys: ["abc"]) {
983
- code
984
- state {
985
- address
986
- assets
987
- hash
988
- hashkey
989
- hashlock
990
- locktime
991
- receiver
992
- sender
993
- value
994
- context {
995
- genesisTime
996
- renaissanceTime
997
- genesisTx {
998
- code
999
- hash
1000
- height
1001
- index
1002
- receiver
1003
- sender
1004
- time
1005
- receipts {
1006
- address
1007
- changes {
1008
- action
1009
- target
1010
- value
1011
- }
1012
- }
1013
- tags {
1014
- key
1015
- value
1016
- }
1017
- tokenSymbols {
1018
- address
1019
- decimal
1020
- symbol
1021
- unit
1022
- }
1023
- tx {
1024
- chainId
1025
- delegator
1026
- from
1027
- itxJson
1028
- nonce
1029
- pk
1030
- receiver
1031
- sender
1032
- serviceFee
1033
- signature
1034
- signatures {
1035
- delegator
1036
- pk
1037
- signature
1038
- signer
1039
- data {
1040
- typeUrl
1041
- value
1042
- }
1043
- }
1044
- }
1045
- }
1046
- renaissanceTx {
1047
- code
1048
- hash
1049
- height
1050
- index
1051
- receiver
1052
- sender
1053
- time
1054
- receipts {
1055
- address
1056
- changes {
1057
- action
1058
- target
1059
- value
1060
- }
1061
- }
1062
- tags {
1063
- key
1064
- value
1065
- }
1066
- tokenSymbols {
1067
- address
1068
- decimal
1069
- symbol
1070
- unit
1071
- }
1072
- tx {
1073
- chainId
1074
- delegator
1075
- from
1076
- itxJson
1077
- nonce
1078
- pk
1079
- receiver
1080
- sender
1081
- serviceFee
1082
- signature
1083
- signatures {
1084
- delegator
1085
- pk
1086
- signature
1087
- signer
1088
- data {
1089
- typeUrl
1090
- value
1091
- }
1092
- }
1093
- }
1094
- }
1095
- }
1096
- }
1097
- }
1098
- }
1099
- ```
1100
-
1101
928
  ### getForgeState
1102
929
 
1103
930
  #### Arguments
@@ -1537,51 +1364,6 @@ No arguments
1537
1364
  }
1538
1365
  ```
1539
1366
 
1540
- ### getHealthStatus
1541
-
1542
- #### Arguments
1543
-
1544
- No arguments
1545
-
1546
- #### Result Format
1547
-
1548
- ```graphql
1549
- {
1550
- getHealthStatus {
1551
- code
1552
- healthStatus {
1553
- consensus {
1554
- blockHeight
1555
- health
1556
- synced
1557
- }
1558
- forge {
1559
- abiServer
1560
- forgeWeb
1561
- health
1562
- abciServer {
1563
- abciConsensus
1564
- abciInfo
1565
- }
1566
- }
1567
- network {
1568
- health
1569
- numPeers
1570
- }
1571
- storage {
1572
- health
1573
- indexerServer
1574
- stateDb
1575
- diskSpace {
1576
- forgeUsage
1577
- total
1578
- }
1579
- }
1580
- }
1581
- }
1582
- }
1583
- ```
1584
-
1585
1367
  ### getNetInfo
1586
1368
 
1587
1369
  #### Arguments
@@ -1695,141 +1477,6 @@ No arguments
1695
1477
  }
1696
1478
  ```
1697
1479
 
1698
- ### getForgeStats
1699
-
1700
- #### Arguments
1701
-
1702
- No arguments
1703
-
1704
- #### Result Format
1705
-
1706
- ```graphql
1707
- {
1708
- getForgeStats {
1709
- code
1710
- forgeStats {
1711
- avgBlockTime
1712
- avgTps
1713
- maxTps
1714
- numAccountMigrateTxs
1715
- numBlocks
1716
- numConsensusUpgradeTxs
1717
- numConsumeAssetTxs
1718
- numCreateAssetTxs
1719
- numDeclareFileTxs
1720
- numDeclareTxs
1721
- numExchangeTxs
1722
- numStakes
1723
- numStakeTxs
1724
- numSysUpgradeTxs
1725
- numTransferTxs
1726
- numTxs
1727
- numUpdateAssetTxs
1728
- numValidators
1729
- tps
1730
- }
1731
- }
1732
- }
1733
- ```
1734
-
1735
- ### getForgeStatsByDay
1736
-
1737
- #### Arguments
1738
-
1739
- * **endDate**, optional, null
1740
- * **startDate**, optional, null
1741
-
1742
- #### Result Format
1743
-
1744
- ```graphql
1745
- {
1746
- getForgeStatsByDay(endDate: "abc", startDate: "abc") {
1747
- code
1748
- forgeStats {
1749
- avgBlockTime
1750
- avgTps
1751
- maxTps
1752
- numAccountMigrateTxs
1753
- numBlocks
1754
- numConsensusUpgradeTxs
1755
- numConsumeAssetTxs
1756
- numCreateAssetTxs
1757
- numDeclareFileTxs
1758
- numDeclareTxs
1759
- numExchangeTxs
1760
- numStakes
1761
- numStakeTxs
1762
- numSysUpgradeTxs
1763
- numTransferTxs
1764
- numTxs
1765
- numUpdateAssetTxs
1766
- numValidators
1767
- tps
1768
- }
1769
- }
1770
- }
1771
- ```
1772
-
1773
- ### getForgeStatsByHour
1774
-
1775
- #### Arguments
1776
-
1777
- * **date**, optional, null
1778
-
1779
- #### Result Format
1780
-
1781
- ```graphql
1782
- {
1783
- getForgeStatsByHour(date: "abc") {
1784
- code
1785
- forgeStats {
1786
- avgBlockTime
1787
- avgTps
1788
- maxTps
1789
- numAccountMigrateTxs
1790
- numBlocks
1791
- numConsensusUpgradeTxs
1792
- numConsumeAssetTxs
1793
- numCreateAssetTxs
1794
- numDeclareFileTxs
1795
- numDeclareTxs
1796
- numExchangeTxs
1797
- numStakes
1798
- numStakeTxs
1799
- numSysUpgradeTxs
1800
- numTransferTxs
1801
- numTxs
1802
- numUpdateAssetTxs
1803
- numValidators
1804
- tps
1805
- }
1806
- }
1807
- }
1808
- ```
1809
-
1810
- ### getSwapStatistics
1811
-
1812
- #### Arguments
1813
-
1814
- * **address**, optional, null
1815
-
1816
- #### Result Format
1817
-
1818
- ```graphql
1819
- {
1820
- getSwapStatistics(address: "abc") {
1821
- code
1822
- statistics {
1823
- address
1824
- lockedAssetsIn
1825
- lockedAssetsOut
1826
- lockedValueIn
1827
- lockedValueOut
1828
- }
1829
- }
1830
- }
1831
- ```
1832
-
1833
1480
  ### listAssetTransactions
1834
1481
 
1835
1482
  #### Arguments
@@ -1922,12 +1569,21 @@ No arguments
1922
1569
  parent
1923
1570
  readonly
1924
1571
  renaissanceTime
1572
+ tags
1925
1573
  transferrable
1926
1574
  ttl
1927
1575
  data {
1928
1576
  typeUrl
1929
1577
  value
1930
1578
  }
1579
+ display {
1580
+ content
1581
+ type
1582
+ }
1583
+ endpoint {
1584
+ id
1585
+ scope
1586
+ }
1931
1587
  }
1932
1588
  page {
1933
1589
  cursor
@@ -1971,143 +1627,6 @@ No arguments
1971
1627
  }
1972
1628
  ```
1973
1629
 
1974
- ### listSwap
1975
-
1976
- #### Arguments
1977
-
1978
- * **available**, optional, null
1979
- * **paging**, optional, null
1980
- * **receiver**, optional, null
1981
- * **sender**, optional, null
1982
-
1983
- #### Result Format
1984
-
1985
- ```graphql
1986
- {
1987
- listSwap(available: true, paging: "abc", receiver: "abc", sender: "abc") {
1988
- code
1989
- page {
1990
- cursor
1991
- next
1992
- total
1993
- }
1994
- swap {
1995
- address
1996
- assets
1997
- hash
1998
- hashkey
1999
- hashlock
2000
- locktime
2001
- receiver
2002
- sender
2003
- value
2004
- context {
2005
- genesisTime
2006
- renaissanceTime
2007
- genesisTx {
2008
- code
2009
- hash
2010
- height
2011
- index
2012
- receiver
2013
- sender
2014
- time
2015
- receipts {
2016
- address
2017
- changes {
2018
- action
2019
- target
2020
- value
2021
- }
2022
- }
2023
- tags {
2024
- key
2025
- value
2026
- }
2027
- tokenSymbols {
2028
- address
2029
- decimal
2030
- symbol
2031
- unit
2032
- }
2033
- tx {
2034
- chainId
2035
- delegator
2036
- from
2037
- itxJson
2038
- nonce
2039
- pk
2040
- receiver
2041
- sender
2042
- serviceFee
2043
- signature
2044
- signatures {
2045
- delegator
2046
- pk
2047
- signature
2048
- signer
2049
- data {
2050
- typeUrl
2051
- value
2052
- }
2053
- }
2054
- }
2055
- }
2056
- renaissanceTx {
2057
- code
2058
- hash
2059
- height
2060
- index
2061
- receiver
2062
- sender
2063
- time
2064
- receipts {
2065
- address
2066
- changes {
2067
- action
2068
- target
2069
- value
2070
- }
2071
- }
2072
- tags {
2073
- key
2074
- value
2075
- }
2076
- tokenSymbols {
2077
- address
2078
- decimal
2079
- symbol
2080
- unit
2081
- }
2082
- tx {
2083
- chainId
2084
- delegator
2085
- from
2086
- itxJson
2087
- nonce
2088
- pk
2089
- receiver
2090
- sender
2091
- serviceFee
2092
- signature
2093
- signatures {
2094
- delegator
2095
- pk
2096
- signature
2097
- signer
2098
- data {
2099
- typeUrl
2100
- value
2101
- }
2102
- }
2103
- }
2104
- }
2105
- }
2106
- }
2107
- }
2108
- }
2109
- ```
2110
-
2111
1630
  ### listTopAccounts
2112
1631
 
2113
1632
  #### Arguments
@@ -2338,12 +1857,21 @@ No arguments
2338
1857
  moniker
2339
1858
  parent
2340
1859
  readonly
1860
+ tags
2341
1861
  transferrable
2342
1862
  ttl
2343
1863
  data {
2344
1864
  typeUrl
2345
1865
  value
2346
1866
  }
1867
+ display {
1868
+ content
1869
+ type
1870
+ }
1871
+ endpoint {
1872
+ id
1873
+ scope
1874
+ }
2347
1875
  }
2348
1876
  tokens {
2349
1877
  address