From b1f6f95f5f542f83d68c9aae97d14da11fc24ac4 Mon Sep 17 00:00:00 2001 From: BrooceLR Date: Wed, 12 Jul 2023 11:44:45 +0200 Subject: [PATCH 1/2] refactor(chain-info): Add websocket url: --- src/constants/chains.ts | 4 ++++ src/types.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/src/constants/chains.ts b/src/constants/chains.ts index cdbf2be..bcf737a 100644 --- a/src/constants/chains.ts +++ b/src/constants/chains.ts @@ -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", @@ -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", @@ -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: "", }, [ChainId.HARDHAT]: { label: "Hardhat", @@ -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", }, }; diff --git a/src/types.ts b/src/types.ts index 39d084d..bc2979d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -34,6 +34,7 @@ export interface ChainInfo { cdnUrl: string; rewardsSubgraphUrl: string; cloudinaryUrl: string; + wsUrl: string; } /** List of collection types supported by the protocol */ From d53a57195c821c82a4185d454c8d02be495b25db Mon Sep 17 00:00:00 2001 From: BrooceLR Date: Wed, 12 Jul 2023 15:29:18 +0200 Subject: [PATCH 2/2] refactor(chain-info): Add sepolia url --- src/constants/chains.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants/chains.ts b/src/constants/chains.ts index bcf737a..10f42e8 100644 --- a/src/constants/chains.ts +++ b/src/constants/chains.ts @@ -35,7 +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: "", + wsUrl: "wss://ws-sepolia.looksrare.org/ws", }, [ChainId.HARDHAT]: { label: "Hardhat",