For the running app check https://kollek.me
For the UI source check https://github.com/kuyawa/kollek
Clone the repo and install all the packages first
> npm install
If you want to run tests, add your wallet key to env vars
> export MINTERKEY=sYOURKEY123456789
> npm test
Include kollek-api.js in your project (npm package in the works)
const Kollek = require('./kollek-api.js')
Initialize Kollek with your private key
const kollek = new Kollek(process.env.MINTERKEY)
let event = {
eventid: 12345678,
name: 'Soccer Game',
info: 'Titans vs Olympics',
description: 'Match of the week between rival high schools in Miami',
startdate: '2022-11-20 17:30',
enddate: null,
expiry: null,
isvirtual: false,
location: 'Olympic Heights, Miami FL',
website: 'http://kuyawa.net',
uri: 'https://ipfs.io/ipfs/bafybeibzetds44cuulfcgkoj2c4hopypewzpk7bpb2kzbavrpoarko2lby/kuyawa.jpg',
quantity: 1000,
private: false
}
let tokenId = await kollek.mintNFT(event)
console.log('TokenId:', tokenId)
let tokenId = await kollek.mintNFT(event, account)
console.log('TokenId:', tokenId)
let tokens = await kollek.bulkMintNFT(event, 10)
console.log('Tokens:', tokens)
let claim = await kollek.claimNFT(tokenId, account)
console.log('Claim:', claim)
let isValid = await kollek.verifyNFT(account, tokenId, signature)
console.log('Valid:', isValid)
let list = await kollek.lookupNFT(eventId)
console.log('Accounts', list)
Check the source of kollek-api
- Stage #1 COMPLETED Minting and distribution
- Stage #2 PENDING Attendees lookup
- Stage #3 COMPLETED Ownership verification