-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3978 from BitGo/WIN-497-add-ethliketsscoin-class
add abstract-eth classes
- Loading branch information
Showing
6 changed files
with
45 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* @prettier | ||
*/ | ||
import { MPCAlgorithm } from '@bitgo/sdk-core'; | ||
import { AbstractEthLikeCoin } from './abstractEthLikeCoin'; | ||
|
||
export abstract class AbstractEthLikeMPCCoin extends AbstractEthLikeCoin { | ||
/** @inheritDoc */ | ||
supportsTss(): boolean { | ||
return true; | ||
} | ||
|
||
/** @inheritDoc */ | ||
getMPCAlgorithm(): MPCAlgorithm { | ||
return 'ecdsa'; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* @prettier | ||
*/ | ||
import { MPCAlgorithm } from '@bitgo/sdk-core'; | ||
import { EthLikeToken } from './ethLikeToken'; | ||
|
||
export abstract class EthLikeMPCToken extends EthLikeToken { | ||
/** @inheritDoc */ | ||
supportsTss(): boolean { | ||
return true; | ||
} | ||
|
||
/** @inheritDoc */ | ||
getMPCAlgorithm(): MPCAlgorithm { | ||
return 'ecdsa'; | ||
} | ||
} |
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,2 +1,4 @@ | ||
export * from './abstractEthLikeCoin'; | ||
export * from './ethLikeToken'; | ||
export * from './abstractEthLikeMPCCoin'; | ||
export * from './ethLikeMPCToken'; |
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