Skip to content

Instantly share code, notes, and snippets.

// 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>;
}

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

// 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

Try to break transaction scheduler

Last one thing is not yet implemented - transactions should be allowed only for certified accounts. (so right now it's possible to spam the service by sending transactions from newly created accounts)

How to do it?

This file has been truncated, but you can view the full file.
Loading config file from /home/tomusdrw/.local/share/io.parity.ethereum/config.toml
2017-09-11 17:01:41 main INFO parity::run Starting Parity/v1.7.2-unstable-3b10e0b-20170830/x86_64-linux-gnu/rustc1.21.0-beta.2
2017-09-11 17:01:41 main INFO parity::run Keys path /home/tomusdrw/.local/share/io.parity.ethereum/keys/Foundation
2017-09-11 17:01:41 main INFO parity::run DB path /share/__db/ethereum/db/906a34e69aec8c0d
2017-09-11 17:01:41 main INFO parity::run Path to dapps /home/tomusdrw/.local/share/io.parity.ethereum/dapps
2017-09-11 17:01:41 main INFO parity::run State DB configuration: fast
2017-09-11 17:01:41 main INFO parity::run Operating mode: passive
2017-09-11 17:01:41 main INFO ethcore::service Configured for Foundation using Ethash engine
2017-09-11 17:01:42 IO Worker #0 INFO network Public node URL: enode://aab61610f7040ffa00fe1af5e243f4a3422dcf479be3a12f8477e778e84b5745d704fdfa7440321884c29b679e9631a978e9ed36d5c52b0d215f6d299c762e68@192.168.0.100:30303
2017-09-11 17:01:42 main WARN d
$ ./target/release/parity --chain=foundatiodb-path /share/__db
Loading config file from /home/tomusdrw/.local/share/io.parity.ethereum/config.toml
2017-09-11 16:10:56 main INFO parity::run Starting Parity/v1.7.2-unstable-3b10e0b-20170830/x86_64-linux-gnu/rustc1.21.0-beta.2
2017-09-11 16:10:56 main INFO parity::run Keys path /home/tomusdrw/.local/share/io.parity.ethereum/keys/Foundation
2017-09-11 16:10:56 main INFO parity::run DB path /share/__db/ethereum/db/906a34e69aec8c0d
2017-09-11 16:10:56 main INFO parity::run Path to dapps /home/tomusdrw/.local/share/io.parity.ethereum/dapps
2017-09-11 16:10:56 main INFO parity::run State DB configuration: fast
2017-09-11 16:10:56 main INFO parity::run Operating mode: passive
2017-09-11 16:10:56 main INFO ethcore::service Configured for Foundation using Ethash engine
2017-09-11 16:10:57 IO Worker #0 INFO network Public node URL: enode://aab61610f7040ffa00fe1af5e243f4a3422dcf479be3a12f8477e778e84b5745d704fdfa7440321884c29b679e9631a978e9ed36d5c52b0d215f6d
Nodejs:
'use strict';
const Hapi = require('hapi');
// Create a server with a host and port
const server = new Hapi.Server();
server.connection({
host: 'localhost',
port: 3002
2017-05-18 11:20:37 WARN signer Blocked connection to Signer API from untrusted origin: Some([99, 104, 114, 111, 109, 101, 45, 101, 120, 116, 101, 110, 115, 105, 111, 110, 58, 47, 47, 110, 103, 98, 106, 103, 108, 112, 101, 104, 99, 102, 110, 112, 107, 111, 98, 101, 112, 109, 112, 103, 105, 111, 99, 108, 97, 106, 108, 107, 107, 108, 103])
2017-05-18 11:20:47 WARN signer Blocked connection to Signer API from untrusted origin: Some([99, 104, 114, 111, 109, 101, 45, 101, 120, 116, 101, 110, 115, 105, 111, 110, 58, 47, 47, 110, 103, 98, 106, 103, 108, 112, 101, 104, 99, 102, 110, 112, 107, 111, 98, 101, 112, 109, 112, 103, 105, 111, 99, 108, 97, 106, 108, 107, 107, 108, 103])
2017-05-18 11:20:55 WARN signer Blocked connection to Signer API from untrusted origin: Some([99, 104, 114, 111, 109, 101, 45, 101, 120, 116, 101, 110, 115, 105, 111, 110, 58, 47, 47, 110, 103, 98, 106, 103, 108, 112, 101, 104, 99, 102, 110, 112, 107, 111, 98, 101, 112, 109, 112, 103, 105, 111, 99, 108, 97, 106, 108, 107, 107, 108, 1
@tomusdrw
tomusdrw / rpc.md
Created May 4, 2017 13:31
List of RPC methods

Parity RPC methods

Groupped by cause of change of returned value.

Can update with new block:

eth_blockNumber
eth_getBalance(acc, bn)
eth_getStorageAt(acc, idx, bn)
eth_getBlockByNumber(bn, includeTx)
@tomusdrw
tomusdrw / parity.servers.md
Last active March 14, 2017 15:45
New (web) servers proposal for Parity

Servers summary:

Port: 8545

RPC server & Dapps server

  1. RPC exposed as POST request to any path (except for /api/*)
  2. Validates Host headers and returns proper CORS headers (doesn't process request if CORS is invalid)
  3. When Dapps enabled, additionally: a) Serves network and builtin dapps b) Exposes /api/ and /parity-utils