@ocap/sdk 1.14.4 → 1.14.8

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.
Files changed (2) hide show
  1. package/index.d.ts +98 -197
  2. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -674,7 +674,15 @@ declare interface OcapSDK {
674
674
  sendExchangeV2Tx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeV2Tx>): Promise<GraphQLClient.ResponseSendTx>;
675
675
  sendJoinRollupTx(param: GraphQLClient.TxParam<GraphQLClient.JoinRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
676
676
  sendLeaveRollupTx(param: GraphQLClient.TxParam<GraphQLClient.LeaveRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
677
+ sendMigrateRollupContractTx(
678
+ param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupContractTx>
679
+ ): Promise<GraphQLClient.ResponseSendTx>;
680
+ sendMigrateRollupTokenTx(
681
+ param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupTokenTx>
682
+ ): Promise<GraphQLClient.ResponseSendTx>;
677
683
  sendMintAssetTx(param: GraphQLClient.TxParam<GraphQLClient.MintAssetTx>): Promise<GraphQLClient.ResponseSendTx>;
684
+ sendPauseRollupTx(param: GraphQLClient.TxParam<GraphQLClient.PauseRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
685
+ sendResumeRollupTx(param: GraphQLClient.TxParam<GraphQLClient.ResumeRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
678
686
  sendRevokeDelegateTx(
679
687
  param: GraphQLClient.TxParam<GraphQLClient.RevokeDelegateTx>
680
688
  ): Promise<GraphQLClient.ResponseSendTx>;
@@ -722,7 +730,17 @@ declare interface OcapSDK {
722
730
  encodeExchangeV2Tx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeV2Tx>): Promise<GraphQLClient.EncodeTxResult>;
723
731
  encodeJoinRollupTx(param: GraphQLClient.TxParam<GraphQLClient.JoinRollupTx>): Promise<GraphQLClient.EncodeTxResult>;
724
732
  encodeLeaveRollupTx(param: GraphQLClient.TxParam<GraphQLClient.LeaveRollupTx>): Promise<GraphQLClient.EncodeTxResult>;
733
+ encodeMigrateRollupContractTx(
734
+ param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupContractTx>
735
+ ): Promise<GraphQLClient.EncodeTxResult>;
736
+ encodeMigrateRollupTokenTx(
737
+ param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupTokenTx>
738
+ ): Promise<GraphQLClient.EncodeTxResult>;
725
739
  encodeMintAssetTx(param: GraphQLClient.TxParam<GraphQLClient.MintAssetTx>): Promise<GraphQLClient.EncodeTxResult>;
740
+ encodePauseRollupTx(param: GraphQLClient.TxParam<GraphQLClient.PauseRollupTx>): Promise<GraphQLClient.EncodeTxResult>;
741
+ encodeResumeRollupTx(
742
+ param: GraphQLClient.TxParam<GraphQLClient.ResumeRollupTx>
743
+ ): Promise<GraphQLClient.EncodeTxResult>;
726
744
  encodeRevokeDelegateTx(
727
745
  param: GraphQLClient.TxParam<GraphQLClient.RevokeDelegateTx>
728
746
  ): Promise<GraphQLClient.EncodeTxResult>;
@@ -768,7 +786,15 @@ declare interface OcapSDK {
768
786
  signExchangeV2Tx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeV2Tx>): Promise<GraphQLClient.Transaction>;
769
787
  signJoinRollupTx(param: GraphQLClient.TxParam<GraphQLClient.JoinRollupTx>): Promise<GraphQLClient.Transaction>;
770
788
  signLeaveRollupTx(param: GraphQLClient.TxParam<GraphQLClient.LeaveRollupTx>): Promise<GraphQLClient.Transaction>;
789
+ signMigrateRollupContractTx(
790
+ param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupContractTx>
791
+ ): Promise<GraphQLClient.Transaction>;
792
+ signMigrateRollupTokenTx(
793
+ param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupTokenTx>
794
+ ): Promise<GraphQLClient.Transaction>;
771
795
  signMintAssetTx(param: GraphQLClient.TxParam<GraphQLClient.MintAssetTx>): Promise<GraphQLClient.Transaction>;
796
+ signPauseRollupTx(param: GraphQLClient.TxParam<GraphQLClient.PauseRollupTx>): Promise<GraphQLClient.Transaction>;
797
+ signResumeRollupTx(param: GraphQLClient.TxParam<GraphQLClient.ResumeRollupTx>): Promise<GraphQLClient.Transaction>;
772
798
  signRevokeDelegateTx(
773
799
  param: GraphQLClient.TxParam<GraphQLClient.RevokeDelegateTx>
774
800
  ): Promise<GraphQLClient.Transaction>;
@@ -794,6 +820,10 @@ declare interface OcapSDK {
794
820
  ): Promise<GraphQLClient.Transaction>;
795
821
  multiSignJoinRollupTx(param: GraphQLClient.TxParam<GraphQLClient.JoinRollupTx>): Promise<GraphQLClient.Transaction>;
796
822
  multiSignLeaveRollupTx(param: GraphQLClient.TxParam<GraphQLClient.LeaveRollupTx>): Promise<GraphQLClient.Transaction>;
823
+ multiSignPauseRollupTx(param: GraphQLClient.TxParam<GraphQLClient.PauseRollupTx>): Promise<GraphQLClient.Transaction>;
824
+ multiSignResumeRollupTx(
825
+ param: GraphQLClient.TxParam<GraphQLClient.ResumeRollupTx>
826
+ ): Promise<GraphQLClient.Transaction>;
797
827
  multiSignDepositTokenV2Tx(
798
828
  param: GraphQLClient.TxParam<GraphQLClient.DepositTokenV2Tx>
799
829
  ): Promise<GraphQLClient.Transaction>;
@@ -806,6 +836,12 @@ declare interface OcapSDK {
806
836
  multiSignClaimBlockRewardTx(
807
837
  param: GraphQLClient.TxParam<GraphQLClient.ClaimBlockRewardTx>
808
838
  ): Promise<GraphQLClient.Transaction>;
839
+ multiSignMigrateRollupContractTx(
840
+ param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupContractTx>
841
+ ): Promise<GraphQLClient.Transaction>;
842
+ multiSignMigrateRollupTokenTx(
843
+ param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupTokenTx>
844
+ ): Promise<GraphQLClient.Transaction>;
809
845
  getAccountState(
810
846
  params: GraphQLClient.GetAccountStateParams
811
847
  ): GraphQLClient.QueryResult<GraphQLClient.ResponseGetAccountState>;
@@ -824,7 +860,6 @@ declare interface OcapSDK {
824
860
  getEvidenceState(
825
861
  params: GraphQLClient.GetEvidenceStateParams
826
862
  ): GraphQLClient.QueryResult<GraphQLClient.ResponseGetEvidenceState>;
827
- getSwapState(params: GraphQLClient.GetSwapStateParams): GraphQLClient.QueryResult<GraphQLClient.ResponseGetSwapState>;
828
863
  getForgeState(
829
864
  params: GraphQLClient.GetForgeStateParams
830
865
  ): GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeState>;
@@ -836,26 +871,14 @@ declare interface OcapSDK {
836
871
  ): GraphQLClient.QueryResult<GraphQLClient.ResponseGetUnconfirmedTxs>;
837
872
  getChainInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetChainInfo>;
838
873
  getConfig(params: GraphQLClient.GetConfigParams): GraphQLClient.QueryResult<GraphQLClient.ResponseGetConfig>;
839
- getHealthStatus(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetHealthStatus>;
840
874
  getNetInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetNetInfo>;
841
875
  getNodeInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetNodeInfo>;
842
876
  getValidatorsInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetValidatorsInfo>;
843
- getForgeStats(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeStats>;
844
- getForgeStatsByDay(
845
- params: GraphQLClient.GetForgeStatsByDayParams
846
- ): GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeStats>;
847
- getForgeStatsByHour(
848
- params: GraphQLClient.GetForgeStatsByHourParams
849
- ): GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeStats>;
850
- getSwapStatistics(
851
- params: GraphQLClient.GetSwapStatisticsParams
852
- ): GraphQLClient.QueryResult<GraphQLClient.ResponseGetSwapStatistics>;
853
877
  listAssetTransactions(
854
878
  params: GraphQLClient.ListAssetTransactionsParams
855
879
  ): GraphQLClient.QueryResult<GraphQLClient.ResponseListAssetTransactions>;
856
880
  listAssets(params: GraphQLClient.ListAssetsParams): GraphQLClient.QueryResult<GraphQLClient.ResponseListAssets>;
857
881
  listBlocks(params: GraphQLClient.ListBlocksParams): GraphQLClient.QueryResult<GraphQLClient.ResponseListBlocks>;
858
- listSwap(params: GraphQLClient.ListSwapParams): GraphQLClient.QueryResult<GraphQLClient.ResponseListSwap>;
859
882
  listTopAccounts(
860
883
  params: GraphQLClient.ListTopAccountsParams
861
884
  ): GraphQLClient.QueryResult<GraphQLClient.ResponseListTopAccounts>;
@@ -1115,10 +1138,6 @@ declare namespace GraphQLClient {
1115
1138
 
1116
1139
  export interface AssetFilterInput {}
1117
1140
 
1118
- export interface ByDayInput {}
1119
-
1120
- export interface ByHourInput {}
1121
-
1122
1141
  export interface FactoryFilterInput {}
1123
1142
 
1124
1143
  export interface PageInput {}
@@ -1141,8 +1160,6 @@ declare namespace GraphQLClient {
1141
1160
 
1142
1161
  export interface RequestGetStateInput {}
1143
1162
 
1144
- export interface RequestGetSwapStatisticsInput {}
1145
-
1146
1163
  export interface RequestGetTxInput {}
1147
1164
 
1148
1165
  export interface RequestListAssetTransactionsInput {}
@@ -1161,8 +1178,6 @@ declare namespace GraphQLClient {
1161
1178
 
1162
1179
  export interface RequestListStakesInput {}
1163
1180
 
1164
- export interface RequestListSwapInput {}
1165
-
1166
1181
  export interface RequestListTokensInput {}
1167
1182
 
1168
1183
  export interface RequestListTopAccountsInput {}
@@ -1191,11 +1206,6 @@ declare namespace GraphQLClient {
1191
1206
 
1192
1207
  export interface WalletTypeInput {}
1193
1208
 
1194
- export interface AbciServerStatus {
1195
- abciConsensus: string;
1196
- abciInfo: string;
1197
- }
1198
-
1199
1209
  export interface AccountConfig {
1200
1210
  address: string;
1201
1211
  pk: string;
@@ -1223,10 +1233,6 @@ declare namespace GraphQLClient {
1223
1233
  migratedTo: Array<null>;
1224
1234
  migratedFrom: Array<null>;
1225
1235
  numAssets: string;
1226
- stake: GraphQLClient.StakeContext;
1227
- pinnedFiles: GraphQLClient.CircularQueue;
1228
- depositReceived: string;
1229
- withdrawItems: GraphQLClient.CircularQueue;
1230
1236
  tokens: Array<null>;
1231
1237
  data: GraphQLClient.Any;
1232
1238
  }
@@ -1243,7 +1249,7 @@ declare namespace GraphQLClient {
1243
1249
  address: string;
1244
1250
  assets: Array<null>;
1245
1251
  variables: Array<null>;
1246
- issuer: GraphQLClient.AssetIssuer;
1252
+ issuer: GraphQLClient.NFTIssuer;
1247
1253
  data: GraphQLClient.Any;
1248
1254
  }
1249
1255
 
@@ -1253,7 +1259,7 @@ declare namespace GraphQLClient {
1253
1259
  inputs: Array<null>;
1254
1260
  owner: string;
1255
1261
  variables: Array<null>;
1256
- issuer: GraphQLClient.AssetIssuer;
1262
+ issuer: GraphQLClient.NFTIssuer;
1257
1263
  data: GraphQLClient.Any;
1258
1264
  }
1259
1265
 
@@ -1262,11 +1268,6 @@ declare namespace GraphQLClient {
1262
1268
  value: string;
1263
1269
  }
1264
1270
 
1265
- export interface AssetDisplay {
1266
- type: string;
1267
- content: string;
1268
- }
1269
-
1270
1271
  export interface AssetFactoryHook {
1271
1272
  name: string;
1272
1273
  type: string;
@@ -1296,16 +1297,10 @@ declare namespace GraphQLClient {
1296
1297
  balance: string;
1297
1298
  tokens: Array<null>;
1298
1299
  numMinted: number;
1299
- display: GraphQLClient.AssetDisplay;
1300
+ display: GraphQLClient.NFTDisplay;
1300
1301
  lastSettlement: string;
1301
1302
  }
1302
1303
 
1303
- export interface AssetIssuer {
1304
- id: string;
1305
- pk: string;
1306
- name: string;
1307
- }
1308
-
1309
1304
  export interface AssetState {
1310
1305
  address: string;
1311
1306
  owner: string;
@@ -1316,7 +1311,9 @@ declare namespace GraphQLClient {
1316
1311
  consumedTime: string;
1317
1312
  issuer: string;
1318
1313
  parent: string;
1319
- stake: GraphQLClient.StakeContext;
1314
+ endpoint: GraphQLClient.NFTEndpoint;
1315
+ display: GraphQLClient.NFTDisplay;
1316
+ tags: Array<null>;
1320
1317
  context: GraphQLClient.StateContext;
1321
1318
  data: GraphQLClient.Any;
1322
1319
  }
@@ -1391,14 +1388,6 @@ declare namespace GraphQLClient {
1391
1388
  value: string;
1392
1389
  }
1393
1390
 
1394
- export interface CircularQueue {
1395
- items: Array<null>;
1396
- typeUrl: string;
1397
- maxItems: number;
1398
- circular: boolean;
1399
- fifo: boolean;
1400
- }
1401
-
1402
1391
  export interface ClaimBlockRewardTx {
1403
1392
  rollup: string;
1404
1393
  blockHeight: number;
@@ -1425,12 +1414,6 @@ declare namespace GraphQLClient {
1425
1414
  paramChanged: boolean;
1426
1415
  }
1427
1416
 
1428
- export interface ConsensusStatus {
1429
- health: boolean;
1430
- synced: boolean;
1431
- blockHeight: string;
1432
- }
1433
-
1434
1417
  export interface CreateAssetTx {
1435
1418
  moniker: string;
1436
1419
  data: GraphQLClient.Any;
@@ -1440,6 +1423,9 @@ declare namespace GraphQLClient {
1440
1423
  parent: string;
1441
1424
  address: string;
1442
1425
  issuer: string;
1426
+ endpoint: GraphQLClient.NFTEndpoint;
1427
+ display: GraphQLClient.NFTDisplay;
1428
+ tags: Array<null>;
1443
1429
  }
1444
1430
 
1445
1431
  export interface CreateFactoryTx {
@@ -1452,7 +1438,7 @@ declare namespace GraphQLClient {
1452
1438
  output: GraphQLClient.CreateAssetTx;
1453
1439
  hooks: Array<null>;
1454
1440
  address: string;
1455
- display: GraphQLClient.AssetDisplay;
1441
+ display: GraphQLClient.NFTDisplay;
1456
1442
  data: GraphQLClient.Any;
1457
1443
  }
1458
1444
 
@@ -1571,11 +1557,6 @@ declare namespace GraphQLClient {
1571
1557
  data: GraphQLClient.Any;
1572
1558
  }
1573
1559
 
1574
- export interface DiskSpaceStatus {
1575
- forgeUsage: string;
1576
- total: string;
1577
- }
1578
-
1579
1560
  export interface Evidence {
1580
1561
  hash: string;
1581
1562
  }
@@ -1638,35 +1619,6 @@ declare namespace GraphQLClient {
1638
1619
  value: GraphQLClient.UpgradeTasks;
1639
1620
  }
1640
1621
 
1641
- export interface ForgeStats {
1642
- numBlocks: Array<null>;
1643
- numTxs: Array<null>;
1644
- numStakes: Array<null>;
1645
- numValidators: Array<null>;
1646
- numAccountMigrateTxs: Array<null>;
1647
- numCreateAssetTxs: Array<null>;
1648
- numConsensusUpgradeTxs: Array<null>;
1649
- numDeclareTxs: Array<null>;
1650
- numDeclareFileTxs: Array<null>;
1651
- numExchangeTxs: Array<null>;
1652
- numStakeTxs: Array<null>;
1653
- numSysUpgradeTxs: Array<null>;
1654
- numTransferTxs: Array<null>;
1655
- numUpdateAssetTxs: Array<null>;
1656
- numConsumeAssetTxs: Array<null>;
1657
- tps: Array<null>;
1658
- maxTps: number;
1659
- avgTps: number;
1660
- avgBlockTime: number;
1661
- }
1662
-
1663
- export interface ForgeStatus {
1664
- health: boolean;
1665
- abiServer: string;
1666
- forgeWeb: string;
1667
- abciServer: GraphQLClient.AbciServerStatus;
1668
- }
1669
-
1670
1622
  export interface ForgeToken {
1671
1623
  name: string;
1672
1624
  symbol: string;
@@ -1677,6 +1629,7 @@ declare namespace GraphQLClient {
1677
1629
  initialSupply: string;
1678
1630
  totalSupply: string;
1679
1631
  inflationRate: number;
1632
+ address: string;
1680
1633
  }
1681
1634
 
1682
1635
  export interface GeoInfo {
@@ -1686,13 +1639,6 @@ declare namespace GraphQLClient {
1686
1639
  longitude: number;
1687
1640
  }
1688
1641
 
1689
- export interface HealthStatus {
1690
- consensus: GraphQLClient.ConsensusStatus;
1691
- network: GraphQLClient.NetworkStatus;
1692
- storage: GraphQLClient.StorageStatus;
1693
- forge: GraphQLClient.ForgeStatus;
1694
- }
1695
-
1696
1642
  export interface IndexedAccountState {
1697
1643
  address: string;
1698
1644
  balance: string;
@@ -1759,7 +1705,7 @@ declare namespace GraphQLClient {
1759
1705
  lastSettlement: string;
1760
1706
  genesisTime: string;
1761
1707
  renaissanceTime: string;
1762
- display: GraphQLClient.AssetDisplay;
1708
+ display: GraphQLClient.NFTDisplay;
1763
1709
  }
1764
1710
 
1765
1711
  export interface IndexedRollupBlock {
@@ -1820,6 +1766,7 @@ declare namespace GraphQLClient {
1820
1766
  publisherFeeShare: number;
1821
1767
  publishWaitingPeriod: number;
1822
1768
  publishSlashRate: number;
1769
+ migrateHistory: Array<null>;
1823
1770
  data: GraphQLClient.Any;
1824
1771
  }
1825
1772
 
@@ -1916,6 +1863,20 @@ declare namespace GraphQLClient {
1916
1863
  data: GraphQLClient.Any;
1917
1864
  }
1918
1865
 
1866
+ export interface MigrateRollupContractTx {
1867
+ rollup: string;
1868
+ to: string;
1869
+ data: GraphQLClient.Any;
1870
+ }
1871
+
1872
+ export interface MigrateRollupTokenTx {
1873
+ rollup: string;
1874
+ from: string;
1875
+ to: string;
1876
+ token: GraphQLClient.TokenInput;
1877
+ data: GraphQLClient.Any;
1878
+ }
1879
+
1919
1880
  export interface MintAssetTx {
1920
1881
  factory: string;
1921
1882
  address: string;
@@ -1933,6 +1894,22 @@ declare namespace GraphQLClient {
1933
1894
  data: GraphQLClient.Any;
1934
1895
  }
1935
1896
 
1897
+ export interface NFTDisplay {
1898
+ type: string;
1899
+ content: string;
1900
+ }
1901
+
1902
+ export interface NFTEndpoint {
1903
+ id: string;
1904
+ scope: string;
1905
+ }
1906
+
1907
+ export interface NFTIssuer {
1908
+ id: string;
1909
+ pk: string;
1910
+ name: string;
1911
+ }
1912
+
1936
1913
  export interface NetInfo {
1937
1914
  listening: boolean;
1938
1915
  listeners: Array<null>;
@@ -1940,11 +1917,6 @@ declare namespace GraphQLClient {
1940
1917
  peers: Array<null>;
1941
1918
  }
1942
1919
 
1943
- export interface NetworkStatus {
1944
- health: boolean;
1945
- numPeers: number;
1946
- }
1947
-
1948
1920
  export interface NodeInfo {
1949
1921
  id: string;
1950
1922
  network: string;
@@ -1982,6 +1954,11 @@ declare namespace GraphQLClient {
1982
1954
  hash: string;
1983
1955
  }
1984
1956
 
1957
+ export interface PauseRollupTx {
1958
+ rollup: string;
1959
+ data: GraphQLClient.Any;
1960
+ }
1961
+
1985
1962
  export interface PeerInfo {
1986
1963
  id: string;
1987
1964
  network: string;
@@ -2057,16 +2034,6 @@ declare namespace GraphQLClient {
2057
2034
  state: GraphQLClient.ForgeState;
2058
2035
  }
2059
2036
 
2060
- export interface ResponseGetForgeStats {
2061
- code: string;
2062
- forgeStats: GraphQLClient.ForgeStats;
2063
- }
2064
-
2065
- export interface ResponseGetHealthStatus {
2066
- code: string;
2067
- healthStatus: GraphQLClient.HealthStatus;
2068
- }
2069
-
2070
2037
  export interface ResponseGetNetInfo {
2071
2038
  code: string;
2072
2039
  netInfo: GraphQLClient.NetInfo;
@@ -2092,16 +2059,6 @@ declare namespace GraphQLClient {
2092
2059
  state: GraphQLClient.StakeState;
2093
2060
  }
2094
2061
 
2095
- export interface ResponseGetSwapState {
2096
- code: string;
2097
- state: GraphQLClient.SwapState;
2098
- }
2099
-
2100
- export interface ResponseGetSwapStatistics {
2101
- code: string;
2102
- statistics: GraphQLClient.SwapStatistics;
2103
- }
2104
-
2105
2062
  export interface ResponseGetTokenState {
2106
2063
  code: string;
2107
2064
  state: GraphQLClient.TokenState;
@@ -2171,12 +2128,6 @@ declare namespace GraphQLClient {
2171
2128
  stakes: Array<null>;
2172
2129
  }
2173
2130
 
2174
- export interface ResponseListSwap {
2175
- code: string;
2176
- page: GraphQLClient.PageInfo;
2177
- swap: Array<null>;
2178
- }
2179
-
2180
2131
  export interface ResponseListTokens {
2181
2132
  code: string;
2182
2133
  page: GraphQLClient.PageInfo;
@@ -2206,6 +2157,11 @@ declare namespace GraphQLClient {
2206
2157
  hash: string;
2207
2158
  }
2208
2159
 
2160
+ export interface ResumeRollupTx {
2161
+ rollup: string;
2162
+ data: GraphQLClient.Any;
2163
+ }
2164
+
2209
2165
  export interface RevokeDelegateTx {
2210
2166
  address: string;
2211
2167
  to: string;
@@ -2274,6 +2230,7 @@ declare namespace GraphQLClient {
2274
2230
  leaveWaitingPeriod: number;
2275
2231
  publishWaitingPeriod: number;
2276
2232
  publishSlashRate: number;
2233
+ migrateHistory: Array<null>;
2277
2234
  context: GraphQLClient.StateContext;
2278
2235
  data: GraphQLClient.Any;
2279
2236
  }
@@ -2289,14 +2246,6 @@ declare namespace GraphQLClient {
2289
2246
  id: string;
2290
2247
  }
2291
2248
 
2292
- export interface StakeContext {
2293
- totalStakes: string;
2294
- totalUnstakes: string;
2295
- totalReceivedStakes: string;
2296
- recentStakes: GraphQLClient.CircularQueue;
2297
- recentReceivedStakes: GraphQLClient.CircularQueue;
2298
- }
2299
-
2300
2249
  export interface StakeState {
2301
2250
  address: string;
2302
2251
  sender: string;
@@ -2329,34 +2278,6 @@ declare namespace GraphQLClient {
2329
2278
  renaissanceTime: string;
2330
2279
  }
2331
2280
 
2332
- export interface StorageStatus {
2333
- health: boolean;
2334
- indexerServer: string;
2335
- stateDb: string;
2336
- diskSpace: GraphQLClient.DiskSpaceStatus;
2337
- }
2338
-
2339
- export interface SwapState {
2340
- hash: string;
2341
- address: string;
2342
- hashkey: string;
2343
- sender: string;
2344
- receiver: string;
2345
- value: string;
2346
- assets: Array<null>;
2347
- locktime: number;
2348
- hashlock: string;
2349
- context: GraphQLClient.StateContext;
2350
- }
2351
-
2352
- export interface SwapStatistics {
2353
- address: string;
2354
- lockedValueOut: string;
2355
- lockedValueIn: string;
2356
- lockedAssetsOut: number;
2357
- lockedAssetsIn: number;
2358
- }
2359
-
2360
2281
  export interface TokenInfo {
2361
2282
  address: string;
2362
2283
  balance: string;
@@ -2403,6 +2324,7 @@ declare namespace GraphQLClient {
2403
2324
  itxJson: undefined;
2404
2325
  sender: string;
2405
2326
  receiver: string;
2327
+ serviceFee: string;
2406
2328
  }
2407
2329
 
2408
2330
  export interface TransactionConfig {
@@ -2410,6 +2332,7 @@ declare namespace GraphQLClient {
2410
2332
  maxListSize: number;
2411
2333
  maxMultisig: number;
2412
2334
  delegate: GraphQLClient.DelegateConfig;
2335
+ txFee: Array<null>;
2413
2336
  }
2414
2337
 
2415
2338
  export interface TransactionInfo {
@@ -2458,6 +2381,11 @@ declare namespace GraphQLClient {
2458
2381
  data: GraphQLClient.Any;
2459
2382
  }
2460
2383
 
2384
+ export interface TxFeeConfig {
2385
+ typeUrl: string;
2386
+ fee: string;
2387
+ }
2388
+
2461
2389
  export interface UnconfirmedTxs {
2462
2390
  nTxs: number;
2463
2391
  txs: Array<null>;
@@ -2489,12 +2417,11 @@ declare namespace GraphQLClient {
2489
2417
  maxDepositFee: string;
2490
2418
  minWithdrawFee: string;
2491
2419
  maxWithdrawFee: string;
2492
- paused: boolean;
2493
- rollup: string;
2494
2420
  publisherFeeShare: number;
2495
2421
  leaveWaitingPeriod: number;
2496
2422
  publishWaitingPeriod: number;
2497
2423
  publishSlashRate: number;
2424
+ rollup: string;
2498
2425
  data: GraphQLClient.Any;
2499
2426
  }
2500
2427
 
@@ -2597,12 +2524,6 @@ declare namespace GraphQLClient {
2597
2524
  hash: string;
2598
2525
  }
2599
2526
 
2600
- export interface GetSwapStateParams {
2601
- address: string;
2602
- height: string;
2603
- keys: Array<string>;
2604
- }
2605
-
2606
2527
  export interface GetForgeStateParams {
2607
2528
  height: string;
2608
2529
  keys: Array<string>;
@@ -2630,19 +2551,6 @@ declare namespace GraphQLClient {
2630
2551
  parsed: boolean;
2631
2552
  }
2632
2553
 
2633
- export interface GetForgeStatsByDayParams {
2634
- endDate: string;
2635
- startDate: string;
2636
- }
2637
-
2638
- export interface GetForgeStatsByHourParams {
2639
- date: string;
2640
- }
2641
-
2642
- export interface GetSwapStatisticsParams {
2643
- address: string;
2644
- }
2645
-
2646
2554
  export interface ListAssetTransactionsParams {
2647
2555
  address: string;
2648
2556
  paging: undefined;
@@ -2664,13 +2572,6 @@ declare namespace GraphQLClient {
2664
2572
  timeFilter: undefined;
2665
2573
  }
2666
2574
 
2667
- export interface ListSwapParams {
2668
- available: boolean;
2669
- paging: string;
2670
- receiver: string;
2671
- sender: string;
2672
- }
2673
-
2674
2575
  export interface ListTopAccountsParams {
2675
2576
  paging: undefined;
2676
2577
  tokenAddress: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocap/sdk",
3
3
  "description": "Forge javascript SDK packages all-in-one",
4
- "version": "1.14.4",
4
+ "version": "1.14.8",
5
5
  "author": {
6
6
  "name": "wangshijun",
7
7
  "email": "shijun@arcblock.io",
@@ -15,11 +15,11 @@
15
15
  "access": "public"
16
16
  },
17
17
  "dependencies": {
18
- "@arcblock/did-util": "1.14.4",
19
- "@ocap/client": "1.14.4",
20
- "@ocap/message": "1.14.4",
21
- "@ocap/util": "1.14.4",
22
- "@ocap/wallet": "1.14.4",
18
+ "@arcblock/did-util": "1.14.8",
19
+ "@ocap/client": "1.14.8",
20
+ "@ocap/message": "1.14.8",
21
+ "@ocap/util": "1.14.8",
22
+ "@ocap/wallet": "1.14.8",
23
23
  "debug": "^4.3.2",
24
24
  "react-app-polyfill": "^1.0.1"
25
25
  },
@@ -78,5 +78,5 @@
78
78
  "test": "jest --forceExit --detectOpenHandles",
79
79
  "coverage": "yarn test -- --coverage"
80
80
  },
81
- "gitHead": "33f7b1d72aa51e58a269b2681bd19e2119d1721e"
81
+ "gitHead": "1d41025b5e00840e7cba0887c3b60adc4f388b7a"
82
82
  }