Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GOLD-161: Add proposal and new receipt types for POQo #12

Closed
wants to merge 1 commit into from
Closed
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
29 changes: 28 additions & 1 deletion src/state-manager/StateManagerTypes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export type ReceiptMap = {[txId: string]: string[]};
import * as Types from '../p2p/P2PTypes'

export type ReceiptMap = { [txId: string]: string[] };

export type ReceiptMapResult = {
cycle: number;
Expand Down Expand Up @@ -36,3 +38,28 @@ export type StatsClump = {
coveredParititionCount: number;
skippedParitionCount: number;
};

export type Proposal = {
txid: string;
applied: boolean;
cantPreApply: boolean;
accountIds: string[];
beforeStateHashes: string[];
afterStateHashes: string[];
appDataHash: string;
}

export type ProposalVote = {
proposalHash: string;
sign: Types.Signature;
}

export type SignedReceipt = {
proposal: Proposal;
proposalHash: string;
signPack: {
type: "simple";
signatures: Types.Signature[];
}
signPackSerialized: Buffer;
}