Source Code

;; marth
;; contractType: continuous

(impl-trait 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait.nft-trait)
;;(impl-trait .nft-trait.nft-trait)

(define-non-fungible-token marth uint)

(define-constant DEPLOYER tx-sender)

(define-constant ERR-NOT-AUTHORIZED u101)
(define-constant ERR-INVALID-USER u102)
(define-constant ERR-LISTING u103)
(define-constant ERR-WRONG-COMMISSION u104)
(define-constant ERR-NOT-FOUND u105)
(define-constant ERR-NFT-MINT u106)
(define-constant ERR-CONTRACT-LOCKED u107)
(define-constant ERR-METADATA-FROZEN u111)
(define-constant ERR-INVALID-PERCENTAGE u114)

(define-data-var last-id uint u0)
(define-data-var artist-address principal 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38)
(define-data-var locked bool false)
(define-data-var metadata-frozen bool false)

(define-map cids uint (string-ascii 64))

(define-public (lock-contract)
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
    (var-set locked true)
    (ok true)))

(define-public (set-artist-address (address principal))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-INVALID-USER))
    (ok (var-set artist-address address))))

(define-public (burn (token-id uint))
  (begin 
    (asserts! (is-owner token-id tx-sender) (err ERR-NOT-AUTHORIZED))
    (asserts! (is-none (map-get? market token-id)) (err ERR-LISTING))
    (nft-burn? marth token-id tx-sender)))

(define-public (set-token-uri (hash (string-ascii 64)) (token-id uint))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
    (asserts! (not (var-get metadata-frozen)) (err ERR-METADATA-FROZEN))
    (print { notification: "token-metadata-update", payload: { token-class: "nft", token-ids: (list token-id), contract-id: (as-contract tx-sender) }})
    (map-set cids token-id hash)
    (ok true)))

(define-public (freeze-metadata)
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
    (var-set metadata-frozen true)
    (ok true)))

(define-private (is-owner (token-id uint) (user principal))
    (is-eq user (unwrap! (nft-get-owner? marth token-id) false)))

(define-public (transfer (id uint) (sender principal) (recipient principal))
  (begin
    (asserts! (is-eq tx-sender sender) (err ERR-NOT-AUTHORIZED))
    (asserts! (is-none (map-get? market id)) (err ERR-LISTING))
    (trnsfr id sender recipient)))

(define-read-only (get-owner (token-id uint))
  (ok (nft-get-owner? marth token-id)))

(define-read-only (get-last-token-id)
  (ok (var-get last-id)))

(define-read-only (get-token-uri (token-id uint))
  (ok (some (concat "ipfs://" (unwrap-panic (map-get? cids token-id))))))

(define-read-only (get-artist-address)
  (ok (var-get artist-address)))

(define-public (claim (uris (list 25 (string-ascii 64))))
  (mint-many uris))

(define-private (mint-many (uris (list 25 (string-ascii 64))))
  (let 
    (
      (token-id (+ (var-get last-id) u1))
      (art-addr (var-get artist-address))
      (id-reached (fold mint-many-iter uris token-id))
      (current-balance (get-balance tx-sender))
    )
    (asserts! (or (is-eq tx-sender DEPLOYER) (is-eq tx-sender art-addr)) (err ERR-NOT-AUTHORIZED))
    (asserts! (is-eq (var-get locked) false) (err ERR-CONTRACT-LOCKED))
    (var-set last-id (- id-reached u1))
    (map-set token-count tx-sender (+ current-balance (- id-reached token-id)))    
    (ok id-reached)))

(define-private (mint-many-iter (hash (string-ascii 64)) (next-id uint))
  (begin
    (unwrap! (nft-mint? marth next-id tx-sender) next-id)
    (map-set cids next-id hash)      
    (+ next-id u1)))

;; NON-CUSTODIAL FUNCTIONS START
(use-trait commission-trait 'SP3D6PV2ACBPEKYJTCMH7HEN02KP87QSP8KTEH335.commission-trait.commission)

(define-map token-count principal uint)
(define-map market uint {price: uint, commission: principal, royalty: uint})

(define-read-only (get-balance (account principal))
  (default-to u0
    (map-get? token-count account)))

(define-private (trnsfr (id uint) (sender principal) (recipient principal))
  (match (nft-transfer? marth id sender recipient)
    success
      (let
        ((sender-balance (get-balance sender))
        (recipient-balance (get-balance recipient)))
          (map-set token-count
            sender
            (- sender-balance u1))
          (map-set token-count
            recipient
            (+ recipient-balance u1))
          (ok success))
    error (err error)))

(define-private (is-sender-owner (id uint))
  (let ((owner (unwrap! (nft-get-owner? marth id) false)))
    (or (is-eq tx-sender owner) (is-eq contract-caller owner))))

(define-read-only (get-listing-in-ustx (id uint))
  (map-get? market id))

(define-public (list-in-ustx (id uint) (price uint) (comm-trait <commission-trait>))
  (let ((listing  {price: price, commission: (contract-of comm-trait), royalty: (var-get royalty-percent)}))
    (asserts! (is-sender-owner id) (err ERR-NOT-AUTHORIZED))
    (map-set market id listing)
    (print (merge listing {a: "list-in-ustx", id: id}))
    (ok true)))

(define-public (unlist-in-ustx (id uint))
  (begin
    (asserts! (is-sender-owner id) (err ERR-NOT-AUTHORIZED))
    (map-delete market id)
    (print {a: "unlist-in-ustx", id: id})
    (ok true)))

(define-public (buy-in-ustx (id uint) (comm-trait <commission-trait>))
  (let ((owner (unwrap! (nft-get-owner? marth id) (err ERR-NOT-FOUND)))
      (listing (unwrap! (map-get? market id) (err ERR-LISTING)))
      (price (get price listing))
      (royalty (get royalty listing)))
    (asserts! (is-eq (contract-of comm-trait) (get commission listing)) (err ERR-WRONG-COMMISSION))
    (try! (stx-transfer? price tx-sender owner))
    (try! (pay-royalty price royalty))
    (try! (contract-call? comm-trait pay id price))
    (try! (trnsfr id owner tx-sender))
    (map-delete market id)
    (print {a: "buy-in-ustx", id: id})
    (ok true)))
    
(define-data-var royalty-percent uint u500)

(define-read-only (get-royalty-percent)
  (ok (var-get royalty-percent)))

(define-public (set-royalty-percent (royalty uint))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-INVALID-USER))
    (asserts! (and (>= royalty u0) (<= royalty u1000)) (err ERR-INVALID-PERCENTAGE))
    (ok (var-set royalty-percent royalty))))

(define-private (pay-royalty (price uint) (royalty uint))
  (let (
    (royalty-amount (/ (* price royalty) u10000))
  )
  (if (and (> royalty-amount u0) (not (is-eq tx-sender (var-get artist-address))))
    (try! (stx-transfer? royalty-amount tx-sender (var-get artist-address)))
    (print false)
  )
  (ok true)))

;; NON-CUSTODIAL FUNCTIONS END

