@aaronbassett/midnight-local-devnet 0.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.
Files changed (71) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +212 -0
  3. package/dist/cli/commands/accounts.d.ts +3 -0
  4. package/dist/cli/commands/accounts.js +38 -0
  5. package/dist/cli/commands/accounts.js.map +1 -0
  6. package/dist/cli/commands/network.d.ts +3 -0
  7. package/dist/cli/commands/network.js +84 -0
  8. package/dist/cli/commands/network.js.map +1 -0
  9. package/dist/cli/commands/wallet.d.ts +3 -0
  10. package/dist/cli/commands/wallet.js +49 -0
  11. package/dist/cli/commands/wallet.js.map +1 -0
  12. package/dist/cli/interactive.d.ts +2 -0
  13. package/dist/cli/interactive.js +90 -0
  14. package/dist/cli/interactive.js.map +1 -0
  15. package/dist/cli.d.ts +2 -0
  16. package/dist/cli.js +48 -0
  17. package/dist/cli.js.map +1 -0
  18. package/dist/core/accounts.d.ts +17 -0
  19. package/dist/core/accounts.js +80 -0
  20. package/dist/core/accounts.js.map +1 -0
  21. package/dist/core/config.d.ts +12 -0
  22. package/dist/core/config.js +22 -0
  23. package/dist/core/config.js.map +1 -0
  24. package/dist/core/docker.d.ts +13 -0
  25. package/dist/core/docker.js +101 -0
  26. package/dist/core/docker.js.map +1 -0
  27. package/dist/core/funding.d.ts +15 -0
  28. package/dist/core/funding.js +105 -0
  29. package/dist/core/funding.js.map +1 -0
  30. package/dist/core/health.d.ts +13 -0
  31. package/dist/core/health.js +34 -0
  32. package/dist/core/health.js.map +1 -0
  33. package/dist/core/logger.d.ts +2 -0
  34. package/dist/core/logger.js +16 -0
  35. package/dist/core/logger.js.map +1 -0
  36. package/dist/core/network-manager.d.ts +31 -0
  37. package/dist/core/network-manager.js +101 -0
  38. package/dist/core/network-manager.js.map +1 -0
  39. package/dist/core/types.d.ts +51 -0
  40. package/dist/core/types.js +11 -0
  41. package/dist/core/types.js.map +1 -0
  42. package/dist/core/wallet.d.ts +23 -0
  43. package/dist/core/wallet.js +163 -0
  44. package/dist/core/wallet.js.map +1 -0
  45. package/dist/index.d.ts +2 -0
  46. package/dist/index.js +34 -0
  47. package/dist/index.js.map +1 -0
  48. package/dist/mcp/resources/config.d.ts +3 -0
  49. package/dist/mcp/resources/config.js +28 -0
  50. package/dist/mcp/resources/config.js.map +1 -0
  51. package/dist/mcp/server.d.ts +3 -0
  52. package/dist/mcp/server.js +28 -0
  53. package/dist/mcp/server.js.map +1 -0
  54. package/dist/mcp/tools/accounts.d.ts +3 -0
  55. package/dist/mcp/tools/accounts.js +28 -0
  56. package/dist/mcp/tools/accounts.js.map +1 -0
  57. package/dist/mcp/tools/funding.d.ts +3 -0
  58. package/dist/mcp/tools/funding.js +59 -0
  59. package/dist/mcp/tools/funding.js.map +1 -0
  60. package/dist/mcp/tools/health.d.ts +3 -0
  61. package/dist/mcp/tools/health.js +19 -0
  62. package/dist/mcp/tools/health.js.map +1 -0
  63. package/dist/mcp/tools/network.d.ts +3 -0
  64. package/dist/mcp/tools/network.js +64 -0
  65. package/dist/mcp/tools/network.js.map +1 -0
  66. package/dist/mcp/tools/wallet.d.ts +3 -0
  67. package/dist/mcp/tools/wallet.js +19 -0
  68. package/dist/mcp/tools/wallet.js.map +1 -0
  69. package/docker/standalone.env +5 -0
  70. package/docker/standalone.yml +49 -0
  71. package/package.json +64 -0
