Instantly share code, notes, and snippets.

Jacques Wagener jacqueswww

View GitHub Profile
View deposit.bytecode
0x600035601c52740100000000000000000000000000000000000000006020526f7fffffffffffffffffffffffffffffff6040527fffffffffffffffffffffffffffffffff8000000000000000000000000000000060605274012a05f1fffffffffffffffffffffffffdabf41c006080527ffffffffffffffffffffffffed5fa0e000000000000000000000000000000000060a05260606123826101403934156100a757600080fd5b61014051600255610160516000556101805160015561236a56600035601c52740100000000000000000000000000000000000000006020526f7fffffffffffffffffffffffffffffff6040527fffffffffffffffffffffffffffffffff8000000000000000000000000000000060605274012a05f1fffffffffffffffffffffffffdabf41c006080527ffffffffffffffffffffffffed5fa0e000000000000000000000000000000000060a0526000156101d5575b61016052610140526018600860208206610220016000610140516020826101c0010152602081019050806101c0526101c090505182840111156100dd57600080fd5b602080610240826020602088068803016000610140516020826101c0010152602081019050806101c0526101c0905001600060046015f15050818152809050905090508051602001806102e0828460006004600a8704601201f1610140576000
View crowdfund.v.py
# Setup private variables (only callable from within the contract)
struct Funder :
sender: address
value: wei_value
funders: map(int128, Funder)
nextFunderIndex: int128
beneficiary: address
View vyper.py
import pprint
import os
from collections import OrderedDict
from populus.compilation.backends.base import BaseCompilerBackend
class VyperBackend(BaseCompilerBackend):
project_source_glob = ('*.v.py', '*.vy')
test_source_glob = ('test_*.v.py', 'test_*.vy')
View eth_abi_parsing_exception.py
_______________________________________________________________ test_struct_return_abi ________________________________________________________________
data_type = '(int128,bool)', data_value = (1, True)
def abi_sub_tree(data_type, data_value):
if data_type is None:
return ABITypedData([None, data_value])
try:
> base, sub, arrlist = data_type
View returner.lll.py
[seq,
[return,
0,
[lll,
[seq,
[mstore, 28, [calldataload, 0]],
[mstore, 32, 1461501637330902918203684832716283019655932542976],
[mstore, 64, 170141183460469231731687303715884105727],
[mstore, 96, -170141183460469231731687303715884105728],
[mstore, 128, 1701411834604692317316873037158841057270000000000],
View generate_return.py
# Module for codegen. Currently most codegen lives in
# parser/parser_utils.py and can slowly be migrated here as
# type-checking code gets factored out.
from vyper.exceptions import (
InvalidLiteralException,
TypeMismatchException,
StructureException
)
from vyper.types import (
View pre_vdb_ipdb.py
def debug_opcode(computation):
print('YOUR ARE HERE!')
import ipdb; ipdb.set_trace()
import evm
from evm.vm.opcode import as_opcode
from vyper.opcodes import opcodes as vyper_opcodes
from evm.vm.forks.byzantium.computation import ByzantiumComputation
opcodes = ByzantiumComputation.opcodes.copy()
View test_contract_pyethereum.py
from ethereum.tools import tester
from vyper import compiler
def test_merkle_proof_contract():
tester.languages['vyper'] = compiler.Compiler()
s = tester.Chain() # initialize test chain
contract_code = open('merkleproof.v.py').read() # get source code
contract = s.contract(contract_code, language='vyper') # compile code
View spotify_keybindings
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" XF86AudioPlay
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" XF86AudioStop
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" XF86AudioNext
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" XF86AudioPrevious
View pyethereum_set_trace_logging.py
from ethereum.slogging import configure_logging
configure_logging(':trace')