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
1 change: 1 addition & 0 deletions modules/bitgo/test/v2/unit/keychains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ describe('V2 Keychains', function () {
n.asset !== UnderlyingAsset.LINEAETH &&
n.asset !== UnderlyingAsset.IP && // Story Chain
n.asset !== UnderlyingAsset.BASEETH &&
n.asset !== UnderlyingAsset.SOMI &&
coinFamilyValues.includes(n.name)
);

Expand Down
3 changes: 3 additions & 0 deletions modules/sdk-core/src/bitgo/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ const mainnetBase: EnvironmentTemplate = {
ip: {
baseUrl: 'https://api.storyscan.app/',
},
somi: {
baseUrl: 'https://mainnet.somnia.w3us.site/',
},
},
icpNodeUrl: 'https://ic0.app',
worldExplorerBaseUrl: 'https://worldscan.org/',
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 @@ -107,6 +107,7 @@ export enum CoinFamily {
ZKETH = 'zketh',
LINEAETH = 'lineaeth',
IP = 'ip', // Story Chain
SOMI = 'somi', // Somnia Chain
}

/**
Expand Down Expand Up @@ -534,6 +535,7 @@ export enum UnderlyingAsset {
TRX = 'trx',
SONEIUM = 'soneium',
STT = 'stt',
SOMI = 'somi', // Somnia Chain
VET = 'vet',
WEMIX = 'wemix',
WORLD = 'world',
Expand Down
21 changes: 20 additions & 1 deletion modules/statics/src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,10 @@ export const coins = CoinMap.fromCoins([
18,
UnderlyingAsset.STT,
BaseUnit.ETH,
[...EVM_FEATURES, CoinFeature.SHARED_EVM_SIGNING]
[...EVM_FEATURES, CoinFeature.SHARED_EVM_SIGNING],
KeyCurve.Secp256k1,
'',
'Somi'
),
account(
'1bf486a9-47ed-4bea-8e9a-a23a074cdc9a',
Expand All @@ -1701,6 +1704,22 @@ export const coins = CoinMap.fromCoins([
BaseUnit.ETH,
[...EVM_FEATURES, CoinFeature.SHARED_EVM_SIGNING]
),
account(
'aaa25f54-24f8-41d9-ba4e-83465d7cc2ec',
'somi',
'Somnia',
Networks.main.somi,
18,
UnderlyingAsset.SOMI,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
]
),
account(
'202caf8f-4d43-4208-b206-8231f555c518',
'flr',
Expand Down
9 changes: 9 additions & 0 deletions modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1624,6 +1624,14 @@ class SomniaTestnet extends Testnet implements EthereumNetwork {
walletImplementationAddress = '0x944fef03af368414f29dc31a72061b8d64f568d2';
}

class Somi extends Mainnet implements EthereumNetwork {
name = 'Somnia';
family = CoinFamily.SOMI;
explorerUrl = 'https://mainnet.somnia.w3us.site/tx/';
chainId = 5031;
nativeCoinOperationHashPrefix = '5031';
}

class Flare extends Mainnet implements EthereumNetwork {
name = 'Flarechain';
family = CoinFamily.FLR;
Expand Down Expand Up @@ -1814,6 +1822,7 @@ export const Networks = {
near: Object.freeze(new Near()),
stx: Object.freeze(new Stx()),
stt: Object.freeze(new Somnia()),
somi: Object.freeze(new Somi()),
soneium: Object.freeze(new Soneium()),
susd: Object.freeze(new SUSD()),
tao: Object.freeze(new Bittensor()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export const expectedColdFeatures = {
'sol',
'sonic',
'stt',
'somi',
'sui',
'tao',
'vet',
Expand Down