Skip to content

Add hybrid custody support for emulator #14

@bartolomej

Description

@bartolomej

I can see that the Hybrid custody feature is disabled for the emulator network:

// {
// id: "6", label: `Acct Linking`, subItems: [
// { id: "6-0", isSubItem: true, label: "Owned Acct", smLabel: "Owned Acct", link: { pathname: "/account/[account]/hc/owned_account", query: { account: account } } },
// { id: "6-1", isSubItem: true, label: "Accts Manager", smLabel: "Accts Mgr", link: { pathname: "/account/[account]/hc/manager", query: { account: account } } },
// ]
// },

I believe that's because hybrid custody contracts aren't available (deployed) on the emulator network by default, so the scripts won't work.

I wonder if we could enable emulator support, but just make sure to handle errors appropriately (I saw that errors are currently just ignored), to let the users know why the hybrid custody doesn't work (in case they don't have that contract deployed).

Context:

We are thinking of integrating flow-view to Flowser app (likely by embedding a deployed or locally hosted version in an iframe window) to reuse existing hybrid custody features already supported in flow-view. I think the basic support would already work if we enabled hybrid custody for the emulator.

There is still a question of how to make it easy for users to setup hybrid custody contracts locally (I just spend quite some time doing that myself, so I don't think it's easy to do that now), but that can be solved separately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions