-
Notifications
You must be signed in to change notification settings - Fork 16
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
add token name symbol to pools #61
Conversation
It seems everything under And just double checking, the |
sure, it makes sense to keep only address/symbol, as long as it is not breaking something (@idiom-bytes - is it ok from Dao/Snapsot side?) |
regarding symbol/names - it will fetch whatever is in the contract for symbol/names. Mainnet is with space, rinkeby without :) |
oh, interesting, so we never redeployed our token contract in the testnets as we did multiple times in mainnet. So the testnets do not reflect current token contract but guess this has no real implication https://github.com/oceanprotocol/token/blob/master/contracts/OceanToken.sol#L33 |
indeed, we have only the old versions. |
new layout:
|
decimals is good idea, useful if we want to have more add token to metamask buttons |
done
|
as far as I can see this is a breaking change for market, but only on the History page: So if we want to deploy it it we need to prepare a small market update first |
ok, let's keep it on hold. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome, now much easier to solve oceanprotocol/market#456
Hey guys, As far as I can see, the only thing added was the token[{name, symbol}], in addition to the redundant bits that were removed. Our pools query does not look into any of this data, so I don't think this will have an impact on the strategy (which isn't quite working yet). For reference, this is the GQL query into DT pools. I'm approving this PR.
|
tokenId was removed. you need to replace it probably with "address" |
I see the latest schema. |
this is the actual change: https://github.com/oceanprotocol/ocean-subgraph/pull/61/files#diff-efc1675187620595b0844197a25c35eac9b6df752f9182e5cffddee6f27a8489 So instead of: tokens {
balance,
denormWeight,
tokenId {
id
}
} after this change is deployed it should be like this: tokens {
balance,
denormWeight,
address
} As for market, was quick change oceanprotocol/market#457 Think we get our auto-generated typings from the Rinkeby subgraph so that PR build might succeed when it's deployed on Rinkeby. Otherwise we kinda have to deploy to Mainnet to make PR build succeed |
As I mentioned to Alex, the strategy isn't quite working so this won't break anything. I'll have a new GQL ready to go, and will test once the latest Rinkeby/Mainnet subgraph is available. |
@kremalicious @mihaisc - 2nd graph deployed and it's live. |
Closes #13
Changes proposed in this PR:
try it local with: query
Expected result:
Questions: should we rename tokenId to datatokenId ?
If tokenId is null, then that token is not a datatoken