@ocap/sdk 1.16.8 → 1.16.9

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +7 -5
  3. package/package.json +13 -12
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
4
4
  [![docs](https://img.shields.io/badge/powered%20by-arcblock-green.svg)](https://docs.arcblock.io)
5
- [![Gitter](https://badges.gitter.im/ArcBlock/community.svg)](https://gitter.im/ArcBlock/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
5
+ [![Gitter](https://badges.gitter.im/ArcBlock/community.svg)](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: any;
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: any) => string;
114
- hexToNumber: (value: any) => number;
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) => any;
124
- toBN: (number: any) => any;
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;
@@ -694,6 +695,7 @@ declare interface OcapSDK {
694
695
  multiSignMigrateRollupTokenTx(
695
696
  param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupTokenTx>
696
697
  ): Promise<GraphQLClient.Transaction>;
698
+ multiSignCreateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.CreateAssetTx>): Promise<GraphQLClient.Transaction>;
697
699
  getAccountState(
698
700
  params: GraphQLClient.GetAccountStateParams
699
701
  ): 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.8",
4
+ "version": "1.16.9",
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.8",
19
- "@ocap/client": "1.16.8",
20
- "@ocap/message": "1.16.8",
21
- "@ocap/util": "1.16.8",
22
- "@ocap/wallet": "1.16.8",
21
+ "@arcblock/did-util": "1.16.9",
22
+ "@ocap/client": "1.16.9",
23
+ "@ocap/message": "1.16.9",
24
+ "@ocap/util": "1.16.9",
25
+ "@ocap/wallet": "1.16.9",
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": "^5.0.0",
32
+ "jsdoc-to-markdown": "^7.1.1",
30
33
  "prettier": "^2.3.2",
31
- "remark-cli": "^5.0.0",
32
- "remark-preset-github": "^0.0.9",
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": "15e9623edafa6fcb628f67f0c9e26e64ab01bcd2"
82
+ "gitHead": "16fb7ce43033d07f83794914f2d5dda731f80814"
82
83
  }