Update fee calculation logic (#50)
* Update fee calculation logic * Address code review by @athei and @amaurymartiny * Do not pull raw/parsed extrinsics into separate variables * Remove Address and LookupSource types per @amaurymartiny * Bump Polkadot JS deps and remove WeightToFeeCoefficient type * Use variables consistently * Clean up diff * Update lockfile, formatting changes * Update fee calculation logic * Rename variables, better comments (#54) * Upgraded to latest polkadot API release * Fixes for weight calculation Not yet functional. Some rounding differences are still present. * Calculate extrinsic fees in rust This also removes the contraint that only one term of the weight to fee polynomial is used. * Fix CI * Reproduce fixed128 bug that was deployed to polkadot v0. * Support kusama without queryInfo * Do not fail the whole request when runtime is not supported * Do not send per block parameters for every extrinsic to wasm * Install wasm-pack through node * Remove no longer needed bn.js dependency * Revert "Install wasm-pack through node" This reverts commit d0986729 . Co-authored-by: Amaury Martiny <[email protected]> Co-authored-by: Alexander Theißen <[email protected]>
parent
dc59662f
Please register or sign in to comment