@ocap/sdk 1.18.18 → 1.18.20
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 +20 -0
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -517,6 +517,10 @@ declare interface OcapSDK {
|
|
|
517
517
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeStakeTx>>,
|
|
518
518
|
extra?: any
|
|
519
519
|
): Promise<GraphQLClient.ResponseSendTx>;
|
|
520
|
+
sendSlashStakeTx(
|
|
521
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.SlashStakeTx>>,
|
|
522
|
+
extra?: any
|
|
523
|
+
): Promise<GraphQLClient.ResponseSendTx>;
|
|
520
524
|
sendStakeTx(
|
|
521
525
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.StakeTx>>,
|
|
522
526
|
extra?: any
|
|
@@ -621,6 +625,9 @@ declare interface OcapSDK {
|
|
|
621
625
|
encodeRevokeStakeTx(
|
|
622
626
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeStakeTx>>
|
|
623
627
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
628
|
+
encodeSlashStakeTx(
|
|
629
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.SlashStakeTx>>
|
|
630
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
624
631
|
encodeStakeTx(
|
|
625
632
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.StakeTx>>
|
|
626
633
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
@@ -715,6 +722,9 @@ declare interface OcapSDK {
|
|
|
715
722
|
signRevokeStakeTx(
|
|
716
723
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeStakeTx>>
|
|
717
724
|
): Promise<GraphQLClient.Transaction>;
|
|
725
|
+
signSlashStakeTx(
|
|
726
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.SlashStakeTx>>
|
|
727
|
+
): Promise<GraphQLClient.Transaction>;
|
|
718
728
|
signStakeTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.StakeTx>>): Promise<GraphQLClient.Transaction>;
|
|
719
729
|
signTransferTx(
|
|
720
730
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferTx>>
|
|
@@ -1929,6 +1939,7 @@ declare namespace GraphQLClient {
|
|
|
1929
1939
|
revokeWaitingPeriod: number;
|
|
1930
1940
|
revokedTokens: GraphQLClient.TokenInfo[];
|
|
1931
1941
|
revokedAssets: string[];
|
|
1942
|
+
slashers: string[];
|
|
1932
1943
|
data: GraphQLClient.Any;
|
|
1933
1944
|
}
|
|
1934
1945
|
|
|
@@ -2382,6 +2393,13 @@ declare namespace GraphQLClient {
|
|
|
2382
2393
|
id: string;
|
|
2383
2394
|
}
|
|
2384
2395
|
|
|
2396
|
+
interface SlashStakeTx {
|
|
2397
|
+
address: string;
|
|
2398
|
+
outputs: GraphQLClient.TransactionInput[];
|
|
2399
|
+
message: string;
|
|
2400
|
+
data: GraphQLClient.Any;
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2385
2403
|
interface StakeState {
|
|
2386
2404
|
address: string;
|
|
2387
2405
|
sender: string;
|
|
@@ -2393,6 +2411,7 @@ declare namespace GraphQLClient {
|
|
|
2393
2411
|
revokeWaitingPeriod: number;
|
|
2394
2412
|
revokedTokens: GraphQLClient.IndexedTokenInput[];
|
|
2395
2413
|
revokedAssets: string[];
|
|
2414
|
+
slashers: string[];
|
|
2396
2415
|
context: GraphQLClient.StateContext;
|
|
2397
2416
|
data: GraphQLClient.Any;
|
|
2398
2417
|
}
|
|
@@ -2404,6 +2423,7 @@ declare namespace GraphQLClient {
|
|
|
2404
2423
|
locked: boolean;
|
|
2405
2424
|
message: string;
|
|
2406
2425
|
revokeWaitingPeriod: number;
|
|
2426
|
+
slashers: string[];
|
|
2407
2427
|
data: GraphQLClient.Any;
|
|
2408
2428
|
}
|
|
2409
2429
|
|
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.18.
|
|
4
|
+
"version": "1.18.20",
|
|
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.18.
|
|
22
|
-
"@ocap/client": "1.18.
|
|
23
|
-
"@ocap/message": "1.18.
|
|
24
|
-
"@ocap/util": "1.18.
|
|
25
|
-
"@ocap/wallet": "1.18.
|
|
21
|
+
"@arcblock/did-util": "1.18.20",
|
|
22
|
+
"@ocap/client": "1.18.20",
|
|
23
|
+
"@ocap/message": "1.18.20",
|
|
24
|
+
"@ocap/util": "1.18.20",
|
|
25
|
+
"@ocap/wallet": "1.18.20",
|
|
26
26
|
"buffer": "6.0.3",
|
|
27
27
|
"debug": "^4.3.4",
|
|
28
28
|
"react-app-polyfill": "^1.0.6",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"test": "jest --forceExit --detectOpenHandles",
|
|
83
83
|
"coverage": "yarn test -- --coverage"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "f220849b0c31f7f90281684080f001e18df9e077"
|
|
86
86
|
}
|