Replies: 4 comments 2 replies
-
To Current maintainers of @polkadot-api (@carlosala, @josepot):
|
Beta Was this translation helpful? Give feedback.
-
Switching KodaDot to PAPI would be a great enhancement for us in ParaSpell also. We wish to fully migrate XCM SDK to PAPI as soon as possible. But we are waiting for other projects to migrate to PAPI also, that is why we kept PJS compatibility still :). |
Beta Was this translation helpful? Give feedback.
-
The wallet connector I'm using in Multix and Delegit is https://dotconnect.dev from @tien as mentioned in my talk from Sub0. It does come with the reactive-dot dependency, but it's a small concession to make to get access to this super useful tool, and Tien's reactivity in case you have any issue is stellar! |
Beta Was this translation helpful? Give feedback.
-
Hi @vikiival, it's great to hear about this move towards the new Polkadot API. Our experience with PAPI has been very positive so far. We noticed faster responses and cleaner documentation. For example, when setting up fail-safe mechanisms for multiple WebSocket endpoints, we found no documentation for this in PJS. One thing to beware is that Papi is using named enums instead of normal JS objects, which means you’ll need to update some parts of the code. Every other thing that we had problem with the maintainers quickly solved. For now we use the non-typed version of the api since we support many chains. But we plan to migrate towards typed api soon. |
Beta Was this translation helpful? Give feedback.
-
Context
As you may know our code currently relies on
polkadot/api
package the bundle is kinda big (~1.15mb) and cause slowdown of build and app itself.The proposed alternative is to use
polkadot-api
package that is 2-times smaller (~650 kb, but some say around 50kb tree-shaken) and can additionally run in the worker, so it does not need to eat the thread ^-^.Usage in KodaDot
Currently we have rely on
api.tx.
) in 21 filesapi.queries.
) in 7 filesapi.consts.
) in 2 filesLimitations
We rely on very legacy package I wrote
@kodadot1/sub-api
, therefore we would need to adapt outuseApi
into PAPISigners, this would probably need input from my side as I have originally wrote
transactionExecutor.ts
(working stable since 2021 c08f3bf)Wallet connectors - probably @Tbaut could help us with that ❤️
Utils/formatters - most utils can be reused in first iteration from
polkadot-js/utils
or else we can unify utils with EVM stuff through @wevm OX lib.Reading
Beta Was this translation helpful? Give feedback.
All reactions