@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/browser.d.ts
CHANGED
|
@@ -271,7 +271,6 @@ declare class GraphQLClient {
|
|
|
271
271
|
getEvidenceState(
|
|
272
272
|
params: GraphQLClient.GetEvidenceStateParams
|
|
273
273
|
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetEvidenceState>;
|
|
274
|
-
getSwapState(params: GraphQLClient.GetSwapStateParams): GraphQLClient.QueryResult<GraphQLClient.ResponseGetSwapState>;
|
|
275
274
|
getForgeState(
|
|
276
275
|
params: GraphQLClient.GetForgeStateParams
|
|
277
276
|
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeState>;
|
|
@@ -283,26 +282,14 @@ declare class GraphQLClient {
|
|
|
283
282
|
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetUnconfirmedTxs>;
|
|
284
283
|
getChainInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetChainInfo>;
|
|
285
284
|
getConfig(params: GraphQLClient.GetConfigParams): GraphQLClient.QueryResult<GraphQLClient.ResponseGetConfig>;
|
|
286
|
-
getHealthStatus(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetHealthStatus>;
|
|
287
285
|
getNetInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetNetInfo>;
|
|
288
286
|
getNodeInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetNodeInfo>;
|
|
289
287
|
getValidatorsInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetValidatorsInfo>;
|
|
290
|
-
getForgeStats(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeStats>;
|
|
291
|
-
getForgeStatsByDay(
|
|
292
|
-
params: GraphQLClient.GetForgeStatsByDayParams
|
|
293
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeStats>;
|
|
294
|
-
getForgeStatsByHour(
|
|
295
|
-
params: GraphQLClient.GetForgeStatsByHourParams
|
|
296
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeStats>;
|
|
297
|
-
getSwapStatistics(
|
|
298
|
-
params: GraphQLClient.GetSwapStatisticsParams
|
|
299
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetSwapStatistics>;
|
|
300
288
|
listAssetTransactions(
|
|
301
289
|
params: GraphQLClient.ListAssetTransactionsParams
|
|
302
290
|
): GraphQLClient.QueryResult<GraphQLClient.ResponseListAssetTransactions>;
|
|
303
291
|
listAssets(params: GraphQLClient.ListAssetsParams): GraphQLClient.QueryResult<GraphQLClient.ResponseListAssets>;
|
|
304
292
|
listBlocks(params: GraphQLClient.ListBlocksParams): GraphQLClient.QueryResult<GraphQLClient.ResponseListBlocks>;
|
|
305
|
-
listSwap(params: GraphQLClient.ListSwapParams): GraphQLClient.QueryResult<GraphQLClient.ResponseListSwap>;
|
|
306
293
|
listTopAccounts(
|
|
307
294
|
params: GraphQLClient.ListTopAccountsParams
|
|
308
295
|
): GraphQLClient.QueryResult<GraphQLClient.ResponseListTopAccounts>;
|
|
@@ -562,10 +549,6 @@ declare namespace GraphQLClient {
|
|
|
562
549
|
|
|
563
550
|
export interface AssetFilterInput {}
|
|
564
551
|
|
|
565
|
-
export interface ByDayInput {}
|
|
566
|
-
|
|
567
|
-
export interface ByHourInput {}
|
|
568
|
-
|
|
569
552
|
export interface FactoryFilterInput {}
|
|
570
553
|
|
|
571
554
|
export interface PageInput {}
|
|
@@ -588,8 +571,6 @@ declare namespace GraphQLClient {
|
|
|
588
571
|
|
|
589
572
|
export interface RequestGetStateInput {}
|
|
590
573
|
|
|
591
|
-
export interface RequestGetSwapStatisticsInput {}
|
|
592
|
-
|
|
593
574
|
export interface RequestGetTxInput {}
|
|
594
575
|
|
|
595
576
|
export interface RequestListAssetTransactionsInput {}
|
|
@@ -608,8 +589,6 @@ declare namespace GraphQLClient {
|
|
|
608
589
|
|
|
609
590
|
export interface RequestListStakesInput {}
|
|
610
591
|
|
|
611
|
-
export interface RequestListSwapInput {}
|
|
612
|
-
|
|
613
592
|
export interface RequestListTokensInput {}
|
|
614
593
|
|
|
615
594
|
export interface RequestListTopAccountsInput {}
|
|
@@ -638,11 +617,6 @@ declare namespace GraphQLClient {
|
|
|
638
617
|
|
|
639
618
|
export interface WalletTypeInput {}
|
|
640
619
|
|
|
641
|
-
export interface AbciServerStatus {
|
|
642
|
-
abciConsensus: string;
|
|
643
|
-
abciInfo: string;
|
|
644
|
-
}
|
|
645
|
-
|
|
646
620
|
export interface AccountConfig {
|
|
647
621
|
address: string;
|
|
648
622
|
pk: string;
|
|
@@ -670,10 +644,6 @@ declare namespace GraphQLClient {
|
|
|
670
644
|
migratedTo: Array<null>;
|
|
671
645
|
migratedFrom: Array<null>;
|
|
672
646
|
numAssets: string;
|
|
673
|
-
stake: GraphQLClient.StakeContext;
|
|
674
|
-
pinnedFiles: GraphQLClient.CircularQueue;
|
|
675
|
-
depositReceived: string;
|
|
676
|
-
withdrawItems: GraphQLClient.CircularQueue;
|
|
677
647
|
tokens: Array<null>;
|
|
678
648
|
data: GraphQLClient.Any;
|
|
679
649
|
}
|
|
@@ -690,7 +660,7 @@ declare namespace GraphQLClient {
|
|
|
690
660
|
address: string;
|
|
691
661
|
assets: Array<null>;
|
|
692
662
|
variables: Array<null>;
|
|
693
|
-
issuer: GraphQLClient.
|
|
663
|
+
issuer: GraphQLClient.NFTIssuer;
|
|
694
664
|
data: GraphQLClient.Any;
|
|
695
665
|
}
|
|
696
666
|
|
|
@@ -700,7 +670,7 @@ declare namespace GraphQLClient {
|
|
|
700
670
|
inputs: Array<null>;
|
|
701
671
|
owner: string;
|
|
702
672
|
variables: Array<null>;
|
|
703
|
-
issuer: GraphQLClient.
|
|
673
|
+
issuer: GraphQLClient.NFTIssuer;
|
|
704
674
|
data: GraphQLClient.Any;
|
|
705
675
|
}
|
|
706
676
|
|
|
@@ -709,11 +679,6 @@ declare namespace GraphQLClient {
|
|
|
709
679
|
value: string;
|
|
710
680
|
}
|
|
711
681
|
|
|
712
|
-
export interface AssetDisplay {
|
|
713
|
-
type: string;
|
|
714
|
-
content: string;
|
|
715
|
-
}
|
|
716
|
-
|
|
717
682
|
export interface AssetFactoryHook {
|
|
718
683
|
name: string;
|
|
719
684
|
type: string;
|
|
@@ -743,16 +708,10 @@ declare namespace GraphQLClient {
|
|
|
743
708
|
balance: string;
|
|
744
709
|
tokens: Array<null>;
|
|
745
710
|
numMinted: number;
|
|
746
|
-
display: GraphQLClient.
|
|
711
|
+
display: GraphQLClient.NFTDisplay;
|
|
747
712
|
lastSettlement: string;
|
|
748
713
|
}
|
|
749
714
|
|
|
750
|
-
export interface AssetIssuer {
|
|
751
|
-
id: string;
|
|
752
|
-
pk: string;
|
|
753
|
-
name: string;
|
|
754
|
-
}
|
|
755
|
-
|
|
756
715
|
export interface AssetState {
|
|
757
716
|
address: string;
|
|
758
717
|
owner: string;
|
|
@@ -763,7 +722,9 @@ declare namespace GraphQLClient {
|
|
|
763
722
|
consumedTime: string;
|
|
764
723
|
issuer: string;
|
|
765
724
|
parent: string;
|
|
766
|
-
|
|
725
|
+
endpoint: GraphQLClient.NFTEndpoint;
|
|
726
|
+
display: GraphQLClient.NFTDisplay;
|
|
727
|
+
tags: Array<null>;
|
|
767
728
|
context: GraphQLClient.StateContext;
|
|
768
729
|
data: GraphQLClient.Any;
|
|
769
730
|
}
|
|
@@ -838,14 +799,6 @@ declare namespace GraphQLClient {
|
|
|
838
799
|
value: string;
|
|
839
800
|
}
|
|
840
801
|
|
|
841
|
-
export interface CircularQueue {
|
|
842
|
-
items: Array<null>;
|
|
843
|
-
typeUrl: string;
|
|
844
|
-
maxItems: number;
|
|
845
|
-
circular: boolean;
|
|
846
|
-
fifo: boolean;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
802
|
export interface ClaimBlockRewardTx {
|
|
850
803
|
rollup: string;
|
|
851
804
|
blockHeight: number;
|
|
@@ -872,12 +825,6 @@ declare namespace GraphQLClient {
|
|
|
872
825
|
paramChanged: boolean;
|
|
873
826
|
}
|
|
874
827
|
|
|
875
|
-
export interface ConsensusStatus {
|
|
876
|
-
health: boolean;
|
|
877
|
-
synced: boolean;
|
|
878
|
-
blockHeight: string;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
828
|
export interface CreateAssetTx {
|
|
882
829
|
moniker: string;
|
|
883
830
|
data: GraphQLClient.Any;
|
|
@@ -887,6 +834,9 @@ declare namespace GraphQLClient {
|
|
|
887
834
|
parent: string;
|
|
888
835
|
address: string;
|
|
889
836
|
issuer: string;
|
|
837
|
+
endpoint: GraphQLClient.NFTEndpoint;
|
|
838
|
+
display: GraphQLClient.NFTDisplay;
|
|
839
|
+
tags: Array<null>;
|
|
890
840
|
}
|
|
891
841
|
|
|
892
842
|
export interface CreateFactoryTx {
|
|
@@ -899,7 +849,7 @@ declare namespace GraphQLClient {
|
|
|
899
849
|
output: GraphQLClient.CreateAssetTx;
|
|
900
850
|
hooks: Array<null>;
|
|
901
851
|
address: string;
|
|
902
|
-
display: GraphQLClient.
|
|
852
|
+
display: GraphQLClient.NFTDisplay;
|
|
903
853
|
data: GraphQLClient.Any;
|
|
904
854
|
}
|
|
905
855
|
|
|
@@ -1018,11 +968,6 @@ declare namespace GraphQLClient {
|
|
|
1018
968
|
data: GraphQLClient.Any;
|
|
1019
969
|
}
|
|
1020
970
|
|
|
1021
|
-
export interface DiskSpaceStatus {
|
|
1022
|
-
forgeUsage: string;
|
|
1023
|
-
total: string;
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
971
|
export interface Evidence {
|
|
1027
972
|
hash: string;
|
|
1028
973
|
}
|
|
@@ -1085,35 +1030,6 @@ declare namespace GraphQLClient {
|
|
|
1085
1030
|
value: GraphQLClient.UpgradeTasks;
|
|
1086
1031
|
}
|
|
1087
1032
|
|
|
1088
|
-
export interface ForgeStats {
|
|
1089
|
-
numBlocks: Array<null>;
|
|
1090
|
-
numTxs: Array<null>;
|
|
1091
|
-
numStakes: Array<null>;
|
|
1092
|
-
numValidators: Array<null>;
|
|
1093
|
-
numAccountMigrateTxs: Array<null>;
|
|
1094
|
-
numCreateAssetTxs: Array<null>;
|
|
1095
|
-
numConsensusUpgradeTxs: Array<null>;
|
|
1096
|
-
numDeclareTxs: Array<null>;
|
|
1097
|
-
numDeclareFileTxs: Array<null>;
|
|
1098
|
-
numExchangeTxs: Array<null>;
|
|
1099
|
-
numStakeTxs: Array<null>;
|
|
1100
|
-
numSysUpgradeTxs: Array<null>;
|
|
1101
|
-
numTransferTxs: Array<null>;
|
|
1102
|
-
numUpdateAssetTxs: Array<null>;
|
|
1103
|
-
numConsumeAssetTxs: Array<null>;
|
|
1104
|
-
tps: Array<null>;
|
|
1105
|
-
maxTps: number;
|
|
1106
|
-
avgTps: number;
|
|
1107
|
-
avgBlockTime: number;
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
export interface ForgeStatus {
|
|
1111
|
-
health: boolean;
|
|
1112
|
-
abiServer: string;
|
|
1113
|
-
forgeWeb: string;
|
|
1114
|
-
abciServer: GraphQLClient.AbciServerStatus;
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
1033
|
export interface ForgeToken {
|
|
1118
1034
|
name: string;
|
|
1119
1035
|
symbol: string;
|
|
@@ -1134,13 +1050,6 @@ declare namespace GraphQLClient {
|
|
|
1134
1050
|
longitude: number;
|
|
1135
1051
|
}
|
|
1136
1052
|
|
|
1137
|
-
export interface HealthStatus {
|
|
1138
|
-
consensus: GraphQLClient.ConsensusStatus;
|
|
1139
|
-
network: GraphQLClient.NetworkStatus;
|
|
1140
|
-
storage: GraphQLClient.StorageStatus;
|
|
1141
|
-
forge: GraphQLClient.ForgeStatus;
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
1053
|
export interface IndexedAccountState {
|
|
1145
1054
|
address: string;
|
|
1146
1055
|
balance: string;
|
|
@@ -1207,7 +1116,7 @@ declare namespace GraphQLClient {
|
|
|
1207
1116
|
lastSettlement: string;
|
|
1208
1117
|
genesisTime: string;
|
|
1209
1118
|
renaissanceTime: string;
|
|
1210
|
-
display: GraphQLClient.
|
|
1119
|
+
display: GraphQLClient.NFTDisplay;
|
|
1211
1120
|
}
|
|
1212
1121
|
|
|
1213
1122
|
export interface IndexedRollupBlock {
|
|
@@ -1396,6 +1305,22 @@ declare namespace GraphQLClient {
|
|
|
1396
1305
|
data: GraphQLClient.Any;
|
|
1397
1306
|
}
|
|
1398
1307
|
|
|
1308
|
+
export interface NFTDisplay {
|
|
1309
|
+
type: string;
|
|
1310
|
+
content: string;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
export interface NFTEndpoint {
|
|
1314
|
+
id: string;
|
|
1315
|
+
scope: string;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
export interface NFTIssuer {
|
|
1319
|
+
id: string;
|
|
1320
|
+
pk: string;
|
|
1321
|
+
name: string;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1399
1324
|
export interface NetInfo {
|
|
1400
1325
|
listening: boolean;
|
|
1401
1326
|
listeners: Array<null>;
|
|
@@ -1403,11 +1328,6 @@ declare namespace GraphQLClient {
|
|
|
1403
1328
|
peers: Array<null>;
|
|
1404
1329
|
}
|
|
1405
1330
|
|
|
1406
|
-
export interface NetworkStatus {
|
|
1407
|
-
health: boolean;
|
|
1408
|
-
numPeers: number;
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
1331
|
export interface NodeInfo {
|
|
1412
1332
|
id: string;
|
|
1413
1333
|
network: string;
|
|
@@ -1526,16 +1446,6 @@ declare namespace GraphQLClient {
|
|
|
1526
1446
|
state: GraphQLClient.ForgeState;
|
|
1527
1447
|
}
|
|
1528
1448
|
|
|
1529
|
-
export interface ResponseGetForgeStats {
|
|
1530
|
-
code: string;
|
|
1531
|
-
forgeStats: GraphQLClient.ForgeStats;
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
export interface ResponseGetHealthStatus {
|
|
1535
|
-
code: string;
|
|
1536
|
-
healthStatus: GraphQLClient.HealthStatus;
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
1449
|
export interface ResponseGetNetInfo {
|
|
1540
1450
|
code: string;
|
|
1541
1451
|
netInfo: GraphQLClient.NetInfo;
|
|
@@ -1561,16 +1471,6 @@ declare namespace GraphQLClient {
|
|
|
1561
1471
|
state: GraphQLClient.StakeState;
|
|
1562
1472
|
}
|
|
1563
1473
|
|
|
1564
|
-
export interface ResponseGetSwapState {
|
|
1565
|
-
code: string;
|
|
1566
|
-
state: GraphQLClient.SwapState;
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
export interface ResponseGetSwapStatistics {
|
|
1570
|
-
code: string;
|
|
1571
|
-
statistics: GraphQLClient.SwapStatistics;
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
1474
|
export interface ResponseGetTokenState {
|
|
1575
1475
|
code: string;
|
|
1576
1476
|
state: GraphQLClient.TokenState;
|
|
@@ -1640,12 +1540,6 @@ declare namespace GraphQLClient {
|
|
|
1640
1540
|
stakes: Array<null>;
|
|
1641
1541
|
}
|
|
1642
1542
|
|
|
1643
|
-
export interface ResponseListSwap {
|
|
1644
|
-
code: string;
|
|
1645
|
-
page: GraphQLClient.PageInfo;
|
|
1646
|
-
swap: Array<null>;
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
1543
|
export interface ResponseListTokens {
|
|
1650
1544
|
code: string;
|
|
1651
1545
|
page: GraphQLClient.PageInfo;
|
|
@@ -1764,14 +1658,6 @@ declare namespace GraphQLClient {
|
|
|
1764
1658
|
id: string;
|
|
1765
1659
|
}
|
|
1766
1660
|
|
|
1767
|
-
export interface StakeContext {
|
|
1768
|
-
totalStakes: string;
|
|
1769
|
-
totalUnstakes: string;
|
|
1770
|
-
totalReceivedStakes: string;
|
|
1771
|
-
recentStakes: GraphQLClient.CircularQueue;
|
|
1772
|
-
recentReceivedStakes: GraphQLClient.CircularQueue;
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
1661
|
export interface StakeState {
|
|
1776
1662
|
address: string;
|
|
1777
1663
|
sender: string;
|
|
@@ -1804,34 +1690,6 @@ declare namespace GraphQLClient {
|
|
|
1804
1690
|
renaissanceTime: string;
|
|
1805
1691
|
}
|
|
1806
1692
|
|
|
1807
|
-
export interface StorageStatus {
|
|
1808
|
-
health: boolean;
|
|
1809
|
-
indexerServer: string;
|
|
1810
|
-
stateDb: string;
|
|
1811
|
-
diskSpace: GraphQLClient.DiskSpaceStatus;
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
|
-
export interface SwapState {
|
|
1815
|
-
hash: string;
|
|
1816
|
-
address: string;
|
|
1817
|
-
hashkey: string;
|
|
1818
|
-
sender: string;
|
|
1819
|
-
receiver: string;
|
|
1820
|
-
value: string;
|
|
1821
|
-
assets: Array<null>;
|
|
1822
|
-
locktime: number;
|
|
1823
|
-
hashlock: string;
|
|
1824
|
-
context: GraphQLClient.StateContext;
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
export interface SwapStatistics {
|
|
1828
|
-
address: string;
|
|
1829
|
-
lockedValueOut: string;
|
|
1830
|
-
lockedValueIn: string;
|
|
1831
|
-
lockedAssetsOut: number;
|
|
1832
|
-
lockedAssetsIn: number;
|
|
1833
|
-
}
|
|
1834
|
-
|
|
1835
1693
|
export interface TokenInfo {
|
|
1836
1694
|
address: string;
|
|
1837
1695
|
balance: string;
|
|
@@ -2078,12 +1936,6 @@ declare namespace GraphQLClient {
|
|
|
2078
1936
|
hash: string;
|
|
2079
1937
|
}
|
|
2080
1938
|
|
|
2081
|
-
export interface GetSwapStateParams {
|
|
2082
|
-
address: string;
|
|
2083
|
-
height: string;
|
|
2084
|
-
keys: Array<string>;
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
1939
|
export interface GetForgeStateParams {
|
|
2088
1940
|
height: string;
|
|
2089
1941
|
keys: Array<string>;
|
|
@@ -2111,19 +1963,6 @@ declare namespace GraphQLClient {
|
|
|
2111
1963
|
parsed: boolean;
|
|
2112
1964
|
}
|
|
2113
1965
|
|
|
2114
|
-
export interface GetForgeStatsByDayParams {
|
|
2115
|
-
endDate: string;
|
|
2116
|
-
startDate: string;
|
|
2117
|
-
}
|
|
2118
|
-
|
|
2119
|
-
export interface GetForgeStatsByHourParams {
|
|
2120
|
-
date: string;
|
|
2121
|
-
}
|
|
2122
|
-
|
|
2123
|
-
export interface GetSwapStatisticsParams {
|
|
2124
|
-
address: string;
|
|
2125
|
-
}
|
|
2126
|
-
|
|
2127
1966
|
export interface ListAssetTransactionsParams {
|
|
2128
1967
|
address: string;
|
|
2129
1968
|
paging: undefined;
|
|
@@ -2145,13 +1984,6 @@ declare namespace GraphQLClient {
|
|
|
2145
1984
|
timeFilter: undefined;
|
|
2146
1985
|
}
|
|
2147
1986
|
|
|
2148
|
-
export interface ListSwapParams {
|
|
2149
|
-
available: boolean;
|
|
2150
|
-
paging: string;
|
|
2151
|
-
receiver: string;
|
|
2152
|
-
sender: string;
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
1987
|
export interface ListTopAccountsParams {
|
|
2156
1988
|
paging: undefined;
|
|
2157
1989
|
tokenAddress: string;
|