@arcblock/did-util 1.15.7 → 1.16.0
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/lib/index.d.ts +10 -0
- package/package.json +8 -8
package/lib/index.d.ts
CHANGED
|
@@ -104,6 +104,15 @@ declare function toTokenAddress(itx: any): string;
|
|
|
104
104
|
* @returns {string} factory address without `did:abt:` prefix
|
|
105
105
|
*/
|
|
106
106
|
declare function toFactoryAddress(itx: any): string;
|
|
107
|
+
/**
|
|
108
|
+
* Create an rollup address
|
|
109
|
+
*
|
|
110
|
+
* @public
|
|
111
|
+
* @static
|
|
112
|
+
* @param {object} itx - an object of `CreateRollupTx`
|
|
113
|
+
* @returns {string} rollup address without `did:abt:` prefix
|
|
114
|
+
*/
|
|
115
|
+
declare function toRollupAddress(itx: any): string;
|
|
107
116
|
declare const _Lib: _Lib.T100;
|
|
108
117
|
declare namespace _Lib {
|
|
109
118
|
export interface T100 {
|
|
@@ -118,6 +127,7 @@ declare namespace _Lib {
|
|
|
118
127
|
toSwapAddress: typeof toSwapAddress;
|
|
119
128
|
toTokenAddress: typeof toTokenAddress;
|
|
120
129
|
toFactoryAddress: typeof toFactoryAddress;
|
|
130
|
+
toRollupAddress: typeof toRollupAddress;
|
|
121
131
|
}
|
|
122
132
|
}
|
|
123
133
|
export = _Lib;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/did-util",
|
|
3
3
|
"description": "Helper function to calculate did",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.16.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "wangshijun",
|
|
7
7
|
"email": "shijun@arcblock.io",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"wangshijun <shijun@arcblock.io> (https://ocap.arcblock.io)"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcblock/did": "1.
|
|
22
|
-
"@ocap/mcrypto": "1.
|
|
23
|
-
"@ocap/message": "1.
|
|
24
|
-
"@ocap/proto": "1.
|
|
25
|
-
"@ocap/util": "1.
|
|
26
|
-
"@ocap/wallet": "1.
|
|
21
|
+
"@arcblock/did": "1.16.0",
|
|
22
|
+
"@ocap/mcrypto": "1.16.0",
|
|
23
|
+
"@ocap/message": "1.16.0",
|
|
24
|
+
"@ocap/proto": "1.16.0",
|
|
25
|
+
"@ocap/util": "1.16.0",
|
|
26
|
+
"@ocap/wallet": "1.16.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"jest": "^27.3.1",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"test": "jest --forceExit --detectOpenHandles",
|
|
70
70
|
"coverage": "yarn test -- --coverage"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "71742ee4fe24b9d2ac32b2a50bef5ce822b3a264"
|
|
73
73
|
}
|