@electrum-cash/servers 3.0.4-development.12642723910 → 3.1.0-development.12714134219
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/dist/index.d.mts +19 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +24 -41
- package/dist/index.mjs.map +1 -1
- package/package.json +24 -20
- package/dist/index.d.ts +0 -15
- package/dist/index.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# What is this?
|
|
2
2
|
|
|
3
|
-
This repository houses a list of electrum servers operating on the Bitcoin Cash (BCH) network. The list can be used by anyone, but is intended to provide a default set of servers for the `@electrum-cash
|
|
3
|
+
This repository houses a list of electrum servers operating on the Bitcoin Cash (BCH) network. The list can be used by anyone, but is intended to provide a default set of servers for the `@electrum-cash/*` packages.
|
|
4
4
|
|
|
5
5
|
# How can I contribute?
|
|
6
6
|
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region source/interfaces.d.ts
|
|
2
|
+
interface ElectrumTransports {
|
|
3
|
+
tcp?: number;
|
|
4
|
+
tcp_tls?: number;
|
|
5
|
+
ws?: number;
|
|
6
|
+
wss?: number;
|
|
7
|
+
}
|
|
8
|
+
interface ElectrumServer {
|
|
9
|
+
host: string;
|
|
10
|
+
version: string;
|
|
11
|
+
transports: ElectrumTransports;
|
|
12
|
+
}
|
|
13
|
+
type ElectrumServers = ElectrumServer[];
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region source/servers.d.ts
|
|
16
|
+
declare const electrumServers: ElectrumServers;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { ElectrumServer, ElectrumServers, ElectrumTransports, electrumServers };
|
|
19
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../source/interfaces.ts","../source/servers.ts"],"mappings":";UACiB,kBAAA;EAAA,GAAA;EAAA,OAAA;EAAA,EAAA;EAAA,GAAA;AAAA;AAAA,UASA,cAAA;EAAA,IAAA;EAAA,OAAA;EAAA,UAAA,EAIJ,kBAAA;AAAA;AAAA,KAID,eAAA,GAAkB,cAAA;;;cCdjB,eAAA,EAAiB,eAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,41 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
tcp: 50001,
|
|
26
|
-
tcp_tls: 50002,
|
|
27
|
-
ws: 50003,
|
|
28
|
-
wss: 50004
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
];
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var $e83d2e7688025acd$exports = {};
|
|
35
|
-
// Define the structure used to provide port numbers for supported transports.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export {$c047c2d2e8e5c125$export$f504d3db6a0a89d2 as electrumServers};
|
|
41
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
//#region source/servers.ts
|
|
2
|
+
const electrumServers = [{
|
|
3
|
+
host: "bch.imaginary.cash",
|
|
4
|
+
version: "1.5.3",
|
|
5
|
+
transports: {
|
|
6
|
+
tcp: 50001,
|
|
7
|
+
tcp_tls: 50002,
|
|
8
|
+
ws: 50003,
|
|
9
|
+
wss: 50004
|
|
10
|
+
}
|
|
11
|
+
}, {
|
|
12
|
+
host: "electrum.imaginary.cash",
|
|
13
|
+
version: "1.5.3",
|
|
14
|
+
transports: {
|
|
15
|
+
tcp: 50001,
|
|
16
|
+
tcp_tls: 50002,
|
|
17
|
+
ws: 50003,
|
|
18
|
+
wss: 50004
|
|
19
|
+
}
|
|
20
|
+
}];
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { electrumServers };
|
|
24
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../source/servers.ts"],"sourcesContent":["// Import required interfaces.\nimport type { ElectrumServers } from './interfaces';\n\n// Define the list of available Electrum Cash servers.\nexport const electrumServers: ElectrumServers =\n[\n\t// Imaginary Usernames servers:\n\t{\n\t\thost: 'bch.imaginary.cash',\n\t\tversion: '1.5.3',\n\t\ttransports:\n\t\t{\n\t\t\ttcp: 50001,\n\t\t\ttcp_tls: 50002,\n\t\t\tws: 50003,\n\t\t\twss: 50004,\n\t\t},\n\t},\n\t{\n\t\thost: 'electrum.imaginary.cash',\n\t\tversion: '1.5.3',\n\t\ttransports:\n\t\t{\n\t\t\ttcp: 50001,\n\t\t\ttcp_tls: 50002,\n\t\t\tws: 50003,\n\t\t\twss: 50004,\n\t\t},\n\t},\n];\n"],"mappings":";AAIA,MAAa,kBACb,CAEC;CACC,MAAM;CACN,SAAS;CACT,YACA;EACC,KAAK;EACL,SAAS;EACT,IAAK;EACL,KAAK;EACL;CACD,EACD;CACC,MAAM;CACN,SAAS;CACT,YACA;EACC,KAAK;EACL,SAAS;EACT,IAAK;EACL,KAAK;EACL;CACD,CACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@electrum-cash/servers",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0-development.12714134219",
|
|
4
4
|
"description": "a list of default servers to use with the @electrum-cash/library package.",
|
|
5
5
|
"homepage": "https://gitlab.com/electrum-cash/servers#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -18,41 +18,45 @@
|
|
|
18
18
|
"bitcoin cash"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"types": "./dist/index.d.
|
|
21
|
+
"types": "./dist/index.d.mts",
|
|
22
22
|
"source": "./source/index.ts",
|
|
23
23
|
"module": "./dist/index.mjs",
|
|
24
24
|
"exports": {
|
|
25
|
-
"types": "./dist/index.d.
|
|
25
|
+
"types": "./dist/index.d.mts",
|
|
26
26
|
"default": "./dist/index.mjs"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"scripts": {
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"lint": "eslint . --ext .ts",
|
|
32
|
+
"build": "tsdown --clean --sourcemap source/index.ts",
|
|
33
|
+
"analyze": "tsdown --clean --no-fixed-extension --sourcemap source/index.ts && esbuild-analyzer dist/",
|
|
34
|
+
"docs": "typedoc --hideGenerator --categorizeByGroup",
|
|
35
|
+
"lint": "eslint",
|
|
37
36
|
"syntax": "tsc --noEmit",
|
|
38
37
|
"spellcheck": "cspell 'source/**' 'test/**' 'examples/**'",
|
|
39
38
|
"test": "vitest --dir test/ --test-timeout=15000 --run --coverage"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
|
-
"@
|
|
43
|
-
"@electrum-cash/
|
|
44
|
-
"@electrum-cash/
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
41
|
+
"@chalp/eslint-airbnb": "^1.3.0",
|
|
42
|
+
"@electrum-cash/eslint-config": "^1.1.0",
|
|
43
|
+
"@electrum-cash/network": "^4.2.0",
|
|
44
|
+
"@electrum-cash/tcp-socket": "^1.1.1",
|
|
45
|
+
"@electrum-cash/web-socket": "^1.1.1",
|
|
46
|
+
"@stylistic/eslint-plugin": "^5.7.0",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^8.53.0",
|
|
48
|
+
"@typescript-eslint/parser": "^8.53.0",
|
|
49
49
|
"@vitest/coverage-v8": "^3.2.4",
|
|
50
|
-
"cspell": "^
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
50
|
+
"cspell": "^9.6.0",
|
|
51
|
+
"eslint": "^9.39.2",
|
|
52
|
+
"tsdown": "^0.20.0-beta.3",
|
|
53
|
+
"typedoc": "^0.28.16",
|
|
54
|
+
"typedoc-plugin-coverage": "^4.0.2",
|
|
55
55
|
"typescript": "^5.2.2",
|
|
56
|
+
"typescript-eslint": "^8.53.0",
|
|
56
57
|
"vitest": "^3.2.4"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@viz-kit/esbuild-analyzer": "^1.0.0"
|
|
57
61
|
}
|
|
58
62
|
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface ElectrumTransports {
|
|
2
|
-
tcp?: number;
|
|
3
|
-
tcp_tls?: number;
|
|
4
|
-
ws?: number;
|
|
5
|
-
wss?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface ElectrumServer {
|
|
8
|
-
host: string;
|
|
9
|
-
version: string;
|
|
10
|
-
transports: ElectrumTransports;
|
|
11
|
-
}
|
|
12
|
-
export type ElectrumServers = ElectrumServer[];
|
|
13
|
-
export const electrumServers: ElectrumServers;
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AACA;IAEC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAGD;IAEC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,kBAAkB,CAAC;CAC/B;AAGD,8BAA8B,cAAc,EAAE,CAAC;ACd/C,OAAO,MAAM,iBAAiB,eAyB7B,CAAC","sources":["source/source/interfaces.ts","source/source/servers.ts","source/source/index.ts","source/index.ts"],"sourcesContent":[null,null,null,"export * from './servers';\nexport * from './interfaces';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
|