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

V2 #145

Open
wants to merge 6 commits into
base: v2
Choose a base branch
from
Open

V2 #145

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
8 changes: 8 additions & 0 deletions src/components/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ export const NETWORK_LIST = [
iconPath: '/images/base-logo.svg',
iconPathInverted: '/images/base-logo.svg',
},
{
name: 'Vanar Mainnet',
key: 'vanar-mainnet',
iconPath: '/images/vanarlogo.svg',
iconPathInverted: '/images/vanarlogo.svg',
},
{
name: 'Vanar Testnet',
key: 'vanar-testnet',
Expand Down Expand Up @@ -193,6 +199,7 @@ export const NETWORK_ICON_MAP: NETWORK_ICON_MAP = {
'polygon-amoy': '/images/polygon-mumbai-icon.svg',
'cyber-mainnet': '/images/cyber-logo.svg',
'vanar-testnet': '/images/vanarlogo.svg',
'vanar-mainnet': '/images/vanarlogo.svg',
testnet: '/images/vanar-testnet',
};

Expand Down Expand Up @@ -253,6 +260,7 @@ export const NETWORK_SCANNER_MAP: { [key: string]: string } = {
'polygon-amoy': 'https://www.oklink.com/amoy',
'cyber-mainnet': 'https://cyber-explorer.alt.technology',
'vanar-testnet': 'https://explorer-vanguard.vanarchain.com',
'vanar-mainnet': 'https://explorer.vanarchain.com',
testnet: 'https://explorer-vanguard.vanarchain.com',
};

Expand Down
8 changes: 7 additions & 1 deletion src/components/common/status/Status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,31 @@ export default function Status({ type, status, ago }: { type?: boolean; status?:
<span className="font-normal text-[12px] leading-5 text-dark-600">Success</span>
</span>
)}

{type === false && (status == "failed" || status == "FAILED") && (

<span className="flex items-center px-3 py-px gap-2 rounded-full border border-[#d81a14]">
<img src="/images/failed.svg" alt="" />
<span className="font-normal text-[12px] leading-5 text-dark-600">Failed</span>
</span>
)}
{status === 'pending' && (
{status === 'pending' && (
<span className="flex items-center px-3 py-px gap-2 rounded-full border border-[#d81a14]">
<img src="/images/pending.svg" alt="" />
<span className="font-normal text-[12px] leading-5 text-dark-600">Failed</span>
</span>
)}

{status === 'IN_BUNDLER_MEMPOOL' && (

<span className="flex items-center px-3 py-[0.3rem] w-[150px] gap-2 rounded-full border border-[#FB8C00]">
<img src="/images/pending.svg" alt="" />
<span className="font-normal text-[12px] leading-5 text-dark-600">In Alt Mempool</span>
</span>
)}

{status === 'IN_EVM_MEMPOOL' && (

<span className="flex items-center px-3 py-[0.3rem] w-[150px] gap-2 rounded-full border border-[#FB8C00]">
<img src="/images/pending.svg" alt="" />
<span className="font-normal text-[12px] leading-5 text-dark-600">In Main Mempool</span>
Expand Down