market icon indicating copy to clipboard operation
market copied to clipboard

add Goerli

Open kremalicious opened this issue 3 years ago • 5 comments

  • add Goerli to network selector
  • switch subgraph typings generation to goerli subgraph
  • remove Ropsten & Rinkeby
  • remove Ropsten & Rinkeby from localStorage-saved user preferences
  • for https://github.com/oceanprotocol/pm/issues/178

resulting in new network defaults:

Screen Shot 2022-09-22 at 20 24 25

kremalicious avatar Sep 22 '22 18:09 kremalicious

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
market ✅ Ready (Inspect) Visit Preview Sep 30, 2022 at 1:45PM (UTC)

vercel[bot] avatar Sep 22 '22 18:09 vercel[bot]

Wait, don't kick out rinkeby and ropten.

mihaisc avatar Sep 23 '22 09:09 mihaisc

yup yup, will add them back to network selector

kremalicious avatar Sep 23 '22 10:09 kremalicious

incorrect ocean value in wallet image image console error: RROR: Failed to get the balance: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced. A first guess would be incorrect ocean token address

mihaisc avatar Sep 23 '22 10:09 mihaisc

console error:

Getting this error only when switching networks, no matter if Görli or not. But on other networks the balance then is correct despite this error message so this might be caused by some too early call before all values are present for it. I don't get this error when already connected to Görli before reloading app.

Contract address is correct, was able to add Görli OCEAN to MetaMask with that address

kremalicious avatar Sep 23 '22 10:09 kremalicious

Think I got it, the OCEAN contract address we get from contracts and from the approved token query are different, and the latter is used to fetch balance.

Contracts say 0xCfDdA22C9837aE76E0faA845354f33C62E03653a but approved token query says 0xd8992ed72c445c35cb4a2be468568ed1079357c8. Contracts is correct, approved token query is not.

kremalicious avatar Sep 23 '22 10:09 kremalicious

@alexcos20 can you please update the approved token so it's the correct ocean token address.

mihaisc avatar Sep 23 '22 10:09 mihaisc

Also blocked by https://github.com/oceanprotocol/aquarius/issues/893

mihaisc avatar Sep 23 '22 10:09 mihaisc

the market's OCEAN balance is not updating. I have some on my wallet, but the market is not reflecting that:

Screenshot 2022-09-26 at 07 00 25

EnzoVezzaro avatar Sep 26 '22 11:09 EnzoVezzaro

the market's OCEAN balance is not updating. I have some on my wallet, but the market is not reflecting that:

Anything in the browser console?

kremalicious avatar Sep 26 '22 12:09 kremalicious

Anything in the browser console?

Nope. Unfortunately, there's no error thrown.

Screenshot 2022-09-26 at 09 52 39

EnzoVezzaro avatar Sep 26 '22 13:09 EnzoVezzaro

the market's OCEAN balance is not updating.

got it, and it's still this issue so nothing we can do on market

kremalicious avatar Sep 26 '22 14:09 kremalicious

added 0xCfDdA22C9837aE76E0faA845354f33C62E03653a removed 0xd8992Ed72C445c35Cb4A2be468568Ed1079357c8

it should be fine now

alexcos20 avatar Sep 26 '22 16:09 alexcos20

getting balance on Görli seems really flaky, only successful every 2nd or 3rd reload for me

The approved token query seems to still return 0xd8992Ed72C445c35Cb4A2be468568Ed1079357c8 for me, or more precisely both of them. And then sometimes balance actually works, pretty sure double OCEAN token being defined is the issue:

Screen Shot 2022-09-27 at 10 21 33

@alexcos20 confirmed the subgraph returns both of them, do we need to have it reindex or something?:

Screen Shot 2022-09-27 at 12 14 02

kremalicious avatar Sep 27 '22 09:09 kremalicious

that's definitely a bug on the subgraph, I can see TokenRemoved event on router contract:

https://goerli.etherscan.io/address/0x159924ca0f47d6f704b97e29099b89e518a17b5e#events

alexcos20 avatar Sep 27 '22 14:09 alexcos20

that's definitely a bug on the subgraph

cool, thanks for figuring out. For now added in a hacky filter in 4914314 so at least it works now and we are not forced to rush that subgraph fix.

kremalicious avatar Sep 28 '22 09:09 kremalicious

An aquarius update was made and it seems to be working now. So, i guess we can merge this.

mihaisc avatar Sep 28 '22 14:09 mihaisc

bug was fixed on subgraph as well

alexcos20 avatar Sep 28 '22 15:09 alexcos20

Code Climate has analyzed commit 237aecca and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 0.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 4.2% (0.0% change).

View more on Code Climate.

qlty-cloud-legacy[bot] avatar Sep 30 '22 13:09 qlty-cloud-legacy[bot]