The rpc methods (showing in rpc_methods), are still not showing in their own area, after (attempting to) decorate the rpc.
I have custom rpc on a substrate template.
Here are the rpc_methods:
I have manually described the methods in apps-config/src/api/spec/supersig.ts
import type { OverrideBundleDefinition } from '@polkadot/types/types';
export default {
rpc: {
superSig: {
getProposalState: {
description: 'Get the proposal state',
params: [
{
name: 'supersig_id',
type: 'AccountId'
},
{
name: 'call_id',
type: 'CallId',
}
],
type: 'Result<(ProposalState<AccountId>, u32), DispatchError>'
},
get_user_supersigs: {
description: 'Get supersigs associated to the user.',
params: [
{
name: 'user_account',
type: 'AccountId'
},
],
type: 'Vec<SupersigId>'
},
list_members: {
description: 'List members of the supersig',
params: [
{
name: 'supersig_id',
type: 'AccountId'
}
],
type: 'Vec<(AccountId, Role)'
},
list_proposals: {
description: 'List proposals associated to a supersig',
params: [
{
name: 'supersig_id',
type: 'AccountId'
}
],
type: 'Result<(Vec<ProposalState<AccountId>>, u32), DispatchError>'
},
},
},
} as OverrideBundleDefinition;
I then renamed my local custom node-template, and then launched it using this command:
./target/release/node-template --chain="./supersig-raw.json" --alice --rpc-cors all --rpc-methods=unsafe
I named the chain to "supersig" and id: supersig in theh chain-spec,
and added the chain to a local hosted polkadot-js/apps (this branch):
However, the rpc methods are still not showing in their own area, which I attempted to decorate.
- Could you provide some guidance for what i am missing?
type: 'Result<(Vec<ProposalState<AccountId>>, u32), DispatchError>'
is that a correct way to create the return type in the rpc module?