create-mn-app 1.0.4 → 1.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mn-app",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Create Midnight Network applications with zero configuration",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -10,7 +10,6 @@ import { nativeToken } from "@midnight-ntwrk/ledger";
10
10
  import { WebSocket } from "ws";
11
11
  import * as Rx from "rxjs";
12
12
  import chalk from "chalk";
13
- import { MidnightProviders } from "./providers/midnight-providers.js";
14
13
  import { EnvironmentManager } from "./utils/environment.js";
15
14
 
16
15
  // Fix WebSocket for Node.js environment
@@ -39,23 +38,15 @@ async function checkBalance() {
39
38
  // Get network configuration
40
39
  const networkConfig = EnvironmentManager.getNetworkConfig();
41
40
 
42
- // Create providers
43
- const providers = MidnightProviders.create({
44
- indexerUrl: networkConfig.indexerUrl,
45
- indexerWsUrl: networkConfig.indexerWsUrl,
46
- prooServerUrl: networkConfig.proofServerUrl,
47
- walletSeed: seed,
48
- zkConfigPath: networkConfig.zkConfigPath,
49
- });
50
-
51
- // Build wallet
41
+ // Build wallet from seed
52
42
  const wallet = await WalletBuilder.buildFromSeed(
53
- getLedgerNetworkId(),
43
+ networkConfig.indexer,
44
+ networkConfig.indexerWS,
45
+ networkConfig.proofServer,
46
+ networkConfig.node,
54
47
  seed,
55
- providers.privateStateProvider,
56
- providers.zkConfigProvider,
57
- providers.publicDataProvider,
58
- { coinPublicKey: providers.coinPublicKey }
48
+ getZswapNetworkId(),
49
+ "info"
59
50
  );
60
51
 
61
52
  wallet.start();