Skip to content

Commit 9dba2dd

Browse files
chore(randomnes-service): added comments into CommitmentInfoTable
1 parent e8b9d38 commit 9dba2dd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • packages/randomness-service/src/db

packages/randomness-service/src/db/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import type { Hex, UUID } from "@happychain/common"
22
import type { CommitmentInfo } from "../CommitmentManager"
33

44
export interface CommitmentInfoTable {
5+
// The timestamp is stored as a number because Kisely automatically converts bigint to number
56
timestamp: number
7+
// The value is stored as a string because it can be a large number bigger than the max value of an SQLite integer
68
value: string
79
commitment: Hex
810
transactionIntentId: UUID

0 commit comments

Comments
 (0)