Skip to content

Instantly share code, notes, and snippets.

@mattrutherford
mattrutherford / build-wasm-runtimes.rb
Last active April 8, 2021 22:03
build-wasm-runtimes.rb for Polkadot
#!/usr/bin/env ruby
# Copy this file to an empty directory, make executable (`chmod +x build-wasm-runtimes.rb`)
# Run it: `./build-wasm-runtimes.rb`
require 'fileutils'
require 'pty'
# List commits for each desired release
RELEASES = [
@mattrutherford
mattrutherford / result.json
Last active January 23, 2021 16:33
State trace RPC - sp_io storage events
{
"jsonrpc":"2.0",
"result":{
"block_hash":"BlockId::Hash(0xcb4718940218bd7bb9c0598af51b71903a56b2554658c6a90e6de11ac25a30c4)",
"events":[
{
"name":"event primitives/io/src/lib.rs:90",
"parent_id":2,
"rel_timestamp":{
"nanos":7808326,
{
"jsonrpc":"2.0",
"result":{
"block_hash":"BlockId::Hash(0x67f8d0c0618a90449b900abb418e873d0ebd49c4645664129333e1e6ea932fbe)",
"events":[
{
"name":"log event",
"parent_id":null,
"target":"log",
"values":{
@mattrutherford
mattrutherford / result.json
Last active January 5, 2021 17:32
state_traceBlock
{
"jsonrpc":"2.0",
"result":{
"events":[
{
"name":"log event",
"parent_id":274877906945,
"target":"log",
"values":{
"bool_values":{
@mattrutherford
mattrutherford / balances_lib.rs
Created November 22, 2019 10:35
Macro expanded lib.rs from pallete::balances
#![feature(prelude_import)]
#![doc = " # Balances Module"]
#![doc = ""]
#![doc = " The Balances module provides functionality for handling accounts and balances."]
#![doc = ""]
#![doc = " - [`balances::Trait`](./trait.Trait.html)"]
#![doc = " - [`Call`](./enum.Call.html)"]
#![doc = " - [`Module`](./struct.Module.html)"]
#![doc = ""]
#![doc = " ## Overview"]