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(x/accounts): Add schema caching feature and corresponding test case #20055

Merged
merged 55 commits into from May 17, 2024

Commits on Apr 16, 2024

  1. feat(x/accounts): Add schema caching feature and corresponding test case

    Signed-off-by: Hwangjae Lee <meetrick@gmail.com>
    meetrick committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    0070d42 View commit details
    Browse the repository at this point in the history
  2. fix(x/accounts): Avoid copying queryServer in its methods

    This commit modifies the queryServer struct methods to avoid copying
    the entire struct by adding a mutex lock. Instead of changing the
    receiver to a pointer, a mutex named 'mu' is introduced to synchronize
    access to the struct's fields. This approach minimizes the impact on
    other functions while ensuring safe concurrent access to the methods.
    
    Signed-off-by: Hwangjae Lee <meetrick@gmail.com>
    meetrick committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    389c2f1 View commit details
    Browse the repository at this point in the history
  3. Initialize mu as a pointer

    Signed-off-by: Hwangjae Lee <meetrick@gmail.com>
    meetrick committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    4a20c00 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2024

  1. Configuration menu
    Copy the full SHA
    9169303 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    33fc9f8 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2024

  1. chore(accounts): Ensure queryServer methods use pointer receivers

    - Updated all methods of the queryServer struct to use pointer receivers,
    ensuring compliance with the v1.QueryServer interface.
    - Refactored the NewQueryServer function to precalculate and store schemas
    for efficient schema retrieval.
    - Initialized the schemaCache with a precomputed length based on the length
    of precalculated schemas, ensuring efficient memory usage.
    - Added a schemas field to the queryServer struct to store precalculated schemas.
    - Updated the AccountQuery and Schema methods to use pointer receivers.
    - Added comments to describe the purpose of the Schema method.
    - Ensured the AccountType and AccountNumber methods use pointer receivers.
    
    Signed-off-by: Hwangjae Lee <meetrick@gmail.com>
    meetrick committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    fcb45ce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    718cd59 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2024

  1. chore: remove grpc-web (cosmos#20140)

    tac0turtle authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    5ff10e3 View commit details
    Browse the repository at this point in the history
  2. docs: add authz reference info in the circuit antehandler (cosmos#20146)

    Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
    2 people authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    8ea9ff5 View commit details
    Browse the repository at this point in the history
  3. build(deps): Bump github.com/prometheus/common from 0.52.2 to 0.53.0 (c…

    …osmos#20115)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
    2 people authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    1cbe3f3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0b4e783 View commit details
    Browse the repository at this point in the history
  5. fix(client/v2): close json file (cosmos#20120)

    Signed-off-by: guoguangwu <guoguangwug@gmail.com>
    testwill authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    30f9375 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d8ec18f View commit details
    Browse the repository at this point in the history
  7. build(deps): Bump cosmossdk.io/x/tx from 0.13.2 to 0.13.3 (cosmos#20149)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    3 people authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    793c594 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2d90252 View commit details
    Browse the repository at this point in the history
  9. refactor(lockup account): Add tests for lockup account (cosmos#19772)

    Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
    Co-authored-by: Marko <marko@baricevic.me>
    3 people authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    2d614a1 View commit details
    Browse the repository at this point in the history
  10. build(deps): Bump bufbuild/buf-setup-action from 1.30.1 to 1.31.0 (co…

    …smos#20165)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    ff88c22 View commit details
    Browse the repository at this point in the history
  11. build(deps): Bump amannn/action-semantic-pull-request from 5.4.0 to 5…

    ….5.0 (cosmos#20164)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    21a2269 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c604ffd View commit details
    Browse the repository at this point in the history
  13. chore: fix function names (cosmos#20170)

    Signed-off-by: cuithon <dscs@outlook.com>
    cuithon authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    fd02ae0 View commit details
    Browse the repository at this point in the history
  14. chore: fix some quoting (cosmos#20166)

    ChengenH authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    f58c610 View commit details
    Browse the repository at this point in the history
  15. chore: fix malformed struct tag (cosmos#20142)

    Signed-off-by: ipangpang <arronipangpang@gmail.com>
    ipangpang authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    5b61fce View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    fc9cbe4 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    062433f View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    c7ad722 View commit details
    Browse the repository at this point in the history
  19. build(deps): Bump github.com/cosmos/cosmos-sdk from 0.50.6-0.20240403…

    …102038-f63e5fdf7c96 to 0.50.6 in /tools/hubl (cosmos#20183)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    964c562 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    e868c06 View commit details
    Browse the repository at this point in the history
  21. build(deps): Bump amannn/action-semantic-pull-request from 5.5.0 to 5…

    ….5.2 (cosmos#20182)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    8767a78 View commit details
    Browse the repository at this point in the history
  22. fix(testsuite/sims): set all signatures (cosmos#20151)

    Co-authored-by: qinglin89 <316032931@qq.com>
    2 people authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    1a203d1 View commit details
    Browse the repository at this point in the history
  23. refactor: migrate to query Consensus Params (cosmos#19600)

    Co-authored-by: Julien Robert <julien@rbrt.fr>
    Co-authored-by: Facundo <facundomedica@gmail.com>
    Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
    Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
    Co-authored-by: Hieu Vu <72878483+hieuvubk@users.noreply.github.com>
    6 people authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    024003f View commit details
    Browse the repository at this point in the history
  24. chore: fix spelling errors (cosmos#20187)

    Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
    Co-authored-by: marbar3778 <marbar3778@yahoo.com>
    Co-authored-by: Marko <marko@baricevic.me>
    Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
    5 people authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    12c7dee View commit details
    Browse the repository at this point in the history
  25. feat(x/authz): Add MsgRevokeAll (cosmos#20161)

    Co-authored-by: Tuan Tran <tuantran@notional.ventures>
    Co-authored-by: Khanh Hoa <khanhoait.bka@gmail.com>
    3 people authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    6a5ef16 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    41cd7b3 View commit details
    Browse the repository at this point in the history
  27. docs(x/auth/tx): fix typo in decodeMultisignatures function comment (c…

    …osmos#20190)
    
    Signed-off-by: Hwangjae Lee <meetrick@gmail.com>
    meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    426c697 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    12ab4ca View commit details
    Browse the repository at this point in the history
  29. build(deps): Bump cosmossdk.io/x/upgrade from 0.1.2-0.20240403102038-…

    …f63e5fdf7c96 to 0.1.2 in /tools/cosmovisor (cosmos#20192)
    
    Co-authored-by: Julien Robert <julien@rbrt.fr>
    2 people authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    ff0cbc7 View commit details
    Browse the repository at this point in the history
  30. build(deps): Bump cosmossdk.io/store from 1.0.2 to 1.1.0 (cosmos#20191)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
    Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
    3 people authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    2449560 View commit details
    Browse the repository at this point in the history
  31. chore: fix all typos (cosmos#20196)

    hoangdv2429 authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    05c820a View commit details
    Browse the repository at this point in the history
  32. refactor(proto): add denote version annotation (cosmos#20098)

    Co-authored-by: Tuan Tran <tuantran@notional.ventures>
    Co-authored-by: Khanh Hoa <hoa@notional.ventures>
    Co-authored-by: kienn6034 <kien@notional.ventures>
    4 people authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    422dc8a View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    688163c View commit details
    Browse the repository at this point in the history
  34. test(store/snapshot): fix flaky test (cosmos#20078)

    Co-authored-by: cool-developer <51834436+cool-develope@users.noreply.github.com>
    2 people authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    8e929f7 View commit details
    Browse the repository at this point in the history
  35. docs(lockup): add documentation (cosmos#19898)

    Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
    2 people authored and meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    a92ccce View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    b79de2f View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    10fc2b8 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    1ddeb8d View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    fc07c2f View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    b1c0693 View commit details
    Browse the repository at this point in the history
  41. Removed mutex in each function

    Signed-off-by: Hwangjae Lee <meetrick@gmail.com>
    meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    fafc385 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    90e1bc8 View commit details
    Browse the repository at this point in the history
  43. Removed cache operation in Schema()

    Signed-off-by: Hwangjae Lee <meetrick@gmail.com>
    meetrick committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    e15cae8 View commit details
    Browse the repository at this point in the history
  44. Update x/accounts/query_server.go

    Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
    meetrick and coderabbitai[bot] committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    28f3431 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Removoed SchemaCache field

    Signed-off-by: Hwangjae Lee <meetrick@gmail.com>
    meetrick committed May 14, 2024
    Configuration menu
    Copy the full SHA
    ecb8d3f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b943f6f View commit details
    Browse the repository at this point in the history
  3. Removed unnecessary field from queryServer struct

    Signed-off-by: Hwangjae Lee <meetrick@gmail.com>
    meetrick committed May 14, 2024
    Configuration menu
    Copy the full SHA
    f6d2846 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

  1. Configuration menu
    Copy the full SHA
    848540c View commit details
    Browse the repository at this point in the history