Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Deposit for Setting Alternative Fee Swap Path #1730

Merged
merged 14 commits into from
Dec 27, 2021

Conversation

ferrell-code
Copy link
Contributor

Deposit prevent bloated chain state

@ferrell-code
Copy link
Contributor Author

/bench runtime acala module_transaction_payment

@ghost
Copy link

ghost commented Dec 24, 2021

Finished benchmark for branch: fer-deposit-transaction-payment

Benchmark: Benchmark Runtime Acala Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-acala-runtime -- benchmark --chain=acala-latest --steps=50 --repeat=20 --pallet=module_transaction_payment --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/

Results

Pallet: "module_transaction_payment", Extrinsic: "set_alternative_fee_swap_path", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Balances Reserves (r:1 w:1)
Storage: TransactionPayment AlternativeFeeSwapPath (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 41.01
µs

Reads = 1
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 41.01
µs

Reads = 1
Writes = 2

Pallet: "module_transaction_payment", Extrinsic: "on_finalize", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: TransactionPayment NextFeeMultiplier (r:1 w:1)
Storage: System BlockWeight (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 12.53
µs

Reads = 2
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 12.53
µs

Reads = 2
Writes = 1

…hmarks --features=with-acala-runtime -- benchmark --chain=acala-latest --steps=50 --repeat=20 --pallet=module_transaction_payment --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/
@ferrell-code
Copy link
Contributor Author

/bench runtime karura module_transaction_payment

@ghost
Copy link

ghost commented Dec 24, 2021

Finished benchmark for branch: fer-deposit-transaction-payment

Benchmark: Benchmark Runtime Karura Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-karura-runtime -- benchmark --chain=karura-dev --steps=50 --repeat=20 --pallet=module_transaction_payment --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/

Results

Pallet: "module_transaction_payment", Extrinsic: "set_alternative_fee_swap_path", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Balances Reserves (r:1 w:1)
Storage: TransactionPayment AlternativeFeeSwapPath (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 38.11
µs

Reads = 1
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 38.11
µs

Reads = 1
Writes = 2

Pallet: "module_transaction_payment", Extrinsic: "on_finalize", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: TransactionPayment NextFeeMultiplier (r:1 w:1)
Storage: System BlockWeight (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 12.53
µs

Reads = 2
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 12.53
µs

Reads = 2
Writes = 1

@ferrell-code
Copy link
Contributor Author

/bench runtime mandala module_transaction_payment

…hmarks --features=with-karura-runtime -- benchmark --chain=karura-dev --steps=50 --repeat=20 --pallet=module_transaction_payment --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/
@ghost
Copy link

ghost commented Dec 24, 2021

Finished benchmark for branch: fer-deposit-transaction-payment

Benchmark: Benchmark Runtime Mandala Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-mandala-runtime -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=module_transaction_payment --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/

Results

Pallet: "module_transaction_payment", Extrinsic: "set_alternative_fee_swap_path", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Balances Reserves (r:1 w:1)
Storage: TransactionPayment AlternativeFeeSwapPath (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 40.16
µs

Reads = 1
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 40.16
µs

Reads = 1
Writes = 2

Pallet: "module_transaction_payment", Extrinsic: "on_finalize", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: TransactionPayment NextFeeMultiplier (r:1 w:1)
Storage: System BlockWeight (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 12.46
µs

Reads = 2
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 12.46
µs

Reads = 2
Writes = 1

…hmarks --features=with-mandala-runtime -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=module_transaction_payment --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/
Copy link
Member

@xlc xlc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need a different RESERVE_ID to avoid mixing them

modules/transaction-payment/src/lib.rs Outdated Show resolved Hide resolved
modules/transaction-payment/src/lib.rs Outdated Show resolved Hide resolved
@ferrell-code
Copy link
Contributor Author

/bench runtime acala module_transaction_payment

@ghost
Copy link

ghost commented Dec 24, 2021

Finished benchmark for branch: fer-deposit-transaction-payment

Benchmark: Benchmark Runtime Acala Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-acala-runtime -- benchmark --chain=acala-latest --steps=50 --repeat=20 --pallet=module_transaction_payment --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/

Results

Pallet: "module_transaction_payment", Extrinsic: "set_alternative_fee_swap_path", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Balances Reserves (r:1 w:1)
Storage: TransactionPayment AlternativeFeeSwapPath (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 44.24
µs

Reads = 1
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 44.24
µs

Reads = 1
Writes = 2

Pallet: "module_transaction_payment", Extrinsic: "on_finalize", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: TransactionPayment NextFeeMultiplier (r:1 w:1)
Storage: System BlockWeight (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 13.4
µs

Reads = 2
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 13.4
µs

Reads = 2
Writes = 1

…hmarks --features=with-acala-runtime -- benchmark --chain=acala-latest --steps=50 --repeat=20 --pallet=module_transaction_payment --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/
@ferrell-code
Copy link
Contributor Author

/bench runtime karura module_transaction_payment

@ghost
Copy link

ghost commented Dec 24, 2021

Finished benchmark for branch: fer-deposit-transaction-payment

Benchmark: Benchmark Runtime Karura Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-karura-runtime -- benchmark --chain=karura-dev --steps=50 --repeat=20 --pallet=module_transaction_payment --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/

Results

Pallet: "module_transaction_payment", Extrinsic: "set_alternative_fee_swap_path", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Balances Reserves (r:1 w:1)
Storage: TransactionPayment AlternativeFeeSwapPath (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 41.74
µs

Reads = 1
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 41.74
µs

Reads = 1
Writes = 2

Pallet: "module_transaction_payment", Extrinsic: "on_finalize", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: TransactionPayment NextFeeMultiplier (r:1 w:1)
Storage: System BlockWeight (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 12.56
µs

Reads = 2
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 12.56
µs

Reads = 2
Writes = 1

@ferrell-code
Copy link
Contributor Author

/bench runtime mandala module_transaction_payment

…hmarks --features=with-karura-runtime -- benchmark --chain=karura-dev --steps=50 --repeat=20 --pallet=module_transaction_payment --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/
@ghost
Copy link

ghost commented Dec 24, 2021

Finished benchmark for branch: fer-deposit-transaction-payment

Benchmark: Benchmark Runtime Mandala Module

cargo run --release --color=never --bin=acala --features=runtime-benchmarks --features=with-mandala-runtime -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=module_transaction_payment --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/

Results

Pallet: "module_transaction_payment", Extrinsic: "set_alternative_fee_swap_path", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: Balances Reserves (r:1 w:1)
Storage: TransactionPayment AlternativeFeeSwapPath (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 52.62
µs

Reads = 1
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 52.62
µs

Reads = 1
Writes = 2

Pallet: "module_transaction_payment", Extrinsic: "on_finalize", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: TransactionPayment NextFeeMultiplier (r:1 w:1)
Storage: System BlockWeight (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 23.55
µs

Reads = 2
Writes = 1

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 23.55
µs

Reads = 2
Writes = 1

…hmarks --features=with-mandala-runtime -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=module_transaction_payment --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/
@ferrell-code ferrell-code merged commit 6c7c3c0 into master Dec 27, 2021
@ferrell-code ferrell-code deleted the fer-deposit-transaction-payment branch December 27, 2021 00:30
syan095 pushed a commit that referenced this pull request Jan 7, 2022
* origin/master: (102 commits)
  Fix collect_fee (#1754)
  Update HEADER-GPL3
  Update extrinsic-ordering-check-from-bin.yml (#1752)
  Update HEADER-GPL3
  bump version (#1751)
  Remove homa-lite from karura runtime (#1744)
  off-by-one (#1747)
  Revert "simulate exchange rate (#1742)" (#1746)
  simulate exchange rate (#1742)
  bump version (#1743)
  refactor homa (#1648)
  Update stable asset (#1741)
  add more info to events (#1740)
  Fix mandala swap path error (#1736)
  update stable asset (#1738)
  remove unnecessary code (#1735)
  fix currency id testing (#1733)
  rework fee payment (#1687)
  Add Deposit for Setting Alternative Fee Swap Path (#1730)
  Add register_erc20_asset and update_erc20_asset (#1731)
  ...

# Conflicts:
#	.github/workflows/coverage.yml.disabled
#	Cargo.lock
#	Cargo.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants