Skip to content

Instantly share code, notes, and snippets.

// Copyright 2015-2017 harity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Parity is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of

Introduction

To show Parity what you are capable of, we have put together a couple of short open-ended tasks. Depending on your areas of personal interest, you can pick any of the available items.

We generally don't force down bullet-point requirements in our day-to-day tasks, and these items are no different - it is up to you to handle the task in the way you best deem fit.

Most importantly - have some fun.

Available Tasks

// Trait for functions will allow some nice meta programming.
type EthabiFunction {
type Output = T;
fn encoded(&self) -> ethabi::Bytes;
fn output(&self, ethabi::Bytes) -> Result<Self::Output>;
}
$ ./target/release/parity --help
Parity. Ethereum Client.
By Wood/Paronyan/Kotewicz/Drwięga/Volf et al.
Copyright 2015, 2016, 2017, 2018 Parity Technologies (UK) Ltd
parity [options]
parity [options] ui
parity [options] dapp <PATH>
parity [options] daemon <PID-FILE>
parity [options] account new
{
"name": "TestBasicAuthority",
"engine": {
"authorityRound": {
"params": {
"stepDuration": "6",
"validators": {
"list": ["00a88fc3b3a86793de59c886e20b320a057a5723"]
},
"immediateTransitions": true,
@tomusdrw
tomusdrw / gist.js
Last active September 11, 2018 12:24 — forked from adyshimony/gist.js
Fetch transactions receipt
const ipcPath = process.env['HOME'] + '/.local/share/io.parity.ethereum/jsonrpc.ipc'
const net = require('net')
const Web3 = require('web3')
const web3 = new Web3()
web3.setProvider(new web3.providers.IpcProvider(ipcPath, net))
web3.extend({
property: 'parity',
methods: [{
tomusdrw@t ~/test $ node receipts
getBlockTransactionsAsync waiting for blocks 4832000 - 4832099 requests
getBlockTransactionsAsync got blocks, duration in sec:, 5.918
parity_getBlockReceipts for block 4832000, receipts: 252, duration in sec: 0.052
wait for 252 transactions receipt requests .
getTransactionsFromBlockAsync for block: 4832000, txs: 252, duration in sec:, 0.204
parity_getBlockReceipts for block 4832001, receipts: 103, duration in sec: 0.022
wait for 103 transactions receipt requests .
getTransactionsFromBlockAsync for block: 4832001, txs: 103, duration in sec:, 0.063
parity_getBlockReceipts for block 4832002, receipts: 79, duration in sec: 0.020
getBlockTransactionsAsync waiting for blocks 4832000 - 4832099 requests
getBlockTransactionsAsync got blocks, duration in sec:, 5.903
wait for 252 transactions receipt requests .
getTransactionsFromBlockAsync for block: 4832000, txs: 252, duration in sec:, 1.599
wait for 103 transactions receipt requests .
getTransactionsFromBlockAsync for block: 4832001, txs: 103, duration in sec:, 0.151
wait for 79 transactions receipt requests .
getTransactionsFromBlockAsync for block: 4832002, txs: 79, duration in sec:, 0.090
wait for 64 transactions receipt requests .
getTransactionsFromBlockAsync for block: 4832003, txs: 64, duration in sec:, 0.055
2018-09-12 09:39:10 Starting Parity-Ethereum/v2.1.0-unstable-631df0f-20180911/x86_64-linux-gnu/rustc1.28.0
2018-09-12 09:39:10 Keys path /home/folsen/.local/share/io.parity.ethereum/keys/ethereum
2018-09-12 09:39:10 DB path /home/folsen/.local/share/io.parity.ethereum/chains/ethereum/db/906a34e69aec8c0d
2018-09-12 09:39:10 State DB configuration: fast
2018-09-12 09:39:10 Operating mode: active
2018-09-12 09:39:10 Configured for Foundation using Ethash engine
2018-09-12 09:39:20 Updated conversion rate to Ξ1 = US$171.70 (27733864 wei/gas)
2018-09-12 09:39:25 Public node URL: -
2018-09-12 09:39:30 Syncing #6289129 0x9a74…df13 6.30 blk/s 622.6 tx/s 44 Mgas/s 0+ 63 Qed #6289193 84/750 peers 2 MiB chain 2 GiB db 7 MiB queue 279 MiB sync RPC: 0 conn, 0 req/s, 0 µs
2018-09-12 09:39:40 Syncing #6289195 0x292a…7aab 6.70 blk/s 696.6 tx/s 47 Mgas/s 0+ 27 Qed #6289226 115/750 peers 4 MiB chain 2 GiB db 3 MiB queue 1 GiB sync RPC: 0 conn, 0 req/s, 0 µs

Keybase proof

I hereby claim:

  • I am tomusdrw on github.
  • I am tomusdrw (https://keybase.io/tomusdrw) on keybase.
  • I have a public key ASB2Tnz-ENYKvLCFMEP0-B61RjdQtHdKqYjmElmzIpKjCQo

To claim this, I am signing this object: