substrate-api-client icon indicating copy to clipboard operation
substrate-api-client copied to clipboard

Split `extrinsic_params` file

Open haerdib opened this issue 8 months ago • 0 comments

PR https://github.com/scs/substrate-api-client/pull/828 shows quite well which structs are needed for a self defined ExtrinsicParams feature. In the extrinsic_params file however, this is not visible as Traits and implementations are quite mixed.

Suggestion: Split the file into:

  • Traits
  • Helper Implementation that are needed (maybe that makes sense to keep together with the Traits)
  • Specific Node implementation. In our case it's Generic, but it's actually still just compatible with the "newest" node, though the types are generic and not hardcoded.

haerdib avatar Jan 31 '25 16:01 haerdib