Skip to content
This repository was archived by the owner on Sep 7, 2023. It is now read-only.

Conversation

@abishekk92
Copy link
Contributor

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.

@abishekk92 abishekk92 force-pushed the profile_transfer branch 2 times, most recently from 7b9fd94 to 39e5cb5 Compare August 12, 2022 15:48
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.
@abishekk92 abishekk92 self-assigned this Oct 16, 2022
@abishekk92 abishekk92 marked this pull request as draft October 16, 2022 13:18
@abishekk92 abishekk92 changed the title Transfer profile and their connections from one wallet to another. [Don't Merge] Transfer profile and their connections from one wallet to another. Oct 16, 2022
@abishekk92 abishekk92 mentioned this pull request Dec 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants