[node] begin the great typescript rewrite
This commit is contained in:
parent
3b61a9694d
commit
d668eac4a6
31 changed files with 879 additions and 666 deletions
22
nodejs/model/contract.ts
Normal file
22
nodejs/model/contract.ts
Normal file
|
@ -0,0 +1,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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue