Web3 交易系统
原始验证资料

verify-final.txt

原始资料 · reports/evidence-v0.5/verify-final.txt · 以可阅读文本展示,HTML 与脚本不会在页面中执行。
all modules verified
?     web3exchange/api	[no test files]
ok    web3exchange/backend	(cached)
ok    web3exchange/chaintrade	2.287s
ok    web3exchange/cmd/exchangectl	(cached)
ok    web3exchange/cmd/loadcheck	(cached)
ok    web3exchange/cmd/server	(cached)
?     web3exchange/cmd/web3server	[no test files]
?     web3exchange/api	[no test files]
ok    web3exchange/backend	(cached)
ok    web3exchange/chaintrade	4.174s
ok    web3exchange/cmd/exchangectl	(cached)
ok    web3exchange/cmd/loadcheck	(cached)
ok    web3exchange/cmd/server	(cached)
?     web3exchange/cmd/web3server	[no test files]
npm notice run exchange-terminal@0.5.0 test:unit
npm notice run node --test tests/unit/*.test.mjs
TAP version 13
# Subtest: 发送原键、原请求和身份边界,只执行一次 fetch
ok 1 - 发送原键、原请求和身份边界,只执行一次 fetch
  ---
  duration_ms: 14.119904
  type: 'test'
  ...
# Subtest: 网络失败保持结果未知,不自动重试
ok 2 - 网络失败保持结果未知,不自动重试
  ---
  duration_ms: 0.633448
  type: 'test'
  ...
# Subtest: 响应不是 JSON保持结果未知,不自动重试
ok 3 - 响应不是 JSON保持结果未知,不自动重试
  ---
  duration_ms: 0.311216
  type: 'test'
  ...
# Subtest: 确定业务错误保留状态码与业务码
ok 4 - 确定业务错误保留状态码与业务码
  ---
  duration_ms: 0.324544
  type: 'test'
  ...
# Subtest: 错误/缺失数据集响应不能确认原请求:dataset-b
ok 5 - 错误/缺失数据集响应不能确认原请求:dataset-b
  ---
  duration_ms: 0.369588
  type: 'test'
  ...
# Subtest: 错误/缺失数据集响应不能确认原请求:null
ok 6 - 错误/缺失数据集响应不能确认原请求:null
  ---
  duration_ms: 0.296074
  type: 'test'
  ...
# Subtest: 请求超时只取消等待,AbortError 转成未知结果,定时器被清理
ok 7 - 请求超时只取消等待,AbortError 转成未知结果,定时器被清理
  ---
  duration_ms: 0.287293
  type: 'test'
  ...
# Subtest: 未知执行判断 0/RESULT_UNKNOWN
ok 8 - 未知执行判断 0/RESULT_UNKNOWN
  ---
  duration_ms: 0.178873
  type: 'test'
  ...
# Subtest: 未知执行判断 500/FAILED
ok 9 - 未知执行判断 500/FAILED
  ---
  duration_ms: 0.306798
  type: 'test'
  ...
# Subtest: 未知执行判断 503/QUERY_FAILED
ok 10 - 未知执行判断 503/QUERY_FAILED
  ---
  duration_ms: 0.183649
  type: 'test'
  ...
# Subtest: 未知执行判断 401/UNAUTHENTICATED
ok 11 - 未知执行判断 401/UNAUTHENTICATED
  ---
  duration_ms: 0.071984
  type: 'test'
  ...
# Subtest: 未知执行判断 429/RATE_LIMITED
ok 12 - 未知执行判断 429/RATE_LIMITED
  ---
  duration_ms: 0.033246
  type: 'test'
  ...
# Subtest: 未知执行判断 403/CSRF_REJECTED
ok 13 - 未知执行判断 403/CSRF_REJECTED
  ---
  duration_ms: 0.025854
  type: 'test'
  ...
# Subtest: 未知执行判断 403/ORIGIN_REJECTED
ok 14 - 未知执行判断 403/ORIGIN_REJECTED
  ---
  duration_ms: 0.028752
  type: 'test'
  ...
# Subtest: 未知执行判断 409/DATASET_CHANGED
ok 15 - 未知执行判断 409/DATASET_CHANGED
  ---
  duration_ms: 0.022077
  type: 'test'
  ...
# Subtest: 未知执行判断 400/INVALID_ORDER
ok 16 - 未知执行判断 400/INVALID_ORDER
  ---
  duration_ms: 0.022577
  type: 'test'
  ...
# Subtest: 未知执行判断 403/FORBIDDEN
ok 17 - 未知执行判断 403/FORBIDDEN
  ---
  duration_ms: 0.022576
  type: 'test'
  ...
# Subtest: 未知执行判断 409/IDEMPOTENCY_CONFLICT
ok 18 - 未知执行判断 409/IDEMPOTENCY_CONFLICT
  ---
  duration_ms: 0.022652
  type: 'test'
  ...
# Subtest: 非 API 异常的显示与判断有明确默认值
ok 19 - 非 API 异常的显示与判断有明确默认值
  ---
  duration_ms: 0.055746
  type: 'test'
  ...
# Subtest: 不存在记录可开始新操作,有效记录保留原键与原金额文本
ok 20 - 不存在记录可开始新操作,有效记录保留原键与原金额文本
  ---
  duration_ms: 1.22195
  type: 'test'
  ...
# Subtest: 拒绝恢复:未知版本
ok 21 - 拒绝恢复:未知版本
  ---
  duration_ms: 0.265607
  type: 'test'
  ...
# Subtest: 拒绝恢复:其他数据集
ok 22 - 拒绝恢复:其他数据集
  ---
  duration_ms: 0.077443
  type: 'test'
  ...
# Subtest: 拒绝恢复:其他账户
ok 23 - 拒绝恢复:其他账户
  ---
  duration_ms: 0.058166
  type: 'test'
  ...
# Subtest: 拒绝恢复:短幂等键
ok 24 - 拒绝恢复:短幂等键
  ---
  duration_ms: 0.102765
  type: 'test'
  ...
# Subtest: 拒绝恢复:非法幂等字符
ok 25 - 拒绝恢复:非法幂等字符
  ---
  duration_ms: 0.077345
  type: 'test'
  ...
# Subtest: 拒绝恢复:外部路径
ok 26 - 拒绝恢复:外部路径
  ---
  duration_ms: 0.088785
  type: 'test'
  ...
# Subtest: 拒绝恢复:其他操作路径
ok 27 - 拒绝恢复:其他操作路径
  ---
  duration_ms: 0.054639
  type: 'test'
  ...
# Subtest: 拒绝恢复:数组请求体
ok 28 - 拒绝恢复:数组请求体
  ---
  duration_ms: 0.273151
  type: 'test'
  ...
# Subtest: 拒绝恢复:金额为数值
ok 29 - 拒绝恢复:金额为数值
  ---
  duration_ms: 0.284135
  type: 'test'
  ...
# Subtest: 拒绝恢复:缺字段
ok 30 - 拒绝恢复:缺字段
  ---
  duration_ms: 0.12875
  type: 'test'
  ...
# Subtest: 拒绝恢复:伪造身份字段
ok 31 - 拒绝恢复:伪造身份字段
  ---
  duration_ms: 0.059794
  type: 'test'
  ...
# Subtest: 损坏 JSON、超长记录与存储拒绝必须抛错,交给 hook 阻止新写
ok 32 - 损坏 JSON、超长记录与存储拒绝必须抛错,交给 hook 阻止新写
  ---
  duration_ms: 0.117701
  type: 'test'
  ...
# Subtest: 撤单只允许正整数字符串 ID 且没有请求体
ok 33 - 撤单只允许正整数字符串 ID 且没有请求体
  ---
  duration_ms: 0.19497
  type: 'test'
  ...
# Subtest: 管理员注资恢复保留原目标与原因,字段类型严格
ok 34 - 管理员注资恢复保留原目标与原因,字段类型严格
  ---
  duration_ms: 0.123464
  type: 'test'
  ...
# Subtest: valid original signed order survives refresh without changing nonce
ok 35 - valid original signed order survives refresh without changing nonce
  ---
  duration_ms: 3.557007
  type: 'test'
  ...
# Subtest: reject changed dataset
ok 36 - reject changed dataset
  ---
  duration_ms: 0.195046
  type: 'test'
  ...
# Subtest: reject changed chain
ok 37 - reject changed chain
  ---
  duration_ms: 0.102993
  type: 'test'
  ...
# Subtest: reject changed contract
ok 38 - reject changed contract
  ---
  duration_ms: 0.051904
  type: 'test'
  ...
# Subtest: reject tampered signed price
ok 39 - reject tampered signed price
  ---
  duration_ms: 2.171075
  type: 'test'
  ...
# Subtest: reject tampered signed quantity
ok 40 - reject tampered signed quantity
  ---
  duration_ms: 2.189364
  type: 'test'
  ...
# Subtest: reject tampered signed nonce
ok 41 - reject tampered signed nonce
  ---
  duration_ms: 2.22681
  type: 'test'
  ...
# Subtest: reject tampered signed deadline
ok 42 - reject tampered signed deadline
  ---
  duration_ms: 1.899965
  type: 'test'
  ...
# Subtest: reject switched wallet
ok 43 - reject switched wallet
  ---
  duration_ms: 6.275129
  type: 'test'
  ...
# Subtest: reject malformed storage
ok 44 - reject malformed storage
  ---
  duration_ms: 0.293295
  type: 'test'
  ...
1..44
# tests 44
# suites 0
# pass 44
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2808.161727
npm notice run exchange-terminal@0.5.0 api:check
npm notice run node scripts/check-api.mjs
✨ openapi-typescript 7.8.0
🚀 ../api/openapi.json → /tmp/exchange-api-anIOXy/api.ts [89.6ms]
PASS: generated API matches the OpenAPI contract
npm notice run exchange-terminal@0.5.0 web3:check
npm notice run node scripts/check-web3-api.mjs
✨ openapi-typescript 7.8.0
🚀 ../api/web3-openapi.json → /tmp/exchange-api-8kBzDC/api.ts [47.9ms]
PASS: generated API matches the OpenAPI contract
npm notice run exchange-terminal@0.5.0 format:check
npm notice run prettier --check src tests scripts playwright.config.ts vite.config.ts
Checking formatting...
All matched files use Prettier code style!
npm notice run exchange-terminal@0.5.0 build
npm notice run tsc -b && vite build
vite v6.4.4 building for production...
transforming...
✓ 186 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html                    0.41 kB │ gzip:   0.30 kB
dist/assets/index-BFk9BuH3.css     7.24 kB │ gzip:   2.16 kB
dist/assets/index-B9nPK8gM.js    283.62 kB │ gzip:  95.44 kB
dist/assets/Web3App-DvZa2_Mm.js  285.09 kB │ gzip: 104.93 kB
✓ built in 2.93s
PASS: SIGKILL/restart preserves identity, session, order, balances and idempotency

— 本篇阅读完毕 —
来源:Web3 交易系统 / docs / reports/evidence-v0.5/verify-final.txt 下载原文
输入关键词,在三个知识库中搜索
支持正文检索 · 直接定位章节Esc 关闭