stakelink / substrate-payctl

Simple command line application to control the payouts of Substrate validators (Polkadot and Kusama among others).
MIT License
32 stars 8 forks source link

Error: Unsupported type registry preset #4

Closed iicc1 closed 3 years ago

iicc1 commented 3 years ago

Hello,

I have used this tool with Kusama and works fine, but I have tried to use it with Stafi, a Substrate based blockchain, and payctl throws this error when I list or claim rewards:

payctl -c stafi_payouts.conf list
...
   raise ValueError(f'Unsupported type registry preset "{name}"')
ValueError: Unsupported type registry preset "stafi"

This is my config file:

[Defaults]
RPCURL = wss://mainnet-rpc.stafi.io/
Network = stafi
...

Maybe the issue is that Stafi uses custom types? In that case, the tool config would need to specify a custom type registry JSON.

Many thanks for the great tool!

apuigsech commented 3 years ago

I have tested payctl on Kusama an Polkadot. I thought it should be compatible with any Substrate network with the Staking module but it seems it may not be.

I will investigate a bit on this issue, but it's on my lowest priority.

apuigsech commented 3 years ago

Can you try again using the last substrateinterface version?

iicc1 commented 3 years ago

Can you try again using the last substrateinterface version?

How can I update substrateinterface? Does it get updated if I reinstall Payctl?

apuigsech commented 3 years ago

Best way to update a python package is;

sudo pip install --upgrade [package_name]

apuigsech commented 3 years ago

Fixed in #12.