-
Notifications
You must be signed in to change notification settings - Fork 13
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
[SWA-134][IMPROVEMENT] - Fix CoW Trade type errors #335
[SWA-134][IMPROVEMENT] - Fix CoW Trade type errors #335
Conversation
… from ethers to enable treeshaking
…ate CoW SDK types
This reverts commit 497a787.
enum CowChainId { | ||
MAINNET = 1, | ||
RINKEBY = 4, | ||
GOERLI = 5, | ||
GNOSIS = 100, | ||
SEPOLIA = 11155111, | ||
} |
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.
Is it possible to import this values?
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.
Yes! Already did it! Also added Sepolia to our ChainID constant
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.
Sorry, I was to vague. Import this values from cow-sdk. They must have their own ChaindId on the SDK
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.
As we talked offline:
We will keep the current version of the code as CoW SDK provides a ChainID enum that lacks some of the chain IDs needed for this use case.
* improv(SWA-134): install prettier and run the linter with fixes * improv(SWA-134): ran linter in new Swapr V3 files, change import path from ethers to enable treeshaking * improv(SWA-134): remove unneeded linter disables, update imports, update CoW SDK types * chore(SWA-134): PR comment to abstract numbers into ChainId
* improv(SWA-134): install prettier and run the linter with fixes * improv(SWA-134): ran linter in new Swapr V3 files, change import path from ethers to enable treeshaking * improv(SWA-134): remove unneeded linter disables, update imports, update CoW SDK types * chore(SWA-134): PR comment to abstract numbers into ChainId
Fixes: SWA-134
Description