Source 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)

FunctionAccessArgs
update-settingspublicemail: (string-ascii 100
get-settingsread-onlyuser: principal