near / devrel

The space for DevRel
MIT License
9 stars 0 forks source link

Send NFTs to the NEARvember challenge participants #437

Closed BenKurrek closed 2 years ago

BenKurrek commented 2 years ago

We will be sending NFTs to all the participants. The NFT is a small GIF of the challenge found here on IPFS. We will be minting 100 editions and the participants will get an edition based on which place they ended in the challenge. For example the user that finished 15th will get the 15th edition of the token. The first place user will get edition number 1.

The contract is nft.nearvember-challenge.near

BenKurrek commented 2 years ago

Dorian reached out to participants and recorded details of their information in this spreadsheet.

I went and created a super simple bash script to mint NFTs to all the users. The script, if you're curious, is here:

#!/bin/bash

export NFT="nft.nearvember-challenge.near"
export i=1
export TOKEN_ID="nearvember-token-edition-$i"

while read line; do
    if [[ $line == *.near ]]
    then
        TOKEN_ID="nearvember-token-edition-$i"
        export RECEIVER_ID=$line
        echo "$line --> $TOKEN_ID"
        near call $NFT --accountId $NFT nft_mint '{"token_id": "'$TOKEN_ID'", "metadata": {"title": "NEARvember Challenge NFT", "description": "thank you for participating in the nearvember challenge", "media": "https://cloudflare-ipfs.com/ipfs/QmPKzZqHvv5seBCxHung4ZKDYGKd18Z3K4fYkGy2S21NAZ", "copies": 100}, "receiver_id": "'$RECEIVER_ID'"}'
    fi
    ((i=i+1))
done < nearvember_scoresheet.txt