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