@ocap/sdk 1.14.16 → 1.14.19

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 +31 -0
  2. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -874,6 +874,7 @@ declare interface OcapSDK {
874
874
  getNetInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetNetInfo>;
875
875
  getNodeInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetNodeInfo>;
876
876
  getValidatorsInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetValidatorsInfo>;
877
+ getForgeStats(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeStats>;
877
878
  listAssetTransactions(
878
879
  params: GraphQLClient.ListAssetTransactionsParams
879
880
  ): GraphQLClient.QueryResult<GraphQLClient.ResponseListAssetTransactions>;
@@ -1619,6 +1620,28 @@ declare namespace GraphQLClient {
1619
1620
  value: GraphQLClient.UpgradeTasks;
1620
1621
  }
1621
1622
 
1623
+ export interface ForgeStats {
1624
+ numBlocks: Array<null>;
1625
+ numTxs: Array<null>;
1626
+ numStakes: Array<null>;
1627
+ numValidators: Array<null>;
1628
+ numAccountMigrateTxs: Array<null>;
1629
+ numCreateAssetTxs: Array<null>;
1630
+ numConsensusUpgradeTxs: Array<null>;
1631
+ numDeclareTxs: Array<null>;
1632
+ numDeclareFileTxs: Array<null>;
1633
+ numExchangeTxs: Array<null>;
1634
+ numStakeTxs: Array<null>;
1635
+ numSysUpgradeTxs: Array<null>;
1636
+ numTransferTxs: Array<null>;
1637
+ numUpdateAssetTxs: Array<null>;
1638
+ numConsumeAssetTxs: Array<null>;
1639
+ tps: Array<null>;
1640
+ maxTps: number;
1641
+ avgTps: number;
1642
+ avgBlockTime: number;
1643
+ }
1644
+
1622
1645
  export interface ForgeToken {
1623
1646
  name: string;
1624
1647
  symbol: string;
@@ -1669,6 +1692,9 @@ declare namespace GraphQLClient {
1669
1692
  parent: string;
1670
1693
  transferrable: boolean;
1671
1694
  ttl: string;
1695
+ display: GraphQLClient.NFTDisplay;
1696
+ endpoint: GraphQLClient.NFTEndpoint;
1697
+ tags: Array<null>;
1672
1698
  data: GraphQLClient.Any;
1673
1699
  }
1674
1700
 
@@ -2034,6 +2060,11 @@ declare namespace GraphQLClient {
2034
2060
  state: GraphQLClient.ForgeState;
2035
2061
  }
2036
2062
 
2063
+ export interface ResponseGetForgeStats {
2064
+ code: string;
2065
+ forgeStats: GraphQLClient.ForgeStats;
2066
+ }
2067
+
2037
2068
  export interface ResponseGetNetInfo {
2038
2069
  code: string;
2039
2070
  netInfo: GraphQLClient.NetInfo;
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.16",
4
+ "version": "1.14.19",
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.16",
19
- "@ocap/client": "1.14.16",
20
- "@ocap/message": "1.14.16",
21
- "@ocap/util": "1.14.16",
22
- "@ocap/wallet": "1.14.16",
18
+ "@arcblock/did-util": "1.14.19",
19
+ "@ocap/client": "1.14.19",
20
+ "@ocap/message": "1.14.19",
21
+ "@ocap/util": "1.14.19",
22
+ "@ocap/wallet": "1.14.19",
23
23
  "debug": "^4.3.3",
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": "53e2aa00680086b80bf1b2e46861046468155915"
81
+ "gitHead": "d33beacd1ad435f80b04da210ea60afb30e9b142"
82
82
  }