Skip to content

Instantly share code, notes, and snippets.

View feuGeneA's full-sized avatar

F. Eugene Aumson feuGeneA

View GitHub Profile
26Mar18:51:52 rc=1 [2 jobs] ~/dev/0x-monorepo-michaelhly/python-packages/sra_client[feature/python/new-python-demos $%=]$ ./setup.py test
running test
running egg_info
writing 0x_sra_client.egg-info/PKG-INFO
writing dependency_links to 0x_sra_client.egg-info/dependency_links.txt
writing requirements to 0x_sra_client.egg-info/requires.txt
writing top-level names to 0x_sra_client.egg-info/top_level.txt
reading manifest file '0x_sra_client.egg-info/SOURCES.txt'
writing manifest file '0x_sra_client.egg-info/SOURCES.txt'
running build_ext
Current Filetype: solidity
Available Linters: ['solhint', 'solium']
Enabled Linters: ['solhint']
Suggested Fixers:
'remove_trailing_lines' - Remove all blank lines at the end of a file.
'trim_whitespace' - Remove all trailing whitespace characters at the end of every line.
Linter Variables:
let g:ale_solidity_solhint_options = '--config ../.solhint.json'
Global Variables:
let g:ale_cache_executable_check_failures = v:null
diff --git a/packages/sol-doc/package.json b/packages/sol-doc/package.json
index 355ad9a4a..779191dff 100644
--- a/packages/sol-doc/package.json
+++ b/packages/sol-doc/package.json
@@ -15,7 +15,7 @@
"fix": "tslint --fix --format stylish --project .",
"clean": "shx rm -rf lib",
"generate-v1-protocol-docs": "(cd ../contracts/src/1.0.0; node ../../../../node_modules/.bin/sol-doc --contracts-dir . --contracts Exchange/Exchange_v1.sol TokenRegistry/TokenRegistry.sol TokenTransferProxy/TokenTransferProxy_v1.sol) > v1.0.0.json",
- "generate-v2-protocol-docs": "(cd ../contracts/src/2.0.0; node ../../../../node_modules/.bin/sol-doc --contracts-dir . --contracts Exchange/Exchange.sol AssetProxy/ERC20Proxy.sol AssetProxy/ERC721Proxy.sol OrderValidator/OrderValidator.sol Forwarder/Forwarder.sol AssetProxyOwner/AssetProxyOwner.sol) > v2.0.0.json",
+ "generate-v2-protocol-docs": "(cd ../../contracts; sol-doc --contracts-dir . --contracts exchange/contracts/src/Exchange.sol asset-pr
17Apr19:06:30 rc=1 [1 job] ~/dev/0x-monorepo/packages/sol-doc[feature/contracts/lib-asset-data *$%=]$ yarn build && yarn generate-v2-protocol-docs
yarn run v1.13.0
$ tsc
Done in 3.33s.
yarn run v1.13.0
$ (cd ../../contracts; sol-doc --contracts-dir . --contracts exchange/contracts/src/Exchange.sol asset-proxy/contracts/src/*Proxy.sol asset-proxy/contracts/src/libs/LibAssetData.sol extensions/contracts/src/OrderValidator/OrderValidator.sol exchange-forwarder/contracts/src/Forwarder.sol multisig/contracts/src/AssetProxyOwner.sol) > v2.0.0.json
Compiling 7 contracts (exchange/contracts/src/Exchange.sol,asset-proxy/contracts/src/ERC1155Proxy.sol,asset-proxy/contracts/src/ERC20Proxy.sol,asset-proxy/contracts/src/ERC721Proxy.sol,asset-proxy/contracts/src/MultiAssetProxy.sol,asset-proxy/contracts/src/libs/LibAssetData.sol,extensions/contracts/src/OrderValidator/OrderValidator.sol) with Solidity v0.5.7, with compiler settings {
"optimizer": {
"enabled": true,
"runs": 1000000,
@feuGeneA
feuGeneA / .diff
Last active April 17, 2019 23:30
*** exchange_forwarder_compiler_settings.txt 2019-04-17 19:28:36.613540707 -0400
--- sol-doc_compiler_settings.txt 2019-04-17 19:28:49.653825108 -0400
***************
*** 1,26 ****
! 0x-monorepo/contracts/exchange-forwarder$ yarn build
...
! Compiling 1 contracts (src/Forwarder.sol) with Solidity v0.4.24, with compiler settings {
"optimizer": {
"enabled": true,
"runs": 1000000,
yarn run v1.13.0
$ yarn run_mocha
$ mocha --require source-map-support/register --require make-promises-safe 'lib/test/lib_zero_ex_transaction_parser.js' --timeout 100000 --bail --exit
LibZeroExTransactionParser
transactionHash: 0x0344829a2e3d1bcda7efb0edb79130eb272d0252b6b664ff1f8268cd632a6a2c
LibZeroExTransactionParser successfully deployed at 0x1dc4c1cefef38a777b15aa20260a54e584b16c48
known-good order:
{
@feuGeneA
feuGeneA / .bash
Last active July 2, 2019 16:37
abi-gen diff test failing on my local development. was prettier manually applied to checked-in copies? freshly generated copies seem unprettified. why doesn't CI experience this? wtf could be wrong?
2Jul12:24:16 [1 job] ~/dev/0x-monorepo/packages[development $%=]$ git checkout development
Already on 'development'
Your branch is up-to-date with 'origin/development'.
2Jul12:24:18 [1 job] ~/dev/0x-monorepo/packages/abi-gen[development $%=]$ git diff
2Jul12:24:21 [1 job] ~/dev/0x-monorepo/packages[development $%=]$ PKG=@0x/abi-gen yarn build
yarn run v1.13.0
$ lerna link && wsrun build $PKG --fast-exit -r --stages --exclude @0x/pipeline --exclude-missing
lerna notice cli v3.4.3
lerna info versioning independent
lerna info Symlinking packages and binaries
@feuGeneA
feuGeneA / exchange.py
Last active July 12, 2019 01:30
Generated Python wrapper for the Exchange contract
"""Generated wrapper for Exchange Solidity contract."""
# pylint: disable=too-many-arguments
import json
from typing import ( # pylint: disable=unused-import
List,
Optional,
Tuple,
Union,
@feuGeneA
feuGeneA / options_brainstorm.py
Last active July 25, 2019 16:35
More brainstorming on types for mesh simulation engine options
"""More brainstorming on types for mesh simulation engine options."""
# the following comment was taken from p2p_incentives/example.py:
# Any option choice is a dictionary. It must contain a key "method," to
# specify which implementation function to call. The rest entries, if any,
# are the parameters specific to this implementation that will be passed to
# the function.
# This comment could be formally specified in code as:
#!/usr/bin/env python
"""A command-line utility called `parallel`."""
from concurrent.futures import ProcessPoolExecutor, wait
from os import chdir
from subprocess import check_call
from sys import argv
PACKAGES = [