File tree Expand file tree Collapse file tree 6 files changed +36
-1
lines changed Expand file tree Collapse file tree 6 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ describe('V2 Keychains', function () {
9797 n . asset !== UnderlyingAsset . LINEAETH &&
9898 n . asset !== UnderlyingAsset . IP && // Story Chain
9999 n . asset !== UnderlyingAsset . BASEETH &&
100+ n . asset !== UnderlyingAsset . SOMI &&
100101 coinFamilyValues . includes ( n . name )
101102 ) ;
102103
Original file line number Diff line number Diff line change @@ -243,6 +243,9 @@ const mainnetBase: EnvironmentTemplate = {
243243 ip : {
244244 baseUrl : 'https://api.storyscan.app/' ,
245245 } ,
246+ somi : {
247+ baseUrl : 'https://mainnet.somnia.w3us.site/' ,
248+ } ,
246249 } ,
247250 icpNodeUrl : 'https://ic0.app' ,
248251 worldExplorerBaseUrl : 'https://worldscan.org/' ,
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ export enum CoinFamily {
107107 ZKETH = 'zketh' ,
108108 LINEAETH = 'lineaeth' ,
109109 IP = 'ip' , // Story Chain
110+ SOMI = 'somi' , // Somnia Chain
110111}
111112
112113/**
@@ -539,6 +540,7 @@ export enum UnderlyingAsset {
539540 TRX = 'trx' ,
540541 SONEIUM = 'soneium' ,
541542 STT = 'stt' ,
543+ SOMI = 'somi' , // Somnia Chain
542544 VET = 'vet' ,
543545 WEMIX = 'wemix' ,
544546 WORLD = 'world' ,
Original file line number Diff line number Diff line change @@ -1689,7 +1689,10 @@ export const coins = CoinMap.fromCoins([
16891689 18 ,
16901690 UnderlyingAsset . STT ,
16911691 BaseUnit . ETH ,
1692- [ ...EVM_FEATURES , CoinFeature . SHARED_EVM_SIGNING ]
1692+ [ ...EVM_FEATURES , CoinFeature . SHARED_EVM_SIGNING ] ,
1693+ KeyCurve . Secp256k1 ,
1694+ '' ,
1695+ 'Somi'
16931696 ) ,
16941697 account (
16951698 '1bf486a9-47ed-4bea-8e9a-a23a074cdc9a' ,
@@ -1701,6 +1704,22 @@ export const coins = CoinMap.fromCoins([
17011704 BaseUnit . ETH ,
17021705 [ ...EVM_FEATURES , CoinFeature . SHARED_EVM_SIGNING ]
17031706 ) ,
1707+ account (
1708+ 'aaa25f54-24f8-41d9-ba4e-83465d7cc2ec' ,
1709+ 'somi' ,
1710+ 'Somnia' ,
1711+ Networks . main . somi ,
1712+ 18 ,
1713+ UnderlyingAsset . SOMI ,
1714+ BaseUnit . ETH ,
1715+ [
1716+ ...EVM_FEATURES ,
1717+ CoinFeature . SHARED_EVM_SIGNING ,
1718+ CoinFeature . SHARED_EVM_SDK ,
1719+ CoinFeature . EVM_COMPATIBLE_IMS ,
1720+ CoinFeature . EVM_COMPATIBLE_UI ,
1721+ ]
1722+ ) ,
17041723 account (
17051724 '202caf8f-4d43-4208-b206-8231f555c518' ,
17061725 'flr' ,
Original file line number Diff line number Diff line change @@ -1624,6 +1624,14 @@ class SomniaTestnet extends Testnet implements EthereumNetwork {
16241624 walletImplementationAddress = '0x944fef03af368414f29dc31a72061b8d64f568d2' ;
16251625}
16261626
1627+ class Somi extends Mainnet implements EthereumNetwork {
1628+ name = 'Somnia' ;
1629+ family = CoinFamily . SOMI ;
1630+ explorerUrl = 'https://mainnet.somnia.w3us.site/tx/' ;
1631+ chainId = 5031 ;
1632+ nativeCoinOperationHashPrefix = '5031' ;
1633+ }
1634+
16271635class Flare extends Mainnet implements EthereumNetwork {
16281636 name = 'Flarechain' ;
16291637 family = CoinFamily . FLR ;
@@ -1814,6 +1822,7 @@ export const Networks = {
18141822 near : Object . freeze ( new Near ( ) ) ,
18151823 stx : Object . freeze ( new Stx ( ) ) ,
18161824 stt : Object . freeze ( new Somnia ( ) ) ,
1825+ somi : Object . freeze ( new Somi ( ) ) ,
18171826 soneium : Object . freeze ( new Soneium ( ) ) ,
18181827 susd : Object . freeze ( new SUSD ( ) ) ,
18191828 tao : Object . freeze ( new Bittensor ( ) ) ,
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ export const expectedColdFeatures = {
9191 'sol' ,
9292 'sonic' ,
9393 'stt' ,
94+ 'somi' ,
9495 'sui' ,
9596 'tao' ,
9697 'vet' ,
You can’t perform that action at this time.
0 commit comments