Skip to content

Instantly share code, notes, and snippets.

View feuGeneA's full-sized avatar

F. Eugene Aumson feuGeneA

View GitHub Profile
______________________________________________ test_is_valid_signature__oddball_provider ______________________________________________
def test_is_valid_signature__oddball_provider():
"""Test that passing in a weird provider still works."""
class MyProvider:
def make_request(self, method, params):
provider = Web3.HTTPProvider("http://127.0.0.1:8545")
return provider.make_request(method, params)
(is_valid, reason) = is_valid_signature(
gene@precision5510:~/tmp/0x-launch-kit$ yarn install
yarn install v1.12.3
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[6/10] ⠁ websocket
[2/10] ⠁ secp256k1
gene@precision5510:~/0x-monorepo-upstream/python-packages/order_utils$ pytest test/test_get_order_info.py
============================= test session starts ==============================
platform linux -- Python 3.7.0, pytest-3.3.2, py-1.6.0, pluggy-0.6.0
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/gene/0x-monorepo-upstream/python-packages/order_utils/.hypothesis/examples')
rootdir: /home/gene/0x-monorepo-upstream/python-packages/order_utils, inifile:
plugins: xdist-1.22.3, pythonpath-0.7.3, forked-0.2, hypothesis-3.82.1
collected 1 item
test/test_get_order_info.py F [100%]
gene@precision5510:~/web3.py$ tox -epy36-core tests/core/contracts/test_contract_call_interface.py -- -k test_call_with_no_arguments
py36-core create: /home/gene/web3.py/.tox/py36-core
py36-core installdeps: .[dev]
py36-core develop-inst: /home/gene/web3.py
py36-core installed: alabaster==0.7.12,apipkg==1.5,argh==0.26.2,asn1crypto==0.24.0,atomicwrites==1.2.1,attrdict==2.0.0,attrs==18.2.0,Babel==2.6.0,bumpversion==0.5.3,certifi==2018.10.15,cffi==1.11.5,chardet==3.0.4,Click==7.0,colorama==0.4.1,configparser==3.5.0,contextlib2==0.5.5,cryptography==2.4.2,cytoolz==0.9.0.1,docopt==0.6.2,docutils==0.14,eth-abi==1.2.2,eth-account==0.3.0,eth-bloom==1.0.1,eth-hash==0.2.0,eth-keyfile==0.5.1,eth-keys==0.2.0b3,eth-rlp==0.1.2,eth-tester==0.1.0b32,eth-typing==1.3.0,eth-utils==1.3.0,ethtoken==0.0.1a4,execnet==1.5.0,filelock==3.0.10,flake8==3.4.1,flaky==3.4.0,hexbytes==0.1.0,hypothesis==3.82.1,idna==2.7,imagesize==1.1.0,isort==4.3.4,Jinja2==2.10,lru-dict==1.1.6,MarkupSafe==1.1.0,mccabe==0.6.1,mock==2.0.0,more-itertools==4.3.0
The system is: Linux - 4.9.0-8-amd64 - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc
Build flags:
Id flags:
The output was:
0
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_74225/fast"
/usr/bin/make -f CMakeFiles/cmTC_74225.dir/build.make CMakeFiles/cmTC_74225.dir/build
make[1]: Entering directory '/home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_74225.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_74225.dir/CheckSymbolExists.c.o -c /home/gene/Downloads/conky-1.11.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_74225
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_74225.dir/link.txt --verbose=1
diff --git a/setup.py b/setup.py
index fa28a32..7d756dc 100644
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,7 @@ extras_require['dev'] = (
)
setup(
- name='web3',
+ name='0x-web3',
diff --git a/packages/pipeline/src/scripts/pull_exchange_events.ts b/packages/pipeline/src/scripts/pull_exchange_events.ts
index 92c08267f..9b03cac53 100644
--- a/packages/pipeline/src/scripts/pull_exchange_events.ts
+++ b/packages/pipeline/src/scripts/pull_exchange_events.ts
@@ -39,6 +39,7 @@ async function getFillEventsAsync(eventsSource: ExchangeEventsSource, endBlock:
const eventLogs = await eventsSource.getFillEventsAsync(startBlock, endBlock);
logUtils.log('Parsing fill events...');
const events = parseExchangeFillEvents(eventLogs);
+ events.push(events[0]);
logUtils.log(`Retrieved and parsed ${events.length} total fill events.`);
×
ModuleNotFoundError
Could not find module in path: 'regenerator-runtime/0.12.1' relative to '/node_modules/@babel/runtime/regenerator/index.js'
▼ 21 stack frames were expanded.
n
https://codesandbox.io/static/js/sandbox.a4ae5fac.js:1:38462
new n
https://codesandbox.io/static/js/sandbox.a4ae5fac.js:1:37089
e.value
https://codesandbox.io/static/js/sandbox.a4ae5fac.js:1:206185
============================================================================================= FAILURES ==============================================================================================
_______________________________________________________________________________________ [doctest] sra_client ________________________________________________________________________________________
064 **Get Order**
065
066 Get an order by hash from a SRA compliant 0x-relayer.
067
068 >>> import sra_client
069 >>> example_order_hash = (
070 ... "0xc1c4e9a983755b4a2ff048b0c591a27"
071 ... "0f437972e1ec440986770ac943a577404")