-
Notifications
You must be signed in to change notification settings - Fork 8
Conversation
Pull Request Test Coverage Report for Build 2828116247
💛 - Coveralls |
|
src/const.ts
Outdated
}, | ||
) | ||
|
||
export const COW_SDK = [Network.MAINNET, Network.RINKEBY, Network.GNOSIS_CHAIN].reduce< | ||
export const COW_SDK = [Network.MAINNET, Network.RINKEBY, Network.GNOSIS_CHAIN, Network.GOERLI].reduce< |
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.
with the latest version we can omit this and have just 1 instance instead of 4.
Then we can pass the chainId as an options
object to each method of the cowApi class
src/const.ts
Outdated
@@ -241,7 +242,7 @@ export const COW_SDK = [Network.MAINNET, Network.RINKEBY, Network.GNOSIS_CHAIN]. | |||
return acc | |||
}, {}) | |||
|
|||
export const COW_SDK_DEV = [Network.MAINNET, Network.RINKEBY, Network.GNOSIS_CHAIN].reduce< | |||
export const COW_SDK_DEV = [Network.MAINNET, Network.RINKEBY, Network.GNOSIS_CHAIN, Network.GOERLI].reduce< |
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.
same as above
af592de
to
38be36b
Compare
38be36b
to
cb7a75c
Compare
☝️ Thanks for feedback @ramirotw, I'm aware of it. But as I mentioned, I was focused first on achieving full functionality of the routes. At this point I'm stuck looking for the bug responsible for not sending the requests to barn 🤔 |
Hey @henrypalacios , I have not tested the PR yet, just opened it and decided to leave this note for you: Gorli network color in Cowswap is a light-blue, so it would be nice, I think, to make colors consistent in both applications And this issue might not be related to you current implementation, but 24h transactions show 'Infininty' % |
When the sdk is published I'll ping you @elena-zh to test again |
Just a note: there was an issue with the backend node being indexed. It's being addressed but expect it to not have data for a couple of minutes/hours |
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.
add the thingy on top of the `o` Co-authored-by: Leandro Boscariol <[email protected]>
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.
It would have been nice to split this one in two:
- Update to SDK 1.0.0
- Add Goerli
No need to do it now, but the reason is:
- Makes it easier to review, only Goerli changes here. So better reviews, give more code assurance
- The PR would be easily serve as documentation on how to add a new network. We will soon need to add other networks, so it's nice to have some reference PRs for it
I had an issue testing this, not sure if I did it right. It's probably related to the issue of the indexing of the backend?
I tried to trade in Goerli using barn, but we weren't able to find the order:
https://pr170--explorer.review.gnosisdev.com/goerli/search/0x3251328616d152ecd178850af413eff15bb284b29b143d9cebe9f7870b8ce5d979063d9173c09887d536924e2f6eadbabac099f562f3829f/
Last question, why there's no volumes in the top traded tokens?
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.
Looks good, and I can see orders now!
But, it looks like the appData section in the order details broke in this PR https://pr170--explorer.review.gnosisdev.com/goerli/orders/0x125ba4899f3283620f14fff030920524c67f57dd1c9a7c53bfbcc2c5d0ef79f15b0abe214ab7875562adee331deff0fe1912fe4262f385a1
It looks fine on dev, so probably something with the API changes
Hey @henrypalacios , @ramirotw , nice PR! Some issues:
So I also noticed, that BARN and PROD APIs are mixed up in this PR: I see orders from Prod in users' details page in Dev explorer, and do not see orders from Dev and Barn there
Thanks! |
Changes included in PR #182 |
Summary
Closes #136
cow-sdk
library)/goerli
/goerli
suffixes such as:/search
,/address
,/orders
,/tx