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

Allowances per spender #761

Merged
merged 17 commits into from
Jul 27, 2022
Merged

Allowances per spender #761

merged 17 commits into from
Jul 27, 2022

Conversation

maurolacy
Copy link
Contributor

@maurolacy maurolacy commented Jul 21, 2022

Closes #756.

Opted for a non-api-breaking (i.e. backwards compatible) implementation. This just add a new AllSpenderAllowances query, and keeps all the rest the same.

TODO:

  • Add migration step to populate the ALLOWANCE_SPENDER map. (done)
  • Add migration test. (already done)

@maurolacy maurolacy added the breaking Breaking changes label Jul 25, 2022
@maurolacy maurolacy self-assigned this Jul 25, 2022
@maurolacy maurolacy added the breaking-state Breaks / changes the contract internal storage state label Jul 25, 2022
Copy link
Contributor

@ueco-jb ueco-jb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good as a non breaking change. 👍

contracts/cw20-base/src/enumerable.rs Show resolved Hide resolved
packages/utils/Cargo.toml Outdated Show resolved Hide resolved
@maurolacy maurolacy merged commit d34d93b into main Jul 27, 2022
@maurolacy maurolacy deleted the 756-allowances-per-spender branch July 27, 2022 05:29
@maurolacy maurolacy removed breaking Breaking changes breaking-state Breaks / changes the contract internal storage state labels Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow querying all granted allowances to a spender
2 participants