Skip to content
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

AddProduct creates the Product metadata #67

Merged
merged 3 commits into from
Feb 13, 2023

Conversation

guibescos
Copy link
Contributor

@guibescos guibescos commented Feb 13, 2023

Currently you have to to AddProduct and UpdProduct to set up a product, which is awkward.
This was fixed onchain in pyth-network/pyth-client#332
This is the corresponding js update.

}

} else {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Drive by format

@@ -9,7 +9,7 @@ const pythPublicKey = getPythProgramKeyForCluster(PYTHNET_CLUSTER_NAME)
// This example shows Crypto.SOL/USD
const feeds = [new PublicKey('H6ARHf6YXhGYeQfUzQNGk6rDNnLBQKrenN712K4AQJEG')]

const pythConnection = new PythConnection(connection, pythPublicKey, "confirmed", feeds)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Drive by formatting

@guibescos guibescos changed the title Add all files AddProduct creates the Product metadata Feb 13, 2023
@guibescos guibescos marked this pull request as ready for review February 13, 2023 14:48
Copy link
Contributor

@cctdaniel cctdaniel left a comment

Choose a reason for hiding this comment

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

🚢

@guibescos guibescos merged commit 174e708 into main Feb 13, 2023
@guibescos guibescos deleted the guibescos/add-product-sets-metadata branch February 13, 2023 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants