/MONCoin-IPFS-CF-Checkpointer-Node

A checkpointer that generates a checkpoints.csv, throws it into IPFS & pins it with Pinata, and updates CloudFlare DNS records to point to the IPFS hash

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

MONCoin®: Checkpoints Updater

This project is designed to update blockchain checkpoints, PIN the resulting file hash in IPFS via Pinata.cloud, update a DNSLink via CloudFlare DNS, and leverage the CloudFlare IPFS Gateway to serve the data.

Prerequisites

Install

git clone https://github.com/Kulteam/MONCoin-IPFS-CF-Checkpointer-Node.git
cd MONCoin-IPFS-CF-Checkpointer-Node
npm install -g yarn
yarn install

Usage

  1. Set your environment variables and start the script
export CHECKPOINT_FILE=checkpoints.csv
export PINATA_API_KEY=Your_Pinata_Key
export PINATA_SECRET_API_KEY=Your_Pinata_Secret_Key
export CLOUDFLARE_TOKEN=Your_Cloudflare_Token
export CLOUDFLARE_ZONE_ID=Your_Cloudflare_ZoneID
export CLOUDFLARE_SUBDOMAIN=Your_Cloudflare_Subdomain
yarn start

Run tests

yarn test

Author

👤 Special Thanks to TurtleCoin Developers

📝 License

This project is GPL-3.0 licensed.