Skip to content

Instantly share code, notes, and snippets.

{
"trustedClientState": "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000012750000000000000000000000000000000000000000000000000000000000001baf8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a7a6b6962632d64656d6f00000000000000000000000000000000000000000000",
"trustedConsensusState": "0000000000000000000000000000000000000000000000000000000067ddd460abb8982d8a6f5d4070a8f03058d4b7d9efaaf38dcd0e3260dd273ce18d0e3371bc4b9aae47a39635413417f7104fff9f09984d9e5f7b543e93227061c956457a",
"
@rootulp
rootulp / debug-share.txt
Created March 18, 2025 17:05
debug a share
[0 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 1 , 0, 0, 10, 211 , 0, 0, 0, 38 , 147, 2 , 10, 135, 2, 10, 160, 1, 10, 157, 1, 10, 32, 47, 99, 101, 108, 101, 115, 116, 105, 97, 46, 98, 108, 111, 98, 46, 118, 49, 46, 77, 115, 103, 80, 97, 121, 70, 111, 114, 66, 108, 111, 98, 115, 18, 121, 10, 47, 99, 101, 108, 101, 115, 116, 105, 97, 49, 53, 114, 100, 100, 112, 119, 106, 102, 53, 51, 113, 108, 107, 109, 113, 114, 121, 51, 110, 97, 57, 99, 97, 115, 99, 119, 108, 99, 57, 120, 103, 114, 118, 115, 52, 107, 104, 55, 18, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 202, 29, 225, 42, 76, 243, 32, 118, 79, 165, 26, 2, 209, 41, 34, 32, 102, 64, 43, 118, 154, 229, 79, 221, 195, 111, 221, 255, 129, 166, 92, 97, 138, 196, 27, 124, 149, 11, 116, 208, 57, 89, 62, 160, 206, 122, 148, 209, 66, 1, 0, 18, 32, 10, 11, 18, 4, 10, 2, 8, 1, 24, 236, 160, 174, 1, 18, 17, 10, 11, 10, 4, 117, 116, 10
@rootulp
rootulp / abci-diagrams.md
Last active February 28, 2025 15:43
ABCI diagrams

ABCI diagrams

Block lifecycle

block-lifecycle

State sync

state-sync

@rootulp
rootulp / ica-pfb-arabica.md
Created September 4, 2024 18:30
Attempt to submit a PFB via ICA on Arabica

Inter Chain Accounts

Notes from creating and testing ICA on testnets.

Prerequisites

  1. Start a Cosmos Hub Testnet node and sync it to the tip.
  2. Start a Arabica node and sync it to the tip.
  3. Install and configure Hermes to relay between these two chains.
    1. Configure Hermes keys with an account on both chains. Get both accounts funded via Discord wallets.
@rootulp
rootulp / voting-period.md
Last active August 29, 2024 20:05
Celestia network voting period

Voting Period

Network Voting Period (nanoseconds) Voting period (days)
arabica-11 604800000000000 7
mocha-4 86400000000000 1
celestia 604800000000000 7

Reference

@rootulp
rootulp / mocha.sh
Created August 21, 2024 21:06
State sync a Celestia consensus node on Mocha
#!/bin/sh
# Stop script execution if an error is encountered
set -o errexit
# Stop script execution if an undefined variable is used
set -o nounset
CHAIN_ID="mocha-4"
NODE_NAME="node-name"
SEEDS="ee9f90974f85c59d3861fc7f7edb10894f6ac3c8@seed-mocha.pops.one:26656,258f523c96efde50d5fe0a9faeea8a3e83be22ca@seed.mocha-4.celestia.aviaone.com:20279,5d0bf034d6e6a8b5ee31a2f42f753f1107b3a00e@celestia-testnet-seed.itrocket.net:11656,7da0fb48d6ef0823bc9770c0c8068dd7c89ed4ee@celest-test-seed.theamsolutions.info:443"
@rootulp
rootulp / arabica.sh
Created August 21, 2024 20:27
State sync a Celestia consensus node on Arabica
#!/bin/sh
# Stop script execution if an error is encountered
set -o errexit
# Stop script execution if an undefined variable is used
set -o nounset
CHAIN_ID="arabica-11"
NODE_NAME="node-name"
SEEDS="827583022cc6ce65cf762115642258f937c954cd@validator-1.celestia-arabica-11.com:26656,74e42b39f512f844492ff09e30af23d54579b7bc@validator-2.celestia-arabica-11.com:26656,00d577159b2eb1f524ef9c37cb389c020a2c38d2@validator-3.celestia-arabica-11.com:26656,b2871b6dc2e18916d07264af0e87c456c2bba04f@validator-4.celestia-arabica-11.com:26656"
#!/bin/bash
SNAP_RPC="https://celestia-rpc.polkachu.com:443"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
@rootulp
rootulp / celestia-app.sh
Last active July 9, 2024 22:14
Test celestia-node with celestia-app v2
#!/bin/sh
# Stop script execution if an error is encountered
set -o errexit
# Stop script execution if an undefined variable is used
set -o nounset
if ! [ -x "$(command -v celestia-appd)" ]
then
echo "celestia-appd could not be found. Please install the celestia-appd binary using 'make install' and make sure the PATH contains the directory where the binary exists. By default, go will install the binary under '~/go/bin'"
@rootulp
rootulp / v1.json
Created May 12, 2024 22:56
`celestia-appd export` output
{
"app_hash": "",
"app_state": {
"auth": {
"accounts": [
{
"@type": "/cosmos.auth.v1beta1.ModuleAccount",
"base_account": {
"account_number": "3",
"address": "celestia1fl48vsnmsdzcv85q5d2q4z5ajdha8yu3y3clr6",