Skip to content

Instantly share code, notes, and snippets.

Avatar

Gareth Davies garethtdavies

View GitHub Profile
@garethtdavies
garethtdavies / foundation-delegations.txt
Last active Apr 13, 2021
Foundation Delegations Epoch 0
View foundation-delegations.txt
+---------------------------------------------------------+------------------+---------------------------------------------------------+--------------------+-----------+-------------+-------------+-----------+
| publicKey | balance | delegate | delegationTotal | blocksWon | payout | received | fullyPaid |
+---------------------------------------------------------+------------------+---------------------------------------------------------+--------------------+-----------+-------------+-------------+-----------+
| B62qjWrka3sHmyX9E3LLk7DYwTkD3xpVxJVWeC1jWesvUCw98jzwLEb | 502777.775 | B62qkd4tZQGe9mo5tK3wQi5PUoMdtUGtLWps6Se9o1qWdwNwuUtdWdr | 3771636.6277516503 | 35 | 3191.32014 | 3191.32014 | True |
| B62qr11GnajdtFtYHLB25VfR2HisWw9gQTtswLT9UDuBDupwxnP8Qtm | 502777.775 | B62qidz67vVjRUWi4QWBhE6i6JAs5i55YP1CuRsSNB8CjM4nttrRS4q | 3837636.6277516503 | 19 | 1702.63644 |
@garethtdavies
garethtdavies / promtail_docker_logs.md
Created Feb 4, 2021 — forked from ruanbekker/promtail_docker_logs.md
Docker Container Logging using Promtail
View promtail_docker_logs.md
@garethtdavies
garethtdavies / all_transactions.txt
Last active Feb 26, 2021
MinaExplorer GraphQL API
View all_transactions.txt
{
transactions(
limit: 25
sortBy: DATETIME_DESC
query: {OR: [{to: "B62qqHM1bihHNvju89PFYugLw73PYRb7pGwp82CpEmWfSYVJiQAppaC"}, {from: "B62qqHM1bihHNvju89PFYugLw73PYRb7pGwp82CpEmWfSYVJiQAppaC"}], AND: {canonical: true, dateTime_gte: "2021-01-15T00:00:00Z"}}
) {
fee
canonical
from
to
View bug-bounty-local-network-oct 27.md

Here are the instructions for creating your own multi-node network on your local machine:

Run the following commands on Debian9

  1. sudo apt-get install -y curl make bubblewrap pkg-config postgresql m4 libgmp-dev libffi-dev libjemalloc-dev libpq-dev libssl-dev libsodium-dev cargo lib32z1-dev python3 python3-pip git unzip libbz2-dev psmisc apt-transport-https ca-certificates curl software-properties-common gnupg2 bc
  2. curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
  3. sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
  4. sudo apt update
  5. sudo apt install -y docker-ce
  6. sudo usermod -aG docker ${USER}
@garethtdavies
garethtdavies / coinbase.json
Created Jul 29, 2020
Zcash Shielded Coinbase Transaction
View coinbase.json
{
"txid": "51a4cd59d445463292f3fe0bcaec252577f2c5b483ed753aecf4bf4455a9e725",
"overwintered": true,
"version": 4,
"versiongroupid": "892f2085",
"locktime": 0,
"expiryheight": 0,
"vin": [
{
"coinbase": "0389260f0102",
@garethtdavies
garethtdavies / coda-vrf.txt
Created Jul 14, 2020
Example Coda VRF output
View coda-vrf.txt
Jul 12 23:54:05 ae9f09595a4f [Info] Checking VRF evaluations at epoch: 34, slot: 359
Jul 12 23:54:05 ae9f09595a4f [Info] Checking VRF evaluations at epoch: 34, slot: 360
Jul 12 23:54:05 ae9f09595a4f [Info] Checking VRF evaluations at epoch: 34, slot: 361
Jul 12 23:54:05 ae9f09595a4f [Info] Checking VRF evaluations at epoch: 34, slot: 362
Jul 12 23:54:05 ae9f09595a4f [Info] Checking VRF evaluations at epoch: 34, slot: 363
Jul 12 23:54:05 ae9f09595a4f [Info] Checking VRF evaluations at epoch: 34, slot: 364
Jul 12 23:54:05 ae9f09595a4f [Info] Checking VRF evaluations at epoch: 34, slot: 365
Jul 12 23:54:05 ae9f09595a4f [Info] Producing block in 137 slots
@garethtdavies
garethtdavies / coda-blocks.csv
Created Jun 20, 2020
All blocks between epochs 1 and 11
View coda-blocks.csv
canonical creator dateTime length epoch slot globalSlot stateHash
TRUE 4vsRCVsHK6JzHAehoLDZMKwX4 2020-06-09T19:36:00.000Z 130 1 2 482 D2rcXVQbdASpdRCygkAmZ3A2J
TRUE 4vsRCVP4z8nJZXCqSovNjHmEX 2020-06-09T19:42:00.000Z 131 1 4 484 D2rcXVQbdWSHmQgSkoprCQdCu
TRUE 4vsRCVaJmjRqg6SvTcMLwNfpT 2020-06-09T19:54:00.000Z 132 1 8 488 3j7Fqw9d9wEtDbvBFe1kuoRBS
TRUE 4vsRCVsHK6JzHAehoLDZMKwX4 2020-06-09T20:12:00.000Z 133 1 14 494 D2rcXVQbboLnXatZARpTjMiEX
TRUE 4vsRCVP4z8nJZXCqSovNjHmEX 2020-06-09T20:27:00.000Z 134 1 19 499 D2rcXVQbcV62dnoNmy1jDqesE
TRUE 4vsRCVyZyY1cuHruj2HqxW6V7 2020-06-09T20:39:00.000Z 135 1 23 503 3j7Fqw9esLnj4F1Wo1e7GjPnA
TRUE 4vsRCVaJmjRqg6SvTcMLwNfpT 2020-06-09T20:42:00.000Z 136 1 24 504 D2rcXVQa7xXohceXR9ddHb455
TRUE 4vsRCVVKs7iC2JHNRyNrYyKPT 2020-06-09T20:48:00.000Z 137 1 26 506 D2rcXVQYd6T4Q3mGUQrsqmfh8
TRUE 4vsRCVsHK6JzHAehoLDZMKwX4 2020-06-09T21:18:00.000Z 138 1 36 516 D2rcXVQd7gPBbfpr65DjsCyBS
@garethtdavies
garethtdavies / coda.blocks.csv
Created Jun 18, 2020
List of all blocks seen
View coda.blocks.csv
We can't make this file beautiful and searchable because it's too large.
canonical,creator,dateTime,blockchainLength,receivedTime,stateHash
true,4vsRCVyZyY1cuHruj2HqxW6V7QsUgMxC8D4vprr8QkvkDGAcceibvmrvW6oVKFRKENFvnWrLN1NynZspbMWKDtU8bEQbsH9kbyG2AfkFyZ5mccjWLP8NoV1SrKfNZSNwQevq7yFaXVNxKecF,2020-06-09T17:15:00.000Z,119,2020-06-09T21:22:33.420Z,D2rcXVQbcUdAvpwgBkDZFwYZK4113deNLku6nLFbu44udGLnrvHNZSFhfEswFWFuDj2eDVi34qr4DMqZTWQGr7XAExXmCK8UbMwRtGxvv31cq1u4JJLPUoHsC59MKdFuFQwQnaLKs5SGwgksUFC2eMvMMW8NhLdkJU8QnTVdfkeq2LXEt2G3dBAGxYa1idzMo9M4aiA7Q6R3Y9UZmWnm1tpfkTG8wjDo4CRkjiyjmR7JhLZTFoUUCD8BAXLHhRema4ejbwa7Ff5bnnGqYo3AKwWTvo7aAjqsuggnfckE65Gh3FLtVHJgGToZ7zTxgRL5ZH
View snark-job-list.py
scan_state = [[[0,{"M":[{"Work_id":743084974,"Source":"4mKBT3x4pdxTjf6nyofbwNkqBrjGuMjzY8w5bNTjAMiz2dniSWBTurmAsGAEJLSCY7ZwNtJjaHMHAEuwhf9a93eps5EYd8fM41tXcPtXimVtzYtqVbjVAT8xRbLywM7qF29KsMwCsamkDTboa6ZxTfzBWe1sNRTwHghKKEcL7oPjdZvdg6uEqdXcqZwVEbxMg42YHyKjapy7v4vwmz2gyXsXLqeNTkzPaVHM1Pnrb1Svitf38tBXkedY9iA4Tk55vQC3ZiaaLLa9BGJ8spup9CcJ5hoe4GXo2KCV724LPbCQXtSshGP4JPZ96f74eaYTJ5","Target":"4mKBT3x3Hj2L6qhfq9eDz9iqsWwc1xE3NHqqCZJPdY6kPdA8ckfDdZpCgGE5TV8RrPeeXBeR3KuN2VUuzE3kRD42GML6BMiezWEsfSPeaz3yf9qjMdgL8RGHse2it1v3q15TSkovfPp8qKn2WywPyCjaeyWA2yjvMU5ahWaEKkt7BkBifGEkPxAh7xgBYzaVN7ijK31eTR8vFLaJ6DCzJ7LosgujyS9bE41V71X9Yf9BVejCGEW7e4VfaGncKBTRi5i1k9cgvudJVsYd1bKX4CKiFpNKi22HKaTQ57ryXYMCkzPbujsA1USD9ZeB7npMRY","Fee Excess":{"magnitude":"40000000","sgn":["Pos"]},"Supply Increase":"0"},{"Work_id":918613940,"Source":"4mKBT3x3Hj2L6qhfq9eDz9iqsWwc1xE3NHqqCZJPdY6kPdA8ckfDdZpCgGE5TV8RrPeeXBeR3KuN2VUuzE3kRD42GML6BMiezWEsfSPeaz3yf9qjMdgL8RGHse2it1v3q15TSkovfPp8qKn2WywPyCjaeyWA2yjvMU5ahWaEKkt7BkBifGEkPxAh7xgBYzaVN7ijK31eTR8vF
@garethtdavies
garethtdavies / docker-run-command.sh
Last active Jun 10, 2020
Docker Run Coda Daemon
View docker-run-command.sh
docker run -d --name coda \
-e "CODA_PRIVKEY_PASS=xxxxxx" \
--mount type=bind,source="$(pwd)"/keys,target=/root/keys \
-p 8302:8302 \
-p 8303:8303 \
-p 3085:3085 \
--restart always \
codaprotocol/coda-daemon:0.0.12-beta-feature-bump-genesis-timestamp-3e9b174 daemon \
-block-producer-key /root/keys/my-wallet \
-coinbase-receiver <PUBLIC_KEY> \