;; nonnish-harvest-helpers
;; contractType: public

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

(define-non-fungible-token nonnish-harvest-helpers 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 u201)
(define-data-var last-id uint u1)
(define-data-var total-price uint u100000000)
(define-data-var artist-address principal 'SP1D3Y8A2VVD2W98VFXCG5AXRYX5PJBBEMV1YPKF1)
(define-data-var ipfs-root (string-ascii 80) "ipfs://ipfs/QmSLXy6Pfp7uJHYk89nH3p6DbQhzm8K4FYxxJnMoPb1JDB/json/")
(define-data-var mint-paused bool true)
(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-two) (mint (list true true)))

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

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

(define-public (claim-five) (mint (list 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? nonnish-harvest-helpers 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? nonnish-harvest-helpers token-id tx-sender)))

(define-private (is-owner (token-id uint) (user principal))
    (is-eq user (unwrap! (nft-get-owner? nonnish-harvest-helpers 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? nonnish-harvest-helpers 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-artist-address)
  (ok (var-get artist-address)))

(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? nonnish-harvest-helpers 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? nonnish-harvest-helpers 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? nonnish-harvest-helpers 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? nonnish-harvest-helpers (+ last-nft-id u0) 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6))
      (map-set token-count 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6 (+ (get-balance 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u1) 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6))
      (map-set token-count 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6 (+ (get-balance 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u2) 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6))
      (map-set token-count 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6 (+ (get-balance 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u3) 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6))
      (map-set token-count 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6 (+ (get-balance 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u4) 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6))
      (map-set token-count 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6 (+ (get-balance 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u5) 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6))
      (map-set token-count 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6 (+ (get-balance 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u6) 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6))
      (map-set token-count 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6 (+ (get-balance 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u7) 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6))
      (map-set token-count 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6 (+ (get-balance 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u8) 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6))
      (map-set token-count 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6 (+ (get-balance 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u9) 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6))
      (map-set token-count 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6 (+ (get-balance 'SPVCMKZTGYMKYJEHFN4FABNFBBYMM02HNF66A6N6) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u10) 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH))
      (map-set token-count 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH (+ (get-balance 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u11) 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH))
      (map-set token-count 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH (+ (get-balance 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u12) 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH))
      (map-set token-count 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH (+ (get-balance 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u13) 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH))
      (map-set token-count 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH (+ (get-balance 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u14) 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH))
      (map-set token-count 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH (+ (get-balance 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u15) 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH))
      (map-set token-count 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH (+ (get-balance 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u16) 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH))
      (map-set token-count 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH (+ (get-balance 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u17) 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH))
      (map-set token-count 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH (+ (get-balance 'SP3EPS563XJNK170J902C78ZPDPNXVZFWWCN7DGWH) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u18) 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD))
      (map-set token-count 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD (+ (get-balance 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u19) 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD))
      (map-set token-count 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD (+ (get-balance 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u20) 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD))
      (map-set token-count 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD (+ (get-balance 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u21) 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD))
      (map-set token-count 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD (+ (get-balance 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u22) 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD))
      (map-set token-count 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD (+ (get-balance 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u23) 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD))
      (map-set token-count 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD (+ (get-balance 'SPM1Q7YG18378H6W254YN8PABEVRPT38ZCY01SJD) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u24) 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP))
      (map-set token-count 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP (+ (get-balance 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u25) 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP))
      (map-set token-count 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP (+ (get-balance 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u26) 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP))
      (map-set token-count 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP (+ (get-balance 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u27) 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP))
      (map-set token-count 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP (+ (get-balance 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u28) 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP))
      (map-set token-count 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP (+ (get-balance 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u29) 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP))
      (map-set token-count 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP (+ (get-balance 'SP329G766AV8Z01X9EEAHPDQ4WDJXT2A0XB383MGP) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u30) 'SP1TQZS5G1Y47KXWQE8WG2Q606664A7MFMPVCKHRZ))
      (map-set token-count 'SP1TQZS5G1Y47KXWQE8WG2Q606664A7MFMPVCKHRZ (+ (get-balance 'SP1TQZS5G1Y47KXWQE8WG2Q606664A7MFMPVCKHRZ) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u31) 'SP1TQZS5G1Y47KXWQE8WG2Q606664A7MFMPVCKHRZ))
      (map-set token-count 'SP1TQZS5G1Y47KXWQE8WG2Q606664A7MFMPVCKHRZ (+ (get-balance 'SP1TQZS5G1Y47KXWQE8WG2Q606664A7MFMPVCKHRZ) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u32) 'SP1TQZS5G1Y47KXWQE8WG2Q606664A7MFMPVCKHRZ))
      (map-set token-count 'SP1TQZS5G1Y47KXWQE8WG2Q606664A7MFMPVCKHRZ (+ (get-balance 'SP1TQZS5G1Y47KXWQE8WG2Q606664A7MFMPVCKHRZ) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u33) 'SP1TQZS5G1Y47KXWQE8WG2Q606664A7MFMPVCKHRZ))
      (map-set token-count 'SP1TQZS5G1Y47KXWQE8WG2Q606664A7MFMPVCKHRZ (+ (get-balance 'SP1TQZS5G1Y47KXWQE8WG2Q606664A7MFMPVCKHRZ) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u34) 'SP1TQZS5G1Y47KXWQE8WG2Q606664A7MFMPVCKHRZ))
      (map-set token-count 'SP1TQZS5G1Y47KXWQE8WG2Q606664A7MFMPVCKHRZ (+ (get-balance 'SP1TQZS5G1Y47KXWQE8WG2Q606664A7MFMPVCKHRZ) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u35) 'SP2PBW5WPNJ88BZVNDVP4KCTN9HJGNNR1BQA6G1W6))
      (map-set token-count 'SP2PBW5WPNJ88BZVNDVP4KCTN9HJGNNR1BQA6G1W6 (+ (get-balance 'SP2PBW5WPNJ88BZVNDVP4KCTN9HJGNNR1BQA6G1W6) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u36) 'SP2PBW5WPNJ88BZVNDVP4KCTN9HJGNNR1BQA6G1W6))
      (map-set token-count 'SP2PBW5WPNJ88BZVNDVP4KCTN9HJGNNR1BQA6G1W6 (+ (get-balance 'SP2PBW5WPNJ88BZVNDVP4KCTN9HJGNNR1BQA6G1W6) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u37) 'SP2PBW5WPNJ88BZVNDVP4KCTN9HJGNNR1BQA6G1W6))
      (map-set token-count 'SP2PBW5WPNJ88BZVNDVP4KCTN9HJGNNR1BQA6G1W6 (+ (get-balance 'SP2PBW5WPNJ88BZVNDVP4KCTN9HJGNNR1BQA6G1W6) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u38) 'SP2PBW5WPNJ88BZVNDVP4KCTN9HJGNNR1BQA6G1W6))
      (map-set token-count 'SP2PBW5WPNJ88BZVNDVP4KCTN9HJGNNR1BQA6G1W6 (+ (get-balance 'SP2PBW5WPNJ88BZVNDVP4KCTN9HJGNNR1BQA6G1W6) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u39) 'SP1F9156MENFJTEWE6WJPMVWFAHNGKGC7YJX6HK72))
      (map-set token-count 'SP1F9156MENFJTEWE6WJPMVWFAHNGKGC7YJX6HK72 (+ (get-balance 'SP1F9156MENFJTEWE6WJPMVWFAHNGKGC7YJX6HK72) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u40) 'SP1F9156MENFJTEWE6WJPMVWFAHNGKGC7YJX6HK72))
      (map-set token-count 'SP1F9156MENFJTEWE6WJPMVWFAHNGKGC7YJX6HK72 (+ (get-balance 'SP1F9156MENFJTEWE6WJPMVWFAHNGKGC7YJX6HK72) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u41) 'SP1F9156MENFJTEWE6WJPMVWFAHNGKGC7YJX6HK72))
      (map-set token-count 'SP1F9156MENFJTEWE6WJPMVWFAHNGKGC7YJX6HK72 (+ (get-balance 'SP1F9156MENFJTEWE6WJPMVWFAHNGKGC7YJX6HK72) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u42) 'SP1F9156MENFJTEWE6WJPMVWFAHNGKGC7YJX6HK72))
      (map-set token-count 'SP1F9156MENFJTEWE6WJPMVWFAHNGKGC7YJX6HK72 (+ (get-balance 'SP1F9156MENFJTEWE6WJPMVWFAHNGKGC7YJX6HK72) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u43) 'SP1XGVC95Z0HPG50YPEV5XZB5YA08DC29B0XZWBWN))
      (map-set token-count 'SP1XGVC95Z0HPG50YPEV5XZB5YA08DC29B0XZWBWN (+ (get-balance 'SP1XGVC95Z0HPG50YPEV5XZB5YA08DC29B0XZWBWN) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u44) 'SP1XGVC95Z0HPG50YPEV5XZB5YA08DC29B0XZWBWN))
      (map-set token-count 'SP1XGVC95Z0HPG50YPEV5XZB5YA08DC29B0XZWBWN (+ (get-balance 'SP1XGVC95Z0HPG50YPEV5XZB5YA08DC29B0XZWBWN) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u45) 'SP1XGVC95Z0HPG50YPEV5XZB5YA08DC29B0XZWBWN))
      (map-set token-count 'SP1XGVC95Z0HPG50YPEV5XZB5YA08DC29B0XZWBWN (+ (get-balance 'SP1XGVC95Z0HPG50YPEV5XZB5YA08DC29B0XZWBWN) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u46) 'SP1XGVC95Z0HPG50YPEV5XZB5YA08DC29B0XZWBWN))
      (map-set token-count 'SP1XGVC95Z0HPG50YPEV5XZB5YA08DC29B0XZWBWN (+ (get-balance 'SP1XGVC95Z0HPG50YPEV5XZB5YA08DC29B0XZWBWN) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u47) 'SP31WTJ415SNJM9H6202S3WK9AFQXQZMT48PESBQE))
      (map-set token-count 'SP31WTJ415SNJM9H6202S3WK9AFQXQZMT48PESBQE (+ (get-balance 'SP31WTJ415SNJM9H6202S3WK9AFQXQZMT48PESBQE) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u48) 'SP31WTJ415SNJM9H6202S3WK9AFQXQZMT48PESBQE))
      (map-set token-count 'SP31WTJ415SNJM9H6202S3WK9AFQXQZMT48PESBQE (+ (get-balance 'SP31WTJ415SNJM9H6202S3WK9AFQXQZMT48PESBQE) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u49) 'SP31WTJ415SNJM9H6202S3WK9AFQXQZMT48PESBQE))
      (map-set token-count 'SP31WTJ415SNJM9H6202S3WK9AFQXQZMT48PESBQE (+ (get-balance 'SP31WTJ415SNJM9H6202S3WK9AFQXQZMT48PESBQE) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u50) 'SP31WTJ415SNJM9H6202S3WK9AFQXQZMT48PESBQE))
      (map-set token-count 'SP31WTJ415SNJM9H6202S3WK9AFQXQZMT48PESBQE (+ (get-balance 'SP31WTJ415SNJM9H6202S3WK9AFQXQZMT48PESBQE) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u51) 'SP2KSK3WJ1TJWMBWWEAA5043ARA21ZNFCARTHT8EZ))
      (map-set token-count 'SP2KSK3WJ1TJWMBWWEAA5043ARA21ZNFCARTHT8EZ (+ (get-balance 'SP2KSK3WJ1TJWMBWWEAA5043ARA21ZNFCARTHT8EZ) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u52) 'SP2KSK3WJ1TJWMBWWEAA5043ARA21ZNFCARTHT8EZ))
      (map-set token-count 'SP2KSK3WJ1TJWMBWWEAA5043ARA21ZNFCARTHT8EZ (+ (get-balance 'SP2KSK3WJ1TJWMBWWEAA5043ARA21ZNFCARTHT8EZ) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u53) 'SP2KSK3WJ1TJWMBWWEAA5043ARA21ZNFCARTHT8EZ))
      (map-set token-count 'SP2KSK3WJ1TJWMBWWEAA5043ARA21ZNFCARTHT8EZ (+ (get-balance 'SP2KSK3WJ1TJWMBWWEAA5043ARA21ZNFCARTHT8EZ) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u54) 'SP3C5W9RSSYG3SVP192DCQY4Z2WQWPJ9YEERKTPSY))
      (map-set token-count 'SP3C5W9RSSYG3SVP192DCQY4Z2WQWPJ9YEERKTPSY (+ (get-balance 'SP3C5W9RSSYG3SVP192DCQY4Z2WQWPJ9YEERKTPSY) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u55) 'SP3C5W9RSSYG3SVP192DCQY4Z2WQWPJ9YEERKTPSY))
      (map-set token-count 'SP3C5W9RSSYG3SVP192DCQY4Z2WQWPJ9YEERKTPSY (+ (get-balance 'SP3C5W9RSSYG3SVP192DCQY4Z2WQWPJ9YEERKTPSY) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u56) 'SP3C5W9RSSYG3SVP192DCQY4Z2WQWPJ9YEERKTPSY))
      (map-set token-count 'SP3C5W9RSSYG3SVP192DCQY4Z2WQWPJ9YEERKTPSY (+ (get-balance 'SP3C5W9RSSYG3SVP192DCQY4Z2WQWPJ9YEERKTPSY) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u57) 'SP3C5W9RSSYG3SVP192DCQY4Z2WQWPJ9YEERKTPSY))
      (map-set token-count 'SP3C5W9RSSYG3SVP192DCQY4Z2WQWPJ9YEERKTPSY (+ (get-balance 'SP3C5W9RSSYG3SVP192DCQY4Z2WQWPJ9YEERKTPSY) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u58) 'SP1FR2M102H4DE4DH96R4D29RC8AGQZG5D5Y4S7CH))
      (map-set token-count 'SP1FR2M102H4DE4DH96R4D29RC8AGQZG5D5Y4S7CH (+ (get-balance 'SP1FR2M102H4DE4DH96R4D29RC8AGQZG5D5Y4S7CH) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u59) 'SP1FR2M102H4DE4DH96R4D29RC8AGQZG5D5Y4S7CH))
      (map-set token-count 'SP1FR2M102H4DE4DH96R4D29RC8AGQZG5D5Y4S7CH (+ (get-balance 'SP1FR2M102H4DE4DH96R4D29RC8AGQZG5D5Y4S7CH) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u60) 'SP1FR2M102H4DE4DH96R4D29RC8AGQZG5D5Y4S7CH))
      (map-set token-count 'SP1FR2M102H4DE4DH96R4D29RC8AGQZG5D5Y4S7CH (+ (get-balance 'SP1FR2M102H4DE4DH96R4D29RC8AGQZG5D5Y4S7CH) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u61) 'SP1FR2M102H4DE4DH96R4D29RC8AGQZG5D5Y4S7CH))
      (map-set token-count 'SP1FR2M102H4DE4DH96R4D29RC8AGQZG5D5Y4S7CH (+ (get-balance 'SP1FR2M102H4DE4DH96R4D29RC8AGQZG5D5Y4S7CH) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u62) 'SP32CF0E78JNPK0HYDTH3CCZ8FN76PFX5W0FYBN20))
      (map-set token-count 'SP32CF0E78JNPK0HYDTH3CCZ8FN76PFX5W0FYBN20 (+ (get-balance 'SP32CF0E78JNPK0HYDTH3CCZ8FN76PFX5W0FYBN20) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u63) 'SP32CF0E78JNPK0HYDTH3CCZ8FN76PFX5W0FYBN20))
      (map-set token-count 'SP32CF0E78JNPK0HYDTH3CCZ8FN76PFX5W0FYBN20 (+ (get-balance 'SP32CF0E78JNPK0HYDTH3CCZ8FN76PFX5W0FYBN20) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u64) 'SP32CF0E78JNPK0HYDTH3CCZ8FN76PFX5W0FYBN20))
      (map-set token-count 'SP32CF0E78JNPK0HYDTH3CCZ8FN76PFX5W0FYBN20 (+ (get-balance 'SP32CF0E78JNPK0HYDTH3CCZ8FN76PFX5W0FYBN20) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u65) 'SP3AQSW210PFW6K3FB1JW62ZHTH11FSVR0SH5AZ6P))
      (map-set token-count 'SP3AQSW210PFW6K3FB1JW62ZHTH11FSVR0SH5AZ6P (+ (get-balance 'SP3AQSW210PFW6K3FB1JW62ZHTH11FSVR0SH5AZ6P) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u66) 'SP3AQSW210PFW6K3FB1JW62ZHTH11FSVR0SH5AZ6P))
      (map-set token-count 'SP3AQSW210PFW6K3FB1JW62ZHTH11FSVR0SH5AZ6P (+ (get-balance 'SP3AQSW210PFW6K3FB1JW62ZHTH11FSVR0SH5AZ6P) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u67) 'SP3AQSW210PFW6K3FB1JW62ZHTH11FSVR0SH5AZ6P))
      (map-set token-count 'SP3AQSW210PFW6K3FB1JW62ZHTH11FSVR0SH5AZ6P (+ (get-balance 'SP3AQSW210PFW6K3FB1JW62ZHTH11FSVR0SH5AZ6P) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u68) 'SPS2FZ3K6N2CZPBM4BSQCEQV23V2334E7MJ4CHZT))
      (map-set token-count 'SPS2FZ3K6N2CZPBM4BSQCEQV23V2334E7MJ4CHZT (+ (get-balance 'SPS2FZ3K6N2CZPBM4BSQCEQV23V2334E7MJ4CHZT) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u69) 'SPS2FZ3K6N2CZPBM4BSQCEQV23V2334E7MJ4CHZT))
      (map-set token-count 'SPS2FZ3K6N2CZPBM4BSQCEQV23V2334E7MJ4CHZT (+ (get-balance 'SPS2FZ3K6N2CZPBM4BSQCEQV23V2334E7MJ4CHZT) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u70) 'SPS2FZ3K6N2CZPBM4BSQCEQV23V2334E7MJ4CHZT))
      (map-set token-count 'SPS2FZ3K6N2CZPBM4BSQCEQV23V2334E7MJ4CHZT (+ (get-balance 'SPS2FZ3K6N2CZPBM4BSQCEQV23V2334E7MJ4CHZT) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u71) 'SP3Z7511VWR5WG9J3MAKER3NRZYKWT83K2XTP36EV))
      (map-set token-count 'SP3Z7511VWR5WG9J3MAKER3NRZYKWT83K2XTP36EV (+ (get-balance 'SP3Z7511VWR5WG9J3MAKER3NRZYKWT83K2XTP36EV) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u72) 'SP3Z7511VWR5WG9J3MAKER3NRZYKWT83K2XTP36EV))
      (map-set token-count 'SP3Z7511VWR5WG9J3MAKER3NRZYKWT83K2XTP36EV (+ (get-balance 'SP3Z7511VWR5WG9J3MAKER3NRZYKWT83K2XTP36EV) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u73) 'SP3Z7511VWR5WG9J3MAKER3NRZYKWT83K2XTP36EV))
      (map-set token-count 'SP3Z7511VWR5WG9J3MAKER3NRZYKWT83K2XTP36EV (+ (get-balance 'SP3Z7511VWR5WG9J3MAKER3NRZYKWT83K2XTP36EV) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u74) 'SPQ2HN9TYF8ZYY9D3G45NGYA9GHA6QZHQ8AXF5QM))
      (map-set token-count 'SPQ2HN9TYF8ZYY9D3G45NGYA9GHA6QZHQ8AXF5QM (+ (get-balance 'SPQ2HN9TYF8ZYY9D3G45NGYA9GHA6QZHQ8AXF5QM) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u75) 'SPQ2HN9TYF8ZYY9D3G45NGYA9GHA6QZHQ8AXF5QM))
      (map-set token-count 'SPQ2HN9TYF8ZYY9D3G45NGYA9GHA6QZHQ8AXF5QM (+ (get-balance 'SPQ2HN9TYF8ZYY9D3G45NGYA9GHA6QZHQ8AXF5QM) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u76) 'SPQ2HN9TYF8ZYY9D3G45NGYA9GHA6QZHQ8AXF5QM))
      (map-set token-count 'SPQ2HN9TYF8ZYY9D3G45NGYA9GHA6QZHQ8AXF5QM (+ (get-balance 'SPQ2HN9TYF8ZYY9D3G45NGYA9GHA6QZHQ8AXF5QM) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u77) 'SPQY88E87FNMP1NTY2YQ7X5DPTVY810PS8T6D2Y3))
      (map-set token-count 'SPQY88E87FNMP1NTY2YQ7X5DPTVY810PS8T6D2Y3 (+ (get-balance 'SPQY88E87FNMP1NTY2YQ7X5DPTVY810PS8T6D2Y3) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u78) 'SPQY88E87FNMP1NTY2YQ7X5DPTVY810PS8T6D2Y3))
      (map-set token-count 'SPQY88E87FNMP1NTY2YQ7X5DPTVY810PS8T6D2Y3 (+ (get-balance 'SPQY88E87FNMP1NTY2YQ7X5DPTVY810PS8T6D2Y3) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u79) 'SP342MMZRDFSC556F193N76D87SCTYX7SSHD8H3XD))
      (map-set token-count 'SP342MMZRDFSC556F193N76D87SCTYX7SSHD8H3XD (+ (get-balance 'SP342MMZRDFSC556F193N76D87SCTYX7SSHD8H3XD) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u80) 'SP342MMZRDFSC556F193N76D87SCTYX7SSHD8H3XD))
      (map-set token-count 'SP342MMZRDFSC556F193N76D87SCTYX7SSHD8H3XD (+ (get-balance 'SP342MMZRDFSC556F193N76D87SCTYX7SSHD8H3XD) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u81) 'SP2NDK60R7JKQ3SJ98CEHV2CMNDVTFBR541C4KV5Y))
      (map-set token-count 'SP2NDK60R7JKQ3SJ98CEHV2CMNDVTFBR541C4KV5Y (+ (get-balance 'SP2NDK60R7JKQ3SJ98CEHV2CMNDVTFBR541C4KV5Y) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u82) 'SP2NDK60R7JKQ3SJ98CEHV2CMNDVTFBR541C4KV5Y))
      (map-set token-count 'SP2NDK60R7JKQ3SJ98CEHV2CMNDVTFBR541C4KV5Y (+ (get-balance 'SP2NDK60R7JKQ3SJ98CEHV2CMNDVTFBR541C4KV5Y) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u83) 'SP247RS63PWW7ZQZ9EYYA9CXKKPWEP71M14W8N294))
      (map-set token-count 'SP247RS63PWW7ZQZ9EYYA9CXKKPWEP71M14W8N294 (+ (get-balance 'SP247RS63PWW7ZQZ9EYYA9CXKKPWEP71M14W8N294) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u84) 'SP247RS63PWW7ZQZ9EYYA9CXKKPWEP71M14W8N294))
      (map-set token-count 'SP247RS63PWW7ZQZ9EYYA9CXKKPWEP71M14W8N294 (+ (get-balance 'SP247RS63PWW7ZQZ9EYYA9CXKKPWEP71M14W8N294) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u85) 'SP3QBRHQF4BN8HNNGFHCJMQZDB8V20BMGF2VS3MJ2))
      (map-set token-count 'SP3QBRHQF4BN8HNNGFHCJMQZDB8V20BMGF2VS3MJ2 (+ (get-balance 'SP3QBRHQF4BN8HNNGFHCJMQZDB8V20BMGF2VS3MJ2) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u86) 'SP3QBRHQF4BN8HNNGFHCJMQZDB8V20BMGF2VS3MJ2))
      (map-set token-count 'SP3QBRHQF4BN8HNNGFHCJMQZDB8V20BMGF2VS3MJ2 (+ (get-balance 'SP3QBRHQF4BN8HNNGFHCJMQZDB8V20BMGF2VS3MJ2) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u87) 'SP12BEEDG31J0AH68DFDJJYZ36D002PKDZCP1DZQE))
      (map-set token-count 'SP12BEEDG31J0AH68DFDJJYZ36D002PKDZCP1DZQE (+ (get-balance 'SP12BEEDG31J0AH68DFDJJYZ36D002PKDZCP1DZQE) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u88) 'SP12BEEDG31J0AH68DFDJJYZ36D002PKDZCP1DZQE))
      (map-set token-count 'SP12BEEDG31J0AH68DFDJJYZ36D002PKDZCP1DZQE (+ (get-balance 'SP12BEEDG31J0AH68DFDJJYZ36D002PKDZCP1DZQE) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u89) 'SPJSCH3DDEJ8GQPGYZBHSB4F3HX5Q222CG89PSAB))
      (map-set token-count 'SPJSCH3DDEJ8GQPGYZBHSB4F3HX5Q222CG89PSAB (+ (get-balance 'SPJSCH3DDEJ8GQPGYZBHSB4F3HX5Q222CG89PSAB) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u90) 'SP2F18PH7FP22EHS0J0X3A6EFZ9PAW0EZJRET0GXZ))
      (map-set token-count 'SP2F18PH7FP22EHS0J0X3A6EFZ9PAW0EZJRET0GXZ (+ (get-balance 'SP2F18PH7FP22EHS0J0X3A6EFZ9PAW0EZJRET0GXZ) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u91) 'SP2F18PH7FP22EHS0J0X3A6EFZ9PAW0EZJRET0GXZ))
      (map-set token-count 'SP2F18PH7FP22EHS0J0X3A6EFZ9PAW0EZJRET0GXZ (+ (get-balance 'SP2F18PH7FP22EHS0J0X3A6EFZ9PAW0EZJRET0GXZ) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u92) 'SP18WRH4SF7F1M5QZZ2BQDZZYBCJWT9VWQMDSTFY5))
      (map-set token-count 'SP18WRH4SF7F1M5QZZ2BQDZZYBCJWT9VWQMDSTFY5 (+ (get-balance 'SP18WRH4SF7F1M5QZZ2BQDZZYBCJWT9VWQMDSTFY5) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u93) 'SP18WRH4SF7F1M5QZZ2BQDZZYBCJWT9VWQMDSTFY5))
      (map-set token-count 'SP18WRH4SF7F1M5QZZ2BQDZZYBCJWT9VWQMDSTFY5 (+ (get-balance 'SP18WRH4SF7F1M5QZZ2BQDZZYBCJWT9VWQMDSTFY5) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u94) 'SP1DPNP3RRD6JG1557SP6JMX68W5BV6R2Z74BQEXV))
      (map-set token-count 'SP1DPNP3RRD6JG1557SP6JMX68W5BV6R2Z74BQEXV (+ (get-balance 'SP1DPNP3RRD6JG1557SP6JMX68W5BV6R2Z74BQEXV) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u95) 'SP1DPNP3RRD6JG1557SP6JMX68W5BV6R2Z74BQEXV))
      (map-set token-count 'SP1DPNP3RRD6JG1557SP6JMX68W5BV6R2Z74BQEXV (+ (get-balance 'SP1DPNP3RRD6JG1557SP6JMX68W5BV6R2Z74BQEXV) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u96) 'SP9J6BTSPCXGQ5HC066NRYQPK43S48V7K299PTQX))
      (map-set token-count 'SP9J6BTSPCXGQ5HC066NRYQPK43S48V7K299PTQX (+ (get-balance 'SP9J6BTSPCXGQ5HC066NRYQPK43S48V7K299PTQX) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u97) 'SP9J6BTSPCXGQ5HC066NRYQPK43S48V7K299PTQX))
      (map-set token-count 'SP9J6BTSPCXGQ5HC066NRYQPK43S48V7K299PTQX (+ (get-balance 'SP9J6BTSPCXGQ5HC066NRYQPK43S48V7K299PTQX) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u98) 'SP28RZ1QXMXJXVKRRCR3D7GR5D48XY0NNA9MZWHJB))
      (map-set token-count 'SP28RZ1QXMXJXVKRRCR3D7GR5D48XY0NNA9MZWHJB (+ (get-balance 'SP28RZ1QXMXJXVKRRCR3D7GR5D48XY0NNA9MZWHJB) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u99) 'SP28RZ1QXMXJXVKRRCR3D7GR5D48XY0NNA9MZWHJB))
      (map-set token-count 'SP28RZ1QXMXJXVKRRCR3D7GR5D48XY0NNA9MZWHJB (+ (get-balance 'SP28RZ1QXMXJXVKRRCR3D7GR5D48XY0NNA9MZWHJB) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u100) 'SP197GMEG6WGBRDTCTGGWMRA1G77E65TRXWYKGCT7))
      (map-set token-count 'SP197GMEG6WGBRDTCTGGWMRA1G77E65TRXWYKGCT7 (+ (get-balance 'SP197GMEG6WGBRDTCTGGWMRA1G77E65TRXWYKGCT7) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u101) 'SP197GMEG6WGBRDTCTGGWMRA1G77E65TRXWYKGCT7))
      (map-set token-count 'SP197GMEG6WGBRDTCTGGWMRA1G77E65TRXWYKGCT7 (+ (get-balance 'SP197GMEG6WGBRDTCTGGWMRA1G77E65TRXWYKGCT7) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u102) 'SP4QA0NHP03T3T9GJKR5KEA7VQ2KNSXRK5JC74NG))
      (map-set token-count 'SP4QA0NHP03T3T9GJKR5KEA7VQ2KNSXRK5JC74NG (+ (get-balance 'SP4QA0NHP03T3T9GJKR5KEA7VQ2KNSXRK5JC74NG) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u103) 'SP4QA0NHP03T3T9GJKR5KEA7VQ2KNSXRK5JC74NG))
      (map-set token-count 'SP4QA0NHP03T3T9GJKR5KEA7VQ2KNSXRK5JC74NG (+ (get-balance 'SP4QA0NHP03T3T9GJKR5KEA7VQ2KNSXRK5JC74NG) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u104) 'SPP5HXFRZVANS3TGERYQKXHANA7TZZGZYJHBFN13))
      (map-set token-count 'SPP5HXFRZVANS3TGERYQKXHANA7TZZGZYJHBFN13 (+ (get-balance 'SPP5HXFRZVANS3TGERYQKXHANA7TZZGZYJHBFN13) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u105) 'SP3AFTJ38PSZQBXZGNCDGM05GR0SFY7HBPZD2ACR2))
      (map-set token-count 'SP3AFTJ38PSZQBXZGNCDGM05GR0SFY7HBPZD2ACR2 (+ (get-balance 'SP3AFTJ38PSZQBXZGNCDGM05GR0SFY7HBPZD2ACR2) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u106) 'SP36MCQHXPP0DZ2KPC1KEY6ERC8GKB6QVCAK0PQYG))
      (map-set token-count 'SP36MCQHXPP0DZ2KPC1KEY6ERC8GKB6QVCAK0PQYG (+ (get-balance 'SP36MCQHXPP0DZ2KPC1KEY6ERC8GKB6QVCAK0PQYG) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u107) 'SP3Q1VW36FD1HF4J0EFRF2E486QGYNYJASB9PKDKF))
      (map-set token-count 'SP3Q1VW36FD1HF4J0EFRF2E486QGYNYJASB9PKDKF (+ (get-balance 'SP3Q1VW36FD1HF4J0EFRF2E486QGYNYJASB9PKDKF) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u108) 'SP606Y9VBE29GX2PGFR41NTE86DDXPW3C7DX7T8H))
      (map-set token-count 'SP606Y9VBE29GX2PGFR41NTE86DDXPW3C7DX7T8H (+ (get-balance 'SP606Y9VBE29GX2PGFR41NTE86DDXPW3C7DX7T8H) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u109) 'SPN9SQPATME5FN0JGHHGP9MW1WVW26663D5YN2SS))
      (map-set token-count 'SPN9SQPATME5FN0JGHHGP9MW1WVW26663D5YN2SS (+ (get-balance 'SPN9SQPATME5FN0JGHHGP9MW1WVW26663D5YN2SS) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u110) 'SPYAX2RNZA18KQA8Y0S5G393QBE8SWPNZ6R08XNH))
      (map-set token-count 'SPYAX2RNZA18KQA8Y0S5G393QBE8SWPNZ6R08XNH (+ (get-balance 'SPYAX2RNZA18KQA8Y0S5G393QBE8SWPNZ6R08XNH) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u111) 'SPV00QHST52GD7D0SEWV3R5N04RD4Q1PMA3TE2MP))
      (map-set token-count 'SPV00QHST52GD7D0SEWV3R5N04RD4Q1PMA3TE2MP (+ (get-balance 'SPV00QHST52GD7D0SEWV3R5N04RD4Q1PMA3TE2MP) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u112) 'SP3GXRSVBWTVS7DNK466APX88XZKAB8FT52ZQ8WG4))
      (map-set token-count 'SP3GXRSVBWTVS7DNK466APX88XZKAB8FT52ZQ8WG4 (+ (get-balance 'SP3GXRSVBWTVS7DNK466APX88XZKAB8FT52ZQ8WG4) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u113) 'SP84C5YVBTBSXZ8KS39R97QDKX1YNSXXR8814ET7))
      (map-set token-count 'SP84C5YVBTBSXZ8KS39R97QDKX1YNSXXR8814ET7 (+ (get-balance 'SP84C5YVBTBSXZ8KS39R97QDKX1YNSXXR8814ET7) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u114) 'SP2Z9V78QMVNM7EK65XSBCMH9M6X6DESXRN5MCXV5))
      (map-set token-count 'SP2Z9V78QMVNM7EK65XSBCMH9M6X6DESXRN5MCXV5 (+ (get-balance 'SP2Z9V78QMVNM7EK65XSBCMH9M6X6DESXRN5MCXV5) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u115) 'SP3QJ41PARX6F6B4H56JZ272ANK0TRJ9J2VFBVY1D))
      (map-set token-count 'SP3QJ41PARX6F6B4H56JZ272ANK0TRJ9J2VFBVY1D (+ (get-balance 'SP3QJ41PARX6F6B4H56JZ272ANK0TRJ9J2VFBVY1D) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u116) 'SPN9JGFGXFJZD7AM5VF2S7BRATNCQYVHVWG3087B))
      (map-set token-count 'SPN9JGFGXFJZD7AM5VF2S7BRATNCQYVHVWG3087B (+ (get-balance 'SPN9JGFGXFJZD7AM5VF2S7BRATNCQYVHVWG3087B) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u117) 'SPFK6E20DN1PFBY02956QN23TCWSPHMY76KYWGEZ))
      (map-set token-count 'SPFK6E20DN1PFBY02956QN23TCWSPHMY76KYWGEZ (+ (get-balance 'SPFK6E20DN1PFBY02956QN23TCWSPHMY76KYWGEZ) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u118) 'SPK70AN512VN2VRD52D0928MA05JVJ7DY2H5F3CF))
      (map-set token-count 'SPK70AN512VN2VRD52D0928MA05JVJ7DY2H5F3CF (+ (get-balance 'SPK70AN512VN2VRD52D0928MA05JVJ7DY2H5F3CF) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u119) 'SPS2RBYAXSCXMVPYXSG724CFY4W2WA2NPG44V191))
      (map-set token-count 'SPS2RBYAXSCXMVPYXSG724CFY4W2WA2NPG44V191 (+ (get-balance 'SPS2RBYAXSCXMVPYXSG724CFY4W2WA2NPG44V191) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u120) 'SP33N5R751MG99QAM4CN6HQ3MDTYBR71SB4NXVGT1))
      (map-set token-count 'SP33N5R751MG99QAM4CN6HQ3MDTYBR71SB4NXVGT1 (+ (get-balance 'SP33N5R751MG99QAM4CN6HQ3MDTYBR71SB4NXVGT1) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u121) 'SPTETNN57BDV0X796ZVW41B5VVN99JQRDH68Z5W6))
      (map-set token-count 'SPTETNN57BDV0X796ZVW41B5VVN99JQRDH68Z5W6 (+ (get-balance 'SPTETNN57BDV0X796ZVW41B5VVN99JQRDH68Z5W6) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u122) 'SP71N7X6G8KYGQPHZW7TB4PD1JZ6ND9AESF9JPZ8))
      (map-set token-count 'SP71N7X6G8KYGQPHZW7TB4PD1JZ6ND9AESF9JPZ8 (+ (get-balance 'SP71N7X6G8KYGQPHZW7TB4PD1JZ6ND9AESF9JPZ8) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u123) 'SPV48Q8E5WP4TCQ63E9TV6KF9R4HP01Z8WS3FBTG))
      (map-set token-count 'SPV48Q8E5WP4TCQ63E9TV6KF9R4HP01Z8WS3FBTG (+ (get-balance 'SPV48Q8E5WP4TCQ63E9TV6KF9R4HP01Z8WS3FBTG) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u124) 'SP3K22XKPT9WJFCE957J94J6XXVZHP7747YNPDTFD))
      (map-set token-count 'SP3K22XKPT9WJFCE957J94J6XXVZHP7747YNPDTFD (+ (get-balance 'SP3K22XKPT9WJFCE957J94J6XXVZHP7747YNPDTFD) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u125) 'SP25KJH4N4YNKTVXSWSHDPVCWDFAN2BA4H2VQVN0G))
      (map-set token-count 'SP25KJH4N4YNKTVXSWSHDPVCWDFAN2BA4H2VQVN0G (+ (get-balance 'SP25KJH4N4YNKTVXSWSHDPVCWDFAN2BA4H2VQVN0G) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u126) 'SP364J7EDJXRE1FPDZDABP9M58HPY4G88BFCP2HD0))
      (map-set token-count 'SP364J7EDJXRE1FPDZDABP9M58HPY4G88BFCP2HD0 (+ (get-balance 'SP364J7EDJXRE1FPDZDABP9M58HPY4G88BFCP2HD0) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u127) 'SP26SB34D9THJ8BMSPT6EJHW9JDGBHWMX74PVDFEN))
      (map-set token-count 'SP26SB34D9THJ8BMSPT6EJHW9JDGBHWMX74PVDFEN (+ (get-balance 'SP26SB34D9THJ8BMSPT6EJHW9JDGBHWMX74PVDFEN) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u128) 'SP3ST6K5W36V2MTSNYYXE56SCXR7DGTW9N4NMZHYV))
      (map-set token-count 'SP3ST6K5W36V2MTSNYYXE56SCXR7DGTW9N4NMZHYV (+ (get-balance 'SP3ST6K5W36V2MTSNYYXE56SCXR7DGTW9N4NMZHYV) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u129) 'SP79JMAGQVWMVWRXG2AE5GF8Z27VF1W4KZ3J03WG))
      (map-set token-count 'SP79JMAGQVWMVWRXG2AE5GF8Z27VF1W4KZ3J03WG (+ (get-balance 'SP79JMAGQVWMVWRXG2AE5GF8Z27VF1W4KZ3J03WG) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u130) 'SPSS7WAYA17Y8Z5Q6GJTMH4FH4MRJ7HZZ6JPGAGR))
      (map-set token-count 'SPSS7WAYA17Y8Z5Q6GJTMH4FH4MRJ7HZZ6JPGAGR (+ (get-balance 'SPSS7WAYA17Y8Z5Q6GJTMH4FH4MRJ7HZZ6JPGAGR) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u131) 'SP3BJ4GDXYMBRS42NJNVE271YPAPYTF28T9722GHJ))
      (map-set token-count 'SP3BJ4GDXYMBRS42NJNVE271YPAPYTF28T9722GHJ (+ (get-balance 'SP3BJ4GDXYMBRS42NJNVE271YPAPYTF28T9722GHJ) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u132) 'SPJCSG2ZJD95JR4QG9Z0EP786WN7T3CAF7GKBD01))
      (map-set token-count 'SPJCSG2ZJD95JR4QG9Z0EP786WN7T3CAF7GKBD01 (+ (get-balance 'SPJCSG2ZJD95JR4QG9Z0EP786WN7T3CAF7GKBD01) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u133) 'SPXZ0GWQTMGQ860MGG86PNMFJNHJ2NWJSWJWGM0K))
      (map-set token-count 'SPXZ0GWQTMGQ860MGG86PNMFJNHJ2NWJSWJWGM0K (+ (get-balance 'SPXZ0GWQTMGQ860MGG86PNMFJNHJ2NWJSWJWGM0K) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u134) 'SP3VTWA4VHJXCC82898M21QSRQCYC730K49M5NMKF))
      (map-set token-count 'SP3VTWA4VHJXCC82898M21QSRQCYC730K49M5NMKF (+ (get-balance 'SP3VTWA4VHJXCC82898M21QSRQCYC730K49M5NMKF) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u135) 'SPP28QCMZ51GVN9933VFH9TXKQ3XCT4WE5A07533))
      (map-set token-count 'SPP28QCMZ51GVN9933VFH9TXKQ3XCT4WE5A07533 (+ (get-balance 'SPP28QCMZ51GVN9933VFH9TXKQ3XCT4WE5A07533) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u136) 'SP2F40S465JTD7AMZ2X9SMN229617HZ9YB0HHY98A))
      (map-set token-count 'SP2F40S465JTD7AMZ2X9SMN229617HZ9YB0HHY98A (+ (get-balance 'SP2F40S465JTD7AMZ2X9SMN229617HZ9YB0HHY98A) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u137) 'SP2MMK0WPM6Y5VMKZ87RBSDC0J66FTTYM7GVWCN0Z))
      (map-set token-count 'SP2MMK0WPM6Y5VMKZ87RBSDC0J66FTTYM7GVWCN0Z (+ (get-balance 'SP2MMK0WPM6Y5VMKZ87RBSDC0J66FTTYM7GVWCN0Z) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u138) 'SP2TW1D8YF5CE0NDP5VCR5NMTPHQ4PQR1KBB4NQ5Q))
      (map-set token-count 'SP2TW1D8YF5CE0NDP5VCR5NMTPHQ4PQR1KBB4NQ5Q (+ (get-balance 'SP2TW1D8YF5CE0NDP5VCR5NMTPHQ4PQR1KBB4NQ5Q) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u139) 'SP2C8P3MM137K1A48D1SRENG67KHEVPZV4K36G3JY))
      (map-set token-count 'SP2C8P3MM137K1A48D1SRENG67KHEVPZV4K36G3JY (+ (get-balance 'SP2C8P3MM137K1A48D1SRENG67KHEVPZV4K36G3JY) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u140) 'SP1D3Y8A2VVD2W98VFXCG5AXRYX5PJBBEMV1YPKF1))
      (map-set token-count 'SP1D3Y8A2VVD2W98VFXCG5AXRYX5PJBBEMV1YPKF1 (+ (get-balance 'SP1D3Y8A2VVD2W98VFXCG5AXRYX5PJBBEMV1YPKF1) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u141) 'SP1D3Y8A2VVD2W98VFXCG5AXRYX5PJBBEMV1YPKF1))
      (map-set token-count 'SP1D3Y8A2VVD2W98VFXCG5AXRYX5PJBBEMV1YPKF1 (+ (get-balance 'SP1D3Y8A2VVD2W98VFXCG5AXRYX5PJBBEMV1YPKF1) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u142) 'SP1D3Y8A2VVD2W98VFXCG5AXRYX5PJBBEMV1YPKF1))
      (map-set token-count 'SP1D3Y8A2VVD2W98VFXCG5AXRYX5PJBBEMV1YPKF1 (+ (get-balance 'SP1D3Y8A2VVD2W98VFXCG5AXRYX5PJBBEMV1YPKF1) u1))
      (try! (nft-mint? nonnish-harvest-helpers (+ last-nft-id u143) 'SP1D3Y8A2VVD2W98VFXCG5AXRYX5PJBBEMV1YPKF1))
      (map-set token-count 'SP1D3Y8A2VVD2W98VFXCG5AXRYX5PJBBEMV1YPKF1 (+ (get-balance 'SP1D3Y8A2VVD2W98VFXCG5AXRYX5PJBBEMV1YPKF1) u1))

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