Skip to content

feat(registry): add pending_param and pending_unpause read-only getters (#79) - #1136

Closed
jeffrey-graham wants to merge 1 commit into
DevTobis:mainfrom
jeffrey-graham:feat/registry-getters-79
Closed

jeffrey-graham wants to merge 1 commit into
DevTobis:mainfrom
jeffrey-graham:feat/registry-getters-79

Conversation

@jeffrey-graham

Copy link
Copy Markdown

Closes #79

Summary

  • Adds Eq, PartialEq to AssetConfig and ParamChange in contracts/common/src/asset.rs.
  • Adds #[contracttype] view structs PendingParamView and PendingUnpauseView and pure read-only getters pending_param(env, id) -> Option<PendingParamView> and pending_unpause(env, id) -> Option<PendingUnpauseView> in contracts/registry/src/lib.rs alongside roles(env) -> Roles.
  • Removes the client_pauser test workaround in contracts/registry/src/lib.rs in favor of client.roles().pauser and adds unit tests covering the lifecycle of roles(), pending_param(id), and pending_unpause(id) before and after execution.

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.

Add Registry getters for roles and pending changes

1 participant