;; heart-beat
;; contractType: public

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

(define-non-fungible-token heart-beat uint)

;; Constants
(define-constant DEPLOYER tx-sender)
(define-constant COMM u1000)
(define-constant COMM-ADDR 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S)

(define-constant ERR-NO-MORE-NFTS u100)
(define-constant ERR-NOT-ENOUGH-PASSES u101)
(define-constant ERR-PUBLIC-SALE-DISABLED u102)
(define-constant ERR-CONTRACT-INITIALIZED u103)
(define-constant ERR-NOT-AUTHORIZED u104)
(define-constant ERR-INVALID-USER u105)
(define-constant ERR-LISTING u106)
(define-constant ERR-WRONG-COMMISSION u107)
(define-constant ERR-NOT-FOUND u108)
(define-constant ERR-PAUSED u109)
(define-constant ERR-MINT-LIMIT u110)
(define-constant ERR-METADATA-FROZEN u111)
(define-constant ERR-AIRDROP-CALLED u112)
(define-constant ERR-NO-MORE-MINTS u113)
(define-constant ERR-INVALID-PERCENTAGE u114)

;; Internal variables
(define-data-var mint-limit uint u1)
(define-data-var last-id uint u1)
(define-data-var total-price uint u5000000)
(define-data-var artist-address principal 'SP2ABNX65BSKVM00ZQZ7K174DFV18CXVGGEMP7Y6X)
(define-data-var ipfs-root (string-ascii 80) "ipfs://ipfs/QmYSWR5xE4gJT5kcdwQnxrQiYWyRVZ4ZMvVjyRinbPFHdT/json/")
(define-data-var mint-paused bool false)
(define-data-var premint-enabled bool false)
(define-data-var sale-enabled bool false)
(define-data-var metadata-frozen bool false)
(define-data-var airdrop-called bool false)
(define-data-var mint-cap uint u0)

(define-map mints-per-user principal uint)
(define-map mint-passes principal uint)

(define-public (claim) 
  (mint (list true)))

(define-public (claim-six) (mint (list true true true true true true)))

(define-public (claim-nine) (mint (list true true true true true true true true true)))

;; Default Minting
(define-private (mint (orders (list 25 bool)))
  (mint-many orders))

(define-private (mint-many (orders (list 25 bool )))  
  (let 
    (
      (last-nft-id (var-get last-id))
      (enabled (asserts! (<= last-nft-id (var-get mint-limit)) (err ERR-NO-MORE-NFTS)))
      (art-addr (var-get artist-address))
      (id-reached (fold mint-many-iter orders last-nft-id))
      (price (* (var-get total-price) (- id-reached last-nft-id)))
      (total-commission (/ (* price COMM) u10000))
      (current-balance (get-balance tx-sender))
      (total-artist (- price total-commission))
      (capped (> (var-get mint-cap) u0))
      (user-mints (get-mints tx-sender))
    )
    (asserts! (or (is-eq false (var-get mint-paused)) (is-eq tx-sender DEPLOYER)) (err ERR-PAUSED))
    (asserts! (or (not capped) (is-eq tx-sender DEPLOYER) (is-eq tx-sender art-addr) (>= (var-get mint-cap) (+ (len orders) user-mints))) (err ERR-NO-MORE-MINTS))
    (map-set mints-per-user tx-sender (+ (len orders) user-mints))
    (if (or (is-eq tx-sender art-addr) (is-eq tx-sender DEPLOYER) (is-eq (var-get total-price) u0000000))
      (begin
        (var-set last-id id-reached)
        (map-set token-count tx-sender (+ current-balance (- id-reached last-nft-id)))
      )
      (begin
        (var-set last-id id-reached)
        (map-set token-count tx-sender (+ current-balance (- id-reached last-nft-id)))
        (try! (stx-transfer? total-artist tx-sender (var-get artist-address)))
        (try! (stx-transfer? total-commission tx-sender COMM-ADDR))
      )    
    )
    (ok id-reached)))

(define-private (mint-many-iter (ignore bool) (next-id uint))
  (if (<= next-id (var-get mint-limit))
    (begin
      (unwrap! (nft-mint? heart-beat next-id tx-sender) next-id)
      (+ next-id u1)    
    )
    next-id))

(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 (set-price (price uint))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-INVALID-USER))
    (ok (var-set total-price price))))

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

(define-public (set-mint-limit (limit uint))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-INVALID-USER))
    (asserts! (< limit (var-get mint-limit)) (err ERR-MINT-LIMIT))
    (ok (var-set mint-limit limit))))

(define-public (burn (token-id uint))
  (begin 
    (asserts! (is-owner token-id tx-sender) (err ERR-NOT-AUTHORIZED))
    (nft-burn? heart-beat token-id tx-sender)))

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

(define-public (set-base-uri (new-base-uri (string-ascii 80)))
  (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))
    (var-set ipfs-root new-base-uri)
    (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)))

;; Non-custodial SIP-009 transfer function
(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)))

;; read-only functions
(define-read-only (get-owner (token-id uint))
  (ok (nft-get-owner? heart-beat token-id)))

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

(define-read-only (get-token-uri (token-id uint))
  (ok (some (concat (concat (var-get ipfs-root) "{id}") ".json"))))

