Skip to content

Commit 45b8e97

Browse files
committed
feat(statics): add USDT0 (Stable) chain support
WIN-8747
1 parent d55d5cb commit 45b8e97

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
@@ -245,7 +245,7 @@ const mainnetBase: EnvironmentTemplate = {
245245
sonic: {
246246
baseUrl: 'https://api.etherscan.io/v2',
247247
},
248-
stable: {
248+
usdt0: {
249249
baseUrl: 'https://stablescan.xyz/api',
250250
},
251251
seievm: {
@@ -439,7 +439,7 @@ const testnetBase: EnvironmentTemplate = {
439439
sonic: {
440440
baseUrl: 'https://api.etherscan.io/v2',
441441
},
442-
stable: {
442+
usdt0: {
443443
baseUrl: 'https://testnet.stablescan.xyz/api',
444444
},
445445
seievm: {

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,11 +1772,11 @@ export const allCoinsAndTokens = [
17721772
),
17731773
account(
17741774
'599ab8d6-ebda-460e-8527-677157f86021',
1775-
'stable',
1776-
'Stable',
1777-
Networks.main.stable,
1775+
'usdt0',
1776+
'USDT0',
1777+
Networks.main.usdt0,
17781778
18,
1779-
UnderlyingAsset.STABLE,
1779+
UnderlyingAsset.USDT0,
17801780
BaseUnit.ETH,
17811781
[
17821782
...EVM_FEATURES,
@@ -1790,11 +1790,11 @@ export const allCoinsAndTokens = [
17901790
),
17911791
account(
17921792
'fd6b7af0-aff3-45fb-9a71-2d7100a1cd89',
1793-
'tstable',
1794-
'Testnet Stable',
1795-
Networks.test.stable,
1793+
'tusdt0',
1794+
'Testnet USDT0',
1795+
Networks.test.usdt0,
17961796
18,
1797-
UnderlyingAsset.STABLE,
1797+
UnderlyingAsset.USDT0,
17981798
BaseUnit.ETH,
17991799
[
18001800
...EVM_FEATURES,

modules/statics/src/base.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ export enum CoinFamily {
104104
SOL = 'sol',
105105
SONIC = 'sonic',
106106
SONEIUM = 'soneium',
107-
STABLE = 'stable',
108107
STT = 'stt',
109108
SUI = 'sui',
110109
STX = 'stx',
@@ -114,6 +113,7 @@ export enum CoinFamily {
114113
TIA = 'tia', // Celestia
115114
TON = 'ton',
116115
TRX = 'trx',
116+
USDT0 = 'usdt0', // Stable EVM L1
117117
VET = 'vet',
118118
WORLD = 'world',
119119
WEMIX = 'wemix',
@@ -635,16 +635,16 @@ export enum UnderlyingAsset {
635635
SEIEVM = 'seievm',
636636
SGB = 'sgb',
637637
SOL = 'sol',
638+
SOMI = 'somi', // Somnia Chain
639+
SONEIUM = 'soneium',
638640
SONIC = 'sonic',
639-
STABLE = 'stable',
640-
SUI = 'sui',
641+
STT = 'stt',
641642
STX = 'stx',
643+
SUI = 'sui',
642644
TIA = 'tia', // Celestia
643645
TON = 'ton',
644646
TRX = 'trx',
645-
SONEIUM = 'soneium',
646-
STT = 'stt',
647-
SOMI = 'somi', // Somnia Chain
647+
USDT0 = 'usdt0', // Stable EVM L1
648648
VET = 'vet',
649649
WEMIX = 'wemix',
650650
WORLD = 'world',

modules/statics/src/coins/ofcCoins.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ export const ofcCoins = [
194194
UnderlyingAsset.SONIC,
195195
CoinKind.CRYPTO
196196
),
197-
ofc('13151b0b-3734-452d-8ad9-21af03a08bfe', 'ofcstable', 'Stable', 18, UnderlyingAsset.STABLE, CoinKind.CRYPTO),
197+
ofc('13151b0b-3734-452d-8ad9-21af03a08bfe', 'ofcusdt0', 'USDT0', 18, UnderlyingAsset.USDT0, CoinKind.CRYPTO),
198198
tofc(
199199
'39a4dd77-b824-47b9-baff-b45398012511',
200-
'ofctstable',
201-
'Stable Testnet',
200+
'ofctusdt0',
201+
'USDT0 Testnet',
202202
18,
203-
UnderlyingAsset.STABLE,
203+
UnderlyingAsset.USDT0,
204204
CoinKind.CRYPTO
205205
),
206206
ofc(

modules/statics/src/networks.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,18 +1827,18 @@ class SonicTestnet extends Testnet implements EthereumNetwork {
18271827
walletImplementationAddress = '0x944fef03af368414f29dc31a72061b8d64f568d2';
18281828
}
18291829

1830-
class Stable extends Mainnet implements EthereumNetwork {
1831-
name = 'Stable';
1832-
family = CoinFamily.STABLE;
1830+
class Usdt0 extends Mainnet implements EthereumNetwork {
1831+
name = 'USDT0';
1832+
family = CoinFamily.USDT0;
18331833
explorerUrl = 'https://stablescan.xyz/tx/';
18341834
accountExplorerUrl = 'https://stablescan.xyz/address/';
18351835
chainId = 988;
18361836
nativeCoinOperationHashPrefix = '988';
18371837
}
18381838

1839-
class StableTestnet extends Testnet implements EthereumNetwork {
1840-
name = 'Testnet Stable';
1841-
family = CoinFamily.STABLE;
1839+
class Usdt0Testnet extends Testnet implements EthereumNetwork {
1840+
name = 'Testnet USDT0';
1841+
family = CoinFamily.USDT0;
18421842
explorerUrl = 'https://testnet.stablescan.xyz/tx/';
18431843
accountExplorerUrl = 'https://testnet.stablescan.xyz/address/';
18441844
chainId = 2201;
@@ -2520,7 +2520,6 @@ export const Networks = {
25202520
sgb: Object.freeze(new Songbird()),
25212521
sol: Object.freeze(new Sol()),
25222522
sonic: Object.freeze(new Sonic()),
2523-
stable: Object.freeze(new Stable()),
25242523
sui: Object.freeze(new Sui()),
25252524
near: Object.freeze(new Near()),
25262525
stx: Object.freeze(new Stx()),
@@ -2532,6 +2531,7 @@ export const Networks = {
25322531
tia: Object.freeze(new Tia()),
25332532
ton: Object.freeze(new Ton()),
25342533
trx: Object.freeze(new Trx()),
2534+
usdt0: Object.freeze(new Usdt0()),
25352535
vet: Object.freeze(new Vet()),
25362536
wemix: Object.freeze(new Wemix()),
25372537
world: Object.freeze(new World()),
@@ -2642,7 +2642,6 @@ export const Networks = {
26422642
stt: Object.freeze(new SomniaTestnet()),
26432643
soneium: Object.freeze(new SoneiumTestnet()),
26442644
sonic: Object.freeze(new SonicTestnet()),
2645-
stable: Object.freeze(new StableTestnet()),
26462645
kaia: Object.freeze(new KaiaTestnet()),
26472646
susd: Object.freeze(new SUSDTestnet()),
26482647
coreum: Object.freeze(new CoreumTestnet()),
@@ -2651,6 +2650,7 @@ export const Networks = {
26512650
tia: Object.freeze(new TiaTestnet()),
26522651
ton: Object.freeze(new TonTestnet()),
26532652
trx: Object.freeze(new TrxTestnet()),
2653+
usdt0: Object.freeze(new Usdt0Testnet()),
26542654
vet: Object.freeze(new VetTestnet()),
26552655
wemix: Object.freeze(new WemixTestnet()),
26562656
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
@@ -125,8 +125,8 @@ export const expectedColdFeatures = {
125125
'sol',
126126
'sonic',
127127
'somi',
128-
'stable',
129128
'sui',
129+
'usdt0',
130130
'tao',
131131
'tempo',
132132
'vet',
@@ -214,7 +214,7 @@ export const expectedColdFeatures = {
214214
'tseievm',
215215
'tton',
216216
'tsonic',
217-
'tstable',
217+
'tusdt0',
218218
],
219219
neither: [
220220
'ethw',

0 commit comments

Comments
 (0)