Skip to content

Refactor cw20-base to use controller pattern #205

@ethanfrey

Description

@ethanfrey

This should be an easier and more extensible way to extend it than the current function dispatching.

So we can call the handle_X and query_X functions, or the lower-level functionality of the controller if we need to customize more.

  • Allowances
  • Balances

When done, update

  • cw20-staking
  • cw20-bonding

to make use of them. This should be easier to override and customize. Note the "sub dispatches" to handle_burn, which is a kind of ugly. It is nice to have a slightly lower-level function exposed to be imported by other handle functions if they want to customize.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions