Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions __tests__/hostApi/statementStore.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function createMockSignedStatement(topicSeed: number): SignedStatement {
signer: new Uint8Array(32).fill(2),
}),
decryptionKey: undefined,
expiry: undefined,
expiry: BigInt(Math.floor(Date.now() / 1000) + 7 * 24 * 60 * 60) << 32n,
channel: undefined,
topics: [createTopic(topicSeed)],
data: new Uint8Array([1, 2, 3]),
Expand All @@ -51,7 +51,7 @@ function createMockStatement(topicSeed: number): Statement {
return {
proof: undefined,
decryptionKey: undefined,
expiry: undefined,
expiry: BigInt(Math.floor(Date.now() / 1000) + 7 * 24 * 60 * 60) << 32n,
channel: undefined,
topics: [createTopic(topicSeed)],
data: new Uint8Array([1, 2, 3]),
Expand Down
4 changes: 2 additions & 2 deletions docs/design/host-api-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ enum StatementProof {
struct Statement {
proof: Option<StatementProof>,
decryption_key: Option<DecryptionKey>,
priority: Option<u32>,
expiry: u64,
channel: Option<Channel>,
topics: Vec<Topic>,
data: Option<Vec<u8>>
Expand All @@ -1089,7 +1089,7 @@ struct Statement {
struct SignedStatement {
proof: StatementProof,
decryption_key: Option<DecryptionKey>,
priority: Option<u32>,
expiry: u64,
channel: Option<Channel>,
topics: Vec<Topic>,
data: Option<Vec<u8>>
Expand Down
4 changes: 2 additions & 2 deletions packages/host-api/src/protocol/v1/statementStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const StatementProof = Enum({
export const Statement = Struct({
proof: Option(StatementProof),
decryptionKey: Option(DecryptionKey),
expiry: Option(u64),
expiry: u64,
channel: Option(Channel),
topics: Vector(Topic),
data: Option(Bytes()),
Expand All @@ -52,7 +52,7 @@ export const Statement = Struct({
export const SignedStatement = Struct({
proof: StatementProof,
decryptionKey: Option(DecryptionKey),
expiry: Option(u64),
expiry: u64,
channel: Option(Channel),
topics: Vector(Topic),
data: Option(Bytes()),
Expand Down