Tested on Ubuntu 20.04 but should be very similar for all Ubuntu/Debian systems. Logged in as root because I'm feeling lucky.
# Base installation
apt update && apt upgrade -y \
&& apt install -y joe git build-essential jq screen
[ | |
{ | |
"type": "coin_spent", | |
"attributes": [ | |
{ | |
"key": "c3BlbmRlcg==", | |
"value": "anVubzEwMHM0NXM0aDk0cWRrY2FmbW1ycWZsdGxyZ3lxd3luNmUwNWp4Mg==", | |
"index": true | |
}, | |
{ |
# How long we wait for a proposal block before prevoting nil | |
timeout_propose = "2000ms" | |
# How much timeout_propose increases with each round | |
timeout_propose_delta = "500ms" | |
# How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil) | |
timeout_prevote = "1s" | |
# How much the timeout_prevote increases with each round | |
timeout_prevote_delta = "500ms" | |
# How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil) | |
timeout_precommit = "1s" |
[ | |
{ | |
"in": { | |
"checksum": "13a1fc994cc6d1c81b746ee0c0ff6f90043875e0bf1d9be6b7d779fc978dc2a5", | |
"creator": "purple1nxvenxve42424242hwamhwamenxvenxvhxf2py", | |
"creatorData": "9999999999aaaaaaaaaabbbbbbbbbbcccccccccc", | |
"salt": "61", | |
"msg": null | |
}, | |
"intermediate": { |
$ npx @cosmjs/[email protected] \ | |
--code 'import { toBech32 } from "@cosmjs/encoding"; console.log(toBech32("juno", new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])))' | |
# juno1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq93ryqp |
The gas comsumption of a comtract built to Wasm by different Rust versions for an Argon2 implementation.
The host is always the same, just Wasm is created differently.
Build command | Gas used | relative |
---|---|---|
cargo +1.51.0 wasm && cargo integration-test argon2 -- --nocapture | 27143267400000 | 100.0% |
cargo +1.52.1 wasm && cargo integration-test argon2 -- --nocapture | 23615946150000 | 87.0% |
cargo +1.53.0 wasm && cargo integration-test argon2 -- --nocapture | 23615432700000 | 87.0% |
cargo +1.54.0 wasm && cargo integration-test argon2 -- --nocapture | 23611119600000 | 87.0% |
#!/usr/bin/env python | |
import argparse | |
import binascii | |
import sys | |
import leveldb | |
def b2x(b): | |
"""Convert bytes to a hex string""" | |
return binascii.hexlify(b).decode('utf8') |
A bug in wasmvm has been discovered.
This bug
No code path is known to the author that can cause 1 or 2, but this does not guarantee such paths do not exist.
#!/usr/bin/env node | |
const $RefParser = require("@apidevtools/json-schema-ref-parser"); | |
function printUsage() { | |
console.info("Usage: json-schema-ref-parser-cli FILE") | |
} | |
async function main(args) { | |
if (args.length !== 1) { |