datahaven/test/package.json
Facundo Farall 98428ed301
feat(CLI): Run beacon relay in CLI (#70)
- **New Features**
- Initialise Ethereum client pallet with a beacon chain checkpoint
before starting relayers.

- **Improvements**
- Store Ethereum node RPC endpoints in `launchedNetwork` for later
retrieval.
- Standardised CLI options with explicit paired flags for enabling and
disabling features, improving usability.
- Increased slot frequency and number of validator keys per node in test
network configurations.
- Expanded and clarified test environment setup documentation and added
a new CLI usage section in the main README.

- **Bug Fixes**
- Updated runtime fork version constants for testing environments, to
match with Kurtosis'.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced CLI with explicit enable/disable flags for network components
and relayers.
- Added initialization of the Ethereum Beacon Client pallet, ensuring
the beacon chain is ready and submitting an initial checkpoint before
starting relayers.

- **Improvements**
- Streamlined network setup by centralizing service endpoint
registration and simplifying RPC URL handling.
- Expanded and clarified CLI and test documentation with detailed setup
instructions and option descriptions.

- **Configuration Updates**
- Updated network and beacon relay configurations for improved slot
timing, validator key allocation, and sync committee period.
  - Adjusted Ethereum fork version constants to ensure compatibility.

- **Bug Fixes**
- Improved error handling and validation during network and relayer
initialization.

- **Documentation**
  - Added an "E2E CLI" section to the main README.
  - Enhanced test environment documentation with clearer steps and tips.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-05-15 21:56:36 +00:00

69 lines
2.8 KiB
JSON

{
"name": "@datahaven/e2e-test",
"module": "index.ts",
"type": "module",
"private": true,
"scripts": {
"cli": "bun run cli/index.ts",
"fmt": "biome check .",
"fmt:fix": "biome check --write .",
"build:docker:operator": "docker buildx build -t moonsonglabs/datahaven-node:local -f ../operator/Dockerfile ../.",
"build:docker:relayer": "bun -e \"import build from './scripts/snowbridge-relayer.ts'; build()\"",
"generate:wagmi": "wagmi generate",
"generate:snowbridge-cfgs": "bun -e \"import {generateSnowbridgeConfigs} from './scripts/gen-snowbridge-cfgs.ts'; await generateSnowbridgeConfigs()\"",
"generate:types": "(cd ../operator && cargo build --release) && bun x papi add --wasm \"../operator/target/release/wbuild/datahaven-stagenet-runtime/datahaven_stagenet_runtime.wasm\" datahaven",
"start:e2e:verified": "bun cli --verified --blockscout --deploy-contracts --setup-validators --update-validator-set --fund-validators",
"start:e2e:ci": "bun cli --datahaven --launch-kurtosis --deploy-contracts --fund-validators --setup-validators --update-validator-set --relayer --always-clean",
"start:e2e:minrelayer": "bun cli --relayer --deploy-contracts --no-setup-validators --no-update-validator-set --no-fund-validators --datahaven",
"stop:e2e": "pkill datahaven ; pkill snowbridge-relay ; kurtosis enclave stop datahaven-ethereum && kurtosis clean && kurtosis engine stop && docker container prune -f",
"stop:e2e:verified": "bun stop:e2e",
"stop:e2e:quick": "kurtosis enclave stop datahaven-ethereum",
"stop:kurtosis-engine": "kurtosis engine stop && docker container prune -f",
"test:e2e": "bun test suites/e2e --timeout 30000",
"typecheck": "tsc --noEmit",
"postinstall": "papi"
},
"devDependencies": {
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5.8.3"
},
"dependencies": {
"@biomejs/biome": "^1.9.4",
"@commander-js/extra-typings": "^13.1.0",
"@dotenvx/dotenvx": "^1.41.0",
"@inquirer/prompts": "^7.5.0",
"@noble/curves": "^1.9.0",
"@noble/hashes": "^1.8.0",
"@polkadot-api/descriptors": "file:.papi/descriptors",
"@types/dockerode": "^3.3.38",
"@types/node": "^22.14.1",
"@wagmi/cli": "^2.3.0",
"@wagmi/core": "^2.17.0",
"chalk": "^5.4.1",
"commander": "^13.1.0",
"dockerode": "^4.0.6",
"dotenv": "^16.5.0",
"octokit": "^4.1.3",
"ora": "^8.2.0",
"pino": "^9.6.0",
"pino-pretty": "^13.0.0",
"polkadot-api": "^1.10.2",
"tiny-invariant": "^1.3.3",
"viem": "^2.28.0",
"wagmi": "^2.15.0",
"yaml": "^2.7.1",
"zod": "^3.24.3"
},
"trustedDependencies": [
"@biomejs/biome",
"bufferutil",
"cpu-features",
"esbuild",
"keccak",
"protobufjs",
"ssh2",
"utf-8-validate"
]
}