Skip to content
Unverified Commit f5b84277 authored by Dan Forbes's avatar Dan Forbes Committed by GitHub
Browse files

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: default avatarAmaury Martiny <[email protected]>
Co-authored-by: default avatarAlexander Theißen <[email protected]>
parent dc59662f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment