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

Implement Update Refunder during Deployment #854

Draft
wants to merge 1 commit into
base: musitdev/e2e_mvt_eth_happy_path
Choose a base branch
from

Conversation

Primata
Copy link
Contributor

@Primata Primata commented Nov 13, 2024

Summary

  • RFCs: Link to RFC, Link to RFC, or $\emptyset$.
  • Categories: any of protocol-units, networks, scripts, util, cicd, or misc.

This is a dependency of movementlabsxyz/aptos-core#98 which requires the deploy.rs to also change the refunder role to the same current address which is able to perform refunds. This future proofs changing the refunder and splitting concerns. This helps safe guard the relayer (bridge_operator) private key.

Changelog

Adds a call to update_refunder on atomic_bridge_configuration

Testing

Dependent on base tests.

Outstanding issues

"--compiled-script-path",
"protocol-units/bridge/move-modules/build/bridge-modules/bytecode_scripts/update_refunder.mv",
"--args",
"address:0xf90391c81027f03cdea491ed8b36ffaced26b6df208a9b569e5baf2590eb9b16",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this guaranteed to work?

Copy link
Collaborator

@l-monninger l-monninger Nov 14, 2024

Choose a reason for hiding this comment

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

Why can you hardcode an address here? Are we always using the same one in local development?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's hardcoded, just mimicked the current relayer one. I suspect that for mainnet we would set a new one.

@0xmovses 0xmovses marked this pull request as draft November 20, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants