Skip to content

Commit 40e80ea

Browse files
feat: add tss support for arb and op tokens
2 parents 278f43e + 3450a59 commit 40e80ea

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

modules/sdk-coin-arbeth/src/arbethToken.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @prettier
33
*/
44
import { EthLikeTokenConfig, coins } from '@bitgo/statics';
5-
import { BitGoBase, CoinConstructor, NamedCoinConstructor, common } from '@bitgo/sdk-core';
5+
import { BitGoBase, CoinConstructor, NamedCoinConstructor, common, MPCAlgorithm } from '@bitgo/sdk-core';
66
import { CoinNames, EthLikeToken, recoveryBlockchainExplorerQuery } from '@bitgo/abstract-eth';
77

88
import { TransactionBuilder } from './lib';
@@ -43,4 +43,13 @@ export class ArbethToken extends EthLikeToken {
4343
getFullName(): string {
4444
return 'Arbeth Token';
4545
}
46+
47+
supportsTss(): boolean {
48+
return true;
49+
}
50+
51+
/** @inheritDoc */
52+
getMPCAlgorithm(): MPCAlgorithm {
53+
return 'ecdsa';
54+
}
4655
}

modules/sdk-coin-opeth/src/opethToken.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @prettier
33
*/
44
import { EthLikeTokenConfig, coins } from '@bitgo/statics';
5-
import { BitGoBase, CoinConstructor, NamedCoinConstructor, common } from '@bitgo/sdk-core';
5+
import { BitGoBase, CoinConstructor, NamedCoinConstructor, common, MPCAlgorithm } from '@bitgo/sdk-core';
66
import { CoinNames, EthLikeToken, recoveryBlockchainExplorerQuery } from '@bitgo/abstract-eth';
77

88
import { TransactionBuilder } from './lib';
@@ -43,4 +43,13 @@ export class OpethToken extends EthLikeToken {
4343
getFullName(): string {
4444
return 'Opeth Token';
4545
}
46+
47+
supportsTss(): boolean {
48+
return true;
49+
}
50+
51+
/** @inheritDoc */
52+
getMPCAlgorithm(): MPCAlgorithm {
53+
return 'ecdsa';
54+
}
4655
}

0 commit comments

Comments
 (0)