depreciate thegraph w/ relayer events

This commit is contained in:
gozzy 2022-11-21 11:07:23 +00:00
parent 8d038c5869
commit 479b1e798b
3 changed files with 114 additions and 66 deletions

View file

@ -60,6 +60,22 @@ export const cachedEventsLength = {
}
}
export const corsConfig = (rpcUrl) => ({
headers: [
{
name: 'Access-Control-Allow-Origin',
value: rpcUrl
},
{
name: 'Access-Control-Allow-Methods',
value: 'POST, GET, OPTIONS'
}
],
withCredentials: false,
// buffer for tor connections
timeout: 30000
})
export const PROVIDERS = {
walletConnect: {
name: 'WalletConnect',