notification-hub
SP2F500B8DTRK1EANJQ054BRAB8DDKN6QCMXGNFBTSource Code
;; Notification Hub
(define-map notifications principal uint)
(define-public (increment-notifications)
(ok (map-set notifications tx-sender (+ u1 (default-to u0 (map-get? notifications tx-sender)))))
)
(define-read-only (get-notification-count (user principal))
(default-to u0 (map-get? notifications user))
)
Functions (2)
| Function | Access | Args |
|---|---|---|
| increment-notifications | public | |
| get-notification-count | read-only | user: principal |