Skip to content

feat: oracle bridge upgrade on admin networks #4817

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Reinis-FRP
Copy link
Contributor

Motivation

The Oracle bridge contract upgrade from #4816 should be rolled out also to admin controlled networks.

Summary

Updates contract deployment address and scripts for generating and verifying multisig payload for upgrading Oracle bridging contracts on admin controlled networks.

Testing

Check a box to describe how you tested these changes and list the steps for reviewers to test.

  • Ran end-to-end test, running the code as in production
  • New unit tests created
  • Existing tests adequate, no new tests required
  • All existing tests pass
  • Untested

Issue(s)

Fixes #XXXX

},
"devDependencies": {
"ts-node": "^10.9.2",
"typescript": "^5.8.3"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@safe-global/types-kit was not compatible with older typescipt from the root of the workspace.

(e) =>
e.returnValues.calls ===
[{ to: contractsByNetId[network.chainId].registry.options.address, data: registerContractData }]
const relayedRegisterContractEvent = relayedTransactions.find((e) =>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The newer typescript version errored to build this as it does not allow comparison of object references

data: BytesLike;
}[] = [];
const changeImplementationAddressTx = await finder.populateTransaction.changeImplementationAddress(
ethersUtils.formatBytes32String("Oracle"),
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: use interfaceName.Oracle from

const { interfaceName } = require("@uma/common");

Copy link
Contributor Author

Choose a reason for hiding this comment

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

totally forgot we had it, will fix

Copy link
Contributor

@md0x md0x left a comment

Choose a reason for hiding this comment

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

LGTM!

Signed-off-by: Reinis Martinsons <[email protected]>
Signed-off-by: Reinis Martinsons <[email protected]>
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