Currently, I am trying to add the custom RPC into the polkadot.js apps to let me send the RPC call via polkadot.js apps.
I discovered that I have to generate my type-definition with the RPC/types, a file in the apps/packages/apps-config/src/api/spec
, and set it up in the apps/packages/apps-config/src/api/spec/index.ts
.
However, there are several projects (acala.js/packages/type-definitions
, sora2-substrate-js-library/packages/type-definitions
) that define their type-definitions. After I define my type-definition like them, how could I use these files to convert to the files which the apps-config in apps can use?