Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
47ddd42b
Commit
47ddd42b
authored
Sep 02, 2025
by
adadachao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coin name up
parent
dfaa09ff
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
22 additions
and
22 deletions
+22
-22
.env.base
configs/envs/.env.base
+2
-2
units.ts
lib/units.ts
+1
-1
NovesTranslate.ts
stubs/noves/NovesTranslate.ts
+3
-3
stats.ts
stubs/stats.ts
+4
-4
zkEvmL2.ts
stubs/zkEvmL2.ts
+2
-2
ApiDocs.tsx
ui/pages/ApiDocs.tsx
+1
-1
ChartWidget.pw.tsx
ui/shared/chart/ChartWidget.pw.tsx
+1
-1
ChartWidgetContainer.tsx
ui/stats/ChartWidgetContainer.tsx
+3
-3
NumberWidgetsList.tsx
ui/stats/NumberWidgetsList.tsx
+2
-2
generateFlowViewData.test.ts
ui/tx/assetFlows/utils/generateFlowViewData.test.ts
+3
-3
No files found.
configs/envs/.env.base
View file @
47ddd42b
...
@@ -46,8 +46,8 @@ NEXT_PUBLIC_MULTICHAIN_BALANCE_PROVIDER_CONFIG=[{'name': 'zerion', 'url_template
...
@@ -46,8 +46,8 @@ NEXT_PUBLIC_MULTICHAIN_BALANCE_PROVIDER_CONFIG=[{'name': 'zerion', 'url_template
NEXT_PUBLIC_NAME_SERVICE_API_HOST=https://bens.services.blockscout.com
NEXT_PUBLIC_NAME_SERVICE_API_HOST=https://bens.services.blockscout.com
NEXT_PUBLIC_NAVIGATION_HIGHLIGHTED_ROUTES=['/pools']
NEXT_PUBLIC_NAVIGATION_HIGHLIGHTED_ROUTES=['/pools']
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS=18
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS=18
NEXT_PUBLIC_NETWORK_CURRENCY_NAME=M
ARS
Mainnet GasCoin
NEXT_PUBLIC_NETWORK_CURRENCY_NAME=M
OVA
Mainnet GasCoin
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=M
ARS
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=M
OVA
NEXT_PUBLIC_NETWORK_EXPLORERS=[{'title':'Moralis','logo':'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/explorer-logos/moralis.png','baseUrl':'https://moralis.com/','paths':{'token':'/chain/base/token/price'}},{'title':'GeckoTerminal','logo':'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/explorer-logos/geckoterminal.png','baseUrl':'https://www.geckoterminal.com/','paths':{'token':'/base/pools'}},{'title':'Tenderly','logo':'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/explorer-logos/tenderly.png','baseUrl':'https://dashboard.tenderly.co','paths':{'tx':'/tx/base'}},{'title':'3xpl','logo':'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/explorer-logos/3xpl.png','baseUrl':'https://3xpl.com/','paths':{'tx':'/base/transaction','address':'/base/address'}}]
NEXT_PUBLIC_NETWORK_EXPLORERS=[{'title':'Moralis','logo':'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/explorer-logos/moralis.png','baseUrl':'https://moralis.com/','paths':{'token':'/chain/base/token/price'}},{'title':'GeckoTerminal','logo':'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/explorer-logos/geckoterminal.png','baseUrl':'https://www.geckoterminal.com/','paths':{'token':'/base/pools'}},{'title':'Tenderly','logo':'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/explorer-logos/tenderly.png','baseUrl':'https://dashboard.tenderly.co','paths':{'tx':'/tx/base'}},{'title':'3xpl','logo':'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/explorer-logos/3xpl.png','baseUrl':'https://3xpl.com/','paths':{'tx':'/base/transaction','address':'/base/address'}}]
NEXT_PUBLIC_NETWORK_ICON=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/base.svg
NEXT_PUBLIC_NETWORK_ICON=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/base.svg
NEXT_PUBLIC_NETWORK_ID=61900
NEXT_PUBLIC_NETWORK_ID=61900
...
...
lib/units.ts
View file @
47ddd42b
...
@@ -7,5 +7,5 @@ const weiName = config.chain.currency.weiName || 'wei';
...
@@ -7,5 +7,5 @@ const weiName = config.chain.currency.weiName || 'wei';
export
const
currencyUnits
:
Record
<
Unit
,
string
>
=
{
export
const
currencyUnits
:
Record
<
Unit
,
string
>
=
{
wei
:
weiName
,
wei
:
weiName
,
gwei
:
`G
${
weiName
}
`
,
gwei
:
`G
${
weiName
}
`
,
ether
:
config
.
chain
.
currency
.
symbol
||
'
M
ARS
'
,
ether
:
config
.
chain
.
currency
.
symbol
||
'
M
OVA
'
,
};
};
stubs/noves/NovesTranslate.ts
View file @
47ddd42b
import
type
{
NovesResponseData
,
NovesClassificationData
,
NovesRawTransactionData
}
from
'
types/api/noves
'
;
import
type
{
NovesResponseData
,
NovesClassificationData
,
NovesRawTransactionData
}
from
'
types/api/noves
'
;
const
NOVES_TRANSLATE_CLASSIFIED
:
NovesClassificationData
=
{
const
NOVES_TRANSLATE_CLASSIFIED
:
NovesClassificationData
=
{
description
:
'
Sent 0.04 M
ARS
'
,
description
:
'
Sent 0.04 M
OVA
'
,
received
:
[
{
received
:
[
{
action
:
'
Sent Token
'
,
action
:
'
Sent Token
'
,
actionFormatted
:
'
Sent Token
'
,
actionFormatted
:
'
Sent Token
'
,
...
@@ -10,8 +10,8 @@ const NOVES_TRANSLATE_CLASSIFIED: NovesClassificationData = {
...
@@ -10,8 +10,8 @@ const NOVES_TRANSLATE_CLASSIFIED: NovesClassificationData = {
to
:
{
name
:
''
,
address
:
'
0xa0393A76b132526a70450273CafeceB45eea6dEE
'
},
to
:
{
name
:
''
,
address
:
'
0xa0393A76b132526a70450273CafeceB45eea6dEE
'
},
token
:
{
token
:
{
address
:
''
,
address
:
''
,
name
:
'
M
ARS
'
,
name
:
'
M
OVA
'
,
symbol
:
'
M
ARS
'
,
symbol
:
'
M
OVA
'
,
decimals
:
18
,
decimals
:
18
,
},
},
}
],
}
],
...
...
stubs/stats.ts
View file @
47ddd42b
...
@@ -45,8 +45,8 @@ export const HOMEPAGE_STATS: HomeStats = {
...
@@ -45,8 +45,8 @@ export const HOMEPAGE_STATS: HomeStats = {
const
STATS_CHART_INFO
:
stats
.
LineChartInfo
=
{
const
STATS_CHART_INFO
:
stats
.
LineChartInfo
=
{
id
:
'
chart_0
'
,
id
:
'
chart_0
'
,
title
:
'
Average transaction fee
'
,
title
:
'
Average transaction fee
'
,
description
:
'
The average amount in M
ARS
spent per transaction
'
,
description
:
'
The average amount in M
OVA
spent per transaction
'
,
units
:
'
M
ARS
'
,
units
:
'
M
OVA
'
,
resolutions
:
[
'
DAY
'
,
'
MONTH
'
],
resolutions
:
[
'
DAY
'
,
'
MONTH
'
],
};
};
...
@@ -59,7 +59,7 @@ export const STATS_CHARTS_SECTION: stats.LineChartSection = {
...
@@ -59,7 +59,7 @@ export const STATS_CHARTS_SECTION: stats.LineChartSection = {
id
:
'
chart_1
'
,
id
:
'
chart_1
'
,
title
:
'
Transactions fees
'
,
title
:
'
Transactions fees
'
,
description
:
'
Amount of tokens paid as fees
'
,
description
:
'
Amount of tokens paid as fees
'
,
units
:
'
M
ARS
'
,
units
:
'
M
OVA
'
,
resolutions
:
[
'
DAY
'
,
'
MONTH
'
],
resolutions
:
[
'
DAY
'
,
'
MONTH
'
],
},
},
{
{
...
@@ -86,7 +86,7 @@ export const STATS_CHARTS_SECTION_GAS: stats.LineChartSection = {
...
@@ -86,7 +86,7 @@ export const STATS_CHARTS_SECTION_GAS: stats.LineChartSection = {
id
:
'
averageGasPrice
'
,
id
:
'
averageGasPrice
'
,
title
:
'
Average gas price
'
,
title
:
'
Average gas price
'
,
description
:
'
Average gas price
'
,
description
:
'
Average gas price
'
,
units
:
'
M
ARS
'
,
units
:
'
M
OVA
'
,
resolutions
:
[
'
DAY
'
,
'
MONTH
'
],
resolutions
:
[
'
DAY
'
,
'
MONTH
'
],
}
],
}
],
};
};
...
...
stubs/zkEvmL2.ts
View file @
47ddd42b
...
@@ -7,7 +7,7 @@ export const ZKEVM_DEPOSITS_ITEM: ZkEvmL2DepositsItem = {
...
@@ -7,7 +7,7 @@ export const ZKEVM_DEPOSITS_ITEM: ZkEvmL2DepositsItem = {
index
:
181920
,
index
:
181920
,
l1_transaction_hash
:
'
0xa74edfa5824a07a5f95ca1145140ed589df7f05bb17796bf18090b14c4566b5d
'
,
l1_transaction_hash
:
'
0xa74edfa5824a07a5f95ca1145140ed589df7f05bb17796bf18090b14c4566b5d
'
,
l2_transaction_hash
:
'
0x436d1c7ada270466ca0facdb96ecc22934d68d13b8a08f541b8df11b222967b5
'
,
l2_transaction_hash
:
'
0x436d1c7ada270466ca0facdb96ecc22934d68d13b8a08f541b8df11b222967b5
'
,
symbol
:
'
M
ARS
'
,
symbol
:
'
M
OVA
'
,
timestamp
:
'
2023-06-01T14:46:48.000000Z
'
,
timestamp
:
'
2023-06-01T14:46:48.000000Z
'
,
value
:
'
0.13040262
'
,
value
:
'
0.13040262
'
,
};
};
...
@@ -17,7 +17,7 @@ export const ZKEVM_WITHDRAWALS_ITEM: ZkEvmL2WithdrawalsItem = {
...
@@ -17,7 +17,7 @@ export const ZKEVM_WITHDRAWALS_ITEM: ZkEvmL2WithdrawalsItem = {
index
:
47003
,
index
:
47003
,
l1_transaction_hash
:
'
0x230cf46dabea287ac7d0ba83b8ea120bb83c1de58a81d34f44788f0459096c52
'
,
l1_transaction_hash
:
'
0x230cf46dabea287ac7d0ba83b8ea120bb83c1de58a81d34f44788f0459096c52
'
,
l2_transaction_hash
:
'
0x519d9f025ec47f08a48d708964d177189d2246ddf988686c481f5debcf097e34
'
,
l2_transaction_hash
:
'
0x519d9f025ec47f08a48d708964d177189d2246ddf988686c481f5debcf097e34
'
,
symbol
:
'
M
ARS
'
,
symbol
:
'
M
OVA
'
,
timestamp
:
'
2024-04-17T08:51:58.000000Z
'
,
timestamp
:
'
2024-04-17T08:51:58.000000Z
'
,
value
:
'
110.35
'
,
value
:
'
110.35
'
,
};
};
...
...
ui/pages/ApiDocs.tsx
View file @
47ddd42b
...
@@ -18,7 +18,7 @@ const ApiDocs = () => {
...
@@ -18,7 +18,7 @@ const ApiDocs = () => {
const
tabs
:
Array
<
TabItemRegular
>
=
[
const
tabs
:
Array
<
TabItemRegular
>
=
[
{
id
:
'
rest_api
'
,
title
:
'
REST API
'
,
component
:
<
RestApi
/>,
count
:
REST_API_SECTIONS
.
length
},
{
id
:
'
rest_api
'
,
title
:
'
REST API
'
,
component
:
<
RestApi
/>,
count
:
REST_API_SECTIONS
.
length
},
{
id
:
'
eth_rpc_api
'
,
title
:
'
M
ARS
RPC API
'
,
component
:
<
EthRpcApi
/>
},
{
id
:
'
eth_rpc_api
'
,
title
:
'
M
OVA
RPC API
'
,
component
:
<
EthRpcApi
/>
},
{
id
:
'
rpc_api
'
,
title
:
'
RPC API endpoints
'
,
component
:
<
RpcApi
/>
},
{
id
:
'
rpc_api
'
,
title
:
'
RPC API endpoints
'
,
component
:
<
RpcApi
/>
},
{
id
:
'
graphql_api
'
,
title
:
'
GraphQL API
'
,
component
:
<
GraphQL
/>
},
{
id
:
'
graphql_api
'
,
title
:
'
GraphQL API
'
,
component
:
<
GraphQL
/>
},
].
filter
(({
id
})
=>
feature
.
isEnabled
&&
feature
.
tabs
.
includes
(
id
));
].
filter
(({
id
})
=>
feature
.
isEnabled
&&
feature
.
tabs
.
includes
(
id
));
...
...
ui/shared/chart/ChartWidget.pw.tsx
View file @
47ddd42b
...
@@ -25,7 +25,7 @@ const props: Props = {
...
@@ -25,7 +25,7 @@ const props: Props = {
],
],
title
:
'
Native coin circulating supply
'
,
title
:
'
Native coin circulating supply
'
,
description
:
'
Amount of token circulating supply for the period
'
,
description
:
'
Amount of token circulating supply for the period
'
,
units
:
'
M
ARS
'
,
units
:
'
M
OVA
'
,
isLoading
:
false
,
isLoading
:
false
,
isError
:
false
,
isError
:
false
,
noAnimation
:
true
,
noAnimation
:
true
,
...
...
ui/stats/ChartWidgetContainer.tsx
View file @
47ddd42b
...
@@ -35,9 +35,9 @@ const ChartWidgetContainer = ({
...
@@ -35,9 +35,9 @@ const ChartWidgetContainer = ({
}:
Props
)
=>
{
}:
Props
)
=>
{
const
{
items
,
lineQuery
}
=
useChartQuery
(
id
,
Resolution
.
DAY
,
interval
,
!
isPlaceholderData
);
const
{
items
,
lineQuery
}
=
useChartQuery
(
id
,
Resolution
.
DAY
,
interval
,
!
isPlaceholderData
);
// title 替换掉字符串中ETH
// title 替换掉字符串中ETH
title
=
title
.
replace
(
'
ETH
'
,
'
M
ARS
'
);
title
=
title
.
replace
(
'
ETH
'
,
'
M
OVA
'
);
description
=
description
.
replace
(
'
ETH
'
,
'
M
ARS
'
);
description
=
description
.
replace
(
'
ETH
'
,
'
M
OVA
'
);
units
=
units
?.
replace
(
'
ETH
'
,
'
M
ARS
'
);
units
=
units
?.
replace
(
'
ETH
'
,
'
M
OVA
'
);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
lineQuery
.
isError
)
{
if
(
lineQuery
.
isError
)
{
...
...
ui/stats/NumberWidgetsList.tsx
View file @
47ddd42b
...
@@ -27,12 +27,12 @@ const NumberWidgetsList = () => {
...
@@ -27,12 +27,12 @@ const NumberWidgetsList = () => {
>
>
{
{
data
?.
counters
?.
map
(({
id
,
title
,
value
,
units
,
description
},
index
)
=>
{
data
?.
counters
?.
map
(({
id
,
title
,
value
,
units
,
description
},
index
)
=>
{
title
=
title
.
replace
(
/ETH/g
,
'
M
ARS
'
);
title
=
title
.
replace
(
/ETH/g
,
'
M
OVA
'
);
let
unitsStr
=
''
;
let
unitsStr
=
''
;
if
(
units
&&
UNITS_WITHOUT_SPACE
.
includes
(
units
))
{
if
(
units
&&
UNITS_WITHOUT_SPACE
.
includes
(
units
))
{
unitsStr
=
units
;
unitsStr
=
units
;
}
else
if
(
units
)
{
}
else
if
(
units
)
{
unitsStr
=
units
===
'
ETH
'
?
'
M
ARS
'
:
'
'
+
units
;
unitsStr
=
units
===
'
ETH
'
?
'
M
OVA
'
:
'
'
+
units
;
}
}
return
(
return
(
...
...
ui/tx/assetFlows/utils/generateFlowViewData.test.ts
View file @
47ddd42b
...
@@ -31,10 +31,10 @@ it('creates asset flows items', async() => {
...
@@ -31,10 +31,10 @@ it('creates asset flows items', async() => {
amount
:
'
0.000395521502109448
'
,
amount
:
'
0.000395521502109448
'
,
flowDirection
:
'
toRight
'
,
flowDirection
:
'
toRight
'
,
token
:
{
token
:
{
address
:
'
M
ARS
'
,
address
:
'
M
OVA
'
,
decimals
:
18
,
decimals
:
18
,
name
:
'
M
ARS
'
,
name
:
'
M
OVA
'
,
symbol
:
'
M
ARS
'
,
symbol
:
'
M
OVA
'
,
},
},
},
},
rightActor
:
{
rightActor
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment