Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Add initial version of pyth sdk js #1

Merged
merged 11 commits into from
Apr 22, 2022
Merged

Conversation

ali-bahjati
Copy link
Contributor

@ali-bahjati ali-bahjati commented Apr 19, 2022

There is no readme, to be added later.

Copy link

@jayantk jayantk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Left a couple minor comments, but overall seems fine.

One bigger question to consider is how will this SDK relate to https://github.com/pyth-network/pyth-client-js ? Are we going to deprecate one in favor of the other? Merge the two in some way? Or maybe pyth-client-js becomes pyth-solana-js or something like that?

src/index.ts Outdated Show resolved Hide resolved
src/index.ts Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/schemas/price_feed.json Show resolved Hide resolved
src/schemas/price_feed.json Show resolved Hide resolved
- Make json schema in TS to be the exact same.
- Adds toJson and moves constructor to fromJson
@ali-bahjati
Copy link
Contributor Author

One bigger question to consider is how will this SDK relate to https://github.com/pyth-network/pyth-client-js ? Are we going to deprecate one in favor of the other? Merge the two in some way? Or maybe pyth-client-js becomes pyth-solana-js or something like that?

Yes exactly, in the future that will be replaced by pyth-solana-js but it's not the priority for now 😅

src/index.ts Outdated Show resolved Hide resolved
src/__tests__/PriceFeed.test.ts Show resolved Hide resolved
src/schemas/price_feed.json Show resolved Hide resolved
src/schemas/PriceFeed.ts Outdated Show resolved Hide resolved
src/index.ts Show resolved Hide resolved
@ali-bahjati ali-bahjati marked this pull request as ready for review April 21, 2022 12:53
@ali-bahjati ali-bahjati requested a review from drozdziak1 April 21, 2022 14:28
@ali-bahjati ali-bahjati merged commit 419d58e into main Apr 22, 2022
@ali-bahjati ali-bahjati deleted the abehjati/add-sdk-initial-files branch April 22, 2022 07:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants