Skip to content

Instantly share code, notes, and snippets.

View krtk6160's full-sized avatar

Kartik Shah krtk6160

View GitHub Profile

Keybase proof

I hereby claim:

  • I am krtk6160 on github.
  • I am krtk6160 (https://keybase.io/krtk6160) on keybase.
  • I have a public key ASClyFyneaatgno-d6WBQ-K0ixoEjwqClLgRa3PDZWsZCwo

To claim this, I am signing this object:

We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
"nodes__last_update","nodes__pub_key","nodes__alias","nodes__addresses__network","nodes__addresses__addr","nodes__color","nodes__features__|","nodes__features__|__name","nodes__features__|__is_required","nodes__features__|__is_known","edges__channel_id","edges__chan_point","edges__last_update","edges__node1_pub","edges__node2_pub","edges__capacity","edges__node1_policy__time_lock_delta","edges__node1_policy__min_htlc","edges__node1_policy__fee_base_msat","edges__node1_policy__fee_rate_milli_msat","edges__node1_policy__disabled","edges__node1_policy__max_htlc_msat","edges__node1_policy__last_update","edges__node2_policy__time_lock_delta","edges__node2_policy__min_htlc","edges__node2_policy__fee_base_msat","edges__node2_policy__fee_rate_milli_msat","edges__node2_policy__disabled","edges__node2_policy__max_htlc_msat","edges__node2_policy__last_update","edges__node1_policy","edges__node2_policy"
"0","020178567c0f881b579a7ddbcd8ce362a33ebba2b3c2d218e667f7e3b390e40d4e","","","","#000000","","","","","13136898957979
const ethers = require('ethers')
var addr = '0xF2B971B7509DBE603e5a2204d799E73Be9DF35D6' // receiver addr
var w = new ethers.Wallet('A663EC3E46FD14E52B145EE5B58F356246723FF1EA95E3D5E51358B66AE9DA39', ethers.getDefaultProvider('rinkeby'))
w.signMessage(addr)
var linkdropMasterAddress = "0x7068f16f66bCdAA7FCF575De47d094765772977A";
var factoryAddress = "0xBa051891B752ecE3670671812486fe8dd34CC1c8";
var linkdropSigningKey = 'A663EC3E46FD14E52B145EE5B58F356246723FF1EA95E3D5E51358B66AE9DA39'
const campaignId = uuidv4();
let proxyAddress = linkdropSDK.getProxyAddress(
new web3.utils.BN(uuidv4().replace(/-/g, "")).toString()
)
console.log(proxyAddress)
const kafka = require('kafka-node')
const Producer = kafka.Producer;
const client = new kafka.KafkaClient('http://localhost:9092');
const producer = new Producer(client);
const kafka_topic = 'contract-events';
console.log(kafka_topic);
let struct = {
"details":{
"name":"Opened",
var linkdropMasterAddress = "0x7068f16f66bCdAA7FCF575De47d094765772977A";
var factoryAddress = "0xBa051891B752ecE3670671812486fe8dd34CC1c8";
var linkdropSigningKey = 'A663EC3E46FD14E52B145EE5B58F356246723FF1EA95E3D5E51358B66AE9DA39'
const uuidv4 = require('uuid/v4')
const linkdropSDK = new LinkdropSDK({
linkdropMasterAddress,
factoryAddress,
сhain: 'kovan',
jsonRpcUrl: `https://kovan.infura.io`,
import LinkdropSDK from '@linkdrop/sdk'
import 'babel-polyfill';
var linkdropMasterAddress="0x7068f16f66bCdAA7FCF575De47d094765772977A";
var factoryAddress="0xBa051891B752ecE3670671812486fe8dd34CC1c8";
const linkdropSDK = new LinkdropSDK({
linkdropMasterAddress,
factoryAddress,
сhain : 'kovan',
613c8f75a87118da7e5091dc5ecac4ec96733c5e6f486be74dcca8acd7427befc286a968f2b79d266a41e3ba09434cfd232e407fd21988a52fef0e5f2cfac57c
{
"validationCode": 0,
"transactionEnvelope": {
"signature": {
"type": "Buffer",
"data": [
48,
68,
2,
32,