Commit 47ddd42b authored by adadachao's avatar adadachao

coin name up

parent dfaa09ff
......@@ -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_NAVIGATION_HIGHLIGHTED_ROUTES=['/pools']
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS=18
NEXT_PUBLIC_NETWORK_CURRENCY_NAME=MARS Mainnet GasCoin
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=MARS
NEXT_PUBLIC_NETWORK_CURRENCY_NAME=MOVA Mainnet GasCoin
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=MOVA
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_ID=61900
......
......@@ -7,5 +7,5 @@ const weiName = config.chain.currency.weiName || 'wei';
export const currencyUnits: Record<Unit, string> = {
wei: weiName,
gwei: `G${ weiName }`,
ether: config.chain.currency.symbol || 'MARS',
ether: config.chain.currency.symbol || 'MOVA',
};
import type { NovesResponseData, NovesClassificationData, NovesRawTransactionData } from 'types/api/noves';
const NOVES_TRANSLATE_CLASSIFIED: NovesClassificationData = {
description: 'Sent 0.04 MARS',
description: 'Sent 0.04 MOVA',
received: [ {
action: 'Sent Token',
actionFormatted: 'Sent Token',
......@@ -10,8 +10,8 @@ const NOVES_TRANSLATE_CLASSIFIED: NovesClassificationData = {
to: { name: '', address: '0xa0393A76b132526a70450273CafeceB45eea6dEE' },
token: {
address: '',
name: 'MARS',
symbol: 'MARS',
name: 'MOVA',
symbol: 'MOVA',
decimals: 18,
},
} ],
......
......@@ -45,8 +45,8 @@ export const HOMEPAGE_STATS: HomeStats = {
const STATS_CHART_INFO: stats.LineChartInfo = {
id: 'chart_0',
title: 'Average transaction fee',
description: 'The average amount in MARS spent per transaction',
units: 'MARS',
description: 'The average amount in MOVA spent per transaction',
units: 'MOVA',
resolutions: [ 'DAY', 'MONTH' ],
};
......@@ -59,7 +59,7 @@ export const STATS_CHARTS_SECTION: stats.LineChartSection = {
id: 'chart_1',
title: 'Transactions fees',
description: 'Amount of tokens paid as fees',
units: 'MARS',
units: 'MOVA',
resolutions: [ 'DAY', 'MONTH' ],
},
{
......@@ -86,7 +86,7 @@ export const STATS_CHARTS_SECTION_GAS: stats.LineChartSection = {
id: 'averageGasPrice',
title: 'Average gas price',
description: 'Average gas price',
units: 'MARS',
units: 'MOVA',
resolutions: [ 'DAY', 'MONTH' ],
} ],
};
......
......@@ -7,7 +7,7 @@ export const ZKEVM_DEPOSITS_ITEM: ZkEvmL2DepositsItem = {
index: 181920,
l1_transaction_hash: '0xa74edfa5824a07a5f95ca1145140ed589df7f05bb17796bf18090b14c4566b5d',
l2_transaction_hash: '0x436d1c7ada270466ca0facdb96ecc22934d68d13b8a08f541b8df11b222967b5',
symbol: 'MARS',
symbol: 'MOVA',
timestamp: '2023-06-01T14:46:48.000000Z',
value: '0.13040262',
};
......@@ -17,7 +17,7 @@ export const ZKEVM_WITHDRAWALS_ITEM: ZkEvmL2WithdrawalsItem = {
index: 47003,
l1_transaction_hash: '0x230cf46dabea287ac7d0ba83b8ea120bb83c1de58a81d34f44788f0459096c52',
l2_transaction_hash: '0x519d9f025ec47f08a48d708964d177189d2246ddf988686c481f5debcf097e34',
symbol: 'MARS',
symbol: 'MOVA',
timestamp: '2024-04-17T08:51:58.000000Z',
value: '110.35',
};
......
......@@ -18,7 +18,7 @@ const ApiDocs = () => {
const tabs: Array<TabItemRegular> = [
{ id: 'rest_api', title: 'REST API', component: <RestApi/>, count: REST_API_SECTIONS.length },
{ id: 'eth_rpc_api', title: 'MARS RPC API', component: <EthRpcApi/> },
{ id: 'eth_rpc_api', title: 'MOVA RPC API', component: <EthRpcApi/> },
{ id: 'rpc_api', title: 'RPC API endpoints', component: <RpcApi/> },
{ id: 'graphql_api', title: 'GraphQL API', component: <GraphQL/> },
].filter(({ id }) => feature.isEnabled && feature.tabs.includes(id));
......
......@@ -25,7 +25,7 @@ const props: Props = {
],
title: 'Native coin circulating supply',
description: 'Amount of token circulating supply for the period',
units: 'MARS',
units: 'MOVA',
isLoading: false,
isError: false,
noAnimation: true,
......
......@@ -35,9 +35,9 @@ const ChartWidgetContainer = ({
}: Props) => {
const { items, lineQuery } = useChartQuery(id, Resolution.DAY, interval, !isPlaceholderData);
// title 替换掉字符串中ETH
title = title.replace('ETH', 'MARS');
description = description.replace('ETH', 'MARS');
units = units?.replace('ETH', 'MARS');
title = title.replace('ETH', 'MOVA');
description = description.replace('ETH', 'MOVA');
units = units?.replace('ETH', 'MOVA');
useEffect(() => {
if (lineQuery.isError) {
......
......@@ -27,12 +27,12 @@ const NumberWidgetsList = () => {
>
{
data?.counters?.map(({ id, title, value, units, description }, index) => {
title = title.replace(/ETH/g, 'MARS');
title = title.replace(/ETH/g, 'MOVA');
let unitsStr = '';
if (units && UNITS_WITHOUT_SPACE.includes(units)) {
unitsStr = units;
} else if (units) {
unitsStr = units === 'ETH' ? ' MARS' : ' ' + units;
unitsStr = units === 'ETH' ? ' MOVA' : ' ' + units;
}
return (
......
......@@ -31,10 +31,10 @@ it('creates asset flows items', async() => {
amount: '0.000395521502109448',
flowDirection: 'toRight',
token: {
address: 'MARS',
address: 'MOVA',
decimals: 18,
name: 'MARS',
symbol: 'MARS',
name: 'MOVA',
symbol: 'MOVA',
},
},
rightActor: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment