@autonomys/auto-utils 1.0.12 → 1.1.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/dist/api.d.ts +1 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +2 -2
- package/package.json +13 -10
package/dist/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiPromise } from '@polkadot/api';
|
|
2
2
|
import type { ActivateParams, ApiOptions, DomainParams, NetworkParams } from './types/network';
|
|
3
|
-
export declare const createConnection: (endpoint: string, options?: ApiOptions) => Promise<ApiPromise>;
|
|
3
|
+
export declare const createConnection: (endpoint: string | string[], options?: ApiOptions) => Promise<ApiPromise>;
|
|
4
4
|
export declare const activate: (params?: ActivateParams<NetworkParams>) => Promise<ApiPromise>;
|
|
5
5
|
export declare const activateDomain: (params: ActivateParams<DomainParams>) => Promise<ApiPromise>;
|
|
6
6
|
export declare const disconnect: (api: ApiPromise) => Promise<void>;
|
package/dist/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAc,MAAM,eAAe,CAAA;AAEtD,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAG9F,eAAO,MAAM,gBAAgB,aACjB,MAAM,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAc,MAAM,eAAe,CAAA;AAEtD,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAG9F,eAAO,MAAM,gBAAgB,aACjB,MAAM,GAAG,MAAM,EAAE,YACjB,UAAU,KACnB,OAAO,CAAC,UAAU,CAapB,CAAA;AAED,eAAO,MAAM,QAAQ,YAAmB,cAAc,CAAC,aAAa,CAAC,KAAG,OAAO,CAAC,UAAU,CAOzF,CAAA;AAED,eAAO,MAAM,cAAc,WAAkB,cAAc,CAAC,YAAY,CAAC,KAAG,OAAO,CAAC,UAAU,CAO7F,CAAA;AAED,eAAO,MAAM,UAAU,QAAe,UAAU,KAAG,OAAO,CAAC,IAAI,CAG9D,CAAA"}
|
package/dist/api.js
CHANGED
|
@@ -40,7 +40,7 @@ const activate = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
40
40
|
// Remove the networkId from the input
|
|
41
41
|
if (params)
|
|
42
42
|
delete params.networkId;
|
|
43
|
-
return yield (0, exports.createConnection)(endpoint
|
|
43
|
+
return yield (0, exports.createConnection)(endpoint, params);
|
|
44
44
|
});
|
|
45
45
|
exports.activate = activate;
|
|
46
46
|
const activateDomain = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -48,7 +48,7 @@ const activateDomain = (params) => __awaiter(void 0, void 0, void 0, function* (
|
|
|
48
48
|
const endpoint = (0, network_1.getNetworkDomainRpcUrls)(params);
|
|
49
49
|
// Remove the domainId from the input
|
|
50
50
|
const { domainId } = params, rest = __rest(params, ["domainId"]);
|
|
51
|
-
return yield (0, exports.createConnection)(endpoint
|
|
51
|
+
return yield (0, exports.createConnection)(endpoint, rest);
|
|
52
52
|
});
|
|
53
53
|
exports.activateDomain = activateDomain;
|
|
54
54
|
const disconnect = (api) => __awaiter(void 0, void 0, void 0, function* () {
|
package/package.json
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autonomys/auto-utils",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/autonomys/auto-sdk"
|
|
9
|
+
},
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Autonomys",
|
|
12
|
+
"url": "https://www.autonomys.xyz"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/autonomys/auto-sdk/issues"
|
|
16
|
+
},
|
|
6
17
|
"scripts": {
|
|
7
18
|
"build": "tsc",
|
|
8
19
|
"clean": "rm -rf dist",
|
|
@@ -27,16 +38,8 @@
|
|
|
27
38
|
"ts-jest": "^29.1.4",
|
|
28
39
|
"typescript": "^5.4.5"
|
|
29
40
|
},
|
|
30
|
-
"repository": {
|
|
31
|
-
"type": "git",
|
|
32
|
-
"url": "https://github.com/autonomys/auto-sdk"
|
|
33
|
-
},
|
|
34
|
-
"author": {
|
|
35
|
-
"name": "Autonomys",
|
|
36
|
-
"url": "https://www.autonomys.net"
|
|
37
|
-
},
|
|
38
41
|
"browser": {
|
|
39
42
|
"fs": false
|
|
40
43
|
},
|
|
41
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "8729780d591683cf6fd62333526cd91789994c87"
|
|
42
45
|
}
|