Source Code
;; Halal Asset Registry - Notebooks
;; Registry for notebooks
(define-data-var total-notebooks-20 uint u0)
(define-map notebooks-20-registry principal uint)
(define-public (register-notebooks-20 (amount uint))
(begin
(map-set notebooks-20-registry tx-sender amount)
(var-set total-notebooks-20 (+ (var-get total-notebooks-20) amount))
(ok true)
)
)
(define-read-only (get-notebooks-20-amount (owner principal))
(default-to u0 (map-get? notebooks-20-registry owner))
)
Functions (2)
| Function | Access | Args |
|---|---|---|
| register-notebooks-20 | public | amount: uint |
| get-notebooks-20-amount | read-only | owner: principal |