-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: update timelock conversion logic to manage predecessors per chain instead of globally #279
Conversation
…n selector instead of a global list of predecessors.
🦋 Changeset detectedLatest commit: 4b63200 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…y which chainID the predecessor is from.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a changeset but other than that, looks good!
chainMetadata.MCMAddress, | ||
t.proposal.Delay, | ||
t.proposal.Action, | ||
t.predecessors[opIdx], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot: this might panic -- specially problematic since GetOpID
is public, for now.
But maybe we'll get rid of this method soon. The PR is approved so, feel free to merge as is if you're not concerned.
|
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @smartcontractkit/[email protected] ### Minor Changes - [#276](#276) [`27b77d5`](27b77d5) Thanks [@akhilchainani](https://github.com/akhilchainani)! - Update constructors to add predecessor proposals for queuing - [#254](#254) [`aad56bd`](aad56bd) Thanks [@gustavogama-cll](https://github.com/gustavogama-cll)! - feat(solana): add setRoot simulator - [#279](#279) [`3287f3c`](3287f3c) Thanks [@ecPablo](https://github.com/ecPablo)! - Fix bug with multichain timelock execution with predecessors calculation ### Patch Changes - [#274](#274) [`28d52c3`](28d52c3) Thanks [@graham-chainlink](https://github.com/graham-chainlink)! - fix(solana): fix simulator side effect bug Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com>
This pull request includes significant updates and additions to the
timelock_executable.go
and related test files to enhance functionality and improve test coverage. The key changes include the introduction of new methods for operation ID retrieval and chain-specific indexing, as well as updates to existing tests to accommodate these changes.Enhancements to
timelock_executable.go
:GetOpID
method toTimelockExecutable
for retrieving operation IDs.GetChainSpecificIndex
method toTimelockExecutable
to determine the index of an operation within a specific chain.Updates to Tests:
Test_TimelockConverter
to adjust the expected predecessors in assertions. [1] [2] [3]scheduleAndExecuteGrantRolesProposal
to use the newGetOpID
method and validate operation completion. [1] [2]Test_TimelockExecutable_GetChainSpecificIndex
to verify the chain-specific indexing functionality.Improvements to
timelock_proposal.go
:Convert
method inTimelockProposal
to streamline predecessor handling and chain metadata conversion. [1] [2]Test Enhancements:
Test_TimelockProposal_Convert
to include additional chain selectors and transactions, ensuring comprehensive validation of the conversion process. [1] [2] [3]