Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'grarco/variable-fees' (#1327)
* origin/grarco/variable-fees: Removes unused or renamed files changelog: #1327 [ci] wasm checksums update Keep write log changes before fee unshield failure in `charge_fee` Changes `dev` feature to `testing` Adds check on masp gas payer Fixes broken fee optimization logic in cli. Fixes fee unshielding logic in ledger Saves optional disposable keypair to wallet Moves disposable signing key generation to wallet module Improves fee-related logs in the client Renames fees cli arguments Fixes gas in tests Renames fee payers cli arguments Refactors `get_tx_fee` to avoid using `Uint` Fixes `fee_amount` parsing Reduces the scale of the gas sub-units Adds gas and fees protocol parameters to query response Updates visibility of functions Adds fee unshielding integration test. Updates other tests Adds disposable signer e2e test. Updates other tests Updates gas meters in tests Updates e2e tests Misc adjustments for testing Adds disposable wrapper signer. Adjusts tx construction for fees Sdk functions to return the optional `Epoch` for fee unshielding Handles wrapper's signer separately Renames `gas_payer` to `fee_payer` Reworks wasm compilation step. Accepts `floats` wasm feature Dry-run wrapper tx Updates gas meter objects initializations Helper storage functions to construct fee unshielding tx in protocol `ShellParams` carries a generic wl_storage. Reworks `dispatch_tx` to charge fees and adds related functions Adds spare gas for each tx in the storage queue Updates gas computation with multipliers Removes masp fees + gas for the vp Fixes `clean-wasm` step of wasm Makefile Updates wasm vps with gas and host sig verification Gas metering for sig verification Renames gas function and adds exposed function for signatures' verification Exposes wasm functions for consuming gas Whitelisted gas in wasm Adds benchmarks crate for gas `process_proposal` validates gas & fees `prepare_proposal` validates gas & fee. Extracts validation to a separate method Renames `BlockAllocator` and makes it track gas too Updates unit tests for mandatory block proposer Reviews `ErrorCodes`. Adds fee validation function Always expects a block proposer. Moves `WrapperTx` handling inside `dispatch_tx` Adds new CLI arguments for gas & fee Adds core methods for fee unshielding. Brings back `GasLimit` to `u64` Adds a precommit write log to `WriteLog`. Adjusts gas accounting with multipliers Adds `split_borrow` method to `WriteLogAndStorage` trait Adds gas and fee protocol parameters Reworks `gas` module. Introduces `GasMetering` trait and gas sub-units
- Loading branch information