(define-read-only (get-paused)
  (ok (var-get mint-paused)))

(define-read-only (get-price)
  (ok (var-get total-price)))

(define-read-only (get-mints (caller principal))
  (default-to u0 (map-get? mints-per-user caller)))

(define-read-only (get-mint-limit)
  (ok (var-get mint-limit)))

(define-data-var license-uri (string-ascii 80) "")
(define-data-var license-name (string-ascii 40) "")

(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))))

;; Non-custodial marketplace extras
(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? heart-beat 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? heart-beat 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? heart-beat 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)))
  

;; Airdrop
(define-public (admin-airdrop)
  (let
    (
      (last-nft-id (var-get last-id))
    )
    (begin
      (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
      (asserts! (is-eq false (var-get airdrop-called)) (err ERR-AIRDROP-CALLED))
      (try! (nft-mint? heart-beat (+ last-nft-id u0) 'SP162D87CY84QVVCMJKNKGHC7GGXFGA0TAR9D0XJW))
      (map-set token-count 'SP162D87CY84QVVCMJKNKGHC7GGXFGA0TAR9D0XJW (+ (get-balance 'SP162D87CY84QVVCMJKNKGHC7GGXFGA0TAR9D0XJW) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u1) 'SP19MNWTQ06X709ZA0T1KXXWWSG629MGB0QS0D16X))
      (map-set token-count 'SP19MNWTQ06X709ZA0T1KXXWWSG629MGB0QS0D16X (+ (get-balance 'SP19MNWTQ06X709ZA0T1KXXWWSG629MGB0QS0D16X) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u2) 'SP19MNWTQ06X709ZA0T1KXXWWSG629MGB0QS0D16X))
      (map-set token-count 'SP19MNWTQ06X709ZA0T1KXXWWSG629MGB0QS0D16X (+ (get-balance 'SP19MNWTQ06X709ZA0T1KXXWWSG629MGB0QS0D16X) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u3) 'SP1DPNP3RRD6JG1557SP6JMX68W5BV6R2Z74BQEXV))
      (map-set token-count 'SP1DPNP3RRD6JG1557SP6JMX68W5BV6R2Z74BQEXV (+ (get-balance 'SP1DPNP3RRD6JG1557SP6JMX68W5BV6R2Z74BQEXV) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u4) 'SP1EGWE0FKXBZF0QFM966MS9KYWT9Z3VNGQ75N7N4))
      (map-set token-count 'SP1EGWE0FKXBZF0QFM966MS9KYWT9Z3VNGQ75N7N4 (+ (get-balance 'SP1EGWE0FKXBZF0QFM966MS9KYWT9Z3VNGQ75N7N4) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u5) 'SP1EGWE0FKXBZF0QFM966MS9KYWT9Z3VNGQ75N7N4))
      (map-set token-count 'SP1EGWE0FKXBZF0QFM966MS9KYWT9Z3VNGQ75N7N4 (+ (get-balance 'SP1EGWE0FKXBZF0QFM966MS9KYWT9Z3VNGQ75N7N4) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u6) 'SP1EGWE0FKXBZF0QFM966MS9KYWT9Z3VNGQ75N7N4))
      (map-set token-count 'SP1EGWE0FKXBZF0QFM966MS9KYWT9Z3VNGQ75N7N4 (+ (get-balance 'SP1EGWE0FKXBZF0QFM966MS9KYWT9Z3VNGQ75N7N4) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u7) 'SP1G9PZMQSFRQ7Q98XP7JMNE2C22RXK1W61RXTNKP))
      (map-set token-count 'SP1G9PZMQSFRQ7Q98XP7JMNE2C22RXK1W61RXTNKP (+ (get-balance 'SP1G9PZMQSFRQ7Q98XP7JMNE2C22RXK1W61RXTNKP) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u8) 'SP1KBVBP3AZP7YA968Y3G14A17P9XXFPBPEVF5EG9))
      (map-set token-count 'SP1KBVBP3AZP7YA968Y3G14A17P9XXFPBPEVF5EG9 (+ (get-balance 'SP1KBVBP3AZP7YA968Y3G14A17P9XXFPBPEVF5EG9) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u9) 'SP1QZT85MFT8HBAG3XEK7K6QY4GGP3MSG5C3H9PQ1))
      (map-set token-count 'SP1QZT85MFT8HBAG3XEK7K6QY4GGP3MSG5C3H9PQ1 (+ (get-balance 'SP1QZT85MFT8HBAG3XEK7K6QY4GGP3MSG5C3H9PQ1) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u10) 'SP1QZT85MFT8HBAG3XEK7K6QY4GGP3MSG5C3H9PQ1))
      (map-set token-count 'SP1QZT85MFT8HBAG3XEK7K6QY4GGP3MSG5C3H9PQ1 (+ (get-balance 'SP1QZT85MFT8HBAG3XEK7K6QY4GGP3MSG5C3H9PQ1) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u11) 'SP1QZT85MFT8HBAG3XEK7K6QY4GGP3MSG5C3H9PQ1))
      (map-set token-count 'SP1QZT85MFT8HBAG3XEK7K6QY4GGP3MSG5C3H9PQ1 (+ (get-balance 'SP1QZT85MFT8HBAG3XEK7K6QY4GGP3MSG5C3H9PQ1) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u12) 'SP1R3EWZM6M102P5A9AJGJMA5YZTR6PXANK9Z13G3))
      (map-set token-count 'SP1R3EWZM6M102P5A9AJGJMA5YZTR6PXANK9Z13G3 (+ (get-balance 'SP1R3EWZM6M102P5A9AJGJMA5YZTR6PXANK9Z13G3) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u13) 'SP1WXMX9PYKSH86XW29Y30PKKSEAS4MKX9XJQ4GTG))
      (map-set token-count 'SP1WXMX9PYKSH86XW29Y30PKKSEAS4MKX9XJQ4GTG (+ (get-balance 'SP1WXMX9PYKSH86XW29Y30PKKSEAS4MKX9XJQ4GTG) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u14) 'SP1WYHPJJVN3P0PS32BMF33P6WVVK1SNRRS28ZF0G))
      (map-set token-count 'SP1WYHPJJVN3P0PS32BMF33P6WVVK1SNRRS28ZF0G (+ (get-balance 'SP1WYHPJJVN3P0PS32BMF33P6WVVK1SNRRS28ZF0G) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u15) 'SP1Y60B0GCM1P040N7Y0QD9R93Y5EZRJ8YH2BV5NW))
      (map-set token-count 'SP1Y60B0GCM1P040N7Y0QD9R93Y5EZRJ8YH2BV5NW (+ (get-balance 'SP1Y60B0GCM1P040N7Y0QD9R93Y5EZRJ8YH2BV5NW) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u16) 'SP1Y60B0GCM1P040N7Y0QD9R93Y5EZRJ8YH2BV5NW))
      (map-set token-count 'SP1Y60B0GCM1P040N7Y0QD9R93Y5EZRJ8YH2BV5NW (+ (get-balance 'SP1Y60B0GCM1P040N7Y0QD9R93Y5EZRJ8YH2BV5NW) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u17) 'SP1Y60B0GCM1P040N7Y0QD9R93Y5EZRJ8YH2BV5NW))
      (map-set token-count 'SP1Y60B0GCM1P040N7Y0QD9R93Y5EZRJ8YH2BV5NW (+ (get-balance 'SP1Y60B0GCM1P040N7Y0QD9R93Y5EZRJ8YH2BV5NW) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u18) 'SP1ZQSWQ9QNNW388VFG45HYX1H592147V2FZZJY8V))
      (map-set token-count 'SP1ZQSWQ9QNNW388VFG45HYX1H592147V2FZZJY8V (+ (get-balance 'SP1ZQSWQ9QNNW388VFG45HYX1H592147V2FZZJY8V) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u19) 'SP21665394YPPDZ40SMC8F6NX9R5KZKF0YSRFGX8C))
      (map-set token-count 'SP21665394YPPDZ40SMC8F6NX9R5KZKF0YSRFGX8C (+ (get-balance 'SP21665394YPPDZ40SMC8F6NX9R5KZKF0YSRFGX8C) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u20) 'SP2442CFDMN59676NV6N85SQ4RD6QWJ305Q74S30J))
      (map-set token-count 'SP2442CFDMN59676NV6N85SQ4RD6QWJ305Q74S30J (+ (get-balance 'SP2442CFDMN59676NV6N85SQ4RD6QWJ305Q74S30J) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u21) 'SP247RS63PWW7ZQZ9EYYA9CXKKPWEP71M14W8N294))
      (map-set token-count 'SP247RS63PWW7ZQZ9EYYA9CXKKPWEP71M14W8N294 (+ (get-balance 'SP247RS63PWW7ZQZ9EYYA9CXKKPWEP71M14W8N294) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u22) 'SP247RS63PWW7ZQZ9EYYA9CXKKPWEP71M14W8N294))
      (map-set token-count 'SP247RS63PWW7ZQZ9EYYA9CXKKPWEP71M14W8N294 (+ (get-balance 'SP247RS63PWW7ZQZ9EYYA9CXKKPWEP71M14W8N294) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u23) 'SP24GYRG3M7T0S6FZE9RVVP9PNNZQJQ614650G590))
      (map-set token-count 'SP24GYRG3M7T0S6FZE9RVVP9PNNZQJQ614650G590 (+ (get-balance 'SP24GYRG3M7T0S6FZE9RVVP9PNNZQJQ614650G590) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u24) 'SP24GYRG3M7T0S6FZE9RVVP9PNNZQJQ614650G590))
      (map-set token-count 'SP24GYRG3M7T0S6FZE9RVVP9PNNZQJQ614650G590 (+ (get-balance 'SP24GYRG3M7T0S6FZE9RVVP9PNNZQJQ614650G590) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u25) 'SP24GYRG3M7T0S6FZE9RVVP9PNNZQJQ614650G590))
      (map-set token-count 'SP24GYRG3M7T0S6FZE9RVVP9PNNZQJQ614650G590 (+ (get-balance 'SP24GYRG3M7T0S6FZE9RVVP9PNNZQJQ614650G590) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u26) 'SP25QY5WZ8Z4DFC5HGDTEGDNJEAM0DDT433A8QSK2))
      (map-set token-count 'SP25QY5WZ8Z4DFC5HGDTEGDNJEAM0DDT433A8QSK2 (+ (get-balance 'SP25QY5WZ8Z4DFC5HGDTEGDNJEAM0DDT433A8QSK2) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u27) 'SP25QY5WZ8Z4DFC5HGDTEGDNJEAM0DDT433A8QSK2))
      (map-set token-count 'SP25QY5WZ8Z4DFC5HGDTEGDNJEAM0DDT433A8QSK2 (+ (get-balance 'SP25QY5WZ8Z4DFC5HGDTEGDNJEAM0DDT433A8QSK2) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u28) 'SP271CPRFRDSX26GZND9YDD3FSE0JK2B61SBJRAG2))
      (map-set token-count 'SP271CPRFRDSX26GZND9YDD3FSE0JK2B61SBJRAG2 (+ (get-balance 'SP271CPRFRDSX26GZND9YDD3FSE0JK2B61SBJRAG2) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u29) 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV))
      (map-set token-count 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV (+ (get-balance 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u30) 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV))
      (map-set token-count 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV (+ (get-balance 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u31) 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV))
      (map-set token-count 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV (+ (get-balance 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u32) 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV))
      (map-set token-count 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV (+ (get-balance 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u33) 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV))
      (map-set token-count 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV (+ (get-balance 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u34) 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV))
      (map-set token-count 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV (+ (get-balance 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u35) 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV))
      (map-set token-count 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV (+ (get-balance 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u36) 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV))
      (map-set token-count 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV (+ (get-balance 'SP2791RKSYJJ39MVHC09J8NARWBMK5G9C79EJB0RV) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u37) 'SP28RZ1QXMXJXVKRRCR3D7GR5D48XY0NNA9MZWHJB))
      (map-set token-count 'SP28RZ1QXMXJXVKRRCR3D7GR5D48XY0NNA9MZWHJB (+ (get-balance 'SP28RZ1QXMXJXVKRRCR3D7GR5D48XY0NNA9MZWHJB) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u38) 'SP2ABNX65BSKVM00ZQZ7K174DFV18CXVGGEMP7Y6X))
      (map-set token-count 'SP2ABNX65BSKVM00ZQZ7K174DFV18CXVGGEMP7Y6X (+ (get-balance 'SP2ABNX65BSKVM00ZQZ7K174DFV18CXVGGEMP7Y6X) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u39) 'SP2E03GHWY145XMFDTHX4Z913EADP4RMZ0P0DCTE9))
      (map-set token-count 'SP2E03GHWY145XMFDTHX4Z913EADP4RMZ0P0DCTE9 (+ (get-balance 'SP2E03GHWY145XMFDTHX4Z913EADP4RMZ0P0DCTE9) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u40) 'SP2JKPKJCCRTEC1K81W8S3HCFXCP0H7PDKTN0CEGS))
      (map-set token-count 'SP2JKPKJCCRTEC1K81W8S3HCFXCP0H7PDKTN0CEGS (+ (get-balance 'SP2JKPKJCCRTEC1K81W8S3HCFXCP0H7PDKTN0CEGS) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u41) 'SP2QE60HPRY41A767SFT0189KV8JT1MZNFK0BQ3QX))
      (map-set token-count 'SP2QE60HPRY41A767SFT0189KV8JT1MZNFK0BQ3QX (+ (get-balance 'SP2QE60HPRY41A767SFT0189KV8JT1MZNFK0BQ3QX) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u42) 'SP2TGN9DJWTV02B9HRGX6Z43Y7052DTZW6FZVZH0S))
      (map-set token-count 'SP2TGN9DJWTV02B9HRGX6Z43Y7052DTZW6FZVZH0S (+ (get-balance 'SP2TGN9DJWTV02B9HRGX6Z43Y7052DTZW6FZVZH0S) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u43) 'SP2TW1D8YF5CE0NDP5VCR5NMTPHQ4PQR1KBB4NQ5Q))
      (map-set token-count 'SP2TW1D8YF5CE0NDP5VCR5NMTPHQ4PQR1KBB4NQ5Q (+ (get-balance 'SP2TW1D8YF5CE0NDP5VCR5NMTPHQ4PQR1KBB4NQ5Q) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u44) 'SP2TW1D8YF5CE0NDP5VCR5NMTPHQ4PQR1KBB4NQ5Q))
      (map-set token-count 'SP2TW1D8YF5CE0NDP5VCR5NMTPHQ4PQR1KBB4NQ5Q (+ (get-balance 'SP2TW1D8YF5CE0NDP5VCR5NMTPHQ4PQR1KBB4NQ5Q) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u45) 'SP2TW1D8YF5CE0NDP5VCR5NMTPHQ4PQR1KBB4NQ5Q))
      (map-set token-count 'SP2TW1D8YF5CE0NDP5VCR5NMTPHQ4PQR1KBB4NQ5Q (+ (get-balance 'SP2TW1D8YF5CE0NDP5VCR5NMTPHQ4PQR1KBB4NQ5Q) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u46) 'SP2TW1D8YF5CE0NDP5VCR5NMTPHQ4PQR1KBB4NQ5Q))
      (map-set token-count 'SP2TW1D8YF5CE0NDP5VCR5NMTPHQ4PQR1KBB4NQ5Q (+ (get-balance 'SP2TW1D8YF5CE0NDP5VCR5NMTPHQ4PQR1KBB4NQ5Q) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u47) 'SP2Z4GMM1KM7KEZEX112A9MPKE1MDDQ9W6PGTMAC3))
      (map-set token-count 'SP2Z4GMM1KM7KEZEX112A9MPKE1MDDQ9W6PGTMAC3 (+ (get-balance 'SP2Z4GMM1KM7KEZEX112A9MPKE1MDDQ9W6PGTMAC3) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u48) 'SP2Z4GMM1KM7KEZEX112A9MPKE1MDDQ9W6PGTMAC3))
      (map-set token-count 'SP2Z4GMM1KM7KEZEX112A9MPKE1MDDQ9W6PGTMAC3 (+ (get-balance 'SP2Z4GMM1KM7KEZEX112A9MPKE1MDDQ9W6PGTMAC3) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u49) 'SP2Z4GMM1KM7KEZEX112A9MPKE1MDDQ9W6PGTMAC3))
      (map-set token-count 'SP2Z4GMM1KM7KEZEX112A9MPKE1MDDQ9W6PGTMAC3 (+ (get-balance 'SP2Z4GMM1KM7KEZEX112A9MPKE1MDDQ9W6PGTMAC3) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u50) 'SP30E7R3ZQVT7XE4GGQ4XVFR90V161263VG2F5YHC))
      (map-set token-count 'SP30E7R3ZQVT7XE4GGQ4XVFR90V161263VG2F5YHC (+ (get-balance 'SP30E7R3ZQVT7XE4GGQ4XVFR90V161263VG2F5YHC) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u51) 'SP30MX9SS3S6DAY1BRXSQT5SQGQ0PX391MY1YPBF8))
      (map-set token-count 'SP30MX9SS3S6DAY1BRXSQT5SQGQ0PX391MY1YPBF8 (+ (get-balance 'SP30MX9SS3S6DAY1BRXSQT5SQGQ0PX391MY1YPBF8) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u52) 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP))
      (map-set token-count 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP (+ (get-balance 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u53) 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP))
      (map-set token-count 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP (+ (get-balance 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u54) 'SP32V5EAKRWZ66VVA67XGDK18VYMZM5NT7NP98M9))
      (map-set token-count 'SP32V5EAKRWZ66VVA67XGDK18VYMZM5NT7NP98M9 (+ (get-balance 'SP32V5EAKRWZ66VVA67XGDK18VYMZM5NT7NP98M9) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u55) 'SP36MCQHXPP0DZ2KPC1KEY6ERC8GKB6QVCAK0PQYG))
      (map-set token-count 'SP36MCQHXPP0DZ2KPC1KEY6ERC8GKB6QVCAK0PQYG (+ (get-balance 'SP36MCQHXPP0DZ2KPC1KEY6ERC8GKB6QVCAK0PQYG) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u56) 'SP38WZ44X5X4ZYJQ4V9A9R756AY0BAH3S524M81XE))
      (map-set token-count 'SP38WZ44X5X4ZYJQ4V9A9R756AY0BAH3S524M81XE (+ (get-balance 'SP38WZ44X5X4ZYJQ4V9A9R756AY0BAH3S524M81XE) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u57) 'SP3A09H1JEB4F85FZ6XEXRSZA210SC6RB7Q7V7DAF))
      (map-set token-count 'SP3A09H1JEB4F85FZ6XEXRSZA210SC6RB7Q7V7DAF (+ (get-balance 'SP3A09H1JEB4F85FZ6XEXRSZA210SC6RB7Q7V7DAF) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u58) 'SP3B84QWAXRAKB67Z4TB33SY5G0BGGVQC36526QN6))
      (map-set token-count 'SP3B84QWAXRAKB67Z4TB33SY5G0BGGVQC36526QN6 (+ (get-balance 'SP3B84QWAXRAKB67Z4TB33SY5G0BGGVQC36526QN6) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u59) 'SP3EQ7FQ8TFXB792P7VAGRXER0YNFMGM1Y8RS69RC))
      (map-set token-count 'SP3EQ7FQ8TFXB792P7VAGRXER0YNFMGM1Y8RS69RC (+ (get-balance 'SP3EQ7FQ8TFXB792P7VAGRXER0YNFMGM1Y8RS69RC) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u60) 'SP3EQ7FQ8TFXB792P7VAGRXER0YNFMGM1Y8RS69RC))
      (map-set token-count 'SP3EQ7FQ8TFXB792P7VAGRXER0YNFMGM1Y8RS69RC (+ (get-balance 'SP3EQ7FQ8TFXB792P7VAGRXER0YNFMGM1Y8RS69RC) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u61) 'SP3EQ7FQ8TFXB792P7VAGRXER0YNFMGM1Y8RS69RC))
      (map-set token-count 'SP3EQ7FQ8TFXB792P7VAGRXER0YNFMGM1Y8RS69RC (+ (get-balance 'SP3EQ7FQ8TFXB792P7VAGRXER0YNFMGM1Y8RS69RC) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u62) 'SP3EQ7FQ8TFXB792P7VAGRXER0YNFMGM1Y8RS69RC))
      (map-set token-count 'SP3EQ7FQ8TFXB792P7VAGRXER0YNFMGM1Y8RS69RC (+ (get-balance 'SP3EQ7FQ8TFXB792P7VAGRXER0YNFMGM1Y8RS69RC) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u63) 'SP3EQ7FQ8TFXB792P7VAGRXER0YNFMGM1Y8RS69RC))
      (map-set token-count 'SP3EQ7FQ8TFXB792P7VAGRXER0YNFMGM1Y8RS69RC (+ (get-balance 'SP3EQ7FQ8TFXB792P7VAGRXER0YNFMGM1Y8RS69RC) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u64) 'SP3FRT6WTV0NGX5NX8EHJZDA7R79CKGGNQJEC0WQ9))
      (map-set token-count 'SP3FRT6WTV0NGX5NX8EHJZDA7R79CKGGNQJEC0WQ9 (+ (get-balance 'SP3FRT6WTV0NGX5NX8EHJZDA7R79CKGGNQJEC0WQ9) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u65) 'SP3FRT6WTV0NGX5NX8EHJZDA7R79CKGGNQJEC0WQ9))
      (map-set token-count 'SP3FRT6WTV0NGX5NX8EHJZDA7R79CKGGNQJEC0WQ9 (+ (get-balance 'SP3FRT6WTV0NGX5NX8EHJZDA7R79CKGGNQJEC0WQ9) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u66) 'SP3K22XKPT9WJFCE957J94J6XXVZHP7747YNPDTFD))
      (map-set token-count 'SP3K22XKPT9WJFCE957J94J6XXVZHP7747YNPDTFD (+ (get-balance 'SP3K22XKPT9WJFCE957J94J6XXVZHP7747YNPDTFD) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u67) 'SP3KXV3J6MRHAH4H89MDS390X1KS0GQN4DWQ5RFVB))
      (map-set token-count 'SP3KXV3J6MRHAH4H89MDS390X1KS0GQN4DWQ5RFVB (+ (get-balance 'SP3KXV3J6MRHAH4H89MDS390X1KS0GQN4DWQ5RFVB) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u68) 'SP3M72S3S5085CHCMH6KWQG6NGFT9MYFJRZX036P2))
      (map-set token-count 'SP3M72S3S5085CHCMH6KWQG6NGFT9MYFJRZX036P2 (+ (get-balance 'SP3M72S3S5085CHCMH6KWQG6NGFT9MYFJRZX036P2) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u69) 'SP3P8PMKMYJQ9V16A6EZW2XHH1P29JN58R31VQ4VJ))
      (map-set token-count 'SP3P8PMKMYJQ9V16A6EZW2XHH1P29JN58R31VQ4VJ (+ (get-balance 'SP3P8PMKMYJQ9V16A6EZW2XHH1P29JN58R31VQ4VJ) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u70) 'SP3P8PMKMYJQ9V16A6EZW2XHH1P29JN58R31VQ4VJ))
      (map-set token-count 'SP3P8PMKMYJQ9V16A6EZW2XHH1P29JN58R31VQ4VJ (+ (get-balance 'SP3P8PMKMYJQ9V16A6EZW2XHH1P29JN58R31VQ4VJ) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u71) 'SP3P8PMKMYJQ9V16A6EZW2XHH1P29JN58R31VQ4VJ))
      (map-set token-count 'SP3P8PMKMYJQ9V16A6EZW2XHH1P29JN58R31VQ4VJ (+ (get-balance 'SP3P8PMKMYJQ9V16A6EZW2XHH1P29JN58R31VQ4VJ) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u72) 'SP3RRA0RQDNGRQYM0K64EVX8E0MBH0DEPPPN4KQG8))
      (map-set token-count 'SP3RRA0RQDNGRQYM0K64EVX8E0MBH0DEPPPN4KQG8 (+ (get-balance 'SP3RRA0RQDNGRQYM0K64EVX8E0MBH0DEPPPN4KQG8) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u73) 'SP3RRA0RQDNGRQYM0K64EVX8E0MBH0DEPPPN4KQG8))
      (map-set token-count 'SP3RRA0RQDNGRQYM0K64EVX8E0MBH0DEPPPN4KQG8 (+ (get-balance 'SP3RRA0RQDNGRQYM0K64EVX8E0MBH0DEPPPN4KQG8) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u74) 'SP3TZ3BCB16A0W0PPFYMGTTWTT3DVWTQEP8DFRAG1))
      (map-set token-count 'SP3TZ3BCB16A0W0PPFYMGTTWTT3DVWTQEP8DFRAG1 (+ (get-balance 'SP3TZ3BCB16A0W0PPFYMGTTWTT3DVWTQEP8DFRAG1) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u75) 'SP3TZ3BCB16A0W0PPFYMGTTWTT3DVWTQEP8DFRAG1))
      (map-set token-count 'SP3TZ3BCB16A0W0PPFYMGTTWTT3DVWTQEP8DFRAG1 (+ (get-balance 'SP3TZ3BCB16A0W0PPFYMGTTWTT3DVWTQEP8DFRAG1) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u76) 'SP3TZ3BCB16A0W0PPFYMGTTWTT3DVWTQEP8DFRAG1))
      (map-set token-count 'SP3TZ3BCB16A0W0PPFYMGTTWTT3DVWTQEP8DFRAG1 (+ (get-balance 'SP3TZ3BCB16A0W0PPFYMGTTWTT3DVWTQEP8DFRAG1) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u77) 'SP3TZ3BCB16A0W0PPFYMGTTWTT3DVWTQEP8DFRAG1))
      (map-set token-count 'SP3TZ3BCB16A0W0PPFYMGTTWTT3DVWTQEP8DFRAG1 (+ (get-balance 'SP3TZ3BCB16A0W0PPFYMGTTWTT3DVWTQEP8DFRAG1) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u78) 'SP3TZ3BCB16A0W0PPFYMGTTWTT3DVWTQEP8DFRAG1))
      (map-set token-count 'SP3TZ3BCB16A0W0PPFYMGTTWTT3DVWTQEP8DFRAG1 (+ (get-balance 'SP3TZ3BCB16A0W0PPFYMGTTWTT3DVWTQEP8DFRAG1) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u79) 'SP3WBYAEWN0JER1VPBW8TRT1329BGP9RGC5S2519W))
      (map-set token-count 'SP3WBYAEWN0JER1VPBW8TRT1329BGP9RGC5S2519W (+ (get-balance 'SP3WBYAEWN0JER1VPBW8TRT1329BGP9RGC5S2519W) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u80) 'SP4ZZRRZHD344VCABQNZ9MDQ09TBKWXVCY4T0760))
      (map-set token-count 'SP4ZZRRZHD344VCABQNZ9MDQ09TBKWXVCY4T0760 (+ (get-balance 'SP4ZZRRZHD344VCABQNZ9MDQ09TBKWXVCY4T0760) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u81) 'SP6HYDNWHSSTZFS0HAR4FDRPXK3EK603S0BYJHFJ))
      (map-set token-count 'SP6HYDNWHSSTZFS0HAR4FDRPXK3EK603S0BYJHFJ (+ (get-balance 'SP6HYDNWHSSTZFS0HAR4FDRPXK3EK603S0BYJHFJ) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u82) 'SP779SC9CDWQVMTRXT0HZCEHSDBXCHNGG7BC1H9B))
      (map-set token-count 'SP779SC9CDWQVMTRXT0HZCEHSDBXCHNGG7BC1H9B (+ (get-balance 'SP779SC9CDWQVMTRXT0HZCEHSDBXCHNGG7BC1H9B) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u83) 'SP8N846PR1492HB2A08R5G96RYNKWRHDJDTBM227))
      (map-set token-count 'SP8N846PR1492HB2A08R5G96RYNKWRHDJDTBM227 (+ (get-balance 'SP8N846PR1492HB2A08R5G96RYNKWRHDJDTBM227) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u84) 'SP9227STGNCZPRTP2T2G3S02M7XB5ENAQB1J82FA))
      (map-set token-count 'SP9227STGNCZPRTP2T2G3S02M7XB5ENAQB1J82FA (+ (get-balance 'SP9227STGNCZPRTP2T2G3S02M7XB5ENAQB1J82FA) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u85) 'SPAFPBD7M89973WDEN68FKYW761RQVYNHSEFQZB9))
      (map-set token-count 'SPAFPBD7M89973WDEN68FKYW761RQVYNHSEFQZB9 (+ (get-balance 'SPAFPBD7M89973WDEN68FKYW761RQVYNHSEFQZB9) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u86) 'SPF42XNA138JDVDD11Q3WNZQBW8XJPWPXJGTTTB4))
      (map-set token-count 'SPF42XNA138JDVDD11Q3WNZQBW8XJPWPXJGTTTB4 (+ (get-balance 'SPF42XNA138JDVDD11Q3WNZQBW8XJPWPXJGTTTB4) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u87) 'SPF42XNA138JDVDD11Q3WNZQBW8XJPWPXJGTTTB4))
      (map-set token-count 'SPF42XNA138JDVDD11Q3WNZQBW8XJPWPXJGTTTB4 (+ (get-balance 'SPF42XNA138JDVDD11Q3WNZQBW8XJPWPXJGTTTB4) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u88) 'SPF42XNA138JDVDD11Q3WNZQBW8XJPWPXJGTTTB4))
      (map-set token-count 'SPF42XNA138JDVDD11Q3WNZQBW8XJPWPXJGTTTB4 (+ (get-balance 'SPF42XNA138JDVDD11Q3WNZQBW8XJPWPXJGTTTB4) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u89) 'SPHK8A7P61C6ASWKYDX1PCDX9YA54DKVJN49EXGJ))
      (map-set token-count 'SPHK8A7P61C6ASWKYDX1PCDX9YA54DKVJN49EXGJ (+ (get-balance 'SPHK8A7P61C6ASWKYDX1PCDX9YA54DKVJN49EXGJ) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u90) 'SPHK8A7P61C6ASWKYDX1PCDX9YA54DKVJN49EXGJ))
      (map-set token-count 'SPHK8A7P61C6ASWKYDX1PCDX9YA54DKVJN49EXGJ (+ (get-balance 'SPHK8A7P61C6ASWKYDX1PCDX9YA54DKVJN49EXGJ) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u91) 'SPNDNPQ98RPC4N3PQX4CZJ9SF0K6D0Y9WAVP80S5))
      (map-set token-count 'SPNDNPQ98RPC4N3PQX4CZJ9SF0K6D0Y9WAVP80S5 (+ (get-balance 'SPNDNPQ98RPC4N3PQX4CZJ9SF0K6D0Y9WAVP80S5) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u92) 'SPNDNPQ98RPC4N3PQX4CZJ9SF0K6D0Y9WAVP80S5))
      (map-set token-count 'SPNDNPQ98RPC4N3PQX4CZJ9SF0K6D0Y9WAVP80S5 (+ (get-balance 'SPNDNPQ98RPC4N3PQX4CZJ9SF0K6D0Y9WAVP80S5) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u93) 'SPNDNPQ98RPC4N3PQX4CZJ9SF0K6D0Y9WAVP80S5))
      (map-set token-count 'SPNDNPQ98RPC4N3PQX4CZJ9SF0K6D0Y9WAVP80S5 (+ (get-balance 'SPNDNPQ98RPC4N3PQX4CZJ9SF0K6D0Y9WAVP80S5) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u94) 'SPNDNPQ98RPC4N3PQX4CZJ9SF0K6D0Y9WAVP80S5))
      (map-set token-count 'SPNDNPQ98RPC4N3PQX4CZJ9SF0K6D0Y9WAVP80S5 (+ (get-balance 'SPNDNPQ98RPC4N3PQX4CZJ9SF0K6D0Y9WAVP80S5) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u95) 'SPP28QCMZ51GVN9933VFH9TXKQ3XCT4WE5A07533))
      (map-set token-count 'SPP28QCMZ51GVN9933VFH9TXKQ3XCT4WE5A07533 (+ (get-balance 'SPP28QCMZ51GVN9933VFH9TXKQ3XCT4WE5A07533) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u96) 'SPP28QCMZ51GVN9933VFH9TXKQ3XCT4WE5A07533))
      (map-set token-count 'SPP28QCMZ51GVN9933VFH9TXKQ3XCT4WE5A07533 (+ (get-balance 'SPP28QCMZ51GVN9933VFH9TXKQ3XCT4WE5A07533) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u97) 'SPQE3J7XMMK0DN0BWJZHGE6B05VDYQRXRMDV734D))
      (map-set token-count 'SPQE3J7XMMK0DN0BWJZHGE6B05VDYQRXRMDV734D (+ (get-balance 'SPQE3J7XMMK0DN0BWJZHGE6B05VDYQRXRMDV734D) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u98) 'SPQE3J7XMMK0DN0BWJZHGE6B05VDYQRXRMDV734D))
      (map-set token-count 'SPQE3J7XMMK0DN0BWJZHGE6B05VDYQRXRMDV734D (+ (get-balance 'SPQE3J7XMMK0DN0BWJZHGE6B05VDYQRXRMDV734D) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u99) 'SPV00QHST52GD7D0SEWV3R5N04RD4Q1PMA3TE2MP))
      (map-set token-count 'SPV00QHST52GD7D0SEWV3R5N04RD4Q1PMA3TE2MP (+ (get-balance 'SPV00QHST52GD7D0SEWV3R5N04RD4Q1PMA3TE2MP) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u100) 'SPV00QHST52GD7D0SEWV3R5N04RD4Q1PMA3TE2MP))
      (map-set token-count 'SPV00QHST52GD7D0SEWV3R5N04RD4Q1PMA3TE2MP (+ (get-balance 'SPV00QHST52GD7D0SEWV3R5N04RD4Q1PMA3TE2MP) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u101) 'SPV00QHST52GD7D0SEWV3R5N04RD4Q1PMA3TE2MP))
      (map-set token-count 'SPV00QHST52GD7D0SEWV3R5N04RD4Q1PMA3TE2MP (+ (get-balance 'SPV00QHST52GD7D0SEWV3R5N04RD4Q1PMA3TE2MP) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u102) 'SPHK8A7P61C6ASWKYDX1PCDX9YA54DKVJN49EXGJ))
      (map-set token-count 'SPHK8A7P61C6ASWKYDX1PCDX9YA54DKVJN49EXGJ (+ (get-balance 'SPHK8A7P61C6ASWKYDX1PCDX9YA54DKVJN49EXGJ) u1))
      (try! (nft-mint? heart-beat (+ last-nft-id u103) 'SP3CRGM0QHHD36B57FXZW60EQS7NM6XJK8WC7T34S))
      (map-set token-count 'SP3CRGM0QHHD36B57FXZW60EQS7NM6XJK8WC7T34S (+ (get-balance 'SP3CRGM0QHHD36B57FXZW60EQS7NM6XJK8WC7T34S) u1))

      (var-set last-id (+ last-nft-id u104))
      (var-set airdrop-called true)
      (ok true))))