Skip to content

Commit aaf76b5

Browse files
authored
Merge pull request #6278 from BitGo/WIN-5732
feat(soneium): update multisig type for soneium and add new features
2 parents 0a55075 + a845677 commit aaf76b5

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

modules/statics/src/base.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,11 @@ export enum CoinFeature {
361361
*/
362362
TSS_SUPPORT_GATED = 'tss-support-gated',
363363

364+
/**
365+
* This coin is gated for Multisig Support
366+
*/
367+
MULTISIG_SUPPORT_GATED = 'multisig-support-gated',
368+
364369
/**
365370
* This coins is an EVM compatible coin and should use common EVM functionality
366371
*/

modules/statics/src/coinFeatures.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,20 @@ export const TAO_FEATURES = [
510510
CoinFeature.STAKING,
511511
];
512512

513+
export const SONEIUM_FEATURES = [
514+
...ETH_FEATURES,
515+
CoinFeature.TSS,
516+
CoinFeature.TSS_COLD,
517+
CoinFeature.MPCV2,
518+
CoinFeature.EVM_WALLET,
519+
CoinFeature.BULK_TRANSACTION,
520+
CoinFeature.STUCK_TRANSACTION_MANAGEMENT_TSS,
521+
CoinFeature.EIP1559,
522+
CoinFeature.MULTISIG,
523+
CoinFeature.MULTISIG_COLD,
524+
CoinFeature.MULTISIG_SUPPORT_GATED,
525+
];
526+
513527
export const POLYX_FEATURES = [...ACCOUNT_COIN_DEFAULT_FEATURES, CoinFeature.TSS, CoinFeature.TSS_COLD];
514528

515529
export const ETH_FEATURES_WITH_FRANKFURT = [...ETH_FEATURES, CoinFeature.CUSTODY_BITGO_FRANKFURT];

modules/statics/src/coins.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ import {
101101
RBTC_FEATURES,
102102
SEI_FEATURES,
103103
SOL_FEATURES,
104+
SONEIUM_FEATURES,
104105
STX_FEATURES,
105106
SUI_FEATURES,
106107
SUI_TOKEN_FEATURES,
@@ -1281,7 +1282,7 @@ export const coins = CoinMap.fromCoins([
12811282
18,
12821283
UnderlyingAsset.SONEIUM,
12831284
BaseUnit.ETH,
1284-
[...EVM_FEATURES, CoinFeature.SHARED_EVM_SIGNING]
1285+
[...SONEIUM_FEATURES, CoinFeature.SHARED_EVM_SIGNING]
12851286
),
12861287
account(
12871288
'a4587ed1-a4a6-4bbe-b965-3119b52e76cf',
@@ -1291,7 +1292,7 @@ export const coins = CoinMap.fromCoins([
12911292
18,
12921293
UnderlyingAsset.SONEIUM,
12931294
BaseUnit.ETH,
1294-
[...EVM_FEATURES, CoinFeature.SHARED_EVM_SIGNING]
1295+
[...SONEIUM_FEATURES, CoinFeature.SHARED_EVM_SIGNING]
12951296
),
12961297
account(
12971298
'87c104ca-6b49-479e-87fb-9253b095158c',

modules/statics/src/networks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,6 +1344,7 @@ class Soneium extends Mainnet implements EthereumNetwork {
13441344
accountExplorerUrl = 'https://soneium.blockscout.com/address/';
13451345
chainId = 1868;
13461346
nativeCoinOperationHashPrefix = '1868';
1347+
walletFactoryAddress = '0x809ee567e413543af1caebcdb247f6a67eafc8dd';
13471348
}
13481349

13491350
class SoneiumTestnet extends Testnet implements EthereumNetwork {
@@ -1353,6 +1354,7 @@ class SoneiumTestnet extends Testnet implements EthereumNetwork {
13531354
accountExplorerUrl = 'https://soneium-minato.blockscout.com/address/';
13541355
chainId = 1946;
13551356
nativeCoinOperationHashPrefix = '1946';
1357+
walletFactoryAddress = '0x809ee567e413543af1caebcdb247f6a67eafc8dd';
13561358
batcherContractAddress = '0x3e1e5d78e44f15593b3b61ed278f12c27f0ff33e';
13571359
forwarderFactoryAddress = '0x37996e762fa8b671869740c79eb33f625b3bf92a';
13581360
forwarderImplementationAddress = '0xd5fe1c1f216b775dfd30638fa7164d41321ef79b';

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const expectedColdFeatures = {
2-
both: ['eth', 'gteth', 'polygon', 'tpolygon', 'hteth', 'opeth', 'topeth', 'arbeth', 'tarbeth'],
2+
both: ['eth', 'gteth', 'polygon', 'tpolygon', 'hteth', 'opeth', 'topeth', 'arbeth', 'tarbeth', 'soneium', 'tsoneium'],
33
justMultiSig: [
44
'algo',
55
'avaxc',
@@ -81,7 +81,6 @@ export const expectedColdFeatures = {
8181
'osmo',
8282
'polyx',
8383
'sgb',
84-
'soneium',
8584
'sei',
8685
'sol',
8786
'stt',
@@ -123,7 +122,6 @@ export const expectedColdFeatures = {
123122
'tpolyx',
124123
'tsei',
125124
'tsgb',
126-
'tsoneium',
127125
'tsol',
128126
'tstt',
129127
'tsui',

0 commit comments

Comments
 (0)