@ocap/sdk 1.16.8 → 1.16.12
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 +9 -5
- package/package.json +13 -12
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/prettier/prettier)
|
|
4
4
|
[](https://docs.arcblock.io)
|
|
5
|
-
[](https://gitter.im/ArcBlock/community?utm_source=badge
|
|
5
|
+
[](https://gitter.im/ArcBlock/community?utm_source=badge\&utm_medium=badge\&utm_campaign=pr-badge)
|
|
6
6
|
|
|
7
7
|
> Forge Javascript SDK packages all in one
|
|
8
8
|
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as bnJs from 'bn.js';
|
|
1
2
|
/**
|
|
2
3
|
* Validates if a value is an Uint8Array.
|
|
3
4
|
*
|
|
@@ -103,15 +104,15 @@ declare function toDid(address: any): string;
|
|
|
103
104
|
declare function toAddress(did: string): string;
|
|
104
105
|
declare namespace ForgeSdkUtil {
|
|
105
106
|
export interface T100 {
|
|
106
|
-
BN:
|
|
107
|
+
BN: typeof bnJs;
|
|
107
108
|
isBN: (object: any) => boolean;
|
|
108
109
|
isBigNumber: (object: any) => boolean;
|
|
109
110
|
isHexPrefixed: (str: string) => boolean;
|
|
110
111
|
stripHexPrefix: (str: string) => any;
|
|
111
112
|
utf8ToHex: (str: string) => string;
|
|
112
113
|
hexToUtf8: (hex: string) => string;
|
|
113
|
-
numberToHex: (value:
|
|
114
|
-
hexToNumber: (value:
|
|
114
|
+
numberToHex: (value: string | number | bnJs) => string;
|
|
115
|
+
hexToNumber: (value: string | number | bnJs) => number;
|
|
115
116
|
isHex: (hex: string) => boolean;
|
|
116
117
|
isHexStrict: (hex: string) => boolean;
|
|
117
118
|
isUint8Array: typeof isUint8Array;
|
|
@@ -120,8 +121,8 @@ declare namespace ForgeSdkUtil {
|
|
|
120
121
|
toHex: (value: any, returnType: boolean) => string;
|
|
121
122
|
numberToString: (arg: any) => any;
|
|
122
123
|
fromUnitToToken: (input: string | number, decimal?: number, optionsInput?: any) => string;
|
|
123
|
-
fromTokenToUnit: (input: string, decimal?: number) =>
|
|
124
|
-
toBN: (number:
|
|
124
|
+
fromTokenToUnit: (input: string, decimal?: number) => bnJs;
|
|
125
|
+
toBN: (number: string | number | bnJs) => bnJs;
|
|
125
126
|
toUint8Array: typeof toUint8Array;
|
|
126
127
|
toBuffer: typeof toBuffer;
|
|
127
128
|
toBase58: typeof toBase58;
|
|
@@ -452,6 +453,8 @@ declare namespace ForgeSdkUtil {
|
|
|
452
453
|
|
|
453
454
|
/*~ Write your module's methods and properties in this class */
|
|
454
455
|
declare interface OcapSDK {
|
|
456
|
+
constructor(httpEndpoint: string);
|
|
457
|
+
|
|
455
458
|
getQueries(): string[];
|
|
456
459
|
getSubscriptions(): string[];
|
|
457
460
|
getMutations(): string[];
|
|
@@ -694,6 +697,7 @@ declare interface OcapSDK {
|
|
|
694
697
|
multiSignMigrateRollupTokenTx(
|
|
695
698
|
param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupTokenTx>
|
|
696
699
|
): Promise<GraphQLClient.Transaction>;
|
|
700
|
+
multiSignCreateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.CreateAssetTx>): Promise<GraphQLClient.Transaction>;
|
|
697
701
|
getAccountState(
|
|
698
702
|
params: GraphQLClient.GetAccountStateParams
|
|
699
703
|
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetAccountState>;
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocap/sdk",
|
|
3
3
|
"description": "Forge javascript SDK packages all-in-one",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.12",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "wangshijun",
|
|
7
7
|
"email": "shijun@arcblock.io",
|
|
8
8
|
"url": "https://github.com/wangshijun"
|
|
9
9
|
},
|
|
10
|
+
"contributors": [
|
|
11
|
+
"wangshijun <shijun@arcblock.io> (https://github.com/wangshijun)"
|
|
12
|
+
],
|
|
10
13
|
"bugs": {
|
|
11
14
|
"url": "https://github.com/ArcBlock/asset-chain/issues",
|
|
12
15
|
"email": "shijun@arcblock.io"
|
|
@@ -15,21 +18,21 @@
|
|
|
15
18
|
"access": "public"
|
|
16
19
|
},
|
|
17
20
|
"dependencies": {
|
|
18
|
-
"@arcblock/did-util": "1.16.
|
|
19
|
-
"@ocap/client": "1.16.
|
|
20
|
-
"@ocap/message": "1.16.
|
|
21
|
-
"@ocap/util": "1.16.
|
|
22
|
-
"@ocap/wallet": "1.16.
|
|
21
|
+
"@arcblock/did-util": "1.16.12",
|
|
22
|
+
"@ocap/client": "1.16.12",
|
|
23
|
+
"@ocap/message": "1.16.12",
|
|
24
|
+
"@ocap/util": "1.16.12",
|
|
25
|
+
"@ocap/wallet": "1.16.12",
|
|
23
26
|
"debug": "^4.3.3",
|
|
24
27
|
"react-app-polyfill": "^1.0.1"
|
|
25
28
|
},
|
|
26
29
|
"devDependencies": {
|
|
27
30
|
"inspectpack": "^4.2.1",
|
|
28
31
|
"jest": "^27.3.1",
|
|
29
|
-
"jsdoc-to-markdown": "^
|
|
32
|
+
"jsdoc-to-markdown": "^7.1.1",
|
|
30
33
|
"prettier": "^2.3.2",
|
|
31
|
-
"remark-cli": "^
|
|
32
|
-
"remark-preset-github": "^
|
|
34
|
+
"remark-cli": "^10.0.1",
|
|
35
|
+
"remark-preset-github": "^4.0.1",
|
|
33
36
|
"webpack": "^4.29.6",
|
|
34
37
|
"webpack-bundle-analyzer": "^3.3.2",
|
|
35
38
|
"webpack-cli": "^3.3.0"
|
|
@@ -38,7 +41,6 @@
|
|
|
38
41
|
"plugins": [
|
|
39
42
|
"preset-github",
|
|
40
43
|
[
|
|
41
|
-
"validate-links",
|
|
42
44
|
{
|
|
43
45
|
"repository": "ArcBlock/asset-chain"
|
|
44
46
|
}
|
|
@@ -47,7 +49,6 @@
|
|
|
47
49
|
},
|
|
48
50
|
"homepage": "https://github.com/ArcBlock/asset-chain/tree/master/core/forge-sdk",
|
|
49
51
|
"keywords": [
|
|
50
|
-
"forge",
|
|
51
52
|
"blockchain",
|
|
52
53
|
"arcblock",
|
|
53
54
|
"sdk",
|
|
@@ -78,5 +79,5 @@
|
|
|
78
79
|
"test": "jest --forceExit --detectOpenHandles",
|
|
79
80
|
"coverage": "yarn test -- --coverage"
|
|
80
81
|
},
|
|
81
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "fbae535a1a8b38bb6942a5d80c4e20f88163833a"
|
|
82
83
|
}
|