Skip to content

Instantly share code, notes, and snippets.

View dckc's full-sized avatar

Dan Connolly dckc

View GitHub Profile
@dckc
dckc / go.py
Created October 28, 2020 16:17
import logging
import re
log = logging.getLogger(__name__)
def main(cwd, check_call):
scripts = cwd.glob('output/deliver-*.js')
byNum = {deliveryNum(str(s)): s for s in scripts}
# log.debug('scripts %s', byNum)

my tabs:

zooko on Twitter: "@QwQiao @kate_sills Have you looked at the Harvest contract? I'm wondering about Zoe in particular, but if Zoe wouldn't have fit, I'm wondering about the general notion of ocap security-by-construction wrt the Harvest failure…" / Twitter: https://twitter.com/zooko/status/1320791019278028803

Uniswap Info: https://info.uniswap.org/pair/0x514906fc121c7878424a5c928cad1852cc545892 Contract Address 0xa0246c9032bc3a600820415ae600c6388619a14d | Etherscan: https://etherscan.io/address/0xa0246c9032bc3a600820415ae600c6388619a14d

Harvest Finance: https://harvest.finance/faq

The Most Trusted Smart Contract Audit: https://haechi.io/#main

connolly@jambox:~/projects/agoric/agoric-sdk/packages/xs-vat-worker/build-xsnap$ make  run-xsnap
xsnap -m output/build.js
about to harden top stuf...
enqueue(val, undefined)
enqueue(val, unknown.0)
enqueue(val, unknown.1)
enqueue(val, unknown.2)
enqueue(val, unknown.length)
@dckc
dckc / makefile
Created September 29, 2020 22:46
#
# Copyright (c) 2016-2017 Moddable Tech, Inc.
#
# This file is part of the Moddable SDK Tools.
#
# The Moddable SDK Tools 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.
#
new out, Result, REVAddress(`rho:rchain:REVAddress`) in {
/**
* The RChain genesis contracts typically use
* (true, T) \/ (false, Problem) to indicate
* a success or failure outcome.
* We abbreviate this as Result<T> (cf. rust).
*
* And we use `Problem` for { "message": String, ... }
*/
@dckc
dckc / README.md
Last active September 25, 2020 03:33

Snapshot test sketch

see especially the // snapshot worker? comments in main.js.

tested on linux with moddable version 54d8e94710ed6f8c310f046c4fbc83c967ccd346

Run as usual

# pip install pyrchain
# pip install requests
from rchain.client import RClient
from rchain.param import testnet_param
from itertools import accumulate
from datetime import datetime
import requests
step = 50

Board: WEC

Wile E. Coyote for Board Member

Wile E. Coyote

In each episode, the cunning, insidious and constantly hungry Coyote repeatedly attempts to catch and subsequently eat the Road Runner, a fast-running ground bird, but is never successful. Instead of his animal instincts, the Coyote uses absurdly complex contraptions (sometimes in the manner of Rube Goldberg) to try to catch his prey, which comically backfire, with the Coyote often getting injured in slapstick fashion.

Board: RR

@dckc
dckc / rnode.yml
Created September 14, 2020 04:32
swagger: "2.0"
info:
title: "RChain node (rnode)"
version: "0.9.25.2"
license:
name: "Apache 2.0"
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
paths:
/status:
get:

I ran into the "pick a matrix client" thing again today...

https://matrix.to/#/#freenode_#etesync:matrix.org

I picked a web client... but then there was a login thing... I want to login using my own domain.

What does that cost?

Can I docker run something on my colo node?