Skip to content

Instantly share code, notes, and snippets.

View gcharang's full-sized avatar
🎯
Focusing

gcharang gcharang

🎯
Focusing
View GitHub Profile
@gcharang
gcharang / pegs-testing.md
Last active November 15, 2019 17:02
Pegs - USDKTEST - testing

Test the Pegs module on the USDKTEST chain

The guide here is tested to work on Ubuntu/(debian). There may be typos or other incorrect information present as the system is being constantly updated based on specifications, bugfixes or other improvements. Please let us know in the #cc-pegs channel of Komodo Discord if you find any issues or incorrect information. Also use the same channel for test reports and feedback.

Installation

Dependencies

sudo apt-get update && sudo apt-get upgrade -y
// Discord all events!
// A quick and dirty fleshing out of the discord.js event listeners (not tested at all!)
// listed here -> https://discord.js.org/#/docs/main/stable/class/Client
// Learn from this, do not just copy it mofo!
//
// Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584
/*
koad-was-here

Keybase proof

I hereby claim:

  • I am gcharang on github.
  • I am gcharang (https://keybase.io/gcharang) on keybase.
  • I have a public key ASBDbcbaulMqmmEwTcnM1knlioFTk3vsDw2Ebbh9csLCgAo

To claim this, I am signing this object:

[{
"name": "Komodo",
"type": "smartChain",
"proto": "SSL",
"abbr": "KMD",
"coingeckoId": "komodo",
"colorCoin": "0xFF326464",
"serverList": [
"electrum1.cipig.net:20001",
"electrum2.cipig.net:20001",
@gcharang
gcharang / README.md
Created January 30, 2023 18:36 — forked from jackzampolin/README.md
Insight API Queries for Explorer

GET

Transactions by block and address

This endpoint returns full transaction data for blocks and Addresses

NOTE: there is an undocumented param to paginate, didn't go digging

const bitcoin = require("bitgo-utxo-lib");
`There are real wif keys and addresses in this gist, they are public, don't reuse them for holding any real coins`
/* missing declaration of KMD in bitgo-utxo-lib */
bitcoin.networks.kmd = {
messagePrefix: "\u0018Komodo Signed Message:\n",
bech32: "bc",
bip32: { public: 76067358, private: 76066276 },
pubKeyHash: 60,
const bitcoin = require("bitgo-utxo-lib");
/* missing declaration of KMD in bitgo-utxo-lib */
bitcoin.networks.kmd = {
messagePrefix: "\u0018Komodo Signed Message:\n",
bech32: "bc",
bip32: { public: 76067358, private: 76066276 },
pubKeyHash: 60,
scriptHash: 85,
wif: 188,
d78fd284f63e68dc342ea379c1ecd650153e129a000000000000000121edcddfdee77126b9373a499a7be4bc65b2b0e201690000000000074b49503030303100074b495030303031000000000000072333434434423811684c7509086a43841edf6bfdfae24aa84b0c9d0003010100391a8e97d8f8f8a9c8ee5298f8c6d8ef6e476eef0116000000640000b7080070222d61635f6e616d653d4b4950303030317c2d61635f7075626c69633d317c2d61635f737570706c793d3133393431393238347c2d61635f7374616b65643d31307c2d6164646e6f64653d3137382e3135392e322e367c2d6164646e6f64653d3131362e3230332e3132302e3136332200076b6f6d6f646f64003b656c65637472756d312e63697069672e6e65743a31303031343a7463707c656c65637472756d322e63697069672e6e65743a31303031343a746370000969735f6b6f6d6f646f00002710cbb393e234c5d51863ecca7ccd275f55337741700031000e4b6f6d6f646f2f4b495030303031000f2e6b6f6d6f646f2f4b495030303031000e4b6f6d6f646f5c4b495030303031
d78fd284f63e68dc342ea379c1ecd650153e129a000000000000000121edcddfdee77126b9373a499a7be4bc65b2b0e2016c000000000008564f5445323032330008564f544532303233000000000000072333434434423811684c7509086a43841edf6bfdfae24aa84b0c9d0003010100391a8e97d8f8f8a9c8ee5298f8c6d8ef6e476eef0117000000640000746f006e2d61635f6e616d653d564f5445323032337c2d61635f7075626c69633d317c2d61635f737570706c793d3133393730363336317c2d61635f7374616b65643d31307c2d6164646e6f64653d3137382e3135392e322e367c2d6164646e6f64653d3138352e3232302e3230342e343400076b6f6d6f646f64003b656c65637472756d332e63697069672e6e65743a32303030323a7463707c656c65637472756d322e63697069672e6e65743a32303030323a746370000969735f6b6f6d6f646f00002710cbb393e234c5d51863ecca7ccd275f55337741700034000f4b6f6d6f646f2f564f54453230323300102e6b6f6d6f646f2f564f544532303233000f4b6f6d6f646f2f564f544532303233
d78fd284f63e68dc342ea379c1ecd650153e129a000000000000000121edcddfdee77126b9373a499a7be4bc65b2b0e2018a000000000008564f5445323032330008564f544532303233000000000000072333434434423811684c7509086a43841edf6bfdfae24aa84b0c9d0003010100391a8e97d8f8f8a9c8ee5298f8c6d8ef6e476eef0135000000640000746f006e2d61635f6e616d653d564f5445323032337c2d61635f7075626c69633d317c2d61635f737570706c793d3133393730363336317c2d61635f7374616b65643d31307c2d6164646e6f64653d3137382e3135392e322e367c2d6164646e6f64653d3138352e3232302e3230342e343400076b6f6d6f646f640059656c65637472756d312e63697069672e6e65743a31303030323a7463707c656c65637472756d322e63697069672e6e65743a31303030323a7463707c656c65637472756d332e63697069672e6e65743a31303030323a746370000969735f6b6f6d6f646f00002710cbb393e234c5d51863ecca7ccd275f55337741700034000f4b6f6d6f646f2f564f54453230323300102e6b6f6d6f646f2f564f544532303233000f4b6f6d6f646f2f564f544532303233