Skip to content

Commit b18efc0

Browse files
feat: adding configs for LINEA ETHEREUM
Ticket: WIN-6515 TICKET: WIN-6515
1 parent 4503f4c commit b18efc0

File tree

6 files changed

+71
-0
lines changed

6 files changed

+71
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ describe('V2 Keychains', function () {
9393
n.asset !== UnderlyingAsset.SEIEVM &&
9494
n.asset !== UnderlyingAsset.KAIA &&
9595
n.asset !== UnderlyingAsset.IRYS &&
96+
n.asset !== UnderlyingAsset.LINEAETH &&
9697
coinFamilyValues.includes(n.name)
9798
);
9899

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ const mainnetBase: EnvironmentTemplate = {
232232
mon: {
233233
baseUrl: 'https://api.etherscan.io/v2',
234234
},
235+
lineaeth: {
236+
baseUrl: 'https://api.etherscan.io/v2',
237+
},
235238
},
236239
icpNodeUrl: 'https://ic0.app',
237240
worldExplorerBaseUrl: 'https://worldscan.org/',
@@ -336,6 +339,9 @@ const testnetBase: EnvironmentTemplate = {
336339
mon: {
337340
baseUrl: 'https://api.etherscan.io/v2',
338341
},
342+
lineaeth: {
343+
baseUrl: 'https://api.etherscan.io/v2',
344+
},
339345
},
340346
stxNodeUrl: 'https://api.testnet.hiro.so',
341347
vetNodeUrl: 'https://rpc-testnet.vechain.energy',

modules/statics/src/base.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export enum CoinFamily {
104104
ZEC = 'zec',
105105
ZETA = 'zeta',
106106
ZKETH = 'zketh',
107+
LINEAETH = 'lineaeth',
107108
}
108109

109110
/**
@@ -495,6 +496,7 @@ export enum UnderlyingAsset {
495496
KAVA = 'kava',
496497
LNBTC = 'lnbtc',
497498
LTC = 'ltc',
499+
LINEAETH = 'lineaeth',
498500
MANTRA = 'mantra',
499501
MON = 'mon',
500502
NEAR = 'near',

modules/statics/src/coins.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,46 @@ export const coins = CoinMap.fromCoins([
740740
CoinFeature.EVM_COMPATIBLE_UI,
741741
]
742742
),
743+
account(
744+
'f21730f2-b0ce-40fe-ba6f-104ba5393af1',
745+
'lineaeth',
746+
'Linea Ethereum',
747+
Networks.main.lineaeth,
748+
18,
749+
UnderlyingAsset.LINEAETH,
750+
BaseUnit.ETH,
751+
[
752+
...EVM_FEATURES,
753+
CoinFeature.SHARED_EVM_SIGNING,
754+
CoinFeature.SHARED_EVM_SDK,
755+
CoinFeature.EVM_COMPATIBLE_IMS,
756+
CoinFeature.EVM_COMPATIBLE_UI,
757+
],
758+
KeyCurve.Secp256k1,
759+
'',
760+
'LineaETH'
761+
),
762+
763+
account(
764+
'700a7869-1493-4d91-ab9b-465480bcab0c',
765+
'tlineaeth',
766+
'Linea Ethereum Testnet',
767+
Networks.test.lineaeth,
768+
18,
769+
UnderlyingAsset.LINEAETH,
770+
BaseUnit.ETH,
771+
[
772+
...EVM_FEATURES,
773+
CoinFeature.SHARED_EVM_SIGNING,
774+
CoinFeature.SHARED_EVM_SDK,
775+
CoinFeature.EVM_COMPATIBLE_IMS,
776+
CoinFeature.EVM_COMPATIBLE_UI,
777+
],
778+
KeyCurve.Secp256k1,
779+
'',
780+
'tLineaETH'
781+
),
782+
743783
account(
744784
'42cd26d1-706d-40f6-bcce-7cb125e6f617',
745785
'tseievm',

modules/statics/src/networks.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,6 +1343,24 @@ class HypeEVM extends Mainnet implements EthereumNetwork {
13431343
nativeCoinOperationHashPrefix = '999';
13441344
}
13451345

1346+
class LineaETH extends Mainnet implements EthereumNetwork {
1347+
name = 'Linea Ethereum Testnet';
1348+
family = CoinFamily.LINEAETH;
1349+
explorerUrl = 'https://lineascan.build/tx/';
1350+
accountExplorerUrl = 'https://lineascan.build/address/';
1351+
chainId = 59144;
1352+
nativeCoinOperationHashPrefix = '59144';
1353+
}
1354+
1355+
class LineaETHTestnet extends Testnet implements EthereumNetwork {
1356+
name = 'Linea Ethereum Testnet';
1357+
family = CoinFamily.LINEAETH;
1358+
explorerUrl = 'https://sepolia.lineascan.build/tx/';
1359+
accountExplorerUrl = 'https://sepolia.lineascan.build/address/';
1360+
chainId = 59141;
1361+
nativeCoinOperationHashPrefix = '59141';
1362+
}
1363+
13461364
class CreditcoinTestnet extends Testnet implements EthereumNetwork {
13471365
name = 'CreditcoinTestnet';
13481366
family = CoinFamily.CTC;
@@ -1738,6 +1756,7 @@ export const Networks = {
17381756
phrs: Object.freeze(new Pharos()),
17391757
ctc: Object.freeze(new Creditcoin()),
17401758
hypeevm: Object.freeze(new HypeEVM()),
1759+
lineaeth: Object.freeze(new LineaETH()),
17411760
oas: Object.freeze(new Oas()),
17421761
ofc: Object.freeze(new Ofc()),
17431762
optimism: Object.freeze(new Optimism()),
@@ -1827,6 +1846,7 @@ export const Networks = {
18271846
phrs: Object.freeze(new PharosTestnet()),
18281847
ctc: Object.freeze(new CreditcoinTestnet()),
18291848
hypeevm: Object.freeze(new HypeEVMTestnet()),
1849+
lineaeth: Object.freeze(new LineaETHTestnet()),
18301850
oas: Object.freeze(new OasTestnet()),
18311851
ofc: Object.freeze(new OfcTestnet()),
18321852
optimism: Object.freeze(new OptimismTestnet()),

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export const expectedColdFeatures = {
9696
'phrs',
9797
'ctc',
9898
'hypeevm',
99+
'lineaeth',
99100
'xdc',
100101
'zeta',
101102
'tada',
@@ -118,6 +119,7 @@ export const expectedColdFeatures = {
118119
'tphrs',
119120
'tctc',
120121
'thypeevm',
122+
'tlineaeth',
121123
'thash',
122124
'thorchain:rune',
123125
'tia',

0 commit comments

Comments
 (0)