Skip to content

Commit

Permalink
Calculate extrinsic fees in rust
Browse files Browse the repository at this point in the history
This also removes the contraint that only one
term of the weight to fee polynomial is used.
  • Loading branch information
athei committed May 27, 2020
1 parent 017fc30 commit 1d3f87f
Show file tree
Hide file tree
Showing 10 changed files with 619 additions and 37 deletions.
2 changes: 2 additions & 0 deletions calc-fee/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
/pkg
281 changes: 281 additions & 0 deletions calc-fee/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions calc-fee/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[package]
name = "calc-fee"
version = "0.1.0"
authors = ["Alexander Theißen <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
publish = false
repository = "https://github.com/polkadot-js/wasm/"
description = "Calculate extrinsic fees off-chain"

[lib]
crate-type = ["cdylib"]

[features]
debug = ["console_error_panic_hook"]

[dependencies]
wasm-bindgen = { version = "0.2", default_features = false, features = ["serde-serialize"] }
serde_derive = { version = "1", default_features = false }
serde = { version = "1", default_features = false }
console_error_panic_hook = { version = "0.1", optional = true }
sp-arithmetic = { git = "https://github.com/paritytech/substrate", default_features = false }

[profile.release]
opt-level = "z"
lto = true
Loading

0 comments on commit 1d3f87f

Please sign in to comment.