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

feat(target_chains/starknet): pyth contract upgrade #1592

Merged
merged 2 commits into from
May 22, 2024

Conversation

Riateche
Copy link
Contributor

No description provided.

Copy link

vercel bot commented May 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
example-oracle-amm ⬜️ Ignored (Inspect) Visit Preview May 22, 2024 2:37pm
xc-admin-frontend ⬜️ Ignored (Inspect) Visit Preview May 22, 2024 2:37pm

@Riateche Riateche force-pushed the starknet-pyth-upgrade branch 4 times, most recently from d551bc0 to 811d2e2 Compare May 22, 2024 12:34
@Riateche Riateche changed the title WIP: feat(target_chains/starknet): pyth contract upgrade feat(target_chains/starknet): pyth contract upgrade May 22, 2024
Copy link
Collaborator

@ali-bahjati ali-bahjati left a comment

Choose a reason for hiding this comment

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

Nice! Can you explain somewhere how the upgrade works? Based on your code I see that we need to have a vaa of the class-hash of the new contract. I can assume that there should be a method to upload the contract and it will be accessible by its hash (which is smart compared to other networks!)

@Riateche
Copy link
Contributor Author

I've added a comment. Yes, the new contract class must be declared in advance. Anyone who has the compiled contract artifact can declare it (but only once per network), and the class hash uniquely identifies all properties of the implementation.

@Riateche Riateche merged commit 5f3188a into main May 22, 2024
6 checks passed
@Riateche Riateche deleted the starknet-pyth-upgrade branch May 22, 2024 15:05
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