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

feat: optimize gas usage #39

Merged
merged 16 commits into from
Aug 22, 2023
Merged

Commits on Aug 14, 2023

  1. tmp: add logger to analyze gas consumption

    logs gas consumption at fileLogger
    zsystm committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    98ccceb View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2023

  1. disable minus fee rate

    zsystm committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    249e4f7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b4e6835 View commit details
    Browse the repository at this point in the history
  3. fix duplicate error code

    zsystm committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    72d66d0 View commit details
    Browse the repository at this point in the history
  4. update simop

    if calculated fee rate is negative, then apply zeroFeeRate
    zsystm committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    a1855b9 View commit details
    Browse the repository at this point in the history
  5. Merge remote-tracking branch 'origin/zsystm/fix-minus-fee-rate' into …

    …zsystm/lsm-gas-optimization
    zsystm committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    4cdb0d3 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2023

  1. Configuration menu
    Copy the full SHA
    afc6d6d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    91e6e56 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. apply Canto mainnet supply

    based on mainnet supply, rich account get fund when initialize genesis on simulation testing.
    
    each operation which needs token should get fund from rich account.
    zsystm committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    022f758 View commit details
    Browse the repository at this point in the history
  2. update CalcNetAmountStateEssentials: return multiple data structures

    this is for optimizing gas consumption when QueueLiquidUnstake
    
    instead of Iterate chunks separately, iterate it once when calc net amount state essentials.
    zsystm committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    28a6276 View commit details
    Browse the repository at this point in the history
  3. refund gas used by cachedCtx

    zsystm committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    6ec0f10 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    95bec0a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    36951f1 View commit details
    Browse the repository at this point in the history
  6. remove un-necessary lines

    zsystm committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    e7e4147 View commit details
    Browse the repository at this point in the history
  7. chore: change variable name

    zsystm committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    6871042 View commit details
    Browse the repository at this point in the history
  8. reduce computation

    GetValidator().String is a redundant computation. We can just use ValidatorAddress field.
    zsystm committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    8b66c5c View commit details
    Browse the repository at this point in the history