Skip to content

Instantly share code, notes, and snippets.

@harsh-98
harsh-98 / staratlasSales.txt
Last active September 10, 2021 00:35
Star Atlas sale schedule
SaleTime in UTC symbol Type category rarity class AirDrop TotalSupply price name
------------------- -------- ----------- ---------- --------- -------------------------- --------- ------------- --------------------- -------------------------------
2021-04-25 03:30:00 DOI collectible 1 common poster 0 10561 [] Discovery of Iris
2021-05-02 03:30:00 HOSA collectible 2 uncommon poster 0 6633 [] The Heart of Star Atlas
2021-05-09 03:30:00 TCW collectible 3 uncommon poster 0 3104 [] The Convergence War
2021-05-16 03:30:00 LOST collectible 4 rare poster 0 928 [] Short Story of a Lost Astronaut
2021-05-23 03:30:00 LOVE
@harsh-98
harsh-98 / witnet-0.9.0-c0-ips.json
Created June 25, 2020 11:06
All ips in witnet 0.9.0-c
[
"52.166.178.145:21337",
"159.69.146.71:21339",
"159.69.146.71:21350",
"78.193.188.67:21337",
"64.225.123.29:21337",
"188.127.180.67:21345",
"159.69.146.71:21352",
"159.89.200.225:21337",
"207.180.219.48:21337",

RPC request

Getting pkh address

{"jsonrpc": "2.0","method": "getPkh", "id": "1"}

Getting utxo info

Replace <> with pkh address.

import socket
class MySocket:
def __init__(self, sock=None):
if sock is None:
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
else:
self.sock = sock
def connect(self, host, port):
self.sock.connect((host, port))
def mysend(self, msg):

Keybase proof

I hereby claim:

  • I am harsh-98 on github.
  • I am harshjain (https://keybase.io/harshjain) on keybase.
  • I have a public key ASBEnB3JuGYyK2-cSjtFySXK--PpIqwXATtDhlIId8sN7wo

To claim this, I am signing this object:

docker run -d --restart always --publish 8301:8301 --publish 8302:8302 \
--volume ~/keys:/keys:z --volume ~/.coda-config:/root/.coda-config:Z \
--nsme codainstance coda:1.0 coda daemon -peer `SEED1` -peer `SEED2` \
-block-producer-key "/keys/validator-keys" -run-snark-worker `PUBLICKEY` \
-snark-worker-fee 1 -block-producer-password `PASSWD`
echo "deb [trusted=yes] http://packages.o1test.net/ unstable main" | sudo tee /etc/apt/sources.list.d/coda.list
apt-get update
apt-get install -t unstable coda-testnet-postake-medium-curves=0.0.12-beta+406048-feature-bump-genesis-timestamp-3e9b174-PV48525e92
@harsh-98
harsh-98 / mrc20-transfer.js
Created June 8, 2020 06:13
Trying to transfer MRC20 from one to other account on betav2 matic
const Web3 = require('web3');
const BigNumber = require('bignumber.js');
const fs = require('fs')
const { promisify } = require('util')
const readFileAsync = promisify(fs.readFile)
const options = {
transactionConfirmationBlocks: 2,
transactionBlockTimeout: 50,
}
if (typeof web3 !== 'undefined') {
@harsh-98
harsh-98 / README.md
Last active June 9, 2020 00:10
Script for starting, managing, viewing any k instance of the witnet. Enjoy!

This is based on @bertux written systemd script and it can any k instance of the witnet. Docker is not required, and only thing you need to do is run script.

Before running the script you have to make the script executable by:

chmod +x witnet.sh

Usage:

./witnet.sh create -s 1 -e 5

For running this script which uses REST endpoints of ava. I am using the default network id , which I took as 12.

go run main/* --public-ip=127.0.0.1 --snow-sample-size=1 --snow-quorum-size=1 --staking-tls-enabled=false --network-id=12 --api-admin-enabled=true

And then ./ava.sh. This script is using default network id so the funds are there in ewoqjP7PxY4yr3iLTpLisriqt94hdyDFNgchSxGGztUrTXtNN

Install jq for running the below script.