@ocap/sdk 1.14.15 → 1.14.18
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/index.d.ts +31 -0
- 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.
|
|
4
|
+
"version": "1.14.18",
|
|
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.
|
|
19
|
-
"@ocap/client": "1.14.
|
|
20
|
-
"@ocap/message": "1.14.
|
|
21
|
-
"@ocap/util": "1.14.
|
|
22
|
-
"@ocap/wallet": "1.14.
|
|
18
|
+
"@arcblock/did-util": "1.14.18",
|
|
19
|
+
"@ocap/client": "1.14.18",
|
|
20
|
+
"@ocap/message": "1.14.18",
|
|
21
|
+
"@ocap/util": "1.14.18",
|
|
22
|
+
"@ocap/wallet": "1.14.18",
|
|
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": "
|
|
81
|
+
"gitHead": "b8513b6a7a1a5fa96842b4a48597e9a3e77b04d1"
|
|
82
82
|
}
|