-
Notifications
You must be signed in to change notification settings - Fork 54
feat: implement coincap market service (fixes #281) #286
Conversation
hey @Zerquix18 thank you for the PR! this is a great start, but i added some additional context of what needs to be done to get this working. happy with what you did with the unit tests, that's the correct way to go about it. the main thing is implementing the coincap caip adapter so we know how to talk to coincap correctly. unless @natven can confirm the ids are identical this won't work. in the case that they are, we should at least document it. also, you'll need to lowercase your PR title, then push up a new commit. we use the angular preset for conventional commits https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular i think you can do |
Hi @0xdef1cafe The only thing I didn't quite understand was the commit title. Do I have to change the commit history and submit a new PR? |
hey - no need for a new PR. if you just change the title to
and push any commit (which you will with your changes) it'll work fine :) looking forward to seeing the changes |
@0xdef1cafe changed the title and added the adapter for coincap. All tests are passing. |
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.
please see comments
@Zerquix18 - hey, this is looking really good, few small cleanup changes requested and we can get this merged pretty soon |
@Zerquix18 also lint is failing CI - run |
@0xdef1cafe Removed the scripts and ran the lint:fix command |
@Zerquix18 looks great, just gonna get one more approval from someone else in the team and we'll get this merged |
🎉 This PR is included in version @shapeshiftoss/caip-v1.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version @shapeshiftoss/market-service-v1.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
…hift#286) * Add coincap * add coincap adapter * remove tokenId check * readd tokenId check * remove scripts to generate marketcap data * apply linter fixes
# [@shapeshiftoss/caip-v1.7.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/caip-v1.6.1...@shapeshiftoss/caip-v1.7.0) (2021-12-17) ### Features * implement coincap market service (fixes [shapeshift#281](shapeshift#281)) ([shapeshift#286](shapeshift#286)) ([2159a00](shapeshift@2159a00))
# [@shapeshiftoss/market-service-v1.6.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/market-service-v1.5.2...@shapeshiftoss/market-service-v1.6.0) (2021-12-17) ### Features * implement coincap market service (fixes [shapeshift#281](shapeshift#281)) ([shapeshift#286](shapeshift#286)) ([2159a00](shapeshift@2159a00))
Hello. This is the implementation of the CoinCap MarketService.
It follows the interface for MarketService and contains unit tests, all should be successful.
Two things to notice:
CoinCapService
so that the mocks work. Since Coingecko is first in the list of providers, calling the functions in the parent directory causes a problem with the mocks.Tried to follow your conventions and make the code a similar to the coingecko service as possible
Let me know what you think :)