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

refactor(chain-info): Add websocket url: #163

Merged
merged 2 commits into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions src/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const chainInfo: { [chainId in ChainId]: ChainInfo } = {
cdnUrl: "https://static.looksnice.org",
rewardsSubgraphUrl: "https://api.thegraph.com/subgraphs/name/looksrare/looks-distribution",
cloudinaryUrl: "https://looksrare.mo.cloudinary.net",
wsUrl: "wss://ws.looksrare.org/ws",
},
[ChainId.GOERLI]: {
label: "Goerli",
Expand All @@ -22,6 +23,7 @@ export const chainInfo: { [chainId in ChainId]: ChainInfo } = {
cdnUrl: "https://static-goerli.looksnice.org",
rewardsSubgraphUrl: "https://api.thegraph.com/subgraphs/name/0xjurassicpunk/looks-distribution",
cloudinaryUrl: "https://looksrare.mo.cloudinary.net/goerli",
wsUrl: "wss://ws-goerli.looksrare.org/ws",
},
[ChainId.SEPOLIA]: {
label: "Sepolia",
Expand All @@ -33,6 +35,7 @@ export const chainInfo: { [chainId in ChainId]: ChainInfo } = {
cdnUrl: "https://static-sepolia.looksnice.org",
rewardsSubgraphUrl: "https://api.thegraph.com/subgraphs/name/0xjurassicpunk/looks-distribution",
cloudinaryUrl: "https://looksrare.mo.cloudinary.net/sepolia",
wsUrl: "",
BrooceLR marked this conversation as resolved.
Show resolved Hide resolved
},
[ChainId.HARDHAT]: {
label: "Hardhat",
Expand All @@ -44,5 +47,6 @@ export const chainInfo: { [chainId in ChainId]: ChainInfo } = {
cdnUrl: "https://via.placeholder.com",
rewardsSubgraphUrl: "https://api.thegraph.com/subgraphs/name/0xjurassicpunk/looks-distribution",
cloudinaryUrl: "",
wsUrl: "ws://localhost:5001/ws",
},
};
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export interface ChainInfo {
cdnUrl: string;
rewardsSubgraphUrl: string;
cloudinaryUrl: string;
wsUrl: string;
}

/** List of collection types supported by the protocol */
Expand Down