@energyweb/node-red-contrib-green-proof-worker
Version:
39 lines (38 loc) • 856 B
TypeScript
import * as z from 'zod';
export type NodeMessage<T> = {
payload?: T;
topic?: string;
_msgid?: string;
};
export declare const Vote: z.ZodObject<{
votingId: z.ZodString;
vote: z.ZodString;
}, z.core.$strip>;
export type Vote = z.infer<typeof Vote>;
export type LedgerTable = {
account_id: string;
root_unit_id: string;
volume: number;
};
export type ProcessedTable = {
unit_id: string;
root_unit_id: string;
owner: string;
prev_owner: string | null;
volume: number;
created_at: number;
};
export type AckedMessageTable = {
messageId: string;
created_at: number;
};
export type KeyValueTable = {
key: string;
value: string;
};
export type SqliteDatabase = {
ledger: LedgerTable;
processed: ProcessedTable;
acked_message: AckedMessageTable;
key_value: KeyValueTable;
};