Hey @niklasp, thank you for your supports and for the questions.
Just to clarify, my critisism in the announcement is about the legacy Polkadot.js API (@polkadot/api), not the new Polkadot-API (PAPI).
Adding descriptors for any local node with whatever pallets is as easy as
pnpm papi add <any name> -w ws://127.0.0.1:9944
. How could that be done in dedot?
In Dedot, we don’t have descriptors, we use a concept called ChainApi which is purely a Typescript Generic Interface for a particular chain that can be plugged into the clients to expose all on-chain interactions (constants, query, runtime apis, tx…) for that chain.
You can generate this ChainApi
interface for any PolkadotSDK-based chains using dedot
cli by running: npx dedot chaintypes -w ws://127.0.0.1:9944
More information about this can be found in:
For working with ink! smart contracts and papi there is the papi ink! sdk.
Dedot also supports fully-typed API to interact with ink! smart contracts, similarly you can generate ContractApi interface for any contracts using its metadata and interact with fully-typed contract messages, transactions with confidence.
We also have Typink, a comprehensive toolkit for ink! dapps including: Fully typesafe React hooks to interact with ink! contracts, CLI to generate starter project with option to choose your favorite wallet connector solution (SubWallet’s Sub Connect, Talisman Connect, …)
More information can be found in:
- Dedot Docs
- Typink Docs
- Type-safe APIs to interact with ink! Smart Contracts | Dedot
- Introducing Typink - Typesafe React hooks for seamless ink! smart contract interactions
have you seen the papi whitelist feature that allows to define which types of queries / calls should be bundled and therefor decrease package size?
This is an interesting feature from papi. But when using Dedot, you don’t have to worry about this issue, since ChainApi or ContractApi is purely Typescript interface, so there is no impact on final dapps bundle-size.
Let me know if you have any questions/feedback when trying out Dedot or Typink for the integration, I’m happy to assist along the way, please DM me on TG @realsinzii or drop your questions on Dedot Telegram Group.