This repository was archived by the owner on Sep 7, 2023. It is now read-only.
[Don't Merge] Transfer profile and their connections from one wallet to another.#7
Draft
abishekk92 wants to merge 2 commits intomasterfrom
Draft
[Don't Merge] Transfer profile and their connections from one wallet to another.#7abishekk92 wants to merge 2 commits intomasterfrom
abishekk92 wants to merge 2 commits intomasterfrom
Conversation
7b9fd94 to
39e5cb5
Compare
We already had the ability to transfer profile from one wallet to another. However, our existing schema doesn't render the connections protable. Perhaps, time we made it portable.
Here is how we are going to do it.
1. Create CBox
2. Create a connection and set authority to CBox. (authority can no longer be a signer, upon
closing a connection the rent deposit should go back to the owner of the cbox)
3. For existing connections, migrate connection from user authority to connection box
4. Whenever a user wants to migrate their profile next, they should be able to do so by
changing the authority of the profile and then of the connection box.
5. Existing users should intialize a connection box.
6. Move their existing connections in the following way.
1. Initialize a connection box if it doesn't exist.
2. Close the current connection account
3. Create a new connection account with the right connection box.
4. Preferably do all of this in a single ix so that multiple connections can be batched in
a tx.
39e5cb5 to
b4e8e41
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We already had the ability to transfer profile from one wallet to another. However, our existing schema doesn't render the connections protable. Perhaps, time we made it portable.
Here is how we are going to do it.
closing a connection the rent deposit should go back to the owner of the cbox)
changing the authority of the profile and then of the connection box.
a tx.