Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alimaktabi committed Dec 17, 2023
2 parents 09be62b + dad5c7f commit 50b52b6
Showing 1 changed file with 47 additions and 15 deletions.
62 changes: 47 additions & 15 deletions constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ import {
linea,
lineaTestnet,
arbitrumNova,
scrollSepolia,
Chain,
} from "viem/chains";

import { mainnet, sepolia } from "wagmi";

const IDChain = {
Expand Down Expand Up @@ -55,23 +58,50 @@ const Optimism = {
etherscan: { name: "etherscan", url: "https://optimistic.etherscan.io" },
default: { name: "etherscan", url: "https://optimistic.etherscan.io" },
},

// explorerUrl: "https://optimistic.etherscan.io/",
// rpcUrl: "https://rpc.ankr.com/optimism",
// logoUrl:
// "https://imagedelivery.net/XQ6LDks1pWNDtTDAw7o9nA/cef210ce-85ba-4482-f3bb-bbc5f6ecb200/public",
// modalUrl:
// "https://imagedelivery.net/XQ6LDks1pWNDtTDAw7o9nA/cef210ce-85ba-4482-f3bb-bbc5f6ecb200/public",
// gasImageUrl:
// "https://imagedelivery.net/XQ6LDks1pWNDtTDAw7o9nA/cef210ce-85ba-4482-f3bb-bbc5f6ecb200/public",
// maxClaimAmount: 50000000000000.0,
// isTestnet: false,
// tokentapContractAddress: "0x54a839FF128DC1891a03d7a81724bD5D51A5902b",
// chainType: "EVM",
// blockScanAddress:
// "https://optimistic.etherscan.io/address/0xb3A97684Eb67182BAa7994b226e6315196D8b364",
};

export const kccMainnet = {
id: 321,
network: "kcc-mainnet",
name: "KuCoin Community Chain",
nativeCurrency: { name: "KuCoin Token", symbol: "KCS", decimals: 18 },
rpcUrls: {
bscscan: {
http: ["https://rpc-mainnet.kcc.network"],
webSocket: ["wss://rpc-mainnet.kcc.network"],
},
kccscan: {
http: ["https://explorer.kcc.io/en/rpc"],
webSocket: ["wss://explorer.kcc.io/en/rpc"],
},
default: {
http: ["https://rpc-mainnet.kcc.network"],
},
public: {
http: ["https://rpc-mainnet.kcc.network"],
},
},
blockExplorers: {
default: {
name: "KCCScan",
url: "https://explorer.kcc.io/en",
},
},
// contracts: {
// kccRegistrar: {
// address: "0x0000000000000000000000000000000000000000",
// },
// kccResolver: {
// address: "0x0000000000000000000000000000000000000000",
// blockCreated: 0, // Replace with the actual block number when deployed
// },
// multicall: {
// address: "0x0000000000000000000000000000000000000000",
// blockCreated: 0, // Replace with the actual block number when deployed
// },
// },
} satisfies Chain;

export const supportedChains = [
sepolia,
mainnet,
Expand All @@ -98,6 +128,8 @@ export const supportedChains = [
linea,
lineaTestnet,
arbitrumNova,
scrollSepolia,
kccMainnet,
];

/**
Expand Down

1 comment on commit 50b52b6

@vercel
Copy link

@vercel vercel bot commented on 50b52b6 Dec 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.