Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions modules/sdk-core/src/bitgo/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ const mainnetBase: EnvironmentTemplate = {
sonic: {
baseUrl: 'https://api.etherscan.io/v2',
},
stable: {
baseUrl: 'https://stablescan.xyz/api',
},
seievm: {
baseUrl: 'https://api.etherscan.io/v2',
},
Expand Down Expand Up @@ -430,6 +433,9 @@ const testnetBase: EnvironmentTemplate = {
sonic: {
baseUrl: 'https://api.etherscan.io/v2',
},
stable: {
baseUrl: 'https://testnet.stablescan.xyz/api',
},
seievm: {
baseUrl: 'https://api.etherscan.io/v2',
},
Expand Down
36 changes: 36 additions & 0 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1770,6 +1770,42 @@ export const allCoinsAndTokens = [
CoinFeature.EVM_NON_BITGO_RECOVERY,
]
),
account(
'599ab8d6-ebda-460e-8527-677157f86021',
'stable',
'Stable',
Networks.main.stable,
18,
UnderlyingAsset.STABLE,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
CoinFeature.EVM_COMPATIBLE_WP,
CoinFeature.SUPPORTS_ERC20,
]
),
account(
'fd6b7af0-aff3-45fb-9a71-2d7100a1cd89',
'tstable',
'Testnet Stable',
Networks.test.stable,
18,
UnderlyingAsset.STABLE,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
CoinFeature.EVM_COMPATIBLE_WP,
CoinFeature.SUPPORTS_ERC20,
]
),
account(
'df01a650-3c8b-4182-a7cb-8ee7ad115c21',
'xpl',
Expand Down
2 changes: 2 additions & 0 deletions modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export enum CoinFamily {
SOL = 'sol',
SONIC = 'sonic',
SONEIUM = 'soneium',
STABLE = 'stable',
STT = 'stt',
SUI = 'sui',
STX = 'stx',
Expand Down Expand Up @@ -633,6 +634,7 @@ export enum UnderlyingAsset {
SGB = 'sgb',
SOL = 'sol',
SONIC = 'sonic',
STABLE = 'stable',
SUI = 'sui',
STX = 'stx',
TIA = 'tia', // Celestia
Expand Down
9 changes: 9 additions & 0 deletions modules/statics/src/coins/ofcCoins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,15 @@ export const ofcCoins = [
UnderlyingAsset.SONIC,
CoinKind.CRYPTO
),
ofc('13151b0b-3734-452d-8ad9-21af03a08bfe', 'ofcstable', 'Stable', 18, UnderlyingAsset.STABLE, CoinKind.CRYPTO),
tofc(
'39a4dd77-b824-47b9-baff-b45398012511',
'ofctstable',
'Stable Testnet',
18,
UnderlyingAsset.STABLE,
CoinKind.CRYPTO
),
ofc(
'ec31b18d-f034-4e84-837e-2c7d2908bbae',
'ofchypeevm',
Expand Down
20 changes: 20 additions & 0 deletions modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1809,6 +1809,24 @@ class SonicTestnet extends Testnet implements EthereumNetwork {
walletImplementationAddress = '0x944fef03af368414f29dc31a72061b8d64f568d2';
}

class Stable extends Mainnet implements EthereumNetwork {
name = 'Stable';
family = CoinFamily.STABLE;
explorerUrl = 'https://stablescan.xyz/tx/';
accountExplorerUrl = 'https://stablescan.xyz/address/';
chainId = 988;
nativeCoinOperationHashPrefix = '988';
}

class StableTestnet extends Testnet implements EthereumNetwork {
name = 'Testnet Stable';
family = CoinFamily.STABLE;
explorerUrl = 'https://testnet.stablescan.xyz/tx/';
accountExplorerUrl = 'https://testnet.stablescan.xyz/address/';
chainId = 2201;
nativeCoinOperationHashPrefix = '2201';
}

class Kaia extends Mainnet implements EthereumNetwork {
name = 'Kaia';
family = CoinFamily.KAIA;
Expand Down Expand Up @@ -2483,6 +2501,7 @@ export const Networks = {
sgb: Object.freeze(new Songbird()),
sol: Object.freeze(new Sol()),
sonic: Object.freeze(new Sonic()),
stable: Object.freeze(new Stable()),
sui: Object.freeze(new Sui()),
near: Object.freeze(new Near()),
stx: Object.freeze(new Stx()),
Expand Down Expand Up @@ -2603,6 +2622,7 @@ export const Networks = {
stt: Object.freeze(new SomniaTestnet()),
soneium: Object.freeze(new SoneiumTestnet()),
sonic: Object.freeze(new SonicTestnet()),
stable: Object.freeze(new StableTestnet()),
kaia: Object.freeze(new KaiaTestnet()),
susd: Object.freeze(new SUSDTestnet()),
coreum: Object.freeze(new CoreumTestnet()),
Expand Down
2 changes: 2 additions & 0 deletions modules/statics/test/unit/fixtures/expectedColdFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export const expectedColdFeatures = {
'sol',
'sonic',
'somi',
'stable',
'sui',
'tao',
'tempo',
Expand Down Expand Up @@ -211,6 +212,7 @@ export const expectedColdFeatures = {
'tseievm',
'tton',
'tsonic',
'tstable',
],
neither: [
'ethw',
Expand Down