@ocap/sdk 1.19.2 → 1.19.3
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 +21 -0
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -847,6 +847,9 @@ declare interface OcapSDK {
|
|
|
847
847
|
verifyAccountRisk(
|
|
848
848
|
params: PartialDeep<GraphQLClient.VerifyAccountRiskParams>
|
|
849
849
|
): Promise<GraphQLClient.ResponseVerifyAccountRisk>;
|
|
850
|
+
getTokenDistribution(
|
|
851
|
+
params: PartialDeep<GraphQLClient.GetTokenDistributionParams>
|
|
852
|
+
): Promise<GraphQLClient.ResponseGetTokenDistribution>;
|
|
850
853
|
sendTx(params: PartialDeep<GraphQLClient.SendTxParams>): Promise<GraphQLClient.ResponseSendTx>;
|
|
851
854
|
}
|
|
852
855
|
|
|
@@ -2260,6 +2263,10 @@ declare namespace GraphQLClient {
|
|
|
2260
2263
|
state: GraphQLClient.StakeState;
|
|
2261
2264
|
}
|
|
2262
2265
|
|
|
2266
|
+
interface ResponseGetTokenDistribution {
|
|
2267
|
+
data: GraphQLClient.TokenDistribution;
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2263
2270
|
interface ResponseGetTokenState {
|
|
2264
2271
|
code: string;
|
|
2265
2272
|
state: GraphQLClient.TokenState;
|
|
@@ -2518,6 +2525,16 @@ declare namespace GraphQLClient {
|
|
|
2518
2525
|
renaissanceTime: string;
|
|
2519
2526
|
}
|
|
2520
2527
|
|
|
2528
|
+
interface TokenDistribution {
|
|
2529
|
+
address: string;
|
|
2530
|
+
txTime: string;
|
|
2531
|
+
account: string;
|
|
2532
|
+
vault: string;
|
|
2533
|
+
stake: string;
|
|
2534
|
+
revokeStake: string;
|
|
2535
|
+
gasStake: string;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2521
2538
|
interface TokenInfo {
|
|
2522
2539
|
address: string;
|
|
2523
2540
|
balance: string;
|
|
@@ -2981,6 +2998,10 @@ declare namespace GraphQLClient {
|
|
|
2981
2998
|
tokenAddress: string;
|
|
2982
2999
|
}
|
|
2983
3000
|
|
|
3001
|
+
interface GetTokenDistributionParams {
|
|
3002
|
+
tokenAddress: string;
|
|
3003
|
+
}
|
|
3004
|
+
|
|
2984
3005
|
interface SendTxParams {
|
|
2985
3006
|
commit: boolean;
|
|
2986
3007
|
token: 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.19.
|
|
4
|
+
"version": "1.19.3",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "wangshijun",
|
|
7
7
|
"email": "shijun@arcblock.io",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcblock/did-util": "1.19.
|
|
22
|
-
"@ocap/client": "1.19.
|
|
23
|
-
"@ocap/message": "1.19.
|
|
24
|
-
"@ocap/util": "1.19.
|
|
25
|
-
"@ocap/wallet": "1.19.
|
|
21
|
+
"@arcblock/did-util": "1.19.3",
|
|
22
|
+
"@ocap/client": "1.19.3",
|
|
23
|
+
"@ocap/message": "1.19.3",
|
|
24
|
+
"@ocap/util": "1.19.3",
|
|
25
|
+
"@ocap/wallet": "1.19.3",
|
|
26
26
|
"buffer": "6.0.3",
|
|
27
27
|
"debug": "^4.3.6",
|
|
28
28
|
"react-app-polyfill": "^1.0.6",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"test": "jest --forceExit --detectOpenHandles",
|
|
83
83
|
"coverage": "npm run test -- --coverage"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "756076dad0df7468beecc95c8effd55f8c4c4f49"
|
|
86
86
|
}
|