Skip to content

Instantly share code, notes, and snippets.

F. Eugene Aumson feuGeneA

Block or report user

Report or block feuGeneA

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@feuGeneA
feuGeneA / exchange.py
Last active Jul 12, 2019
Generated Python wrapper for the Exchange contract
View exchange.py
"""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 / .bash
Last active Jul 2, 2019
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?
View .bash
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
View gist:4538f3ee13c48084166134d6b81009c1
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:
{
View .diff
*** 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,
View gist:ddeb93e5ab5c06c258e4ee62c4bc1456
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,
View .patch
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
View gist:c9439e6e3ce18cdbf55995068fcafc79
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
View gist:e0ff32549c2b60f0494195653a23977f
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
View gist:ffd04845add745d33cc9d339bd69b7d2
============================================================================================= 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")
View gist:b8fa94d2630addffd4e80cce1d11096a
×
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
You can’t perform that action at this time.