Skip to content

feat: add get_treasury() admin query function - #129

Open
MarcusDavidG wants to merge 1 commit into
mainfrom
feat/get-treasury
Open

feat: add get_treasury() admin query function#129
MarcusDavidG wants to merge 1 commit into
mainfrom
feat/get-treasury

Conversation

@MarcusDavidG

Copy link
Copy Markdown
Contributor

Exposes the treasury address (set during initialize) as a public read-only query.

Changes

  • New get_treasury(env) -> Address function in lib.rs
  • Panics with "treasury not set" if called before initialize

Closes #109

Exposes the treasury address set during initialize() as a public
read-only query. Useful for protocol dashboards, admin tools, and
SDK clients that need to display or validate the treasury address.

Closes #109
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.

feat: expose completion_time via get_invoice_completion_time

1 participant