(try! (nft-mint? marth u1 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u1 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/1.json")
(try! (nft-mint? marth u2 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u2 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/2.json")
(try! (nft-mint? marth u3 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u3 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/3.json")
(try! (nft-mint? marth u4 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u4 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/4.json")
(try! (nft-mint? marth u5 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u5 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/5.json")
(try! (nft-mint? marth u6 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u6 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/6.json")
(try! (nft-mint? marth u7 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u7 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/7.json")
(try! (nft-mint? marth u8 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u8 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/8.json")
(try! (nft-mint? marth u9 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u9 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/9.json")
(try! (nft-mint? marth u10 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u10 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/10.json")
(try! (nft-mint? marth u11 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u11 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/11.json")
(try! (nft-mint? marth u12 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u12 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/12.json")
(try! (nft-mint? marth u13 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u13 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/13.json")
(try! (nft-mint? marth u14 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u14 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/14.json")
(try! (nft-mint? marth u15 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u15 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/15.json")
(try! (nft-mint? marth u16 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u16 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/16.json")
(try! (nft-mint? marth u17 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u17 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/17.json")
(try! (nft-mint? marth u18 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u18 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/18.json")
(try! (nft-mint? marth u19 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u19 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/19.json")
(try! (nft-mint? marth u20 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u20 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/20.json")
(try! (nft-mint? marth u21 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u21 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/21.json")
(try! (nft-mint? marth u22 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u22 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/22.json")
(try! (nft-mint? marth u23 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u23 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/23.json")
(try! (nft-mint? marth u24 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u24 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/24.json")
(try! (nft-mint? marth u25 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u25 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/25.json")
(try! (nft-mint? marth u26 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u26 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/26.json")
(try! (nft-mint? marth u27 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u27 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/27.json")
(try! (nft-mint? marth u28 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u28 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/28.json")
(try! (nft-mint? marth u29 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u29 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/29.json")
(try! (nft-mint? marth u30 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u30 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/30.json")
(try! (nft-mint? marth u31 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u31 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/31.json")
(try! (nft-mint? marth u32 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u32 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/32.json")
(try! (nft-mint? marth u33 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u33 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/33.json")
(try! (nft-mint? marth u34 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u34 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/34.json")
(try! (nft-mint? marth u35 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u35 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/35.json")
(try! (nft-mint? marth u36 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u36 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/36.json")
(try! (nft-mint? marth u37 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u37 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/37.json")
(try! (nft-mint? marth u38 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u38 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/38.json")
(try! (nft-mint? marth u39 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u39 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/39.json")
(try! (nft-mint? marth u40 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u40 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/40.json")
(try! (nft-mint? marth u41 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u41 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/41.json")
(try! (nft-mint? marth u42 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u42 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/42.json")
(try! (nft-mint? marth u43 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u43 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/43.json")
(try! (nft-mint? marth u44 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u44 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/44.json")
(try! (nft-mint? marth u45 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u45 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/45.json")
(try! (nft-mint? marth u46 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u46 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/46.json")
(try! (nft-mint? marth u47 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u47 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/47.json")
(try! (nft-mint? marth u48 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u48 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/48.json")
(try! (nft-mint? marth u49 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u49 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/49.json")
(try! (nft-mint? marth u50 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u50 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/50.json")
(try! (nft-mint? marth u51 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u51 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/51.json")
(try! (nft-mint? marth u52 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u52 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/52.json")
(try! (nft-mint? marth u53 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u53 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/53.json")
(try! (nft-mint? marth u54 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u54 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/54.json")
(try! (nft-mint? marth u55 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u55 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/55.json")
(try! (nft-mint? marth u56 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u56 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/56.json")
(try! (nft-mint? marth u57 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u57 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/57.json")
(try! (nft-mint? marth u58 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u58 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/58.json")
(try! (nft-mint? marth u59 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u59 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/59.json")
(try! (nft-mint? marth u60 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u60 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/60.json")
(try! (nft-mint? marth u61 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u61 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/61.json")
(try! (nft-mint? marth u62 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u62 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/62.json")
(try! (nft-mint? marth u63 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u63 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/63.json")
(try! (nft-mint? marth u64 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u64 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/64.json")
(try! (nft-mint? marth u65 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u65 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/65.json")
(try! (nft-mint? marth u66 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u66 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/66.json")
(try! (nft-mint? marth u67 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u67 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/67.json")
(try! (nft-mint? marth u68 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u68 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/68.json")
(try! (nft-mint? marth u69 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u69 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/69.json")
(try! (nft-mint? marth u70 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u70 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/70.json")
(try! (nft-mint? marth u71 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u71 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/71.json")
(try! (nft-mint? marth u72 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u72 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/72.json")
(try! (nft-mint? marth u73 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u73 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/73.json")
(try! (nft-mint? marth u74 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u74 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/74.json")
(try! (nft-mint? marth u75 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u75 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/75.json")
(try! (nft-mint? marth u76 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u76 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/76.json")
(try! (nft-mint? marth u77 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u77 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/77.json")
(try! (nft-mint? marth u78 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u78 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/78.json")
(try! (nft-mint? marth u79 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u79 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/79.json")
(try! (nft-mint? marth u80 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u80 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/80.json")
(try! (nft-mint? marth u81 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u81 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/81.json")
(try! (nft-mint? marth u82 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u82 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/82.json")
(try! (nft-mint? marth u83 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u83 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/83.json")
(try! (nft-mint? marth u84 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u84 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/84.json")
(try! (nft-mint? marth u85 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u85 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/85.json")
(try! (nft-mint? marth u86 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u86 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/86.json")
(try! (nft-mint? marth u87 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u87 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/87.json")
(try! (nft-mint? marth u88 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u88 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/88.json")
(try! (nft-mint? marth u89 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u89 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/89.json")
(try! (nft-mint? marth u90 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u90 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/90.json")
(try! (nft-mint? marth u91 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u91 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/91.json")
(try! (nft-mint? marth u92 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u92 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/92.json")
(try! (nft-mint? marth u93 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u93 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/93.json")
(try! (nft-mint? marth u94 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u94 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/94.json")
(try! (nft-mint? marth u95 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u95 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/95.json")
(try! (nft-mint? marth u96 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u96 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/96.json")
(try! (nft-mint? marth u97 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u97 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/97.json")
(try! (nft-mint? marth u98 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u98 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/98.json")
(try! (nft-mint? marth u99 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u99 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/99.json")
(try! (nft-mint? marth u100 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u100 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/100.json")
(try! (nft-mint? marth u101 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u101 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/101.json")
(try! (nft-mint? marth u102 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u102 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/102.json")
(try! (nft-mint? marth u103 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u103 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/103.json")
(try! (nft-mint? marth u104 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38))
(map-set token-count 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38 (+ (get-balance 'SPCX2ZY12BRQT2N6NVDS24N48TQ9YMQTX44DQJ38) u1))
(map-set cids u104 "QmPbTcHLnwZ4MybJFWdSv17oQbh9hKjn2bNXa25uko1BGw/json/104.json")
(var-set last-id u104)

(define-data-var license-uri (string-ascii 80) "https://arweave.net/zmc1WTspIhFyVY82bwfAIcIExLFH5lUcHHUN0wXg4W8/0")
(define-data-var license-name (string-ascii 40) "PUBLIC")

(define-read-only (get-license-uri)
  (ok (var-get license-uri)))
  
(define-read-only (get-license-name)
  (ok (var-get license-name)))
  
(define-public (set-license-uri (uri (string-ascii 80)))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
    (ok (var-set license-uri uri))))
    
(define-public (set-license-name (name (string-ascii 40)))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
    (ok (var-set license-name name))))

Functions (28)

FunctionAccessArgs
lock-contractpublic
set-artist-addresspublicaddress: principal
burnpublictoken-id: uint
set-token-uripublichash: (string-ascii 64
freeze-metadatapublic
is-ownerprivatetoken-id: uint, user: principal
transferpublicid: uint, sender: principal, recipient: principal
get-ownerread-onlytoken-id: uint
get-last-token-idread-only
get-token-uriread-onlytoken-id: uint
get-artist-addressread-only
claimpublicuris: (list 25 (string-ascii 64
mint-manyprivateuris: (list 25 (string-ascii 64
mint-many-iterprivatehash: (string-ascii 64
get-balanceread-onlyaccount: principal
trnsfrprivateid: uint, sender: principal, recipient: principal
is-sender-ownerprivateid: uint
get-listing-in-ustxread-onlyid: uint
list-in-ustxpublicid: uint, price: uint, comm-trait: <commission-trait>
unlist-in-ustxpublicid: uint
buy-in-ustxpublicid: uint, comm-trait: <commission-trait>
get-royalty-percentread-only
set-royalty-percentpublicroyalty: uint
pay-royaltyprivateprice: uint, royalty: uint
get-license-uriread-only
get-license-nameread-only
set-license-uripublicuri: (string-ascii 80
set-license-namepublicname: (string-ascii 40