Skip to content

Instantly share code, notes, and snippets.

@dcolley
dcolley / ada-pool.metaspan.json
Last active October 9, 2021 15:31
metaspan Cardano ADA Pool meta
{
"name": "metaspan",
"description": "metaspan Cardano Stake Pool",
"ticker": "MSPN",
"homepage": "https://metaspan.com"
}
/*
Checks if an address has votes, and removes them if needed
Edit the NODE_WS_URL as needed
*/
import { Keyring, ApiPromise, WsProvider } from '@polkadot/api'
import readline from 'readline';
const NODE_WS_URL = 'wss://rpc.ibp.network/kusama'
// const NODE_WS_URL = 'wss://rpc.ibp.network/polkadot'
const { spawn } = require('child_process');
const split2 = require('split2');
const moment = require('moment');
const TIMEOUT = 300 * 1000; // nn seconds, in milliseconds
const ECHOLOG = false;
// DEBUG: minumum is 'info', we need info to see log messages!
const DEBUG = '-linfo'
// const DEBUG = '-lsync=debug,gossip=debug,peerset=debug,sub-libp2p=info' // '-ldebug'
// const DEBUG = '-ldebug' // VERY verbose, kills the terminal

Release Management

Goals

We need to release our tools and libraries in a way that is easy to use and contribute.

  • github.com for issues and pull requests
  • git for version control
  • Git branching model
  • Git Release management[?]
@dcolley
dcolley / jamt.md
Last active May 30, 2025 11:51
JAM CLI Tool (jamt) Features

JAM CLI Tool (jamt) Features

The JAM CLI tool (jamt) is a command-line interface for interacting with the JAM blockchain. Here's a comprehensive overview of its features and commands.

Global Options

  • --rpc <RPC>: Specify the RPC connection URL (default: ws://localhost:19800)
  • --bootstrap-service-id <BOOTSTRAP_SERVICE_ID>: Set the Bootstrap service ID (default: 0)
  • --provision <PROVISION>: Strategy for providing data to services (default: bootstrap)
  • Possible values: none, direct, bootstrap