Skip to content

ca-step 2: add unified network and make it the default - #17

Open
felimadu wants to merge 1 commit into
step-1/update-orby-config-and-enable-ca-at-startupfrom
step-2/introduce-unified-network-selection
Open

ca-step 2: add unified network and make it the default#17
felimadu wants to merge 1 commit into
step-1/update-orby-config-and-enable-ca-at-startupfrom
step-2/introduce-unified-network-selection

Conversation

@felimadu

@felimadu felimadu commented Jul 22, 2025

Copy link
Copy Markdown
Member

This PR is part of the steps to add Orby chain abstraction on the Zerion Chrome Extension. The same steps and similar code can be used on other Chrome Extension wallets.

[✅] Step 0 PR(#15): Setup feature flags

  • create a remotely configurable feature flag called chain_abstraction_enabled. we will use this feature flag to gate access to the chain abstraction as we do progressive rollout of the feature.
    Zerion uses firebase but you can feature flag system of your choice such as launch darkly

[✅] Step 1 PR(#16): Update Update OrbyConfig to include the other VM accounts and update signing of operations

  • get all the addresses and accounts that you want to include together. For this Zerion example, we want to include all the accounts that are part of the same wallet group. That means account that are derived from the same mnemonic are grouped together regardless of the VM that they are part of. Specifically, Zerion supports both EVM and SVM, so we will have chain abstraction and unified balances on the SVM and EVM
  • update the signing operations to fetch a signer based on the address that the operation is from
  • use the feature flag from step 0 to turn on chain abstraction on Orby. When the feature flag is on, turn on chain abstraction on Orby for the user

Testing: At this point, we should have chain abstraction enabled for the accounts we set in the OrbyConfig

[👉] Step 2: Introduce unified network and make it default
We want to separate the chain that the connected app is on from the chain / view that the user is on. To do that, we introduce the notion of selectedChain in the app preferences. This value can be updated/changed by the user and it is set to NetworkSelectValue.Unified by default. When an app ask for a chain switch, we update the selectedChain iff its current value is not NetworkSelectValue.Unified.

Not, we do not seek to remove all the chains and allow user to be able to select All Networks and separate networks because we want to allow the option for users to see a particular view they want. Here is now the wallet looks with these changes:
Screenshot 2025-07-22 at 11 57 52

Screenshot 2025-07-22 at 11 58 09 Screenshot 2025-07-22 at 11 58 27

@felimadu felimadu changed the title step 2: add unified network and make it the default ca-step 2: add unified network and make it the default Jul 22, 2025
@felimadu
felimadu force-pushed the step-1/update-orby-config-and-enable-ca-at-startup branch from 3a341b9 to 334ae14 Compare July 23, 2025 05:09
@felimadu
felimadu force-pushed the step-2/introduce-unified-network-selection branch from 78be4c8 to 9ee10f7 Compare July 23, 2025 05:22
@github-actions

github-actions Bot commented Jul 23, 2025

Copy link
Copy Markdown

📦 build.zip [updated at Aug 15, 7:34:33 PM UTC]

@felimadu
felimadu force-pushed the step-1/update-orby-config-and-enable-ca-at-startup branch from 334ae14 to 1cc417d Compare August 15, 2025 19:31
@felimadu
felimadu force-pushed the step-2/introduce-unified-network-selection branch from 9ee10f7 to 8ac001d Compare August 15, 2025 19:32
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.

1 participant