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

[OCC] add async scheduler to seiv2 (unused) #462

Open
wants to merge 39 commits into
base: seiv2
Choose a base branch
from

Commits on Mar 14, 2024

  1. Expose parent on CacheKV (#352)

    ## Describe your changes and provide context
    For EVM getProof endpoint, we'd need to call functions on the underlying
    iavl store, so we'd need a way to expose the parent store from a cachekv
    
    ## Testing performed to validate your change
    codchen authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    2e2d463 View commit details
    Browse the repository at this point in the history
  2. Set TxIndex before generating dependencies (#358)

    ## Describe your changes and provide context
    We need to make `TxIndex` available during dependency generation so that
    we can derive the corresponding temporary intermediate account and
    coinbase account for the message
    
    ## Testing performed to validate your change
    codchen authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    f7a3c0e View commit details
    Browse the repository at this point in the history
  3. change DeliverTx to take typed tx (#360)

    - To avoid multiple deserialization, as well as adding cached values to
    sdk.Tx
    - Add new acl constants for evm subprefixes
    - Add a new bank send method that doesn't automatically create accounts
    unit tests & local sei integration
    codchen authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    cf98904 View commit details
    Browse the repository at this point in the history
  4. Integrate with pending txs in mempool (#381)

    Integrate with pending txs:
    - return `ResponseCheckTxV2`
    - add a new field `PendingTxChecker` field in Context
    
    integration with local sei
    codchen authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    0a74f75 View commit details
    Browse the repository at this point in the history
  5. Add checkTx cb (#382)

    ## Describe your changes and provide context
    
    ## Testing performed to validate your change
    codchen authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    e46f9a1 View commit details
    Browse the repository at this point in the history
  6. Add wei support in bank keeper (#386)

    ## Describe your changes and provide context
    Add two new bank keeper functions that allow sub-usei (i.e. wei)
    sending, where 1 usei = 10^12 wei:
    ```
    SendCoinsAndWei(ctx sdk.Context, from sdk.AccAddress, to sdk.AccAddress, customEscrow sdk.AccAddress, denom string, amt sdk.Int, wei sdk.Int) error
    GetWeiBalance(ctx sdk.Context, addr sdk.AccAddress) sdk.Int
    ```
    Any usei that is split as a result of wei sending will be stored in an
    escrow account, which can either be one that's specified by the caller
    or a default global escrow module account.
    
    ## Testing performed to validate your change
    unit test & local integration with sei-chain
    codchen authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    9401eb9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a93cbc0 View commit details
    Browse the repository at this point in the history
  8. [EVM] Add pending nonce support (#390)

    - Adding an expiration handler callback that lets the mempool
    
    - sei-protocol/sei-tendermint#179
    
    - e2e testing with hardhat tests
    stevenlanders authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    a85e9b4 View commit details
    Browse the repository at this point in the history
  9. rebase

    codchen authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    b809302 View commit details
    Browse the repository at this point in the history
  10. [EVM] Allow multiple txs from same account in a block (#397)

    - needs tendermint pr and go.mod update
    - adds evm properties to the `ResponseCheckTxV2`
    - adds evm properties to context
    
    - hardhat tests on sei-chain repo
    - unit tests on tendermint repo
    stevenlanders authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    260d226 View commit details
    Browse the repository at this point in the history
  11. Expose VersionExists (#400)

    Add an interface function `VersionExists` to store types
    
    local sei integration
    codchen authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    eeeba13 View commit details
    Browse the repository at this point in the history
  12. Add DeleteAll method to store type (#402)

    ## Describe your changes and provide context
    Iterating with mergeiterator to get all keys and then deleting is
    extremely slow when there are >10 layers of `cachekv`. This PR adds a
    more efficient function to delete all keys within a range, without
    having to make recursive calls like mergeiterator.
    
    ## Testing performed to validate your change
    unit test on cachekv
    
    ---------
    
    Co-authored-by: Philip Su <[email protected]>
    2 people authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    e2248dd View commit details
    Browse the repository at this point in the history
  13. Allow balance to go negative in SendCoinsAndWei (#417)

    ## Describe your changes and provide context
    Bypass negative check for sends involving Wei escrow accounts, since
    they may temporarily go negative during tx processing (but will be
    settled back to 0 in EndBlock)
    
    ## Testing performed to validate your change
    tested with the corresponding sei change
    codchen authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    46ec3fb View commit details
    Browse the repository at this point in the history
  14. Expose add/sub balance methods on bank keeper (#432)

    ## Describe your changes and provide context
    
    ## Testing performed to validate your change
    codchen authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    d952e2a View commit details
    Browse the repository at this point in the history
  15. Remove escrow account in wei logic (#434)

    ## Describe your changes and provide context
    Since add and sub balance are now decoupled, we no longer need an
    explicit escrow account, and can implicitly represent "escrow" by direct
    crediting/debiting account's usei balances. This PR removes the explicit
    escrow account logic, and also added wei logic in invariant checks
    
    ## Testing performed to validate your change
    unit tests
    codchen authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    0d9eda0 View commit details
    Browse the repository at this point in the history
  16. Add evm address to keys output (#442)

    Derive evm address from private key when showing keys in `seid keys
    show` and `seid keys list`. This only works for local keyring since it
    would have access to the private key
    
    <img width="1201" alt="Screen Shot 2024-02-26 at 11 18 43 AM"
    src="https://github.com/sei-protocol/sei-cosmos/assets/6227889/68c9e13d-73a0-471c-b424-238c683e8ec9">
    <img width="1204" alt="Screen Shot 2024-02-26 at 11 18 35 AM"
    src="https://github.com/sei-protocol/sei-cosmos/assets/6227889/6a820b81-0405-42ce-9e17-40efa6c4edbc">
    codchen authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    c859681 View commit details
    Browse the repository at this point in the history
  17. Amplify cosmos tx priority (#443)

    ## Describe your changes and provide context
    Since EVM transactions specify gas price in unit of wei, we have started
    representing priority of EVM transactions in wei-per-gas. In order for
    cosmos transactions' priority to be comparable with EVM transactions',
    we would like to use the same unit for priority here as well. Hence in
    this PR we amplify cosmos transaction priority by 10^12 (if the original
    priority is based on the base denom aka usei)
    
    ## Testing performed to validate your change
    unit test
    codchen authored and udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    11cfa1c View commit details
    Browse the repository at this point in the history
  18. occ-evm compatibility changes

    udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    b2e7486 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    23a17a2 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    c54c4f0 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    7f70613 View commit details
    Browse the repository at this point in the history
  22. update schduler and tests

    udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    ed2ea7d View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    4322be8 View commit details
    Browse the repository at this point in the history
  24. Integrate with tendermint EVM tx replacement logic (#446)

    ## Describe your changes and provide context
    See description in
    sei-protocol/sei-tendermint#206
    
    ## Testing performed to validate your change
    
    ---------
    
    Co-authored-by: Steven Landers <[email protected]>
    Co-authored-by: Philip Su <[email protected]>
    Co-authored-by: Yiming Zang <[email protected]>
    Co-authored-by: Aleksandr Bezobchuk <[email protected]>
    Co-authored-by: Uday Patil <[email protected]>
    6 people committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    7418b51 View commit details
    Browse the repository at this point in the history
  25. Fix indexesValidated and PrefillEstimates to operate on absolute idx (#…

    …454)
    
    This is one component that was missed when refactoring to use absolute
    indices for EVM changes. This change refactors such that prefill
    estimates will appropriately fill the estimates by absolute Index and
    indexes validated will similarly check via absolute indices instead of
    relative.
    
    Existing unit tests + loadtesting
    udpatil committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    ae6f0c5 View commit details
    Browse the repository at this point in the history
  26. Modify max incarnation fallback (#460)

    ---------
    
    Co-authored-by: Steven Landers <[email protected]>
    udpatil and stevenlanders committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    edf3698 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2024

  1. add async scheduler

    stevenlanders committed Mar 15, 2024
    Configuration menu
    Copy the full SHA
    d9a0f35 View commit details
    Browse the repository at this point in the history
  2. fix datarace

    stevenlanders committed Mar 15, 2024
    Configuration menu
    Copy the full SHA
    73e95cb View commit details
    Browse the repository at this point in the history
  3. fix stale tests

    stevenlanders committed Mar 15, 2024
    Configuration menu
    Copy the full SHA
    1823afc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d78d934 View commit details
    Browse the repository at this point in the history
  5. add sequential fallback

    stevenlanders committed Mar 15, 2024
    Configuration menu
    Copy the full SHA
    7d77cb8 View commit details
    Browse the repository at this point in the history
  6. cleanup

    stevenlanders committed Mar 15, 2024
    Configuration menu
    Copy the full SHA
    b1599f5 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. add occ-async flag

    stevenlanders committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    7c6493a View commit details
    Browse the repository at this point in the history
  2. cleanup on config

    stevenlanders committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    76de921 View commit details
    Browse the repository at this point in the history
  3. cleanup import format

    stevenlanders committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    5c11361 View commit details
    Browse the repository at this point in the history
  4. s p a c i n g

    stevenlanders committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    150e7f1 View commit details
    Browse the repository at this point in the history
  5. add debug line

    stevenlanders committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    16136b1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0edfa5e View commit details
    Browse the repository at this point in the history
  7. add debug

    stevenlanders committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    0cc2a9b View commit details
    Browse the repository at this point in the history