Skip to content

Instantly share code, notes, and snippets.

@D4nte
D4nte / parity_helper.js
Created January 7, 2019 01:29
Parity JS debug helper
const ethutil = require("ethereumjs-util");
const Web3 = require("web3");
const Api = require("@parity/api");
const provider = new Api.Provider.Http('http://localhost:33056');
const api = new Api(provider);
const web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:33056"));
async function printTx (txid) {
@D4nte
D4nte / Extract issues per sprint
Last active June 24, 2019 23:51
Absolutely not the best JS but it works
const GitHub = require('github-api');
const gh = new GitHub({
token: ''
});
async function getIssues(issueHandler) {
await issueHandler.listIssues({
state: "closed",