[node] Big Contracts lib refactoring
This commit is contained in:
parent
1f6daef018
commit
de0251bc22
7 changed files with 88 additions and 139 deletions
|
@ -30,29 +30,6 @@ export type Chart = {
|
|||
submittedOn: Date;
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
export type Cooldown = {
|
||||
shipSymbol: string;
|
||||
totalSeconds: number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue