Skip to content

Commit 20dfb5b

Browse files
committed
chore: Remove support for Openchain transaction parsing functionality
1 parent 1c7f868 commit 20dfb5b

8 files changed

Lines changed: 8 additions & 113 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### v5.8.8
2+
3+
- [update] Remove support for Openchain transaction parsing functionality
4+
15
### v5.8.7
26

37
- [fix] Use DOMPurify to sanitize address labels

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "metasuites",
3-
"version": "5.8.7",
3+
"version": "5.8.8",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/blocksecteam/metasuites.git"

src/common/config/feature.support.ts

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -338,40 +338,6 @@ export class FeatureActiveSupport {
338338
}
339339
]
340340
)
341-
static OPENCHAIN = new BaseFeatureSupport(
342-
'openchain',
343-
['eth', 'polygon', 'optimism', 'bsc', 'avalanche', 'arbitrum', 'fantom'],
344-
[
345-
{
346-
pathname: 'ethereum',
347-
chain: 'eth'
348-
},
349-
{
350-
pathname: 'polygon',
351-
chain: 'polygon'
352-
},
353-
{
354-
pathname: 'optimism',
355-
chain: 'optimism'
356-
},
357-
{
358-
pathname: 'binance',
359-
chain: 'bsc'
360-
},
361-
{
362-
pathname: 'avalanche',
363-
chain: 'avalanche'
364-
},
365-
{
366-
pathname: 'arbitrum',
367-
chain: 'arbitrum'
368-
},
369-
{
370-
pathname: 'fantom',
371-
chain: 'fantom'
372-
}
373-
]
374-
)
375341
static PHALCON = new BaseFeatureSupport(
376342
'phalcon',
377343
[
@@ -571,10 +537,5 @@ export class TransactionParsers extends BaseConstant {
571537
'tenderly',
572538
'https://dashboard.tenderly.co'
573539
)
574-
static OPENCHAIN = new BaseConstant(
575-
'openchain',
576-
'openchain',
577-
'https://openchain.xyz/trace'
578-
)
579540
static DEDAUB = new BaseConstant('dedaub', 'dedaub', 'https://app.dedaub.com')
580541
}

src/common/constants/support.ts

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -571,37 +571,6 @@ export const PHALCON_SUPPORT_LIST = [
571571
}
572572
]
573573

574-
export const OPENCHAIN_SUPPORT_LIST = [
575-
{
576-
pathname: 'ethereum',
577-
chain: 'eth'
578-
},
579-
{
580-
pathname: 'polygon',
581-
chain: 'polygon'
582-
},
583-
{
584-
pathname: 'optimism',
585-
chain: 'optimism'
586-
},
587-
{
588-
pathname: 'binance',
589-
chain: 'bsc'
590-
},
591-
{
592-
pathname: 'avalanche',
593-
chain: 'avalanche'
594-
},
595-
{
596-
pathname: 'arbitrum',
597-
chain: 'arbitrum'
598-
},
599-
{
600-
pathname: 'fantom',
601-
chain: 'fantom'
602-
}
603-
]
604-
605574
export const TENDERLY_SUPPORT_LIST = [
606575
{
607576
pathname: 'polygon',
@@ -876,11 +845,6 @@ export class TransactionParsers extends BaseConstant {
876845
'tenderly',
877846
'https://dashboard.tenderly.co'
878847
)
879-
static OPENCHAIN = new BaseConstant(
880-
'openchain',
881-
'openchain',
882-
'https://openchain.xyz/trace'
883-
)
884848
static DEDAUB = new BaseConstant('dedaub', 'dedaub', 'https://app.dedaub.com')
885849
}
886850

src/common/utils/permission.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
DEDAUB_SUPPORT_DIRECT_LIST,
77
PHALCON_SUPPORT_LIST,
88
TENDERLY_SUPPORT_LIST,
9-
OPENCHAIN_SUPPORT_LIST,
109
ETHERVM_SUPPORT_DIRECT_LIST
1110
} from '@common/constants'
1211

