@ocap/sdk 1.20.1 → 1.20.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/README.md +1 -1
- package/index.d.ts +10 -14
- package/lib/sdk.js +1 -1
- package/package.json +13 -12
package/README.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -462,7 +462,6 @@ declare interface OcapSDK {
|
|
|
462
462
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenTx>>,
|
|
463
463
|
extra?: any
|
|
464
464
|
): Promise<string>;
|
|
465
|
-
sendDeclareTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DeclareTx>>, extra?: any): Promise<string>;
|
|
466
465
|
sendDelegateTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DelegateTx>>, extra?: any): Promise<string>;
|
|
467
466
|
sendDepositTokenV2Tx(
|
|
468
467
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DepositTokenV2Tx>>,
|
|
@@ -557,9 +556,6 @@ declare interface OcapSDK {
|
|
|
557
556
|
encodeCreateTokenTx(
|
|
558
557
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenTx>>
|
|
559
558
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
560
|
-
encodeDeclareTx(
|
|
561
|
-
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DeclareTx>>
|
|
562
|
-
): Promise<GraphQLClient.EncodeTxResult>;
|
|
563
559
|
encodeDelegateTx(
|
|
564
560
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DelegateTx>>
|
|
565
561
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
@@ -662,7 +658,6 @@ declare interface OcapSDK {
|
|
|
662
658
|
signCreateTokenTx(
|
|
663
659
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenTx>>
|
|
664
660
|
): Promise<GraphQLClient.Transaction>;
|
|
665
|
-
signDeclareTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DeclareTx>>): Promise<GraphQLClient.Transaction>;
|
|
666
661
|
signDelegateTx(
|
|
667
662
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DelegateTx>>
|
|
668
663
|
): Promise<GraphQLClient.Transaction>;
|
|
@@ -1141,6 +1136,10 @@ declare namespace GraphQLClient {
|
|
|
1141
1136
|
height: number;
|
|
1142
1137
|
}
|
|
1143
1138
|
|
|
1139
|
+
interface RequestGetTokenDistributionInput {
|
|
1140
|
+
tokenAddress: string;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1144
1143
|
interface RequestGetTxInput {
|
|
1145
1144
|
hash: string;
|
|
1146
1145
|
}
|
|
@@ -1632,12 +1631,6 @@ declare namespace GraphQLClient {
|
|
|
1632
1631
|
data: GraphQLClient.Any;
|
|
1633
1632
|
}
|
|
1634
1633
|
|
|
1635
|
-
interface DeclareTx {
|
|
1636
|
-
moniker: string;
|
|
1637
|
-
issuer: string;
|
|
1638
|
-
data: GraphQLClient.Any;
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
1634
|
interface DelegateConfig {
|
|
1642
1635
|
deltaInterval: number;
|
|
1643
1636
|
typeUrls: string[];
|
|
@@ -2264,6 +2257,7 @@ declare namespace GraphQLClient {
|
|
|
2264
2257
|
}
|
|
2265
2258
|
|
|
2266
2259
|
interface ResponseGetTokenDistribution {
|
|
2260
|
+
code: string;
|
|
2267
2261
|
data: GraphQLClient.TokenDistribution;
|
|
2268
2262
|
}
|
|
2269
2263
|
|
|
@@ -2526,12 +2520,14 @@ declare namespace GraphQLClient {
|
|
|
2526
2520
|
}
|
|
2527
2521
|
|
|
2528
2522
|
interface TokenDistribution {
|
|
2529
|
-
|
|
2523
|
+
tokenAddress: string;
|
|
2530
2524
|
txTime: string;
|
|
2531
2525
|
account: string;
|
|
2532
|
-
|
|
2526
|
+
gas: string;
|
|
2527
|
+
fee: string;
|
|
2528
|
+
slashedVault: string;
|
|
2533
2529
|
stake: string;
|
|
2534
|
-
|
|
2530
|
+
revokedStake: string;
|
|
2535
2531
|
gasStake: string;
|
|
2536
2532
|
}
|
|
2537
2533
|
|
package/lib/sdk.js
CHANGED
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.20.
|
|
4
|
+
"version": "1.20.3",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "wangshijun",
|
|
7
7
|
"email": "shijun@arcblock.io",
|
|
@@ -18,15 +18,16 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcblock/did-util": "1.20.1",
|
|
22
|
-
"@ocap/client": "1.20.1",
|
|
23
|
-
"@ocap/message": "1.20.1",
|
|
24
|
-
"@ocap/util": "1.20.1",
|
|
25
|
-
"@ocap/wallet": "1.20.1",
|
|
26
21
|
"buffer": "6.0.3",
|
|
27
22
|
"debug": "^4.3.6",
|
|
28
23
|
"react-app-polyfill": "^1.0.6",
|
|
29
|
-
"readable-stream": "3.6.0"
|
|
24
|
+
"readable-stream": "3.6.0",
|
|
25
|
+
"@arcblock/did-util": "1.20.3",
|
|
26
|
+
"@ocap/client": "1.20.3",
|
|
27
|
+
"@ocap/message": "1.20.3",
|
|
28
|
+
"@ocap/util": "1.20.3",
|
|
29
|
+
"@ocap/wallet": "1.20.3",
|
|
30
|
+
"@ocap/e2e-test": "1.20.3"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"inspectpack": "^4.7.1",
|
|
@@ -69,18 +70,18 @@
|
|
|
69
70
|
"type": "git",
|
|
70
71
|
"url": "https://github.com/ArcBlock/blockchain/tree/master/core/forge-sdk"
|
|
71
72
|
},
|
|
73
|
+
"gitHead": "87990c8b5e215107fc587c1ced0d6b3e2cd2483e",
|
|
72
74
|
"scripts": {
|
|
73
75
|
"lint": "eslint lib *.js tests",
|
|
74
76
|
"lint:fix": "eslint --fix lib *.js tests",
|
|
75
77
|
"build-browser": "webpack",
|
|
76
|
-
"docs": "
|
|
78
|
+
"docs": "pnpm run gen-dts && pnpm run gen-docs && pnpm run cleanup-docs && pnpm run format-docs",
|
|
77
79
|
"cleanup-docs": "node ../../scripts/cleanup-docs.js docs/README.md $npm_package_name",
|
|
78
|
-
"build": "
|
|
80
|
+
"build": "pnpm run gen-docs && pnpm run gen-dts && pnpm run format-docs && pnpm run build-browser",
|
|
79
81
|
"gen-docs": "jsdoc2md lib/sdk.js > docs/README.md",
|
|
80
82
|
"format-docs": "remark . -o",
|
|
81
83
|
"gen-dts": "bash ./tools/gen-dts.sh index && rm -f *.*-E && prettier --write *.d.ts",
|
|
82
84
|
"test": "jest --forceExit --detectOpenHandles",
|
|
83
85
|
"coverage": "npm run test -- --coverage"
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
}
|
|
86
|
+
}
|
|
87
|
+
}
|