Skip to content

Instantly share code, notes, and snippets.

[test](develop)$ ETHEREUM_TEST_PATH=/Users/hugo/workspace/EWASM/GasUsage/tests ./testeth -t GeneralStateTests/stEWASMTests -- --filltests --vm hera --singlenet "Byzantium"
Running 1 test case...
Test Case "stEWASMTests":
Executing...
$callDelegate 3e8 0 0 14 2
Executing...
getAddress 20
storageStore 0 20
Out of gas :(
DEBUG printMemHex(0x36:0x20): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Keybase proof

I hereby claim:

  • I am hugo-dc on github.
  • I am hugo_dc (https://keybase.io/hugo_dc) on keybase.
  • I have a public key ASBn7MHl-WLMUwI_gwYYZb1CjwaWKjjbXlaB6kIFyM4zsAo

To claim this, I am signing this object:

Welcome

This guide is intended to provide resources for those wanting to help test Metropolis EIPs. The CPP team is currently in the middle of a migration from EthDocs to a documentation site that is more dedicated to CPP-Ethereum so the documentation on creating tests for Ethereum using testeth is scattered. Everything you will need to get started should be compiled below.

Suggested skill sets needed to create and run tests

  1. Ability to compile/build testeth and LLL compiler or run a docker file.
  2. Ability to understand the LLL Ethereum language.
  3. Ability to understand EIPs, particuarly [those that are going to be going into t
@hugo-dc
hugo-dc / puzzle.py
Last active August 29, 2015 14:18 — forked from jdavis/puzzle.py
def cons(x, y):
return lambda f: f(x, y)
def car(x):
# Fill out this function
pass
if car(cons(1, 5)) == 1:
print 'Solved!'
else:
@hugo-dc
hugo-dc / sshot.hs
Created February 18, 2015 19:04
Screenshot with Haskell
import Graphics.Win32.Window
import Graphics.Win32.GDI.Bitmap
import Graphics.Win32.GDI.HDC
import Graphics.Win32.GDI.Graphics2D
main = do desktop <- getDesktopWindow -- Grab the Hwnd of the desktop, GetDC 0, GetDC NULL etc all work too
hdc <- getWindowDC (Just desktop) -- Get the dc handle of the desktop
(x,y,r,b) <- getWindowRect desktop -- Find the size of the desktop so we can know which size the destination bitmap should be
-- (left, top, right, bottom)
newDC <- createCompatibleDC (Just hdc) -- Create a new DC to hold the copied image. It should be compatible with the source DC
@hugo-dc
hugo-dc / pil_raw_encoder.md
Created October 14, 2014 04:46
pil_raw_encoder.md

Raw Encoder

1 1-bit bilevel, stored with the leftmost pixel in the most significant bit. 0 means black, 1 means white.

1;I 1-bit bilevel, stored with the leftmost pixel in the most significant bit. 0 means white, 1 means black.

@hugo-dc
hugo-dc / call_browser.abap
Created April 11, 2014 18:16
Call Browser
REPORT ZBROWSER .
call method cl_gui_frontend_services=>execute
exporting
document = 'http://hugo-dc.com'
exceptions
others = 1.
git submodule add http://github.com/tpope/vim-fugitive.git bundle/fugitive
--------------------------------------------------------------------------
git submodule init
git submodule update
ls -la | awk ' {print $6,$7,$9; }' | sed "1,4d"
@hugo-dc
hugo-dc / mail.py
Created May 16, 2013 22:52
Send SMTP email
import smtplib
SERVER = 'server.com'
FROM = '[email protected]'
TO = ['test.server.com']
SUBJECT = 'New Subject'
TEXT = 'This is the text'