Skip to content

Commit 4d12f4f

Browse files
authored
Merge pull request #6700 from BitGo/WIN-6703
chore: removed stt
2 parents 55f1c66 + 47d4774 commit 4d12f4f

File tree

15 files changed

+8
-72
lines changed

15 files changed

+8
-72
lines changed

modules/account-lib/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,9 @@ const coinBuilderMap = {
313313
tmon: Mon.TransactionBuilder,
314314
world: World.TransactionBuilder,
315315
tworld: World.TransactionBuilder,
316-
stt: Stt.TransactionBuilder,
317-
tstt: Stt.TransactionBuilder,
318316
soneium: Soneium.TransactionBuilder,
319317
tsoneium: Soneium.TransactionBuilder,
318+
tstt: Stt.TransactionBuilder,
320319
polyx: Polyx.TransactionBuilderFactory,
321320
tpolyx: Polyx.TransactionBuilderFactory,
322321
vet: Vet.TransactionBuilderFactory,

modules/account-lib/test/unit/keyPair/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ describe('Key Pair Factory', () => {
1313
const supportedCoinsExceptTestnet = Object.keys(coinModules)
1414
// TODO(BG-40990): temporarily disable eth2 from the test for bls not initialized error
1515
.filter(
16-
(k) => coinModules[k].KeyPair && !['eth2', 'evmcoin', 'cosmossharedcoin'].includes(k.trim().toLowerCase()),
16+
(k) =>
17+
coinModules[k].KeyPair && !['eth2', 'evmcoin', 'cosmossharedcoin', 'stt'].includes(k.trim().toLowerCase()),
1718
);
1819

1920
supportedCoinsExceptTestnet.forEach((coinName) => {

modules/bitgo/src/v2/coinFactory.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ import {
121121
SoneiumToken,
122122
StellarToken,
123123
Stx,
124-
Stt,
125124
Sui,
126125
SuiToken,
127126
Susd,
@@ -286,7 +285,6 @@ export function registerCoinConstructors(coinFactory: CoinFactory, coinMap: Coin
286285
coinFactory.register('sol', Sol.createInstance);
287286
coinFactory.register('soneium', Soneium.createInstance);
288287
coinFactory.register('stx', Stx.createInstance);
289-
coinFactory.register('stt', Stt.createInstance);
290288
coinFactory.register('sui', Sui.createInstance);
291289
coinFactory.register('susd', Susd.createInstance);
292290
coinFactory.register('tao', Tao.createInstance);
@@ -687,8 +685,6 @@ export function getCoinConstructor(coinName: string): CoinConstructor | undefine
687685
return Soneium.createInstance;
688686
case 'stx':
689687
return Stx.createInstance;
690-
case 'stt':
691-
return Stt.createInstance;
692688
case 'sui':
693689
return Sui.createInstance;
694690
case 'susd':

modules/bitgo/src/v2/coins/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import { Rbtc, Trbtc } from '@bitgo/sdk-coin-rbtc';
5454
import { Rune, Trune } from '@bitgo/sdk-coin-rune';
5555
import { Sei, Tsei } from '@bitgo/sdk-coin-sei';
5656
import { Soneium, Tsoneium, SoneiumToken } from '@bitgo/sdk-coin-soneium';
57-
import { Stt, Tstt } from '@bitgo/sdk-coin-stt';
57+
import { Tstt } from '@bitgo/sdk-coin-stt';
5858
import { Sgb, Tsgb } from '@bitgo/sdk-coin-sgb';
5959
import { Sol, Tsol } from '@bitgo/sdk-coin-sol';
6060
import { Stx, Tstx, Sip10Token } from '@bitgo/sdk-coin-stx';
@@ -128,7 +128,7 @@ export { Rune, Trune };
128128
export { Sgb, Tsgb };
129129
export { Sol, Tsol };
130130
export { Soneium, Tsoneium, SoneiumToken };
131-
export { Stt, Tstt };
131+
export { Tstt };
132132
export { Stx, Tstx, Sip10Token };
133133
export { Sui, Tsui, SuiToken };
134134
export { Tao, Ttao, TaoToken };

modules/bitgo/test/v2/unit/keychains.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ describe('V2 Keychains', function () {
8484
n.asset !== UnderlyingAsset.CTC &&
8585
n.asset !== UnderlyingAsset.HYPEEVM &&
8686
n.asset !== UnderlyingAsset.XPL &&
87-
n.asset !== UnderlyingAsset.STT &&
8887
n.asset !== UnderlyingAsset.SONEIUM &&
8988
n.asset !== UnderlyingAsset.VET &&
9089
n.asset !== UnderlyingAsset.CRONOS &&

modules/sdk-coin-stt/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export * from './lib';
2-
export * from './stt';
32
export * from './tstt';
43
export * from './register';
4+
// Base Stt class is used internally by Tstt but not exported

modules/sdk-coin-stt/src/lib/resources.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,3 @@ export const testnetCommon = EthereumCommon.custom(
1313
eips: [1559],
1414
}
1515
);
16-
export const mainnetCommon = EthereumCommon.custom(
17-
{
18-
name: 'Somnia mainnet',
19-
networkId: (coins.get('stt').network as EthereumNetwork).chainId,
20-
chainId: (coins.get('stt').network as EthereumNetwork).chainId,
21-
},
22-
{
23-
baseChain: 'mainnet',
24-
hardfork: 'london',
25-
eips: [1559],
26-
}
27-
);

modules/sdk-coin-stt/src/lib/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { NetworkType } from '@bitgo/statics';
22
import EthereumCommon from '@ethereumjs/common';
33
import { InvalidTransactionError } from '@bitgo/sdk-core';
4-
import { mainnetCommon, testnetCommon } from './resources';
4+
import { testnetCommon } from './resources';
55

66
const commons: Map<NetworkType, EthereumCommon> = new Map<NetworkType, EthereumCommon>([
7-
[NetworkType.MAINNET, mainnetCommon],
87
[NetworkType.TESTNET, testnetCommon],
98
]);
109

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { BitGoBase } from '@bitgo/sdk-core';
2-
import { Stt } from './stt';
32
import { Tstt } from './tstt';
43

54
export const register = (sdk: BitGoBase): void => {
6-
sdk.register('stt', Stt.createInstance);
75
sdk.register('tstt', Tstt.createInstance);
86
};

modules/sdk-coin-stt/test/unit/stt.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,17 @@
11
import { TestBitGo, TestBitGoAPI } from '@bitgo/sdk-test';
22
import { BitGoAPI } from '@bitgo/sdk-api';
33

4-
import { Tstt, Stt } from '../../src';
4+
import { Tstt } from '../../src';
55

66
const bitgo: TestBitGoAPI = TestBitGo.decorate(BitGoAPI, { env: 'test' });
77

88
describe('stt', function () {
99
before(function () {
10-
bitgo.safeRegister('stt', Stt.createInstance);
1110
bitgo.safeRegister('tstt', Tstt.createInstance);
1211
bitgo.initializeTestVars();
1312
});
1413

1514
describe('Basic Coin Info', function () {
16-
it('should return the right info for stt', function () {
17-
const stt = bitgo.coin('stt');
18-
stt.should.be.an.instanceof(Stt);
19-
stt.getChain().should.equal('stt');
20-
stt.getFamily().should.equal('stt');
21-
stt.getFullName().should.equal('DepricatedSom');
22-
stt.getBaseFactor().should.equal(1e18);
23-
stt.supportsTss().should.equal(true);
24-
stt.allowsAccountConsolidations().should.equal(false);
25-
});
2615
it('should return the right info for tstt', function () {
2716
const tstt = bitgo.coin('tstt');
2817

0 commit comments

Comments
 (0)