Skip to content

Conversation

@gustavogama-cll
Copy link
Contributor

@gustavogama-cll gustavogama-cll commented Aug 26, 2025

DX-1499

@changeset-bot
Copy link

changeset-bot bot commented Aug 26, 2025

🦋 Changeset detected

Latest commit: 16c817b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@smartcontractkit/mcms Minor

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

@gustavogama-cll gustavogama-cll force-pushed the ggama/feat-timelockproposal-merge branch from 92da715 to bdd173c Compare August 26, 2025 02:23
}

return ChainMetadata{
StartingOpCount: min(m.StartingOpCount, other.StartingOpCount),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's not clear to me if we should reject merging a proposal if m.StartingOpCount != (other.StartingOpCount + m.TxCount).

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd say we should be able to merge them, as long as the opcount on chain does not change. We can reset the opcount to the on chain value and add the txsCounts in both proposals ignoring whatever was there in the first place?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok. Let's go with the min() logic, for now. But I don't think we should handle opcounts in the Merge method -- we have dedicated logic to handle that elsewhere.

@gustavogama-cll gustavogama-cll marked this pull request as ready for review August 26, 2025 03:29
@gustavogama-cll gustavogama-cll requested a review from a team as a code owner August 26, 2025 03:29
@gustavogama-cll gustavogama-cll requested review from ChrisAmora and removed request for skudasov August 26, 2025 03:29
ecPablo
ecPablo previously approved these changes Aug 26, 2025
Copy link
Collaborator

@ecPablo ecPablo left a comment

Choose a reason for hiding this comment

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

LGTM! small nit comments but looks great overall

}

return ChainMetadata{
StartingOpCount: min(m.StartingOpCount, other.StartingOpCount),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd say we should be able to merge them, as long as the opcount on chain does not change. We can reset the opcount to the on chain value and add the txsCounts in both proposals ignoring whatever was there in the first place?

@cl-sonarqube-production
Copy link

cl-sonarqube-production bot commented Aug 27, 2025

@gustavogama-cll
Copy link
Contributor Author

addressed all comments from reviews

@gustavogama-cll gustavogama-cll added this pull request to the merge queue Aug 27, 2025
Merged via the queue into main with commit 2e56b50 Aug 27, 2025
18 checks passed
@gustavogama-cll gustavogama-cll deleted the ggama/feat-timelockproposal-merge branch August 27, 2025 14:30
github-merge-queue bot pushed a commit that referenced this pull request Aug 27, 2025
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/mcms@0.22.0

### Minor Changes

- [#441](#441)
[`fdf66b3`](fdf66b3)
Thanks [@ecPablo](https://github.com/ecPablo)! - Adds support for
getMinDelay to timelock inspectors on all supported chain families

- [#446](#446)
[`2e56b50`](2e56b50)
Thanks [@gustavogama-cll](https://github.com/gustavogama-cll)! - feat:
implement TimelockProposal.Merge()

- [#450](#450)
[`6e542cb`](6e542cb)
Thanks [@ecPablo](https://github.com/ecPablo)! - feat: add converted
operations count function

### Patch Changes

- [#449](#449)
[`8f14da3`](8f14da3)
Thanks [@ecPablo](https://github.com/ecPablo)! - fix: avoid requiring
all executors for converters generation

Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com>
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