military-teal-tortoise-5
SP2ZNGJ85ENDY6QRHQ5P2D4FXKGZWCKTB2T0Z55KSSource Code
(define-read-only (principal-destruct (principal-value principal))
(principal-destruct? principal-value)
)
(define-read-only (principal-construct (hash-bytes (buff 20)))
(principal-construct? 0x16 hash-bytes)
)
(define-read-only (get-address-part (ascii-string (string-ascii 64)))
(let
(
(delimiter-index (index-of? ascii-string "."))
)
(match delimiter-index
index (unwrap-panic (slice? ascii-string u0 index))
ascii-string)
)
)Functions (3)
| Function | Access | Args |
|---|---|---|
| principal-destruct | read-only | principal-value: principal |
| principal-construct | read-only | hash-bytes: (buff 20 |
| get-address-part | read-only | ascii-string: (string-ascii 64 |