Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 21 2019 18:23

    njgheorghita on master

    Update twig dependencies Merge pull request #12 from njg… (compare)

  • Jan 21 2019 18:23
    njgheorghita closed #12
  • Jan 21 2019 12:46
    njgheorghita review_requested #12
  • Jan 21 2019 12:45
    njgheorghita synchronize #12
  • Jan 21 2019 12:42
    njgheorghita opened #12
  • Dec 17 2018 21:03

    njgheorghita on master

    Update compiler to include runt… Write Compiler.get_manifest met… Merge pull request #11 from njg… (compare)

  • Dec 17 2018 21:03
    njgheorghita closed #11
  • Dec 14 2018 11:52
    njgheorghita commented #11
  • Dec 13 2018 11:29
    njgheorghita commented #11
  • Dec 13 2018 11:24
    njgheorghita synchronize #11
  • Dec 12 2018 20:01
    njgheorghita synchronize #11
  • Dec 12 2018 13:04
    njgheorghita commented #11
  • Dec 12 2018 13:04
    njgheorghita edited #11
  • Dec 12 2018 13:03
    njgheorghita edited #11
  • Dec 12 2018 12:55
    njgheorghita synchronize #11
  • Dec 12 2018 12:53
    njgheorghita synchronize #11
Nick Gheorghita
@njgheorghita
Jacques
@jacqueswww
:leaves:
Matthias Nadler
@matnad
Nice! :)
El De-dog-lo
@fubuloubu
🌿
So, what's up next for ole' twiggy?
El De-dog-lo
@fubuloubu
@njgheorghita can eth-tester api in pytest-ethereum support mining, or some variant that allows me to artificially increase the timestamp and/or num of blocks on the chain for testing purposes?
while contract.functions.last_block().call() + MIN_BLOCKS > w3.eth.blockNumber:
    tester.mine(0)  # Mine a block
p.s. I'm just going to use this chat for pytest-ethereum as well lol
El De-dog-lo
@fubuloubu
I think both APIs would be useful, one that lets you mine X blocks, and another that lets you "time travel": https://github.com/ethereum/eth-tester/blob/master/eth_tester/main.py#L157
(change timestamp vs. change blocknumber)
Nick Gheorghita
@njgheorghita

So, what's up next for ole' twiggy?

Still have a fairly long list of small features here and there to implement, before moving on to build out features that’ll be aimed more towards the lifetime management of a smart contract than initial dev

re. your suggestion - I need to look a little more in-depth into the eth-tester api, but great idea and have added it to my list

p.s. I'm just going to use this chat for pytest-ethereum as well lol

Yup! Plz do - and you/anybody feel free to drop suggestions for features you’d like to see in twig/pytest-ethereum here whenever!

Nick Gheorghita
@njgheorghita
oh - and vyper debug & twig integration eventually
El De-dog-lo
@fubuloubu

oh - and vyper debug & twig integration eventually

woot!

actually running into a need for that myself right now lol
a great short term thing is that vyper debug needs the latest versions of web3/py-evm/eth-tester
but pytest-ethereum is still on the older versions
@njgheorghita ^
pytest-ethereum 0.1.2 has requirement web3[tester]==4.4.1, but you'll have web3 4.8.1 which is incompatible.
ethpm 0.1.3a6 has requirement web3[tester]==4.4.1, but you'll have web3 4.8.1 which is incompatible.
Nick Gheorghita
@njgheorghita
from what i understand alpha version of web3 v5 (with web3.pm) is coming out within a day or two, and once that happens, i’m going to update twig pte py-ethpm to all be web3>=5
re: old pytest - try pytest-ethereum>=0.1.3a1 (or a2 or a3). I’m pretty sure the bump from 0.1.2 to 0.1.3a… is where i got rid of the strict pinned dependency on web3
El De-dog-lo
@fubuloubu
okay, nice will do
El De-dog-lo
@fubuloubu
@jacqueswww version pinning issues too:
vyper-debug 0.1.2b4 has requirement vyper==0.1.0b4, but you'll have vyper 0.1.0b5 which is incompatible.
El De-dog-lo
@fubuloubu
p.s. started working on some hypothesis integration stuff: https://github.com/fubuloubu/hypothesis-ethereum
plan is to make strategies for all basic ABI types, and allow people to define external invariants into test cases
ultimately need to find some way to hook into invariants inside of the source program, whether that's through invalid opcodes or source syntax is up in the air