Skip to content

Instantly share code, notes, and snippets.

View al3mart's full-sized avatar
👨‍💻

Alejandro Martinez Andres al3mart

👨‍💻
View GitHub Profile
@al3mart
al3mart / recover_para_info.py
Last active September 8, 2022 11:10
Recover onboarded parachain state from a relay chain node.
# Usage python /parachain_info.py wss://relay-rpc.url [local_directory_name]
import sys
# install with `pip install substrate-interface
from substrateinterface import SubstrateInterface
def get_parachain_head(node_client, para_id):
return str(node_client.query('Paras', 'Heads', params=[para_id]))
@al3mart
al3mart / ptfintro.md
Last active June 12, 2024 07:16
Polkadot Technical Fellowship Candidate Intro

Hello! 👋

I am Alejandro Martinez - https://github.com/al3mart/ - I have been working with Parity Technologies since December 2020 on various tasks, always with a foot closer to Polkadot's ecosystem and the other one closer to its core technology.

Humble contributions

Runtime related

[2024-05-02T16:58:26Z INFO remote-ext] adding data for hashed prefix: , took 121.07s
[2024-05-02T16:58:26Z INFO remote-ext] adding data for hashed key: 3a636f6465
[2024-05-02T16:58:32Z INFO remote-ext] adding data for hashed key: 26aa394eea5630e07c48ae0c9558cef7f9cce9c888469bb1a0dceaa129672ef8
[2024-05-02T16:58:32Z INFO remote-ext] adding data for hashed key: 26aa394eea5630e07c48ae0c9558cef702a5c1b19ab7a04f536c519aca4983ac
[2024-05-02T16:58:32Z INFO remote-ext] 👩‍👦o child roots found to scrape
[2024-05-02T16:58:32Z INFO remote-ext] initialized state externalities with storage root 0x96c830b6ae630702662a5475ff9ba80424fbda604932fc31f8a779b479687a18 and state_version V0
[2024-05-02T16:58:32Z INFO try-runtime::cli] Original runtime [Name: RuntimeString::Owned("paseo")] [Version: 1001003] [Code hash: 0x0081...bd1a]
[2024-05-02T16:58:32Z INFO try-runtime::cli] New runtime [Name: RuntimeString::Owned("paseo")] [Version: 1002000] [Code hash: 0xfd64...3598]
[2024-05-02T16:58:33Z INFO try-runtime::cli] 🚀
[2024-06-06T18:34:50Z INFO remote-ext] replacing wss:// in uri with https://: "https://pas-rpc.stakeworld.io:443" (ws is currently unstable for fetching remote storage, for more see https://github.com/paritytech/jsonrpsee/issues/1086)
[2024-06-06T18:34:50Z INFO remote-ext] since no at is provided, setting it to latest finalized head, 0x363cf78019bd0d3678f5999c36cbecd2036ef22f8592d93f694b29a1baff0a5b
[2024-06-06T18:34:50Z INFO remote-ext] since no prefix is filtered, the data for all pallets will be downloaded
[2024-06-06T18:34:50Z INFO remote-ext] scraping key-pairs from remote at block height 0x363cf78019bd0d3678f5999c36cbecd2036ef22f8592d93f694b29a1baff0a5b
✅ Found 42796 keys (2.76s)
[2024-06-06T18:34:57Z WARN frame_remote_externalities] Batch request failed (2/12 retries). Error: Parse error: invalid type: map, expected a sequence at line 1 column 0
✅ Inserted keys into DB (0.12s)
[2024-06-06T18:35:04Z INFO remote-ext] adding data for hashed prefix: , took 13.91s
[2024-06-06T18:35:04Z INFO remote-e