Skip to content

Instantly share code, notes, and snippets.

[
{
"name": "MarketCreated",
"universe": "0x0fF6ee01f88145298761a29A0372Ed24E16E73B1",
"endTime": 1351296002,
"extraInfo": {
"categories": [
"flash",
"reasonable",
"categorical"
[
{
"name": "MarketCreated",
"universe": "0xaAC01B4aaA2EBD04A4790c85b76e1749d8Ef8e13",
"endTime": 1351296004,
"extraInfo": {
"categories": [
"flash",
"reasonable",
"categorical"
(function showIndexedDbSize() {
"use strict";
function openDatabases(...dbnames) {
console.log('dbnames', dbnames);
return Promise.all(dbnames.map(dbname =>
(new Promise(function(resolve, reject) {
var request = window.indexedDB.open(dbname);
request.onsuccess = function(event) {
const db = event.target.result;
resolve(db);
@startuml
title Blockstream unreliable node workflow
(*) --> "New Block"
@enduml
@justinbarry
justinbarry / gnosis-ui-workflow.puml
Last active October 16, 2019 19:56
gnosis ui workflow
@startuml
title Gnosis Safe UI flow
(*) --> "Login"
--> "Check for Safe Address with Registry Contract"
--> "Address exists in registry?"
If "" then
--> [Yes] "Return safe address to UI"
else
--> [No] "Check localstorage for gnosis safe address" as a1
Endif
@justinbarry
justinbarry / PerfNotes.md
Created October 4, 2019 19:39
Performance Notes

Observations on performance

Index creation is slow

Intial Sync is slow

  1. Check block numbers before rolling back on sync
@justinbarry
justinbarry / git-cissue
Last active August 29, 2019 19:57
A git helper that creates a branch name based on a github issue title
#!/bin/bash
((!$#)) && echo Issue number provided, command ignored! && exit 1;
TITLE=$(hub issue show -f %t $1);
ESCAPED_TITLE="GH-$1-${TITLE// /-}";
git checkout -b $ESCAPED_TITLE;
type SubscriptionKey = string;
interface Connector {
trackAccount(account:string);
};
interface EventEmitter {
emit(key, payload);
subscribe():SubscriptionKey
\\ Proposing this structure for getters and senders.
export interface Pong {
response: string;
}
export class Ping<TBigNumber> {
public static PingParams = t.type({});
@Getter()
This file has been truncated, but you can view the full file.
[
{
"marketId": "0x5d192f598ff29318013b3f269ae37590aa75b5f9",
"universe": "0xe991247b78f937d7b69cfc00f1a487a293557677",
"marketType": "yesNo",
"numOutcomes": 2,
"minPrice": "0",
"maxPrice": "1",
"marketCreator": "0xaf71d0d1ec6304b83171f7d280b87276055dc77b",
"creationBlockNumber": 5937093,