Skip to content

enhance aptos inspector#658

Merged
FelixFan1992 merged 12 commits intomainfrom
enhance-aptos-inspector
Mar 9, 2026
Merged

enhance aptos inspector#658
FelixFan1992 merged 12 commits intomainfrom
enhance-aptos-inspector

Conversation

@FelixFan1992
Copy link
Contributor

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Mar 5, 2026

🦋 Changeset detected

Latest commit: d7e5d1b

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 Patch

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

func NewInspector(client aptos.AptosRpcClient, role TimelockRole) *Inspector {
// NewInspector creates an Inspector. When isCurseMCMS is true the Inspector
// talks to a CurseMCMS contract; when false it talks to a standard MCMS contract.
func NewInspector(client aptos.AptosRpcClient, role TimelockRole, isCurseMCMS bool) *Inspector {
Copy link
Contributor

Choose a reason for hiding this comment

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

i believe we can try not to break this interface, by introducing functional option pattern, and pass isCurseMCMS as an option. Then we dont have to update many places with false as the 3rd param

@FelixFan1992 FelixFan1992 requested a review from ecPablo March 6, 2026 18:06
ecPablo
ecPablo previously approved these changes Mar 6, 2026
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.

I'm approving with the caveat of the product specific logic just to unblock
But I'd check this with @friedemannf or other folks from the aptos team

// given chain selector has package_name == "curse_mcms" in its additional
// fields. This is a reliable self-describing signal already present in every
// CurseMCMS proposal.
func IsCurseMCMSFromOperations(ops []types.BatchOperation, cs types.ChainSelector) bool {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure if its the best idea to get ccip specific logic in this package? Is there a way to provide this in a more generic way via a string o similar or let the client logic handle this?

@cl-sonarqube-production
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
43.8% Coverage on New Code (required ≥ 75%)

See analysis details on SonarQube

}

func NewExecutor(client aptos.AptosRpcClient, auth aptos.TransactionSigner, encoder *Encoder, role TimelockRole) *Executor {
func NewExecutor(client aptos.AptosRpcClient, auth aptos.TransactionSigner, encoder *Encoder, role TimelockRole, mcmsType MCMSType) *Executor {
Copy link
Contributor

Choose a reason for hiding this comment

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

this needs to be an optional argument, else you'll break the public interface

@FelixFan1992 FelixFan1992 added this pull request to the merge queue Mar 9, 2026
Merged via the queue into main with commit f3650e8 Mar 9, 2026
17 of 18 checks passed
@FelixFan1992 FelixFan1992 deleted the enhance-aptos-inspector branch March 9, 2026 21:06
FelixFan1992 pushed a commit that referenced this pull request Mar 9, 2026
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.36.4

### Patch Changes

- [#650](#650)
[`c037579`](c037579)
Thanks [@ecPablo](https://github.com/ecPablo)! - fix garbage characters
getting printed in the derivation path during ledger signing

- [#663](#663)
[`279dae9`](279dae9)
Thanks [@FelixFan1992](https://github.com/FelixFan1992)! - make executor
interface backwards compatible

- [#658](#658)
[`f3650e8`](f3650e8)
Thanks [@FelixFan1992](https://github.com/FelixFan1992)! - enhance the
aptos mcms inspector with different mcms (regular and curse)

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.

4 participants