Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
118 lines (118 loc) · 10.5 KB
/
Copy pathpackage.json
File metadata and controls
118 lines (118 loc) · 10.5 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"name": "xchain-explorer",
"private": true,
"description": "xchain-explorer is a free open source token platform explorer and set of APIs to pull data from the XChain platform supported blockchains",
"version": "0.23.0",
"license": "AGPL-3.0-or-later",
"repository": {
"type": "git",
"url": "https://github.com/XChain-Platform/xchain-explorer.git"
},
"dependencies": {
"@fortawesome/fontawesome-free": "6.4.0",
"acorn": "8.16.0",
"acorn-walk": "8.3.5",
"axios": "^1.20.0",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^5.2.1",
"express-json-rpc-router": "^1.4.0",
"express-rate-limit": "^8.5.2",
"helmet": "^8.2.0",
"mariadb": "3.5.3",
"mathjs": "15.2.0",
"ws": "^8.21.0"
},
"optionalDependencies": {
"xchain-vm": "file:./xchain-vm"
},
"mocha": {
"ignore": [
"**/*.test/support/**"
]
},
"scripts": {
"api": "node ./src/api.js",
"vendor:vm": "bash bin/vendor-vm.sh",
"check:vm": "bash bin/vendor-vm.sh check",
"identity": "node bin/explorer-identity.js",
"identity:check": "node bin/explorer-identity.js --compare bin/pins/at1-explorer-identity.json",
"identity:test": "mocha --no-config bin/test/explorer-identity.test.js --timeout 120000",
"test": "mocha --require ./test/setup.js 'test/unit/**/*.test.js' --timeout 0 --exit --recursive",
"coverage": "NODE_OPTIONS=--max-old-space-size=8192 c8 --all --reporter=text --reporter=html --include 'src/**/*.js' --exclude 'src/hub/**' mocha 'test/unit/**/*.test.js' --timeout 0 --recursive --exit",
"coverage:check": "NODE_OPTIONS=--max-old-space-size=8192 c8 --all --check-coverage --lines 62.1 --statements 62.1 --branches 82.2 --functions 84.1 --reporter=text-summary --include 'src/**/*.js' --exclude 'src/hub/**' mocha 'test/unit/**/*.test.js' --timeout 0 --recursive --exit",
"ci": "npm run check:vm && (mocha 'test/unit/**/*.test.js' --timeout 10000 --recursive --exit; u=$?; npm run ci:security; s=$?; npm run test:boundary:unit; b=$?; echo; echo \"ci tallies: unit=$u ci:security=$s test:boundary:unit=$b\"; [ \"$u\" -eq 0 ] && [ \"$s\" -eq 0 ] && [ \"$b\" -eq 0 ])",
"ci:security": "mocha 'test/security/**/*.test.js' --timeout 5000 --exit --recursive",
"test:ws": "mocha test/unit/ws/*.test.js --timeout 0 --exit",
"test:utility": "mocha test/unit/lib/utility.test.js --timeout 0",
"test:explorer": "mocha test/unit/explorer/attest/explorer_anchor_reward_attestations.test.js test/unit/explorer/attest/explorer_attest_validator_stats.test.js test/unit/explorer/feeds/explorer_capability_snapshots.test.js test/unit/explorer/explorer_checkpoints.test.js test/unit/explorer/feeds/explorer_commitments.test.js test/unit/explorer/feeds/explorer_emissions.test.js test/unit/explorer/explorer_icon.test.js test/unit/explorer/explorer_mirror_gate.test.js test/unit/explorer/paging_response/explorer_paging.test.js test/unit/explorer/explorer_relay.test.js test/unit/explorer/explorer_reorgs.test.js test/unit/explorer/paging_response/explorer_response.test.js test/unit/explorer/routes/explorer_routing.test.js test/unit/explorer/attest/explorer_slash_proposals.test.js test/unit/explorer/attest/explorer_vote_delegations.test.js --timeout 0 --exit",
"test:db": "mocha test/unit/db/readers/actions/db_action_destinations.test.js test/unit/action_detail/registry/db_action_detail_registry.test.js test/unit/action_detail/registry/db_action_detail_slot_collision.test.js test/unit/action_detail/registry/db_action_detail_supplements.test.js test/unit/db/core/db_action_queries.test.js test/unit/db/readers/actions/db_action_state_cache.test.js test/unit/db/readers/actions/db_action_summary_batch_parity.test.js test/unit/db/readers/actions/db_action_summary_field_contract.test.js test/unit/action_detail/type_details/db_action_tx_less_render.test.js test/unit/action_detail/type_details/db_address_controller_detail.test.js test/unit/action_detail/type_details/db_anchor_detail_sections.test.js test/unit/action_detail/type_details/db_bet_expire_detail.test.js test/unit/db/readers/bets/db_bet_feed_timeline.test.js test/unit/db/readers/bets/db_bet_leg_status.test.js test/unit/db/core/db_blocks_paging.test.js test/unit/db/readers/db_checkpoint_hub_url_invariant.test.js test/unit/db/readers/db_coin_price_usd.test.js test/unit/db/core/db_connection.test.js test/unit/db/readers/db_contract_meta.test.js test/unit/db/core/db_data_methods.test.js test/unit/action_detail/type_details/db_delegate_revoke_render.test.js test/unit/action_detail/type_details/db_destroy_detail.test.js test/unit/db/readers/dispenser/db_dispenser_edit_escrow.test.js test/unit/db/readers/dispenser/db_dispenser_escrow.test.js test/unit/db/readers/dispenser/db_dispenser_list_delay.test.js test/unit/db/readers/db_expire_count_join_table.test.js test/unit/db/core/db_files_name_mode.test.js test/unit/action_detail/history/db_history_batch_parent.test.js test/unit/action_detail/history/db_history_unmapped_actions.test.js test/unit/db/readers/db_list_edit_resolution.test.js test/unit/db/core/db_m4_compositions.test.js test/unit/db/core/db_m5_compositions.test.js test/unit/db/mempool/db_mempool_address_case.test.js test/unit/db/mempool/db_mempool_address_refs.test.js test/unit/db/mempool/db_mempool_listall_paging.test.js test/unit/db/core/db_more_queries.test.js test/unit/db/core/db_network_totals_cache.test.js test/unit/db/readers/oracle/db_oracle_fees.test.js test/unit/db/readers/oracle/db_oracle_price_record.test.js test/unit/db/readers/markets/db_orderbook_memoless.test.js test/unit/db/core/db_pool_rebuild_leak.test.js test/unit/db/core/db_pool_sizing.test.js test/unit/db/core/db_query_builder.test.js test/unit/db/core/db_reader_composition.test.js test/unit/db/core/db_reorg_cache_and_outage.test.js test/unit/db/core/db_reorg_real_ddl.test.js test/unit/db/core/db_result_cache.test.js --timeout 0 --exit",
"test:config": "mocha test/unit/config/config.test.js test/unit/connectors/hub_connector.test.js --timeout 0 --exit",
"test:integration": "bash bin/run-integration.sh",
"test:conformance": "node bin/run-conformance.js",
"test:e2e": "mocha test/e2e/**/*.test.js --timeout 30000 --exit --recursive",
"test:integration:up": "node bin/db-fixture.js up",
"test:integration:down": "node bin/db-fixture.js down",
"test:integration:check": "node bin/db-fixture.js check",
"test:smoke": "mocha test/smoke/**/*.test.js --timeout 15000 --exit --recursive",
"test:smoke:unit": "mocha test/smoke/unit/**/*.test.js --timeout 5000 --exit --recursive",
"test:smoke:connected": "mocha test/smoke/connected/**/*.test.js --timeout 15000 --exit --recursive",
"test:boundary": "mocha test/boundary/**/*.test.js --timeout 30000 --exit --recursive",
"test:boundary:unit": "mocha test/boundary/unit/**/*.test.js --timeout 5000 --exit --recursive",
"test:fuzz": "mocha test/fuzz/**/*.fuzz.js --timeout 60000 --exit --recursive",
"test:fuzz:deep": "FUZZ_ITERATIONS=10000 mocha test/fuzz/**/*.fuzz.js --timeout 120000 --exit --recursive",
"test:boundary:integration": "mocha test/boundary/integration/**/*.test.js --timeout 30000 --exit --recursive",
"test:security": "mocha test/security/**/*.test.js --timeout 5000 --exit --recursive",
"test:performance": "node --expose-gc ./node_modules/.bin/mocha test/performance/**/*.test.js --timeout 0 --exit --recursive",
"test:chaos": "node --expose-gc ./node_modules/.bin/mocha test/chaos/**/*.test.js --timeout 0 --exit --recursive",
"test:chaos:db": "node --expose-gc ./node_modules/.bin/mocha test/chaos/db_resilience.test.js --timeout 0 --exit",
"test:chaos:api": "node --expose-gc ./node_modules/.bin/mocha test/chaos/api_overload.test.js --timeout 0 --exit",
"test:chaos:network": "node --expose-gc ./node_modules/.bin/mocha test/chaos/network_partition.test.js --timeout 0 --exit",
"test:chaos:resource": "node --expose-gc ./node_modules/.bin/mocha test/chaos/resource_saturation.test.js --timeout 0 --exit",
"test:chaos:external": "node --expose-gc ./node_modules/.bin/mocha test/chaos/external_deps.test.js --timeout 0 --exit",
"test:chaos:up": "node bin/fixture-ports.js compose test/chaos/fixtures/docker-compose.chaos.yml up -d --wait",
"test:chaos:down": "node bin/fixture-ports.js compose test/chaos/fixtures/docker-compose.chaos.yml down -v",
"test:mutation": "npx stryker run test/mutation/stryker.config.mjs",
"test:mutation:utility": "npx stryker run test/mutation/stryker.config.mjs --mutate 'src/lib/utility.js'",
"test:mutation:db": "npx stryker run test/mutation/stryker.config.mjs --mutate 'src/db/**/*.js'",
"test:mutation:explorer": "npx stryker run test/mutation/stryker.config.mjs --mutate 'src/XChainExplorer.js'",
"test:mutation:config": "npx stryker run test/mutation/stryker.config.mjs --mutate 'src/config.js'",
"test:regression": "mocha test/regression/**/*.test.js --timeout 30000 --exit --recursive",
"test:regression:p0": "mocha test/regression/p0_*.test.js --timeout 30000 --exit",
"test:regression:p0:unit": "mocha test/regression/p0_core_unit.test.js test/regression/p0_security_baseline.test.js --timeout 0 --exit",
"test:regression:p1": "mocha test/regression/p0_*.test.js test/regression/p1_*.test.js --timeout 30000 --exit",
"test:regression:full": "mocha test/regression/**/*.test.js --timeout 30000 --exit --recursive",
"ci:full": "bash bin/ci-full.sh"
},
"devDependencies": {
"@stryker-mutator/core": "^9.6.1",
"@stryker-mutator/mocha-runner": "^9.6.1",
"autocannon": "^7.15.0",
"c8": "^11.0.0",
"chai": "^4.5.0",
"jsdom": "^29.1.1",
"mocha": "^11.7.5",
"proxyquire": "^2.1.3",
"sinon": "^21.0.3",
"supertest": "^7.2.2"
},
"overrides": {
"brace-expansion": "^5.0.9",
"minimatch": "^10.2.5",
"decimal.js": "10.4.3",
"qs": "^6.15.2",
"serialize-javascript": "^7.0.5",
"diff": "^8.0.3",
"fast-uri": "^3.1.5",
"hyperid": "^4.0.0",
"ip-address": "^10.3.1",
"js-yaml": "^4.3.1",
"undici": "^7.29.0",
"form-data": "^4.0.6",
"tmp": "^0.2.7"
},
"engines": {
"comment": "Bounded to Node 22: the vendored xchain-vm optional dependency is the consensus runtime, which pins process.versions.modules to 127, so a contract read served from another engine is not the value the fleet committed. isolated-vm 6.2.0 ships prebuilt bindings for Node 22 (abi127) and Node 24 (abi137) alike, so a newer major installs rather than failing; being optional, an install failure here is a SILENT skip that drops the contract-read paths at runtime instead of failing loudly. See .nvmrc.",
"node": ">=22.0.0 <23"
}
}