scs / substrate-api-client

Library for connecting to substrate API over WebSockets
Apache License 2.0
260 stars 122 forks source link

generic compose_extrinsic() function #4

Closed brenzi closed 5 years ago

brenzi commented 5 years ago

The current version of this library can't compose extrinsics for custom runtimes because there's a dependency clash between custom node_runtime and substrate master node_runtime.

This should be solvable along these lines:

in addition to generic extrinsics, we should provide very common extrinsic types with easy function calls, probably wrapping the dispatch of the call as well:

write an example for how to compose an extrinsic for a custom runtime module using Gav's Demo: https://substrate.dev/docs/en/tutorials/creating-your-first-substrate-chain#step-6-interacting-with-our-new-module

clangenb commented 5 years ago

as well offer the option to use Sr25519 or Ed25519 keys

clangenb commented 5 years ago

Upgrade chain runtime has not been integrated. Rest has been implemented