Skip to content

Instantly share code, notes, and snippets.

View ansermino's full-sized avatar

David Ansermino ansermino

View GitHub Profile
@ansermino
ansermino / types.json
Created July 16, 2020 12:21
Types for PolkadotJS UI for compatibility with chainbridge-substrate-chain
{
"chainBridge::ChainId": "u8",
"ChainId": "u8",
"ResourceId": "[u8; 32]",
"DepositNonce": "u64",
"ProposalVotes": {
"votes_for": "Vec<AccountId>",
"votes_against": "Vec<AccountId>",
"status": "u8",
"expiry": "U256"
version: '3'
services:
geth1:
image: "chainsafe/chainbridge-geth:20200505131100-5586a65"
container_name: geth1
ports:
- "8545:8545"
sub-chain:
image: "chainsafe/chainbridge-substrate-chain:v1.1.0"
use std::fmt;
use super::hamt::MAP_BYTES;
#[derive(Debug)]
/// Bitmap stores MAP_BYTES bytes and allows for setting and getting on individual bits.
pub struct Bitmap {
map: [u8; MAP_BYTES as usize]
}
impl Bitmap {
pragma solidity ^0.4.24;
import './Factory.sol';
contract Dashboard {
Factory public database;
uint public campaignCount;
constructor(address _factorAddr) public {
pragma solidity "0.5.1";
contract FlightInsurance {
// Address of 'administrator'
address public owner;
// Flight number to identify contract
string public flightNumber;
// Expected departure time
uint public expectedTime;
// Timestamp from most recent call to updateTime()
@ansermino
ansermino / ISSUE_TEMPLATE.md
Last active December 4, 2018 23:27
Borrowed from ganache-cli
@ansermino
ansermino / results.txt
Created October 28, 2018 10:54
Go-emprean test results (go test ./... -parallel 2 -v)
? github.com/ShyftNetwork/go-empyrean [no test files]
=== RUN TestHDPathParsing
--- PASS: TestHDPathParsing (0.00s)
PASS
ok github.com/ShyftNetwork/go-empyrean/accounts 0.226s
=== RUN TestReader
--- PASS: TestReader (0.00s)
=== RUN TestTestNumbers
--- PASS: TestTestNumbers (0.00s)
=== RUN TestTestString
@ansermino
ansermino / geth-genesis.json
Created September 13, 2018 21:54
Goerli Genesis
{
difficulty: 131072,
extraData: "0x",
gasLimit: 6000000,
gasUsed: 0,
hash: "0xe1193afff14229ad9b7c3fa3a77cdb81477fcc8119464daec08c7a0066a5bb10",
logsBloom: "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
miner: "0x0000000000000000000000000000000000000000",
mixHash: "0x0000000000000000000000000000000000000000000000000000000000000000",
nonce: "0x0000000000000000",
2018-07-25 19:36:35 IO Worker #0 INFO import Syncing #1590280 0x5c0f…1077 0.00 blk/s 0.0 tx/s 0 Mgas/s 0+ 0 Qed #73948 24/25 peers 242 KiB chain 0 bytes db 0 bytes queue 13 MiB sync RPC: 0 conn, 1 req/s, 763 µs
2018-07-25 19:36:45 IO Worker #1 INFO import Syncing #1590280 0x5c0f…1077 0.00 blk/s 0.0 tx/s 0 Mgas/s 0+ 0 Qed #79471 24/25 peers 242 KiB chain 0 bytes db 0 bytes queue 13 MiB sync RPC: 0 conn, 1 req/s, 863 µs
2018-07-25 19:36:55 IO Worker #2 INFO import Syncing #1590280 0x5c0f…1077 0.00 blk/s 0.0 tx/s 0 Mgas/s 0+ 0 Qed #48897 24/25 peers 242 KiB chain 0 bytes db 0 bytes queue 12 MiB sync RPC: 0 conn, 1 req/s, 931 µs
2018-07-25 19:37:00 IO Worker #3 INFO import Syncing #1590280 0x5c0f…1077 0.00 blk/s 0.0 tx/s 0 Mgas/s 0+ 0 Qed #51818 24/25 peers 242 KiB chain 0 bytes db 0 bytes queue 13 MiB sync RPC: 0 conn, 2 req/s, 832 µs
2018-07-25 19:37:05 IO Work
@ansermino
ansermino / config.toml
Last active July 25, 2018 23:40
Parity Config
[parity]
mode = "last"
mode_timeout = 300
mode_alarm = 3600
auto_update = "critical"
release_track = "stable"
public_node = false
no_download = false
no_consensus = false
no_persistent_txqueue = false