Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Reltime chain to Chainscout #56

Merged
merged 2 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ We welcome contributions to Chainscout! Here's how you can help:
1. Fork the repository and create a new branch for your addition.
2. Open the file `data/chains.json`.
3. Add a new entry for the chain, following the existing format:

```json
"chainId": {
"name": "Chain Name",
Expand All @@ -85,18 +84,7 @@ We welcome contributions to Chainscout! Here's how you can help:
"logo": "https://example.com/path/to/logo.png"
}
```
4. If the logo URL uses a new domain, add it to the `images.domains` array in `next.config.mjs`:
```javascript
module.exports = {
images: {
domains: [
'existing-domain.com',
'new-logo-domain.com'
],
},
};
```
5. Create a pull request with your changes.
4. Create a pull request with your changes.

### Adding an Explorer to an Existing Chain

Expand Down
5 changes: 3 additions & 2 deletions components/ChainCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ChainData } from '@/types';
import Image from 'next/image';
import Link from 'next/link';
import React from 'react';
import { HOSTING_PROVIDERS, HostingProvider, ROLLUP_TYPES, RollupType } from '@/utils/constants';
import LinkIcon from '@/public/link.svg';

Expand Down Expand Up @@ -84,15 +85,15 @@ export default function ChainCard({
{ href: website, text: 'Project Website' },
{ href: url, text: 'Blockscout Explorer' },
].map(({ href, text }, index, array) => (
<>
<React.Fragment key={index}>
<Link href={href} className="group/link flex items-center justify-between py-3" target="_blank" rel="noopener">
<span className="text-sm font-medium text-black group-hover/link:text-blue-600 transition-colors duration-[400ms]">
{text}
</span>
<LinkIcon className="flex-shrink-0 text-[#B1B5C3] group-hover/link:text-blue-600 transition-colors duration-[400ms]"/>
</Link>
{index < array.length - 1 && <div className="border-t border-gray-200 my-3"></div>}
</>
</React.Fragment>
))}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ export default function Header() {
<Image
src="/logo.svg"
alt="Blockscout Logo"
layout="responsive"
width={150}
height={150 * (22/115)} // Maintain aspect ratio
className="w-full h-auto"
priority // Add priority since this is above the fold
/>
</div>
</div>
Expand Down
20 changes: 18 additions & 2 deletions data/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@
"210": {
"name": "Bitnet BTN",
"description": "Per-to-peer blockchain and financial network - made for everyone.",
"logo": "https://blockscout-icons.s3.us-east-1.amazonaws.com/bitnet-btn",
"logo": "https://blockscout-icons.s3.us-east-1.amazonaws.com/bitnet-btn.png",
"ecosystem": "Ethereum",
"isTestnet": false,
"layer": 1,
Expand Down Expand Up @@ -7082,7 +7082,7 @@
"45510": {
"name": "DeeLance Mainnet",
"description": "A decentralized blockchain built to connect freelancers and recruiters.",
"logo": "x",
"logo": "",
"ecosystem": "Ethereum",
"isTestnet": false,
"layer": 1,
Expand Down Expand Up @@ -12295,5 +12295,21 @@
"hostedBy": "self"
}
]
},
"32323": {
"name": "Reltime",
"description": "Reltime (RTC) is a private blockchain network built on Hyperledger Besu—a robust Ethereum client designed for enterprise applications. It operates in a permissioned environment where smart contracts can run securely and efficiently.",
"logo": "https://purple-alecia-8.tiiny.site/Footerlogo.svg",
"ecosystem": "Ethereum",
"isTestnet": false,
"layer": 1,
"rollupType": null,
"website": "https://www.reltime.com/",
"explorers": [
{
"url": "http://explorer.reltime.com",
"hostedBy": "self"
}
]
}
}
14 changes: 6 additions & 8 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
const nextConfig = {
reactStrictMode: true,
images: {
domains: [
'uploads-ssl.webflow.com',
'd2e6b8w31txsjq.cloudfront.net',
'cdn.prod.website-files.com',
'docs.inkonchain.com',
'haust.network',
'avatars.githubusercontent.com',
],
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
]
},
webpack(config) {
const fileLoaderRule = config.module.rules.find(
Expand Down