summaryrefslogtreecommitdiff
path: root/nodejs/model/contract.ts
blob: eb7add44fe77acd655355c537f204ae7addd4f53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export type Contract = {
	id: string;
	factionSymbol: string;
	type: string;
	terms: {
		deadline: Date;
		payment: {
			onAccepted: number;
			onFulfilled: number;
		},
		deliver: Array<{
			tradeSymbol: string;
			destinationSymbol: string;
			unitsRequired: number;
			unitsFulfilled: number;
		}>;
	};
	accepted: boolean;
	fulfilled: boolean;
	expiration: Date;
	deadlineToAccept: Date;
};