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

Reimplement cw1-whitelist contract in terms of semantic structures #494

Closed
10 tasks done
Tracked by #493
hashedone opened this issue Oct 18, 2021 · 0 comments · Fixed by #499
Closed
10 tasks done
Tracked by #493

Reimplement cw1-whitelist contract in terms of semantic structures #494

hashedone opened this issue Oct 18, 2021 · 0 comments · Fixed by #499
Assignees

Comments

@hashedone
Copy link
Contributor

hashedone commented Oct 18, 2021

Part of #493

  • Define trait with separate function for each exec and query variant handling contract execution
  • Define dispatch function dispatching given exec message to the defined trait
  • Define dispatch function dispatching given query message to defined trait
  • Encapsulate contract state into structure
  • Implement defined trait on contract structure
  • Make entry points construct the contract structure (or make structure global variable on contract if it is cheaper and possible), then dispatch on it using defined functions
  • Provide helpers for query
  • Provide helpers for tests
  • Migrate tests from cw1-whitelist
  • Schema generation
@hashedone hashedone changed the title Reimplement cw1-whitelist contract in terms of idiomatic structures Reimplement cw1-whitelist contract in terms of semantic structures Oct 19, 2021
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 a pull request may close this issue.

1 participant