Recent Posts

My own token (Bscoin) in clarity

5 minute read

;; title: token ;; version:2 ;; summary:This is the fungible token for the code4stx project ;; traits (impl-trait 'ST1NXBK3K5YYMD6FD41MVNP3JS1GABZ8TRVX023P...

Time-locked STX Vault (clarity)

8 minute read

;; Time-Locked STX Vault - A contract that allows users to deposit STX and lock them for a specified period ;; Users can only withdraw once the specified bl...

Simple Voting Contract (clarity)

2 minute read

(define-map votes { candidate: (string-utf8 20) } uint) ;; #[allow(unchecked_data)] (define-public (vote (candidate (string-utf8 20))) (let ((count (defa...

Message Board Contract (clarity)

2 minute read

(define-map messages { user: principal } {message: (string-utf8 100)}) (define-public (write-message (msg (string-utf8 100))) (begin (map-set message...

Token Vault (clarity)

2 minute read

(define-map balances { account: principal } uint) ;; #[allow(unchecked_data)] (define-public (deposit (amount uint)) (let ((current (default-to u0 (map-ge...