-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
315 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,11 @@ | ||
import { Fee } from "tests/enum/Fee"; | ||
import { Account } from "../enum/Account"; | ||
import { Token } from "../enum/Token"; | ||
|
||
export abstract class Transaction { | ||
export class Transaction { | ||
constructor( | ||
public readonly accountToDebit: Account, | ||
public readonly accountToCredit: Account, | ||
public readonly amount: string, | ||
public readonly speed: Fee, | ||
) {} | ||
} | ||
export class BasicTransaction extends Transaction {} | ||
export class TokenTransaction extends Transaction { | ||
constructor( | ||
accountToDebit: Account, | ||
public readonly accountToCredit1: Account, | ||
public readonly accountToCredit2: Account, | ||
amount: string, | ||
speed: Fee, | ||
public readonly token: Token, | ||
) { | ||
super(accountToDebit, accountToCredit1, amount, speed); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.