@leofcoin/launch-chain 0.2.11 → 0.3.2
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/index.js +2 -1
- package/package.json +3 -2
- package/src/index.ts +2 -1
- package/tsconfig.json +1 -1
package/index.js
CHANGED
|
@@ -3,11 +3,12 @@ import Chain from '@leofcoin/chain/chain';
|
|
|
3
3
|
import nodeConfig from '@leofcoin/lib/node-config';
|
|
4
4
|
import WSClient from '@leofcoin/endpoint-clients/ws';
|
|
5
5
|
import HttpClient from '@leofcoin/endpoint-clients/http';
|
|
6
|
+
import networks from '@leofcoin/networks';
|
|
6
7
|
|
|
7
8
|
const defaultOptions = {
|
|
8
9
|
network: 'leofcoin:peach',
|
|
9
10
|
networkVersion: 'peach',
|
|
10
|
-
stars:
|
|
11
|
+
stars: networks.leofcoin.peach.stars,
|
|
11
12
|
forceRemote: false,
|
|
12
13
|
mode: 'direct',
|
|
13
14
|
ws: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leofcoin/launch-chain",
|
|
3
|
-
"version": "0.2
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js"
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@leofcoin/chain": "^1.4.8",
|
|
27
27
|
"@leofcoin/endpoint-clients": "^0.2.3",
|
|
28
|
-
"@leofcoin/endpoints": "^0.2.10"
|
|
28
|
+
"@leofcoin/endpoints": "^0.2.10",
|
|
29
|
+
"@leofcoin/networks": "^1.0.0"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
32
|
"@rollup/plugin-typescript": "^11.0.0",
|
package/src/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ import Chain from '@leofcoin/chain/chain'
|
|
|
3
3
|
import nodeConfig from '@leofcoin/lib/node-config'
|
|
4
4
|
import WSClient from '@leofcoin/endpoint-clients/ws'
|
|
5
5
|
import HttpClient from '@leofcoin/endpoint-clients/http'
|
|
6
|
+
import networks from '@leofcoin/networks'
|
|
6
7
|
|
|
7
8
|
type launchMode = 'direct' | 'remote' | 'server'
|
|
8
9
|
|
|
@@ -41,7 +42,7 @@ type launchOptions = {
|
|
|
41
42
|
const defaultOptions: launchOptions = {
|
|
42
43
|
network: 'leofcoin:peach',
|
|
43
44
|
networkVersion: 'peach',
|
|
44
|
-
stars:
|
|
45
|
+
stars: networks.leofcoin.peach.stars,
|
|
45
46
|
forceRemote: false,
|
|
46
47
|
mode: 'direct',
|
|
47
48
|
ws: [{
|