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

docs: add transfer ownership guides for ma v2 #1400

Open
wants to merge 1 commit into
base: howy/add-session-key-docs
Choose a base branch
from

Conversation

howydev
Copy link
Collaborator

@howydev howydev commented Feb 28, 2025

Pull Request Checklist


PR-Codex overview

This PR introduces a new section in the sidebar for "Managing ownership" related to Modular Account V2. It adds documentation on how to manage ownership, specifically transferring ownership and adding a new owner using the updateFallbackSignerData function.

Detailed summary

  • Added a new sidebar entry for "Managing ownership" in site/sidebar/smart-contracts.ts.
  • Created a new documentation file managing-ownership.mdx with:
    • Title and description for managing ownership.
    • Explanation of ownership transfer using updateFallbackSignerData.
    • Code example demonstrating the transfer of ownership.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Feb 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-sdk-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2025 4:56pm
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2025 4:56pm

Copy link

graphite-app bot commented Feb 28, 2025

How to use the Graphite Merge Queue

Add the label graphite-merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

Copy link
Collaborator

@adamegyed adamegyed left a comment

Choose a reason for hiding this comment

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

It looks like this PR should point to howy/add-session-key-docs as a base branch


const newOwner = "0xd8da6bf26964af9d7eed9e03e53415d37aa96045";

// The boolean parameter in updateFallbackSignerData indicates that the 1st owner is no longer an owner of the account
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't the boolean for setting whether or not the fallback signer (SMA logic) is disabled?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah it is, but wanted to simplify/abstract the idea of a fallback signer, but that might not be possible

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

changing to add it back

@howydev howydev changed the base branch from main to howy/add-session-key-docs February 28, 2025 23:14
@howydev howydev requested a review from adamegyed February 28, 2025 23:20
description: Managing ownership on your Modular Account V2
---

# Managing Ownership
Copy link
Member

Choose a reason for hiding this comment

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

This makes sense to me, but reading this as someone who didn't know how to do this already left me
wondering if I could call updateFallbackSignerData with some address, then call it again with an additional address, will it keep adding additional owners?

I looked at the contract code and saw that there is only a single fallback signer address, so calling it additional times will just update/replace it. But might be good to mention that here?

Also it's a little unclear to me whether calling this is transferring ownership (removing the original owner) or if the "fallback signer" is a separate thing that is just for an additional signer.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good callout, updated to make it more clear!


# Managing Ownership

You can add an owner to your account, or transfer ownership of your account with Modular Account V2. Adding an owner has the same flow as adding a session key with no root permissions.
Copy link
Member

Choose a reason for hiding this comment

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

If the below example transfers ownership (i.e. replaces the original owner), relating to my previous comment, I think it might make sense to not talk about being able to add an owner here above the example. Maybe it should go below the example like "If you want to add an additional owner without removing the original owner, you can do so by using session keys. (link to example)"

Copy link
Member

@jakehobbs jakehobbs left a comment

Choose a reason for hiding this comment

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

lgtm

@howydev howydev force-pushed the howy/add-session-key-docs branch 2 times, most recently from 05ea0ba to 46fe28a Compare March 4, 2025 16:39
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.

3 participants