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
View gist:1ccba17072a5318398598ee1876d9f1f
25Sep12:54:35 [1 job] ~/dev/0x-monorepo-v3/packages/migrations[feat/3.0/devUtilsTweakFillableTakerAssetAmounts *$%]$ docker run -it --rm -p 8545:8545 -e SNAPSHOT_NAME=0x_ganache_snapshot-v3-beta -e VERSION=4.3.2 0xorg/ganache-cli:latest
Ganache CLI v6.2.5 (ganache-core: 2.3.3)
(node:1) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Available Accounts
==================
(0) 0xafe4a11d6e315f4f7879505343bc411bc686c37d (~100 ETH)
(1) 0xe1b50b02d4ce53ffbebb6f4ab917e019a08d623c (~100 ETH)
(2) 0x176f112fb5b436738cc6b86899663ecc96310087 (~100 ETH)
(3) 0x06c9ad2874d9da4ad3d28788515fdaa562d2dce9 (~100 ETH)
@feuGeneA
feuGeneA / gist:f6601851e944b539340058d48e519072
Created Sep 25, 2019
0x-mesh V3 test results, with Ganache using the proper mnemonic
View gist:f6601851e944b539340058d48e519072
25Sep09:44:24 rc=2 ~/go/src/github.com/0x-mesh[0xV3 *=]$ make test-all
go test ./... -race -timeout 30s
? github.com/0x-mesh/browser/scripts [no test files]
? github.com/0x-mesh/cmd/add_peer [no test files]
? github.com/0x-mesh/cmd/cut-release [no test files]
? github.com/0x-mesh/cmd/db-integrity-check [no test files]
? github.com/0x-mesh/cmd/demo/add_order [no test files]
? github.com/0x-mesh/cmd/demo/subscribe_to_orders [no test files]
? github.com/0x-mesh/cmd/mesh [no test files]
? github.com/0x-mesh/cmd/mesh-bootstrap [no test files]
View gist:f99579f7d2382aec0ff5b22819c0cabc
25Sep09:43:38 ~/go/src/github.com/0x-mesh[0xV3 *=]$ make test-all
go test ./... -race -timeout 30s
? github.com/0x-mesh/browser/scripts [no test files]
? github.com/0x-mesh/cmd/add_peer [no test files]
? github.com/0x-mesh/cmd/cut-release [no test files]
? github.com/0x-mesh/cmd/db-integrity-check [no test files]
? github.com/0x-mesh/cmd/demo/add_order [no test files]
? github.com/0x-mesh/cmd/demo/subscribe_to_orders [no test files]
? github.com/0x-mesh/cmd/mesh [no test files]
? github.com/0x-mesh/cmd/mesh-bootstrap [no test files]
View gist:96f25376444ddcdd9bf412abc75d76dd
#!/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 = [
@feuGeneA
feuGeneA / options_brainstorm.py
Last active Jul 25, 2019
More brainstorming on types for mesh simulation engine options
View options_brainstorm.py
"""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:
@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,
You can’t perform that action at this time.