Files
explore/lib/web3/currentChain.ts
T
tom goriunovandGitHub 7dd2cafada update web3modal to v4 (#1731)
* update hooks and methods

* fix typescript

* options fix

* fix pw test build

* try to fix tests

* more pw test fixes

* update screenshots and fix address verification test
2024-03-25 08:41:20 +01:00

28 lines
605 B
TypeScript

import { type Chain } from 'viem';
import config from 'configs/app';
const currentChain = {
id: Number(config.chain.id),
name: config.chain.name ?? '',
nativeCurrency: {
decimals: config.chain.currency.decimals,
name: config.chain.currency.name ?? '',
symbol: config.chain.currency.symbol ?? '',
},
rpcUrls: {
'default': {
http: [ config.chain.rpcUrl ?? '' ],
},
},
blockExplorers: {
'default': {
name: 'Blockscout',
url: config.app.baseUrl,
},
},
testnet: config.chain.isTestnet,
} as const satisfies Chain;
export default currentChain;