Skip to content

Rewrite Fee Calculation in sidecar (Potentially phase out of @substrate/calc) #935

@TarikGul

Description

@TarikGul

Given: paritytech/substrate#11415 WeightToFee, and LengthToFee will no longer be available. It is a breaking change that is moving users to leverage the rpc methods for calculating fee's. The obstacle here being we must make sure that we maintain historical integrity for fee calculation.

Potential solution A: This will require porting over all partial fee logic to it's own historical module, that will deal with runtime less than X. Then use the latest rpc methods for calculating all fees for runtime's greater than or equal to X.

Potential solution B: Use the rpc...queryInfo to calculate partialFee for all runtime past and present. (Not sure on the full capabilities of this, but research will be necessary).

Metadata

Metadata

Assignees

Labels

P2 - ASAPGet fixed ASAPQ5 - HardRequires deep knowledge of Substrate

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions