account-settings
SP3CGHKW1Q0QXGW8WPG4JGRBQB2T5B7ZQE8QQ0GW2Source Code
;; Account Settings
(define-map settings principal {email: (string-ascii 100), notifications: bool})
(define-public (update-settings (email (string-ascii 100)) (notifications bool))
(begin (map-set settings tx-sender {email: email, notifications: notifications}) (ok true)))
(define-read-only (get-settings (user principal))
(map-get? settings user))
Functions (2)
| Function | Access | Args |
|---|---|---|
| update-settings | public | email: (string-ascii 100 |
| get-settings | read-only | user: principal |