Skip to content

refactor: extract creator state storage keys into constants module - #95

Merged
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
MarcusDavidG:main
Mar 29, 2026
Merged

refactor: extract creator state storage keys into constants module#95
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
MarcusDavidG:main

Conversation

@MarcusDavidG

Copy link
Copy Markdown
Contributor

Adds ADMIN_ADDRESS constant and creator()/key_balance() constructor functions to constants::storage. Updates all call sites in lib.rs and test.rs to use the shared constants instead of inline DataKey variants.

Closes #52

Summary

  • Added ADMIN_ADDRESS constant to constants::storage
  • Added creator() and key_balance() constructor functions to constants::storage for parameterised keys
  • Updated all DataKey::Creator, DataKey::KeyBalance, and DataKey::AdminAddress call sites in lib.rs and test.rs to use the shared constants
  • No behavior change introduced

Testing

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace

Checklist

  • Linked issue or backlog item
  • Contract behavior and invariants are described clearly
  • Docs updated if contract interfaces or workflows changed
  • Scope stays limited to one contract concern

Adds ADMIN_ADDRESS constant and creator()/key_balance() constructor
functions to constants::storage. Updates all call sites in lib.rs and
test.rs to use the shared constants instead of inline DataKey variants.

Closes accesslayerorg#52
@drips-wave

drips-wave Bot commented Mar 29, 2026

Copy link
Copy Markdown

@MarcusDavidG Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093
Chucks1093 merged commit 3b02dbd into accesslayerorg:main Mar 29, 2026
1 check passed
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 storage key constants for creator state

2 participants