File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,4 @@ VITE_GRAPH_URI = https://api.thegraph.com/subgraphs/name/geo-web-project/geo-web
55VITE_ANNUALRATE = 0.1
66VITE_IPFS_GATEWAY = https://ipfs.io
77VITE_IPFS_DELEGATE = "/dns4/ceramic.geoweb.network/tcp/443/https"
8- VITE_WS_RPC_URL=wss://opt.mainnet.g.alchemy.com/v2/Y4RuzHDAmcqDnO6iqLcfwDzmbTk4xHob
9- VITE_HTTP_RPC_URL=https://opt.mainnet.g.alchemy.com/v2/Y4RuzHDAmcqDnO6iqLcfwDzmbTk4xHob
108VITE_LIVEPEER_API_KEY=8cdf71bd-3f27-46e8-991b-411a0f75b91f
Original file line number Diff line number Diff line change 1- VITE_NETWORK_ID = 420
2- VITE_WORLD_ADDRESS = 0x3904285496739BF5030d79C0CF259A569806F759
3- VITE_WORLD_BLOCK_NUMBER = 17280426
4- VITE_GRAPH_URI = https://api.thegraph.com/subgraphs/name/geo-web-project/geo-web-testnet
1+ VITE_NETWORK_ID = 11155420
2+ VITE_WORLD_ADDRESS = 0x943e0b3F1926008f2e1bEFCBc55FA2A75CeC2452
3+ VITE_WORLD_BLOCK_NUMBER = 6992231
54VITE_ANNUALRATE = 0.1
65VITE_IPFS_GATEWAY = https://ipfs.io
76VITE_IPFS_DELEGATE = "/dns4/ceramic-clay.geoweb.network/tcp/443/https"
8- VITE_WS_RPC_URL=wss://opt-goerli.g.alchemy.com/v2/Y4RuzHDAmcqDnO6iqLcfwDzmbTk4xHob
9- VITE_HTTP_RPC_URL=https://opt-goerli.g.alchemy.com/v2/Y4RuzHDAmcqDnO6iqLcfwDzmbTk4xHob
107VITE_LIVEPEER_API_KEY=8cdf71bd-3f27-46e8-991b-411a0f75b91f
Original file line number Diff line number Diff line change 88 "@ensdomains/content-hash" : " 2.5.7" ,
99 "@geo-web/mud-world-base-contracts" : " 0.1.0" ,
1010 "@geo-web/mud-world-base-setup" : " 0.1.2" ,
11- "@geo-web/sdk" : " ^4.3.3 " ,
11+ "@geo-web/sdk" : " ^4.4.0 " ,
1212 "@geo-web/types" : " ^0.2.0" ,
1313 "@google/model-viewer" : " ^3.2.1" ,
1414 "@livepeer/react" : " ^2.8.3" ,
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import GWLoader from "../../components/common/Loader/Loader";
44import GWAvail from "../../components/common/ContentFiller/Avail" ;
55import GWContentView from "../GeoWebInterface/components/GeoWebContent/GWContent" ;
66import {
7- HTTP_RPC_URL ,
8- WS_RPC_URL ,
7+ RPC_URLS_HTTP ,
8+ RPC_URLS_WS ,
99 NETWORK_ID ,
1010 IPFS_GATEWAY ,
1111 WORLD ,
@@ -39,7 +39,7 @@ const mudChain: MUDChain = {
3939 ...optimismGoerli . rpcUrls ,
4040 default : {
4141 http : optimismGoerli . rpcUrls . default . http ,
42- webSocket : [ WS_RPC_URL ] ,
42+ webSocket : [ RPC_URLS_WS [ NETWORK_ID ] ] ,
4343 } ,
4444 } ,
4545} ;
@@ -99,7 +99,7 @@ export default function GWS() {
9999 try {
100100 const publicClient = createPublicClient ( {
101101 chain : mudChain ,
102- transport : http ( HTTP_RPC_URL ) ,
102+ transport : http ( RPC_URLS_HTTP [ NETWORK_ID ] ) ,
103103 } ) ;
104104 const registryContract = getContract ( {
105105 address : getContractAddressesForChainOrThrow ( NETWORK_ID )
Original file line number Diff line number Diff line change @@ -12,6 +12,17 @@ export const PINATA_API_ENDPOINT = "https://api.pinata.cloud/psa";
1212export const STORAGE_WORKER_ENDPOINT =
1313 "https://storage-workers.geo-web.workers.dev" ;
1414export const SECONDS_IN_YEAR = 60 * 60 * 24 * 365 ;
15- export const WS_RPC_URL = import . meta. env . VITE_WS_RPC_URL ! ;
16- export const HTTP_RPC_URL = import . meta. env . VITE_HTTP_RPC_URL ! ;
1715export const LIVEPEER_API_KEY = import . meta. env . VITE_LIVEPEER_API_KEY ! ;
16+
17+ export const RPC_URLS_HTTP : Record < number , string > = {
18+ 10 : `https://opt-mainnet.g.alchemy.com/v2/${ import . meta. env
19+ . VITE_ALCHEMY_MAINNET_API_KEY ! } `,
20+ 11155420 : `https://opt-sepolia.g.alchemy.com/v2/${ import . meta. env
21+ . VITE_ALCHEMY_TESTNET_API_KEY ! } `,
22+ } ;
23+ export const RPC_URLS_WS : Record < number , string > = {
24+ 10 : `wss://opt-goerli.g.alchemy.com/v2/${ import . meta. env
25+ . VITE_ALCHEMY_MAINNET_API_KEY ! } `,
26+ 11155420 : `wss://opt-sepolia.g.alchemy.com/v2/${ import . meta. env
27+ . VITE_ALCHEMY_TESTNET_API_KEY ! } `,
28+ } ;
Original file line number Diff line number Diff line change 22092209 rxjs "7.5.5"
22102210 viem "1.14.0"
22112211
2212- "@geo-web/sdk@^4.3.3 ":
2213- version "4.3.3 "
2214- resolved "https://registry.yarnpkg.com/@geo-web/sdk/-/sdk-4.3.3 .tgz#3189381e10fb43237f51f357602d0ea90d421ac1 "
2215- integrity sha512-cRuQr2FJddt0kv/HYvhKCrhuB3lCFqhWqoC2ap5mPmkFfX2W2y6eE86mK5fkb24BYuiiM6KQ5UKEt7xRETOqxg ==
2212+ "@geo-web/sdk@^4.4.0 ":
2213+ version "4.4.0 "
2214+ resolved "https://registry.yarnpkg.com/@geo-web/sdk/-/sdk-4.4.0 .tgz#2b857726491146344f4106f8bf158d271c514138 "
2215+ integrity sha512-E6pnvZ69yKherAivNZXv93DGTFJos2ifHpkPyYXeuiClGKbITyAGdNfR5G2woHUokJzeltsxnluVmfQnSo4vXA ==
22162216 dependencies:
22172217 "@geo-web/contracts" "4.3.1"
22182218 ethers ">=5.0.0 <6.0.0"
You can’t perform that action at this time.
0 commit comments