@@ -40,10 +39,6 @@ export const isSupportTenderly = (chain: string): boolean => {
4039
return TENDERLY_SUPPORT_LIST.findIndex(item => item.chain === chain) !== -1
4140
}
4241

43-
export const isSupportOpenchain = (chain: string): boolean => {
44-
return OPENCHAIN_SUPPORT_LIST.findIndex(item => item.chain === chain) !== -1
45-
}
46-
4742
export const isSupportDedaub = (chain: string): boolean => {
4843
return (
4944
DEDAUB_SUPPORT_DIRECT_LIST.findIndex(item => item.chain === chain) !== -1
@@ -54,8 +49,7 @@ export const isSupportParsers = (chain: string): boolean => {
5449
return (
5550
isSupportDedaub(chain) ||
5651
isSupportTenderly(chain) ||
57-
isSupportPhalcon(chain) ||
58-
isSupportOpenchain(chain)
52+
isSupportPhalcon(chain)
5953
)
6054
}
6155

src/content/etherscan/components/ParsersBtn/index.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
DEDAUB_SUPPORT_DIRECT_LIST,
66
PHALCON_SUPPORT_LIST,
77
TENDERLY_SUPPORT_LIST,
8-
OPENCHAIN_SUPPORT_LIST,
98
TransactionParsers
109
} from '@common/constants'
1110
import { useStore } from '@common/hooks'
@@ -30,9 +29,6 @@ const ParsersBtn: FC<Props> = ({ chain }) => {
3029
const phalconPathname = PHALCON_SUPPORT_LIST.find(
3130
item => item.chain === chain
3231
)?.pathname
33-
const openchainPathname = OPENCHAIN_SUPPORT_LIST.find(
34-
item => item.chain === chain
35-
)?.pathname
3632
const tenderlyPathname = TENDERLY_SUPPORT_LIST.find(
3733
item => item.chain === chain
3834
)?.pathname
@@ -48,15 +44,6 @@ const ParsersBtn: FC<Props> = ({ chain }) => {
4844
Phalcon
4945
</a>
5046
)}
51-
{openchainPathname &&
52-
alternativeParsers[TransactionParsers.OPENCHAIN.value()] && (
53-
<a
54-
href={`https://openchain.xyz/trace/${openchainPathname}/${txHash}`}
55-
target="_blank"
56-
>
57-
OpenChain
58-
</a>
59-
)}
6047
{tenderlyPathname &&
6148
alternativeParsers[TransactionParsers.TENDERLY.value()] && (
6249
<a

src/popup/components/Settings/components/ConfigExploresDrawer/index.tsx

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -134,21 +134,7 @@ const ConfigExploresDrawer: FC<Props> = ({
134134
style={{ paddingTop: 0 }}
135135
action={null}
136136
title={
137-
<div className="justify-between md-flex">
138-
<Space>
139-
<span style={{ fontSize: 'inherit' }}>Openchain</span>
140-
<Checkbox
141-
checked={
142-
alternativeParsers[TransactionParsers.OPENCHAIN.value()]
143-
}
144-
onChange={e =>
145-
onAlternativeParsersChange(
146-
TransactionParsers.OPENCHAIN.value(),
147-
e.target.checked
148-
)
149-
}
150-
/>
151-
</Space>
137+
<Space size={24}>
152138
<Space>
153139
<span style={{ fontSize: 'inherit' }}>Tenderly</span>
154140
<Checkbox
@@ -177,7 +163,7 @@ const ConfigExploresDrawer: FC<Props> = ({
177163
}
178164
/>
179165
</Space>
180-
</div>
166+
</Space>
181167
}
182168
/>
183169
<Cell

src/store/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ export const defaultValue: StorageInfo = {
103103
hideZeroValueTransfers: true
104104
},
105105
alternativeParsers: {
106-
[TransactionParsers.OPENCHAIN.name()]: true,
107106
[TransactionParsers.TENDERLY.name()]: true,
108107
[TransactionParsers.DEDAUB.name()]: false
109108
},

0 commit comments

Comments
 (0)