@@ -0,0 +1,49 @@
1
+ services:
2
+ proof-server:
3
+ container_name: 'midnight-proof-server'
4
+ image: 'midnightntwrk/proof-server:7.0.0'
5
+ command: ['midnight-proof-server', '-v']
6
+ ports:
7
+ - '6300:6300'
8
+ environment:
9
+ RUST_BACKTRACE: 'full'
10
+ healthcheck:
11
+ test: ['CMD', 'curl', '-f', 'http://localhost:6300/version']
12
+ interval: 10s
13
+ timeout: 5s
14
+ retries: 20
15
+ start_period: 10s
16
+
17
+ indexer:
18
+ container_name: 'midnight-indexer'
19
+ image: 'midnightntwrk/indexer-standalone:3.0.0'
20
+ env_file: standalone.env
21
+ ports:
22
+ - '8088:8088'
23
+ environment:
24
+ RUST_LOG: 'indexer=info,chain_indexer=info,indexer_api=info,wallet_indexer=info,indexer_common=info,fastrace_opentelemetry=off,info'
25
+ APP__APPLICATION__NETWORK_ID: 'undeployed'
26
+ healthcheck:
27
+ test: ['CMD-SHELL', 'cat /var/run/indexer-standalone/running']
28
+ interval: 10s
29
+ timeout: 5s
30
+ retries: 20
31
+ start_period: 10s
32
+ depends_on:
33
+ node:
34
+ condition: service_healthy
35
+
36
+ node:
37
+ image: 'midnightntwrk/midnight-node:0.20.0'
38
+ container_name: 'midnight-node'
39
+ ports:
40
+ - '9944:9944'
41
+ healthcheck:
42
+ test: ['CMD', 'curl', '-f', 'http://localhost:9944/health']
43
+ interval: 2s
44
+ timeout: 5s
45
+ retries: 20
46
+ start_period: 20s
47
+ environment:
48
+ CFG_PRESET: 'dev'
49
+ SIDECHAIN_BLOCK_BENEFICIARY: '04bcf7ad3be7a5c790460be82a713af570f22e0f801f6659ab8e84a52be6969e'
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@aaronbassett/midnight-local-devnet",
3
+ "version": "0.1.0",
4
+ "description": "Local Midnight development network manager — CLI and MCP server",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/devrelaicom/midnight-local-devnet.git"
9
+ },
10
+ "keywords": ["midnight", "blockchain", "devnet", "mcp", "development"],
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "files": [
15
+ "dist/",
16
+ "!dist/**/__tests__/",
17
+ "docker/"
18
+ ],
19
+ "type": "module",
20
+ "engines": {
21
+ "node": ">=22.0.0"
22
+ },
23
+ "bin": {
24
+ "midnight-local-devnet": "./dist/cli.js",
25
+ "midnight-devnet-mcp": "./dist/index.js"
26
+ },
27
+ "scripts": {
28
+ "build": "tsc",
29
+ "dev": "tsc --watch",
30
+ "start:mcp": "node --enable-source-maps dist/index.js",
31
+ "start:cli": "node --enable-source-maps dist/cli.js",
32
+ "test": "vitest run",
33
+ "test:watch": "vitest"
34
+ },
35
+ "dependencies": {
36
+ "@modelcontextprotocol/sdk": "^1.12.1",
37
+ "@midnight-ntwrk/ledger-v7": "7.0.0",
38
+ "@midnight-ntwrk/midnight-js-network-id": "3.1.0",
39
+ "@midnight-ntwrk/wallet-sdk-abstractions": "1.0.0",
40
+ "@midnight-ntwrk/wallet-sdk-address-format": "3.0.0",
41
+ "@midnight-ntwrk/wallet-sdk-dust-wallet": "1.0.0",
42
+ "@midnight-ntwrk/wallet-sdk-facade": "1.0.0",
43
+ "@midnight-ntwrk/wallet-sdk-hd": "3.0.0",
44
+ "@midnight-ntwrk/wallet-sdk-shielded": "1.0.0",
45
+ "@midnight-ntwrk/wallet-sdk-unshielded-wallet": "1.0.0",
46
+ "@scure/bip39": "^2.0.1",
47
+ "commander": "^13.1.0",
48
+ "pino": "^10.1.0",
49
+ "pino-pretty": "^13.1.3",
50
+ "rxjs": "^7.8.1",
51
+ "ws": "^8.18.3",
52
+ "zod": "^3.24.0"
53
+ },
54
+ "devDependencies": {
55
+ "@types/node": "^22.0.0",
56
+ "@types/ws": "^8.18.1",
57
+ "typescript": "^5.9.3",
58
+ "vitest": "^3.1.0"
59
+ },
60
+ "resolutions": {
61
+ "@midnight-ntwrk/ledger-v7": "7.0.0",
62
+ "@midnight-ntwrk/midnight-js-network-id": "3.1.0"
63
+ }
64
+ }