@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/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.AssetIssuer;
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.AssetIssuer;
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.AssetDisplay;
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
- stake: GraphQLClient.StakeContext;
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.AssetDisplay;
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;
@@ -1171,6 +1080,9 @@ declare namespace GraphQLClient {
1171
1080
  parent: string;
1172
1081
  transferrable: boolean;
1173
1082
  ttl: string;
1083
+ display: GraphQLClient.NFTDisplay;
1084
+ endpoint: GraphQLClient.NFTEndpoint;
1085
+ tags: Array<null>;
1174
1086
  data: GraphQLClient.Any;
1175
1087
  }
1176
1088
 
@@ -1207,7 +1119,7 @@ declare namespace GraphQLClient {
1207
1119
  lastSettlement: string;
1208
1120
  genesisTime: string;
1209
1121
  renaissanceTime: string;
1210
- display: GraphQLClient.AssetDisplay;
1122
+ display: GraphQLClient.NFTDisplay;
1211
1123
  }
1212
1124
 
1213
1125
  export interface IndexedRollupBlock {
@@ -1396,6 +1308,22 @@ declare namespace GraphQLClient {
1396
1308
  data: GraphQLClient.Any;
1397
1309
  }
1398
1310
 
1311
+ export interface NFTDisplay {
1312
+ type: string;
1313
+ content: string;
1314
+ }
1315
+
1316
+ export interface NFTEndpoint {
1317
+ id: string;
1318
+ scope: string;
1319
+ }
1320
+
1321
+ export interface NFTIssuer {
1322
+ id: string;
1323
+ pk: string;
1324
+ name: string;
1325
+ }
1326
+
1399
1327
  export interface NetInfo {
1400
1328
  listening: boolean;
1401
1329
  listeners: Array<null>;
@@ -1403,11 +1331,6 @@ declare namespace GraphQLClient {
1403
1331
  peers: Array<null>;
1404
1332
  }
1405
1333
 
1406
- export interface NetworkStatus {
1407
- health: boolean;
1408
- numPeers: number;
1409
- }
1410
-
1411
1334
  export interface NodeInfo {
1412
1335
  id: string;
1413
1336
  network: string;
@@ -1526,16 +1449,6 @@ declare namespace GraphQLClient {
1526
1449
  state: GraphQLClient.ForgeState;
1527
1450
  }
1528
1451
 
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
1452
  export interface ResponseGetNetInfo {
1540
1453
  code: string;
1541
1454
  netInfo: GraphQLClient.NetInfo;
@@ -1561,16 +1474,6 @@ declare namespace GraphQLClient {
1561
1474
  state: GraphQLClient.StakeState;
1562
1475
  }
1563
1476
 
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
1477
  export interface ResponseGetTokenState {
1575
1478
  code: string;
1576
1479
  state: GraphQLClient.TokenState;
@@ -1640,12 +1543,6 @@ declare namespace GraphQLClient {
1640
1543
  stakes: Array<null>;
1641
1544
  }
1642
1545
 
1643
- export interface ResponseListSwap {
1644
- code: string;
1645
- page: GraphQLClient.PageInfo;
1646
- swap: Array<null>;
1647
- }
1648
-
1649
1546
  export interface ResponseListTokens {
1650
1547
  code: string;
1651
1548
  page: GraphQLClient.PageInfo;
@@ -1764,14 +1661,6 @@ declare namespace GraphQLClient {
1764
1661
  id: string;
1765
1662
  }
1766
1663
 
1767
- export interface StakeContext {
1768
- totalStakes: string;
1769
- totalUnstakes: string;
1770
- totalReceivedStakes: string;
1771
- recentStakes: GraphQLClient.CircularQueue;
1772
- recentReceivedStakes: GraphQLClient.CircularQueue;
1773
- }
1774
-
1775
1664
  export interface StakeState {
1776
1665
  address: string;
1777
1666
  sender: string;
@@ -1804,34 +1693,6 @@ declare namespace GraphQLClient {
1804
1693
  renaissanceTime: string;
1805
1694
  }
1806
1695
 
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
1696
  export interface TokenInfo {
1836
1697
  address: string;
1837
1698
  balance: string;
@@ -2078,12 +1939,6 @@ declare namespace GraphQLClient {
2078
1939
  hash: string;
2079
1940
  }
2080
1941
 
2081
- export interface GetSwapStateParams {
2082
- address: string;
2083
- height: string;
2084
- keys: Array<string>;
2085
- }
2086
-
2087
1942
  export interface GetForgeStateParams {
2088
1943
  height: string;
2089
1944
  keys: Array<string>;
@@ -2111,19 +1966,6 @@ declare namespace GraphQLClient {
2111
1966
  parsed: boolean;
2112
1967
  }
2113
1968
 
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
1969
  export interface ListAssetTransactionsParams {
2128
1970
  address: string;
2129
1971
  paging: undefined;
@@ -2145,13 +1987,6 @@ declare namespace GraphQLClient {
2145
1987
  timeFilter: undefined;
2146
1988
  }
2147
1989
 
2148
- export interface ListSwapParams {
2149
- available: boolean;
2150
- paging: string;
2151
- receiver: string;
2152
- sender: string;
2153
- }
2154
-
2155
1990
  export interface ListTopAccountsParams {
2156
1991
  paging: undefined;
2157
1992
  tokenAddress: string;