Skip to content

Conversation

@jayantk
Copy link
Contributor

@jayantk jayantk commented Jun 9, 2023

This is a quick refactor to make this code a little easier to work with before I go about adding more functionality. The code right now instantiates a bunch of parameters in several different places (e.g., the SquadsMesh), which are needed to call proposeInstructions. This change makes a class to hold all of these parameters so we can instantiate them all one time instead of repeating the code.

I suggest looking at propose.ts first. The other changes are pretty mechanical.

@vercel
Copy link

vercel bot commented Jun 9, 2023

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

Name Status Preview Comments Updated (UTC)
xc-admin-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2023 4:30pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
example-oracle-amm ⬜️ Ignored (Inspect) Jun 13, 2023 4:30pm

const msAccount = await this.getMultisigAccount();
const newProposals = [];

const remote = targetCluster === undefined || targetCluster != this.cluster;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it should default to local if targetCluster is undefined

Copy link
Contributor

@guibescos guibescos left a comment

Choose a reason for hiding this comment

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

LGTM, I tested on devnet and pythtest-crosschain. Please address comment

return WORMHOLE_ADDRESS[this.cluster];
}

// TODO: does this need a cluster argument?
Copy link
Contributor

Choose a reason for hiding this comment

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

Why would it need a cluster argument

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.

3 participants