플레이 감사 국가 생멸과 장기 tick 저장을 보완하고 중간 전달 준비

This commit is contained in:
2026-09-16 07:26:05 +00:00
parent ae0dfd503f
commit 52cea882ab
24 changed files with 428 additions and 46 deletions
+3 -2
View File
@@ -28,7 +28,8 @@ export const persistAuditMonth = async (
!Number.isInteger(snapshot.year) ||
!Number.isInteger(snapshot.month) ||
snapshot.month < 1 ||
snapshot.month > 12
snapshot.month > 12 ||
(snapshot.tick !== null && (!Number.isSafeInteger(snapshot.tick) || snapshot.tick < 0))
) {
throw new Error('Invalid play audit month identity');
}
@@ -42,7 +43,7 @@ export const persistAuditMonth = async (
year: snapshot.year,
month: snapshot.month,
kind: snapshot.kind,
tick: snapshot.tick,
tick: snapshot.tick === null ? null : BigInt(snapshot.tick),
settlementsComplete: snapshot.settlementsComplete,
hash,
},