Skip to content

Commit 1ad0d90

Browse files
Merge pull request #6626 from BitGo/WIN-6494
refactor: refactoring BaseETH evm onboarding configs
2 parents aac55ad + a2235f0 commit 1ad0d90

File tree

6 files changed

+30
-7
lines changed

6 files changed

+30
-7
lines changed

modules/bitgo/test/v2/unit/keychains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ describe('V2 Keychains', function () {
9696
n.asset !== UnderlyingAsset.IRYS &&
9797
n.asset !== UnderlyingAsset.LINEAETH &&
9898
n.asset !== UnderlyingAsset.IP && // Story Chain
99+
n.asset !== UnderlyingAsset.BASEETH &&
99100
coinFamilyValues.includes(n.name)
100101
);
101102

modules/sdk-core/src/bitgo/environments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const mainnetBase: EnvironmentTemplate = {
167167
optimisticEtherscanApiToken: process.env.OPTIMISTIC_ETHERSCAN_API_TOKEN,
168168
zksyncExplorerBaseUrl: 'https://block-explorer-api.mainnet.zksync.io',
169169
zksyncExplorerApiToken: process.env.ZKSYNC_EXPLORER_API_TOKEN,
170-
baseethExplorerUrl: 'https://api.basescan.org',
170+
baseethExplorerUrl: 'https://api.basescan.org', //BaseETH explorer api url
171171
baseethApiToken: process.env.BASESCAN_API_TOKEN,
172172
eosNodeUrls: ['https://bp.cryptolions.io', 'https://api.eosnewyork.io', 'https://api.eosdetroit.io'],
173173
nearNodeUrls: ['https://api.fastnear.com'],

modules/statics/src/base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export enum CoinFamily {
2929
ATOM = 'atom',
3030
AVAXC = 'avaxc',
3131
AVAXP = 'avaxp',
32-
BASEETH = 'baseeth',
32+
BASEETH = 'baseeth', // Base Ethereum
3333
BABY = 'baby',
3434
BCH = 'bch',
3535
BCHA = 'bcha',
@@ -456,7 +456,7 @@ export enum UnderlyingAsset {
456456
APECHAIN = 'apechain',
457457
API3 = 'api3',
458458
ARBETH = 'arbeth',
459-
BASEETH = 'baseeth',
459+
BASEETH = 'baseeth', // Base Ethereum
460460
ASI = 'asi',
461461
ATOM = 'atom',
462462
AVAXC = 'avaxc',

modules/statics/src/coins.ts

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,17 @@ export const coins = CoinMap.fromCoins([
371371
18,
372372
UnderlyingAsset.BASEETH,
373373
BaseUnit.ETH,
374-
[...ETH_FEATURES, CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA, CoinFeature.EIP1559]
374+
[
375+
...EVM_FEATURES,
376+
CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA,
377+
CoinFeature.SHARED_EVM_SDK,
378+
CoinFeature.SHARED_EVM_SIGNING,
379+
CoinFeature.EVM_COMPATIBLE_IMS,
380+
CoinFeature.EVM_COMPATIBLE_UI,
381+
],
382+
KeyCurve.Secp256k1,
383+
'',
384+
'tBaseETH'
375385
),
376386
account(
377387
'd51fe324-1e01-4630-9b04-c724fe495a1c',
@@ -381,7 +391,17 @@ export const coins = CoinMap.fromCoins([
381391
18,
382392
UnderlyingAsset.BASEETH,
383393
BaseUnit.ETH,
384-
[...ETH_FEATURES, CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA, CoinFeature.EIP1559]
394+
[
395+
...EVM_FEATURES,
396+
CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA,
397+
CoinFeature.SHARED_EVM_SDK,
398+
CoinFeature.SHARED_EVM_SIGNING,
399+
CoinFeature.EVM_COMPATIBLE_IMS,
400+
CoinFeature.EVM_COMPATIBLE_UI,
401+
],
402+
KeyCurve.Secp256k1,
403+
'',
404+
'BaseETH'
385405
),
386406
account(
387407
'ffc472f5-27c6-49f8-ad9a-f57659258fb9',

modules/statics/src/networks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,6 +1668,7 @@ class SongbirdTestnet extends Testnet implements EthereumNetwork {
16681668
forwarderImplementationAddress = '0xd5fe1c1f216b775dfd30638fa7164d41321ef79b';
16691669
}
16701670
class BaseChainTestnet extends Testnet implements EthereumNetwork {
1671+
//BaseETH testnet
16711672
name = 'BaseChainTestnet';
16721673
family = CoinFamily.BASEETH;
16731674
explorerUrl = 'https://sepolia.basescan.org/tx/';
@@ -1682,6 +1683,7 @@ class BaseChainTestnet extends Testnet implements EthereumNetwork {
16821683
}
16831684

16841685
class BaseChain extends Mainnet implements EthereumNetwork {
1686+
//BaseETH
16851687
name = 'BaseChain';
16861688
family = CoinFamily.BASEETH;
16871689
explorerUrl = 'https://basescan.org/tx/';

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export const expectedColdFeatures = {
6060
'atom',
6161
'baby',
6262
'bera',
63+
'baseeth',
6364
'bld',
6465
'bsc',
6566
'coredao',
@@ -108,6 +109,7 @@ export const expectedColdFeatures = {
108109
'tapt',
109110
'tbaby',
110111
'tbera',
112+
'tbaseeth',
111113
'tbld',
112114
'tbsc',
113115
'tcoredao',
@@ -157,7 +159,6 @@ export const expectedColdFeatures = {
157159
'tsonic',
158160
],
159161
neither: [
160-
'baseeth',
161162
'ethw',
162163
'fiataed',
163164
'fiateur',
@@ -166,7 +167,6 @@ export const expectedColdFeatures = {
166167
'fiatusd',
167168
'lnbtc',
168169
'susd',
169-
'tbaseeth',
170170
'tbtg',
171171
'teth',
172172
'tfiataed',

0 commit comments

Comments
 (0)