Skip to content

Conversation

@Reisen
Copy link
Contributor

@Reisen Reisen commented Jun 15, 2023

The code currently relies on reading GuardianSet state updates from Ethereum, this PR switches that to relying on reading GuardianSet accounts from Wormhole deployed on PythNet. We should be safe to do this as Wormhole upgrade all other target chain contracts before Ethereum, so we will not run into a situation where we receive VAA's that are signed by keys we have not yet seen.

@Reisen Reisen requested review from ali-behjati and jayantk June 15, 2023 16:06
@vercel
Copy link

vercel bot commented Jun 15, 2023

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) Jun 16, 2023 1:06pm
xc-admin-frontend ⬜️ Ignored (Inspect) Jun 16, 2023 1:06pm

@Reisen Reisen force-pushed the reisen/hermes-pythnet-guardiansets branch 2 times, most recently from 9443650 to 08e5c5f Compare June 15, 2023 16:12
pub storage: StorageInstance,
pub observed_vaa_seqs: Cache<u64, bool>,
pub guardian_set: RwLock<Option<Vec<GuardianAddress>>>,
pub guardian_set: RwLock<BTreeMap<u32, Vec<[u8; 20]>>>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe use GuardianSet here too?

Copy link
Contributor

@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.

nice

@Reisen Reisen force-pushed the reisen/hermes-pythnet-guardiansets branch from 08e5c5f to af696ac Compare June 16, 2023 12:51
@Reisen Reisen force-pushed the reisen/hermes-pythnet-guardiansets branch from af696ac to 5215031 Compare June 16, 2023 13:06
@ali-behjati ali-behjati merged commit 2b829f3 into main Jun 16, 2023
@ali-behjati ali-behjati deleted the reisen/hermes-pythnet-guardiansets branch June 16, 2023 13:48
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.

4 participants