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(bank): Allow injectable restrictions on bank transfers #14224

Merged
merged 58 commits into from
Aug 18, 2023

Commits on Dec 7, 2022

  1. Configuration menu
    Copy the full SHA
    83de950 View commit details
    Browse the repository at this point in the history
  2. [14124]: Move the MintingRestrictionFn in with the SendRestrictionFn …

    …and give it similar stuff. Add unit tests for it.
    SpicyLemon committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    1648159 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2022

  1. [14124]: Change InputOutputCoins to accept only a single input since …

    …the MsgMultiSend can now only contain a single input (#12610 and #12670).
    SpicyLemon committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    66b2b93 View commit details
    Browse the repository at this point in the history
  2. [14124]: Add a SendRestrictionFn to the send keeper. Rename the exist…

    …ing SendCoins to SendCoinsWithoutRestriction and create a new SendCoins that just applies the restriction then calls SendCoinsWithoutRestriction. Make restriction calls from InputOutputCoins too.
    SpicyLemon committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    845480d View commit details
    Browse the repository at this point in the history
  3. [14124]: Remove the SendCoinsWithoutRestriction and always run restri…

    …ctions. It can be up to each restriction to decide if it should be bypassed.
    SpicyLemon committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    df54462 View commit details
    Browse the repository at this point in the history
  4. [14124]: Create a struct to hold the send restriction function that c…

    …an be updated from inside the keeper without needing a pointer receiver.
    SpicyLemon committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    ba605c3 View commit details
    Browse the repository at this point in the history
  5. [14124]: Switch the keeper to use this SendRestriction holder and giv…

    …e the keeper AppendSendRestriction and PrependSendRestriction.
    SpicyLemon committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    66e8474 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bc988d9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3f6ea3a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a5b1afe View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    64bb3c1 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9bd62bf View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    987e9c5 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    e388801 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    1ef3412 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    60fbf14 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    915216e View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2022

  1. Configuration menu
    Copy the full SHA
    66ec36f View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into dwedul/14124-bank-restrictions

    # Conflicts:
    #	x/bank/keeper/send.go
    SpicyLemon committed Dec 9, 2022
    Configuration menu
    Copy the full SHA
    1f0efb8 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2023

  1. Merge branch 'main' into dwedul/14124-bank-restrictions

    # Conflicts:
    #	CHANGELOG.md
    #	tests/integration/bank/keeper/keeper_test.go
    #	x/bank/keeper/keeper_test.go
    #	x/gov/testutil/expected_keepers_mocks.go
    SpicyLemon committed Jan 12, 2023
    Configuration menu
    Copy the full SHA
    c9cc904 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    28f37ed View commit details
    Browse the repository at this point in the history
  3. [14124]: Lint fixes.

    SpicyLemon committed Jan 12, 2023
    Configuration menu
    Copy the full SHA
    a0befb3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    327f218 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f4d0a12 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2023

  1. Merge branch 'main' into dwedul/14124-bank-restrictions

    # Conflicts:
    #	CHANGELOG.md
    SpicyLemon committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    6202a5d View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2023

  1. Merge branch 'main' into dwedul/14124-bank-restrictions

    # Conflicts:
    #	CHANGELOG.md
    #	x/bank/keeper/keeper_test.go
    SpicyLemon committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    8aba61a View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2023

  1. Merge branch 'main' into dwedul/14124-bank-restrictions

    # Conflicts:
    #	CHANGELOG.md
    #	x/bank/keeper/keeper_test.go
    SpicyLemon committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    a994e79 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2023

  1. Merge branch 'main' into dwedul/14124-bank-restrictions

    # Conflicts:
    #	CHANGELOG.md
    #	tests/integration/bank/keeper/keeper_test.go
    #	x/bank/README.md
    #	x/bank/keeper/keeper_test.go
    #	x/bank/keeper/send.go
    #	x/gov/testutil/expected_keepers_mocks.go
    SpicyLemon committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    916608b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ed42c18 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2023

  1. Merge branch 'main' into dwedul/14124-bank-restrictions

    # Conflicts:
    #	CHANGELOG.md
    #	x/bank/keeper/send.go
    SpicyLemon committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    4260317 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2023

  1. Merge branch 'main' into dwedul/14124-bank-restrictions

    # Conflicts:
    #	CHANGELOG.md
    SpicyLemon committed Apr 14, 2023
    Configuration menu
    Copy the full SHA
    2a3f9fa View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2023

  1. Configuration menu
    Copy the full SHA
    c9b5bab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c7583b4 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2023

  1. [14124]: Move the definition of the restriction functions into the ty…

    …pes package so it's easier for other modules to create expected keepers for them.
    SpicyLemon committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    f54f8fa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c9b7b71 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2023

  1. [14124]: Move the wrapper for the SendRestrictionFn back into the kee…

    …per since it's specific to the keeper and a bit confusing to have right next to the SendRestrictionFn.
    SpicyLemon committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    c6e1dca View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    053a518 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0000a6e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2f61c50 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2023

  1. Merge branch 'main' into dwedul/14124-bank-restrictions

    # Conflicts:
    #	CHANGELOG.md
    #	tests/integration/bank/keeper/keeper_test.go
    #	x/bank/README.md
    #	x/bank/keeper/keeper.go
    #	x/bank/keeper/keeper_test.go
    #	x/bank/keeper/send.go
    #	x/gov/testutil/expected_keepers_mocks.go
    SpicyLemon committed May 5, 2023
    Configuration menu
    Copy the full SHA
    231c925 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dfb0f30 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2023

  1. Merge branch 'main' into dwedul/14124-bank-restrictions

    # Conflicts:
    #	CHANGELOG.md
    #	tests/integration/bank/keeper/keeper_test.go
    SpicyLemon committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    a452e6a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1c009f5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a0f7191 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2023

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

Commits on Jun 27, 2023

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

Commits on Jun 28, 2023

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

Commits on Jun 29, 2023

  1. Configuration menu
    Copy the full SHA
    a116b9a View commit details
    Browse the repository at this point in the history
  2. Move the send restriction application in SendCoins to after subUnlock…

    …edCoins so that it a) more closely refelects InputOutputCoins, and b) does the most common failure thing first.
    SpicyLemon committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    0f36433 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    acbc96c View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2023

  1. Configuration menu
    Copy the full SHA
    fdd3354 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7140caa View commit details
    Browse the repository at this point in the history
  3. [14124]: Fix unit tests that broke when I changed the location of the…

    … restiction check in SendCoins.
    SpicyLemon committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    d4eca5d View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. Merge branch 'main' into dwedul/14124-bank-restrictions

    # Conflicts:
    #	CHANGELOG.md
    SpicyLemon committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    8fb5fd4 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2023

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

Commits on Aug 10, 2023

  1. Merge branch 'main' into dwedul/14124-bank-restrictions

    # Conflicts:
    #	CHANGELOG.md
    SpicyLemon committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    555523c View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2023

  1. Merge branch 'main' into dwedul/14124-bank-restrictions

    # Conflicts:
    #	CHANGELOG.md
    SpicyLemon committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    adb1e73 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    58b6f99 View commit details
    Browse the repository at this point in the history