Skip to content

Commit a2bbeaa

Browse files
committed
feat: added statics config for MegaEth and Plume
TICKET: WIN-7102
1 parent 8dab0cf commit a2bbeaa

File tree

5 files changed

+94
-0
lines changed

5 files changed

+94
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ const mainnetBase: EnvironmentTemplate = {
260260
flow: {
261261
baseUrl: 'https://evm.flowscan.io/api',
262262
},
263+
plume: {
264+
baseUrl: 'https://explorer.plume.org/api',
265+
},
263266
},
264267
icpNodeUrl: 'https://ic0.app',
265268
worldExplorerBaseUrl: 'https://worldscan.org/',
@@ -388,6 +391,12 @@ const testnetBase: EnvironmentTemplate = {
388391
flow: {
389392
baseUrl: 'https://evm-testnet.flowscan.io/api',
390393
},
394+
megaeth: {
395+
baseUrl: 'https://carrot.megaeth.com/rpc',
396+
},
397+
plume: {
398+
baseUrl: 'https://testnet-explorer.plume.org/api',
399+
},
391400
},
392401
stxNodeUrl: 'https://api.testnet.hiro.so',
393402
vetNodeUrl: 'https://rpc-testnet.vechain.energy',

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,6 +1979,22 @@ export const allCoinsAndTokens = [
19791979
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
19801980
]
19811981
),
1982+
account(
1983+
'4af2a68a-a006-4924-bc1b-797cc65b2547',
1984+
'plume',
1985+
'Plume',
1986+
Networks.main.plume,
1987+
18,
1988+
UnderlyingAsset.PLUME,
1989+
BaseUnit.ETH,
1990+
[
1991+
...EVM_FEATURES,
1992+
CoinFeature.SHARED_EVM_SIGNING,
1993+
CoinFeature.SHARED_EVM_SDK,
1994+
CoinFeature.EVM_COMPATIBLE_IMS,
1995+
CoinFeature.EVM_COMPATIBLE_UI,
1996+
]
1997+
),
19821998
account(
19831999
'29a233d0-6d60-4e1e-8f76-16712fee3bf5',
19842000
'tflow',
@@ -1997,6 +2013,38 @@ export const allCoinsAndTokens = [
19972013
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
19982014
]
19992015
),
2016+
account(
2017+
'3c7ccfca-d229-4238-a0f1-3115e592c28c',
2018+
'tplume',
2019+
'Testnet Plume',
2020+
Networks.test.plume,
2021+
18,
2022+
UnderlyingAsset.PLUME,
2023+
BaseUnit.ETH,
2024+
[
2025+
...EVM_FEATURES,
2026+
CoinFeature.SHARED_EVM_SIGNING,
2027+
CoinFeature.SHARED_EVM_SDK,
2028+
CoinFeature.EVM_COMPATIBLE_IMS,
2029+
CoinFeature.EVM_COMPATIBLE_UI,
2030+
]
2031+
),
2032+
account(
2033+
'2f510e0f-7dad-4765-881d-6fd185d20866',
2034+
'tmegaeth',
2035+
'Testnet MegaETH',
2036+
Networks.test.megaeth,
2037+
18,
2038+
UnderlyingAsset.MEGAETH,
2039+
BaseUnit.ETH,
2040+
[
2041+
...EVM_FEATURES,
2042+
CoinFeature.SHARED_EVM_SIGNING,
2043+
CoinFeature.SHARED_EVM_SDK,
2044+
CoinFeature.EVM_COMPATIBLE_IMS,
2045+
CoinFeature.EVM_COMPATIBLE_UI,
2046+
]
2047+
),
20002048
gasTankAccount(
20012049
'98071460-1488-4edd-857f-0899bc5eee4f',
20022050
'vet',

modules/statics/src/base.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export enum CoinFamily {
7171
LNBTC = 'lnbtc',
7272
LTC = 'ltc',
7373
MANTRA = 'mantra',
74+
MEGAETH = 'megaeth',
7475
MON = 'mon',
7576
XPL = 'xpl', // Plasma Network
7677
POLYGON = 'polygon',
@@ -84,6 +85,7 @@ export enum CoinFamily {
8485
OG = 'og',
8586
OPETH = 'opeth',
8687
OSMO = 'osmo',
88+
PLUME = 'plume',
8789
RBTC = 'rbtc',
8890
SGB = 'sgb',
8991
SEI = 'sei',
@@ -546,6 +548,7 @@ export enum UnderlyingAsset {
546548
LTC = 'ltc',
547549
LINEAETH = 'lineaeth',
548550
MANTRA = 'mantra',
551+
MEGAETH = 'megaeth',
549552
MON = 'mon',
550553
NEAR = 'near',
551554
OAS = 'oas',
@@ -555,6 +558,7 @@ export enum UnderlyingAsset {
555558
XPL = 'xpl', // Plasma Network
556559
POLYGON = 'polygon',
557560
PHRS = 'phrs',
561+
PLUME = 'plume',
558562
CTC = 'ctc',
559563
HYPEEVM = 'hypeevm',
560564
RBTC = 'rbtc', // RSK main coin

modules/statics/src/networks.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,6 +1939,33 @@ class FlowTestnet extends Testnet implements EthereumNetwork {
19391939
nativeCoinOperationHashPrefix = '545';
19401940
}
19411941

1942+
class MegaETHTestnet extends Testnet implements EthereumNetwork {
1943+
name = 'MegaETHTestnet';
1944+
family = CoinFamily.MEGAETH;
1945+
explorerUrl = 'https://www.megaexplorer.xyz/tx';
1946+
accountExplorerUrl = 'https://www.megaexplorer.xyz/address/';
1947+
chainId = 6342;
1948+
nativeCoinOperationHashPrefix = '6342';
1949+
}
1950+
1951+
class Plume extends Mainnet implements EthereumNetwork {
1952+
name = 'Plume';
1953+
family = CoinFamily.PLUME;
1954+
explorerUrl = 'https://explorer.plume.org/tx';
1955+
accountExplorerUrl = 'https://explorer.plume.org/address/';
1956+
chainId = 98866;
1957+
nativeCoinOperationHashPrefix = '98866';
1958+
}
1959+
1960+
class PlumeTestnet extends Testnet implements EthereumNetwork {
1961+
name = 'PlumeTestnet';
1962+
family = CoinFamily.PLUME;
1963+
explorerUrl = 'http://testnet-rpc.plume.org/tx';
1964+
accountExplorerUrl = 'http://testnet-rpc.plume.org/address/';
1965+
chainId = 98867;
1966+
nativeCoinOperationHashPrefix = '98867';
1967+
}
1968+
19421969
export const Networks = {
19431970
main: {
19441971
ada: Object.freeze(new Ada()),
@@ -1994,6 +2021,7 @@ export const Networks = {
19942021
litecoin: Object.freeze(new Litecoin()),
19952022
mon: Object.freeze(new Monad()),
19962023
mantra: Object.freeze(new Mantra()),
2024+
plume: Object.freeze(new Plume()),
19972025
polygon: Object.freeze(new Polygon()),
19982026
polyx: Object.freeze(new Polymesh()),
19992027
phrs: Object.freeze(new Pharos()),
@@ -2071,7 +2099,9 @@ export const Networks = {
20712099
flr: Object.freeze(new FlareTestnet()),
20722100
flrP: Object.freeze(new FlarePTestnet()),
20732101
mon: Object.freeze(new MonadTestnet()),
2102+
megaeth: Object.freeze(new MegaETHTestnet()),
20742103
pyrmont: Object.freeze(new Pyrmont()),
2104+
plume: Object.freeze(new PlumeTestnet()),
20752105
ethereumClassicTestnet: Object.freeze(new EthereumClassicTestnet()),
20762106
hash: Object.freeze(new HashTestnet()),
20772107
hedera: Object.freeze(new HederaTestnet()),

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export const expectedColdFeatures = {
8888
'oas',
8989
'og',
9090
'osmo',
91+
'plume',
9192
'polyx',
9293
'sgb',
9394
'sei',
@@ -126,9 +127,11 @@ export const expectedColdFeatures = {
126127
'tflow',
127128
'tflr',
128129
'tog',
130+
'tmegaeth',
129131
'tmon',
130132
'tworld',
131133
'tphrs',
134+
'tplume',
132135
'tctc',
133136
'thypeevm',
134137
'tlineaeth',

0 commit comments

Comments
 (0)