@autonomys/auto-utils 1.5.15 → 1.5.16
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.
|
@@ -14,10 +14,8 @@ export declare enum NetworkName {
|
|
|
14
14
|
LOCALHOST = "Localhost"
|
|
15
15
|
}
|
|
16
16
|
export declare enum NetworkExplorerName {
|
|
17
|
-
ASTRAL = "Astral",
|
|
18
17
|
SUBSCAN = "Subscan"
|
|
19
18
|
}
|
|
20
|
-
export declare const ASTRAL_EXPLORER = "https://explorer.autonomys.xyz/";
|
|
21
19
|
export declare const SUBSCAN_EXPLORER = "https://autonomys.subscan.io/";
|
|
22
20
|
export declare const SUBSCAN_CHRONOS_EXPLORER = "https://autonomys-chronos.subscan.io/";
|
|
23
21
|
export declare const networks: Network[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../src/constants/network.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI/C,oBAAY,SAAS;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,OAAO,sBAAsB;IAC7B,MAAM,qBAAqB;IAC3B,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,oBAAY,mBAAmB;IAC7B,
|
|
1
|
+
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../src/constants/network.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI/C,oBAAY,SAAS;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,OAAO,sBAAsB;IAC7B,MAAM,qBAAqB;IAC3B,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,gBAAgB,kCAAkC,CAAA;AAC/D,eAAO,MAAM,wBAAwB,0CAA0C,CAAA;AAE/E,eAAO,MAAM,QAAQ,EAAE,OAAO,EAkG7B,CAAA;AAED,eAAO,MAAM,cAAc,SAAc,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// file: src/constants/network.ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.defaultNetwork = exports.networks = exports.SUBSCAN_CHRONOS_EXPLORER = exports.SUBSCAN_EXPLORER = exports.
|
|
4
|
+
exports.defaultNetwork = exports.networks = exports.SUBSCAN_CHRONOS_EXPLORER = exports.SUBSCAN_EXPLORER = exports.NetworkExplorerName = exports.NetworkName = exports.NetworkId = void 0;
|
|
5
5
|
const domain_1 = require("./domain");
|
|
6
6
|
const token_1 = require("./token");
|
|
7
7
|
var NetworkId;
|
|
@@ -22,28 +22,16 @@ var NetworkName;
|
|
|
22
22
|
})(NetworkName || (exports.NetworkName = NetworkName = {}));
|
|
23
23
|
var NetworkExplorerName;
|
|
24
24
|
(function (NetworkExplorerName) {
|
|
25
|
-
NetworkExplorerName["ASTRAL"] = "Astral";
|
|
26
25
|
NetworkExplorerName["SUBSCAN"] = "Subscan";
|
|
27
26
|
})(NetworkExplorerName || (exports.NetworkExplorerName = NetworkExplorerName = {}));
|
|
28
|
-
exports.ASTRAL_EXPLORER = 'https://explorer.autonomys.xyz/';
|
|
29
27
|
exports.SUBSCAN_EXPLORER = 'https://autonomys.subscan.io/';
|
|
30
28
|
exports.SUBSCAN_CHRONOS_EXPLORER = 'https://autonomys-chronos.subscan.io/';
|
|
31
29
|
exports.networks = [
|
|
32
30
|
{
|
|
33
31
|
id: NetworkId.MAINNET,
|
|
34
32
|
name: NetworkName.MAINNET,
|
|
35
|
-
rpcUrls: [
|
|
36
|
-
'wss://rpc-0.mainnet.subspace.network/ws',
|
|
37
|
-
'wss://rpc-1.mainnet.subspace.network/ws',
|
|
38
|
-
'wss://rpc-0.mainnet.autonomys.xyz/ws',
|
|
39
|
-
'wss://rpc-1.mainnet.autonomys.xyz/ws',
|
|
40
|
-
'wss://rpc.mainnet.subspace.foundation/ws',
|
|
41
|
-
],
|
|
33
|
+
rpcUrls: ['wss://rpc.mainnet.autonomys.xyz/ws', 'wss://rpc.mainnet.subspace.foundation/ws'],
|
|
42
34
|
explorer: [
|
|
43
|
-
{
|
|
44
|
-
name: NetworkExplorerName.ASTRAL,
|
|
45
|
-
url: exports.ASTRAL_EXPLORER,
|
|
46
|
-
},
|
|
47
35
|
{
|
|
48
36
|
name: NetworkExplorerName.SUBSCAN,
|
|
49
37
|
url: exports.SUBSCAN_EXPLORER,
|
|
@@ -85,16 +73,11 @@ exports.networks = [
|
|
|
85
73
|
{
|
|
86
74
|
id: NetworkId.DEVNET,
|
|
87
75
|
name: NetworkName.DEVNET,
|
|
88
|
-
rpcUrls: ['ws://rpc.devnet.
|
|
89
|
-
explorer: [
|
|
90
|
-
{
|
|
91
|
-
name: NetworkExplorerName.ASTRAL,
|
|
92
|
-
url: exports.ASTRAL_EXPLORER + '/devnet/consensus/',
|
|
93
|
-
},
|
|
94
|
-
],
|
|
76
|
+
rpcUrls: ['ws://rpc.devnet.autonomys.xyz/ws'],
|
|
77
|
+
explorer: [],
|
|
95
78
|
domains: [
|
|
96
|
-
Object.assign(Object.assign({ domainId: '0' }, domain_1.domains[domain_1.DomainRuntime.AUTO_EVM]), { rpcUrls: ['wss
|
|
97
|
-
Object.assign(Object.assign({ domainId: '1' }, domain_1.domains[domain_1.DomainRuntime.AUTO_ID]), { rpcUrls: ['wss://autoid.devnet.
|
|
79
|
+
Object.assign(Object.assign({ domainId: '0' }, domain_1.domains[domain_1.DomainRuntime.AUTO_EVM]), { rpcUrls: ['wss://auto-evm.devnet.autonomys.xyz/ws'] }),
|
|
80
|
+
Object.assign(Object.assign({ domainId: '1' }, domain_1.domains[domain_1.DomainRuntime.AUTO_ID]), { rpcUrls: ['wss://autoid.devnet.autonomys.xyz/ws'] }),
|
|
98
81
|
],
|
|
99
82
|
token: token_1.TESTNET_TOKEN,
|
|
100
83
|
isTestnet: true,
|
|
@@ -104,12 +87,7 @@ exports.networks = [
|
|
|
104
87
|
id: NetworkId.LOCALHOST,
|
|
105
88
|
name: NetworkName.LOCALHOST,
|
|
106
89
|
rpcUrls: ['ws://127.0.0.1:9944/ws'],
|
|
107
|
-
explorer: [
|
|
108
|
-
{
|
|
109
|
-
name: NetworkExplorerName.ASTRAL,
|
|
110
|
-
url: exports.ASTRAL_EXPLORER + 'localhost/consensus/',
|
|
111
|
-
},
|
|
112
|
-
],
|
|
90
|
+
explorer: [],
|
|
113
91
|
domains: [
|
|
114
92
|
Object.assign(Object.assign({ domainId: '0' }, domain_1.domains[domain_1.DomainRuntime.AUTO_EVM]), { rpcUrls: ['ws://127.0.0.1:9945/ws'] }),
|
|
115
93
|
Object.assign(Object.assign({ domainId: '1' }, domain_1.domains[domain_1.DomainRuntime.AUTO_ID]), { rpcUrls: ['ws://127.0.0.1:9946/ws'] }),
|
package/dist/network.js
CHANGED
|
@@ -29,7 +29,7 @@ const network_1 = require("./constants/network");
|
|
|
29
29
|
*
|
|
30
30
|
* // Access network explorers
|
|
31
31
|
* const mainnet = getNetworkDetails({ networkId: 'mainnet' })
|
|
32
|
-
* console.log(mainnet.explorer[0].name) // Output: "
|
|
32
|
+
* console.log(mainnet.explorer[0].name) // Output: "Subscan"
|
|
33
33
|
* console.log(mainnet.explorer[0].url) // Output: explorer URL
|
|
34
34
|
*
|
|
35
35
|
* // Check if network is for local development
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autonomys/auto-utils",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"ts-jest": "^29.3.1",
|
|
40
40
|
"typescript": "^5.8.3"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "7242b27a7d9e095399c3d87209767f012355340b"
|
|
43
43
|
}
|