Skip to content

Add listeners to cw4-group (and cw4?) #140

@ethanfrey

Description

@ethanfrey

We should allow multiple contracts to be informed of changing group membership. This is a key feature so we can remove the restriction of immutible groups from #80

  • Define a message format the listeners receive (a diff of changes to weights)
  • Define a message to "register a listener". Note that if I register a listener that always errors, it will prevent you from ever updating the group - only the group owner should be able to add a listener (same as change members)
  • After UpdateMembers is executed, all registered listeners will get sent a message of this update in the same transaction.

Please code and test this in cw4-group, and update the cw4 spec to include this (both the types and the README)

Note, in some cases like #141 we may want to know both before and after weight for the changes, not just the new state. Consider how much overhead that information adds (do we need to make more queries? or do we make those already?) and what benefit it provides. You do not need to implement it, but please address this in the comments of the PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    multisigRelated to a multisig epic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions