Skip to content

Commit 9272e2c

Browse files
Merge pull request #8155 from BitGo/fix/stable-to-usdt0-rename
feat(statics): rename Stable to USDT0
2 parents 2c2e523 + 45b8e97 commit 9272e2c

6 files changed

Lines changed: 30 additions & 30 deletions

File tree

modules/sdk-core/src/bitgo/environments.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ const mainnetBase: EnvironmentTemplate = {
247247
sonic: {
248248
baseUrl: 'https://api.etherscan.io/v2',
249249
},
250-
stable: {
250+
usdt0: {
251251
baseUrl: 'https://stablescan.xyz/api',
252252
},
253253
seievm: {
@@ -448,7 +448,7 @@ const testnetBase: EnvironmentTemplate = {
448448
sonic: {
449449
baseUrl: 'https://api.etherscan.io/v2',
450450
},
451-
stable: {
451+
usdt0: {
452452
baseUrl: 'https://testnet.stablescan.xyz/api',
453453
},
454454
seievm: {

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,11 +1808,11 @@ export const allCoinsAndTokens = [
18081808
),
18091809
account(
18101810
'599ab8d6-ebda-460e-8527-677157f86021',
1811-
'stable',
1812-
'Stable',
1813-
Networks.main.stable,
1811+
'usdt0',
1812+
'USDT0',
1813+
Networks.main.usdt0,
18141814
18,
1815-
UnderlyingAsset.STABLE,
1815+
UnderlyingAsset.USDT0,
18161816
BaseUnit.ETH,
18171817
[
18181818
...EVM_FEATURES,
@@ -1826,11 +1826,11 @@ export const allCoinsAndTokens = [
18261826
),
18271827
account(
18281828
'fd6b7af0-aff3-45fb-9a71-2d7100a1cd89',
1829-
'tstable',
1830-
'Testnet Stable',
1831-
Networks.test.stable,
1829+
'tusdt0',
1830+
'Testnet USDT0',
1831+
Networks.test.usdt0,
18321832
18,
1833-
UnderlyingAsset.STABLE,
1833+
UnderlyingAsset.USDT0,
18341834
BaseUnit.ETH,
18351835
[
18361836
...EVM_FEATURES,

modules/statics/src/base.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ export enum CoinFamily {
105105
SOL = 'sol',
106106
SONIC = 'sonic',
107107
SONEIUM = 'soneium',
108-
STABLE = 'stable',
109108
STT = 'stt',
110109
SUI = 'sui',
111110
STX = 'stx',
@@ -115,6 +114,7 @@ export enum CoinFamily {
115114
TIA = 'tia', // Celestia
116115
TON = 'ton',
117116
TRX = 'trx',
117+
USDT0 = 'usdt0', // Stable EVM L1
118118
VET = 'vet',
119119
WORLD = 'world',
120120
WEMIX = 'wemix',
@@ -638,16 +638,16 @@ export enum UnderlyingAsset {
638638
SEIEVM = 'seievm',
639639
SGB = 'sgb',
640640
SOL = 'sol',
641+
SOMI = 'somi', // Somnia Chain
642+
SONEIUM = 'soneium',
641643
SONIC = 'sonic',
642-
STABLE = 'stable',
643-
SUI = 'sui',
644+
STT = 'stt',
644645
STX = 'stx',
646+
SUI = 'sui',
645647
TIA = 'tia', // Celestia
646648
TON = 'ton',
647649
TRX = 'trx',
648-
SONEIUM = 'soneium',
649-
STT = 'stt',
650-
SOMI = 'somi', // Somnia Chain
650+
USDT0 = 'usdt0', // Stable EVM L1
651651
VET = 'vet',
652652
WEMIX = 'wemix',
653653
WORLD = 'world',

modules/statics/src/coins/ofcCoins.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,13 @@ export const ofcCoins = [
201201
UnderlyingAsset.SONIC,
202202
CoinKind.CRYPTO
203203
),
204-
ofc('13151b0b-3734-452d-8ad9-21af03a08bfe', 'ofcstable', 'Stable', 18, UnderlyingAsset.STABLE, CoinKind.CRYPTO),
204+
ofc('13151b0b-3734-452d-8ad9-21af03a08bfe', 'ofcusdt0', 'USDT0', 18, UnderlyingAsset.USDT0, CoinKind.CRYPTO),
205205
tofc(
206206
'39a4dd77-b824-47b9-baff-b45398012511',
207-
'ofctstable',
208-
'Stable Testnet',
207+
'ofctusdt0',
208+
'USDT0 Testnet',
209209
18,
210-
UnderlyingAsset.STABLE,
210+
UnderlyingAsset.USDT0,
211211
CoinKind.CRYPTO
212212
),
213213
ofc(

modules/statics/src/networks.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,18 +1845,18 @@ class SonicTestnet extends Testnet implements EthereumNetwork {
18451845
walletImplementationAddress = '0x944fef03af368414f29dc31a72061b8d64f568d2';
18461846
}
18471847

1848-
class Stable extends Mainnet implements EthereumNetwork {
1849-
name = 'Stable';
1850-
family = CoinFamily.STABLE;
1848+
class Usdt0 extends Mainnet implements EthereumNetwork {
1849+
name = 'USDT0';
1850+
family = CoinFamily.USDT0;
18511851
explorerUrl = 'https://stablescan.xyz/tx/';
18521852
accountExplorerUrl = 'https://stablescan.xyz/address/';
18531853
chainId = 988;
18541854
nativeCoinOperationHashPrefix = '988';
18551855
}
18561856

1857-
class StableTestnet extends Testnet implements EthereumNetwork {
1858-
name = 'Testnet Stable';
1859-
family = CoinFamily.STABLE;
1857+
class Usdt0Testnet extends Testnet implements EthereumNetwork {
1858+
name = 'Testnet USDT0';
1859+
family = CoinFamily.USDT0;
18601860
explorerUrl = 'https://testnet.stablescan.xyz/tx/';
18611861
accountExplorerUrl = 'https://testnet.stablescan.xyz/address/';
18621862
chainId = 2201;
@@ -2557,7 +2557,6 @@ export const Networks = {
25572557
sgb: Object.freeze(new Songbird()),
25582558
sol: Object.freeze(new Sol()),
25592559
sonic: Object.freeze(new Sonic()),
2560-
stable: Object.freeze(new Stable()),
25612560
sui: Object.freeze(new Sui()),
25622561
near: Object.freeze(new Near()),
25632562
stx: Object.freeze(new Stx()),
@@ -2569,6 +2568,7 @@ export const Networks = {
25692568
tia: Object.freeze(new Tia()),
25702569
ton: Object.freeze(new Ton()),
25712570
trx: Object.freeze(new Trx()),
2571+
usdt0: Object.freeze(new Usdt0()),
25722572
vet: Object.freeze(new Vet()),
25732573
wemix: Object.freeze(new Wemix()),
25742574
world: Object.freeze(new World()),
@@ -2681,7 +2681,6 @@ export const Networks = {
26812681
stt: Object.freeze(new SomniaTestnet()),
26822682
soneium: Object.freeze(new SoneiumTestnet()),
26832683
sonic: Object.freeze(new SonicTestnet()),
2684-
stable: Object.freeze(new StableTestnet()),
26852684
kaia: Object.freeze(new KaiaTestnet()),
26862685
susd: Object.freeze(new SUSDTestnet()),
26872686
coreum: Object.freeze(new CoreumTestnet()),
@@ -2690,6 +2689,7 @@ export const Networks = {
26902689
tia: Object.freeze(new TiaTestnet()),
26912690
ton: Object.freeze(new TonTestnet()),
26922691
trx: Object.freeze(new TrxTestnet()),
2692+
usdt0: Object.freeze(new Usdt0Testnet()),
26932693
vet: Object.freeze(new VetTestnet()),
26942694
wemix: Object.freeze(new WemixTestnet()),
26952695
world: Object.freeze(new WorldTestnet()),

modules/statics/test/unit/fixtures/expectedColdFeatures.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ export const expectedColdFeatures = {
127127
'sol',
128128
'sonic',
129129
'somi',
130-
'stable',
131130
'sui',
131+
'usdt0',
132132
'tao',
133133
'tempo',
134134
'vet',
@@ -218,7 +218,7 @@ export const expectedColdFeatures = {
218218
'tseievm',
219219
'tton',
220220
'tsonic',
221-
'tstable',
221+
'tusdt0',
222222
],
223223
neither: [
224224
'ethw',

0 commit comments

Comments
 (0)