Multix icon indicating copy to clipboard operation
Multix copied to clipboard

Add Hyperbridge Nexus

Open Wizdave97 opened this issue 1 year ago • 7 comments

We want multix to support hyperbridge nexus.

What are the requirements for the indexer?

Wizdave97 avatar Nov 29 '24 15:11 Wizdave97

Hi, by requirement, you mean what needs to be done? If you want to run your own indexer, everything should be document here: https://github.com/ChainSafe/Multix/tree/main/squid You can then let us know what's the url so that we add it to the main UI. Otherwise we can check to add it to our current indexers on the Subsquid hosted instance

Tbaut avatar Nov 29 '24 15:11 Tbaut

We don't want to run an indexer currently, we would like you to add it to your indexer.

RPC urls wss://nexus.dotters.network, wss://nexus.ibp.network

Also, hyperbridge runtime uses keccak hashing, can't find where to supply the type bundles to the indexer in the code.

Wizdave97 avatar Nov 29 '24 15:11 Wizdave97

Keccak may be a compatibility issue, I have no idea tbh. Are multisigs working on polkadot-js/apps, or what part of the integration could be tricky in your opinion? Multix hasn't been funded for many months, and few significant update have been made so far because of this. If Keccak doesn't bring any issue, we can add it and get funding from the treasury later for the infra.

Tbaut avatar Nov 29 '24 17:11 Tbaut

We already added support for keccak in polkadotjs, we just need a way to configure the ApiPromise for the indexer.

To support hyperbridge, we need to initialize the ApiPromise with the type bundles like

typesBundle: {
      spec: {
        nexus: {
          hasher: keccakAsU8a,
        },
      },
    },

Wizdave97 avatar Nov 29 '24 17:11 Wizdave97

ok so we're talking about some speficicities I don't have the bandwith to go into. Also you can assume Multix in using papi right now, I don't merge #559 right now before a week-end, but it'll be done on Monday.

Tbaut avatar Nov 29 '24 17:11 Tbaut

Also there are 2 things, the UI (with papi), and the indexer. The indexer is subsquid, do you know if it's compatible with your chain at all, or if it needs to tweaks too?

Tbaut avatar Nov 29 '24 17:11 Tbaut

I'll check if subsquid is compatible, subquery works, so I believe subsquid should work also

Wizdave97 avatar Nov 29 '24 22:11 Wizdave97