* Rename existing wrapper, to match contract name * base contract: make member var public * json_schemas.py: stop storing copies of schemas! * .gitignore generated erc20_token.py wrapper * json schemas: allow uppercase digits in address * existing exchange wrapper: re-order methods to match method order in Solidity contract, to reduce noise in upcoming diffs of newly generated code vs. old manually-written code. * existing exchange wrapper: rename method params To match contract method param names * existing exchange wrapper: remove redundant member * existing exchange wrapper: make signatures bytes Not strings. * abi-gen/test-cli: show context on diff failure * abi-gen-templates/Py: fix broken event interface Previous changes had removed the `token_address` parameter from all generated methods, but this instance was missed because there weren't tests/examples using events for the first contract for which wrappers were generated (ERC20Token). * abi-gen: remove unused method parameters * abi-gen: convert Py method params to snake case * abi-gen: rewrite Python tuple handling * python-generated-wrappers: include Exchange * abi-gen-templates/Py: easy linter fixes * abi-gen-templates/Py: satisfy docstring linters * abi-gen-templates/Py: normalize bytes before use * contract_wrappers.py: replace Exchange w/generated * contract_wrappers.py: rm manually written Exchange * contract_wrappers.py/doctest: rename variables * abi-gen: fix misspelling in docstring Co-Authored-By: Fabio B <me@fabioberger.com> * Py docs: error on warning, and test build in CI * abi-gen: doc Py bytes params as requiring UTF-8 * abi-gen: git mv diff.sh test-cli/ * abi-gen: put Py wrapper in module folder, not file This leaves space for user-defined additions to the same module, such as for custom types, as shown herein. * abi-gen: customizable param validation for Python * contract_wrappers.py: JSON schema Order validation * CircleCI Build Artifacts For abi-gen command-line test output, for generated Python contract wrappers as output by abi-gen, for generated Python contract wrappers as reformatted and included in the Python package area, and for the "build" output folder in each Python package, which includes the generated documentation. * CHANGELOG updates for all components * abi-gen: grammar in comments Co-Authored-By: Fabio B <me@fabioberger.com> * abi-gen: CHANGELOG spelling correction Co-Authored-By: Fabio B <me@fabioberger.com> * order_utils.py: reverse (chronological) CHANGELOG * abi-gen-templates: reset CHANGELOG patch version * CHANGELOGs: use multiple entries where appropriate * abi-gen: enable devdoc solc output in test-cli * abi-gen-templates/Py: consolidate return type * abi-gen/test-cli: non-pure fixture contract method Added a method to the "dummy" test fixture contract that isn't pure. All of the other prior method cases were pure. * abi-gen/Py: fix const methods missing return type * abi-gen/Py: fix wrong return types on some methods Specifically, wrapper methods wrapping contract methods that modify contract state and return no return value. There was no test case for this. Now there is. * contract_wrappers.py: rm generated code in `clean` * Parallelize Py monorepo scripts (test, lint, etc)
551 lines
12 KiB
JSON
551 lines
12 KiB
JSON
[
|
|
{
|
|
"version": "3.1.1",
|
|
"changes": [
|
|
{
|
|
"note": "Python method parameters are now in snake case",
|
|
"pr": 1919
|
|
},
|
|
{
|
|
"note": "Python wrappers now support tuples in method parameters",
|
|
"pr": 1919
|
|
},
|
|
{
|
|
"note": "document Python method's bytes params as requiring UTF-8",
|
|
"pr": 1919
|
|
},
|
|
{
|
|
"note": "generate Python output into a contract-named folder, not a file (eg exchange/__init__.py rather than exchange.py) leaving space for user-defined additions to the same module, such as for custom types, as used by the Exchange wrapper's manually-written type aliases in the contract_wrappers.exchange.types Python module",
|
|
"pr": 1919
|
|
},
|
|
{
|
|
"note": "support for customizable parameter validation for Python wrappers",
|
|
"pr": 1919
|
|
},
|
|
{
|
|
"note": "wrap Python docstrings better, for pydocstyle compliance",
|
|
"pr": 1919
|
|
},
|
|
{
|
|
"note": "lots of fixes to satisfy linters of generated Python code",
|
|
"pr": 1919
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1563047529,
|
|
"version": "2.1.1",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"version": "2.1.0",
|
|
"changes": [
|
|
{
|
|
"note": "Initial support for Python",
|
|
"pr": 1878
|
|
}
|
|
],
|
|
"timestamp": 1563006338
|
|
},
|
|
{
|
|
"version": "2.0.11",
|
|
"changes": [
|
|
{
|
|
"note": "Watch template files for changes",
|
|
"pr": 1875
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1557507213,
|
|
"version": "2.0.10",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"version": "2.0.9",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
],
|
|
"timestamp": 1554997931
|
|
},
|
|
{
|
|
"timestamp": 1553183790,
|
|
"version": "2.0.8",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1553091633,
|
|
"version": "2.0.7",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1551479279,
|
|
"version": "2.0.6",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1551220833,
|
|
"version": "2.0.5",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1551130135,
|
|
"version": "2.0.4",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1549733923,
|
|
"version": "2.0.3",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"version": "2.0.2",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
],
|
|
"timestamp": 1549547375
|
|
},
|
|
{
|
|
"timestamp": 1549452781,
|
|
"version": "2.0.1",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"version": "2.0.0",
|
|
"changes": [
|
|
{
|
|
"note": "Upgrade the bignumber.js to v8.0.2",
|
|
"pr": 1517
|
|
}
|
|
],
|
|
"timestamp": 1549373905
|
|
},
|
|
{
|
|
"timestamp": 1547561734,
|
|
"version": "1.0.22",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1547225310,
|
|
"version": "1.0.21",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1547040760,
|
|
"version": "1.0.20",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"version": "1.0.19",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
],
|
|
"timestamp": 1544739608
|
|
},
|
|
{
|
|
"version": "1.0.18",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
],
|
|
"timestamp": 1544570656
|
|
},
|
|
{
|
|
"timestamp": 1542821676,
|
|
"version": "1.0.17",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1542208198,
|
|
"version": "1.0.16",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"version": "1.0.15",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
],
|
|
"timestamp": 1541740904
|
|
},
|
|
{
|
|
"timestamp": 1539871071,
|
|
"version": "1.0.14",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"version": "1.0.13",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
],
|
|
"timestamp": 1538693146
|
|
},
|
|
{
|
|
"timestamp": 1538157789,
|
|
"version": "1.0.12",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1537907159,
|
|
"version": "1.0.11",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1537875740,
|
|
"version": "1.0.10",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1537541580,
|
|
"version": "1.0.9",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1536142250,
|
|
"version": "1.0.8",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1535377027,
|
|
"version": "1.0.7",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1535133899,
|
|
"version": "1.0.6",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1534210131,
|
|
"version": "1.0.5",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1532619515,
|
|
"version": "1.0.4",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1532614997,
|
|
"version": "1.0.3",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1532605697,
|
|
"version": "1.0.2",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"version": "1.0.1",
|
|
"changes": [
|
|
{
|
|
"note": "Fix the abi-gen entry point in package.json",
|
|
"pr": 901
|
|
}
|
|
],
|
|
"timestamp": 1532357734
|
|
},
|
|
{
|
|
"timestamp": 1532043000,
|
|
"version": "1.0.0",
|
|
"changes": [
|
|
{
|
|
"note": "Convert e_r_c to erc in generated file names",
|
|
"pr": 822
|
|
},
|
|
{
|
|
"note": "Remove the output directory before writing to it",
|
|
"pr": 822
|
|
},
|
|
{
|
|
"note": "skip generation of wrappers that are already up to date",
|
|
"pr": 788
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1531919263,
|
|
"version": "0.3.4",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1531149657,
|
|
"version": "0.3.3",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1529397769,
|
|
"version": "0.3.2",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"version": "0.3.1",
|
|
"changes": [
|
|
{
|
|
"note": "Incorrect publish that was unpublished"
|
|
}
|
|
],
|
|
"timestamp": 1527810075
|
|
},
|
|
{
|
|
"version": "0.3.0",
|
|
"changes": [
|
|
{
|
|
"note": "Properly export the executable binary",
|
|
"pr": 588
|
|
}
|
|
],
|
|
"timestamp": 1527008270
|
|
},
|
|
{
|
|
"timestamp": 1525477860,
|
|
"version": "0.2.13",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1525428773,
|
|
"version": "0.2.12",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1524044013,
|
|
"version": "0.2.11",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1523462196,
|
|
"version": "0.2.10",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1522673609,
|
|
"version": "0.2.9",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"timestamp": 1522658513,
|
|
"version": "0.2.8",
|
|
"changes": [
|
|
{
|
|
"note": "Dependencies updated"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"version": "0.2.5",
|
|
"changes": [
|
|
{
|
|
"note": "Consolidate all `console.log` calls into `logUtils` in the `@0xproject/utils` package",
|
|
"pr": 452
|
|
}
|
|
],
|
|
"timestamp": 1521298800
|
|
},
|
|
{
|
|
"version": "0.2.4",
|
|
"changes": [
|
|
{
|
|
"note": "Add a `backend` parameter that allows you to specify the Ethereum library you use in your templates (`web3` or `ethers`). Ethers auto-converts small ints to numbers whereas Web3 doesn't. Defaults to `web3`",
|
|
"pr": 413
|
|
},
|
|
{
|
|
"note": "Add support for [tuple types](https://solidity.readthedocs.io/en/develop/abi-spec.html#handling-tuple-types)",
|
|
"pr": 413
|
|
},
|
|
{
|
|
"note": "Add `hasReturnValue` to context data",
|
|
"pr": 413
|
|
}
|
|
],
|
|
"timestamp": 1520089200
|
|
},
|
|
{
|
|
"version": "0.2.1",
|
|
"changes": [
|
|
{
|
|
"note": "Fix publishing issue where .npmignore was not properly excluding undesired content",
|
|
"pr": 389
|
|
}
|
|
],
|
|
"timestamp": 1518102000
|
|
},
|
|
{
|
|
"version": "0.2.0",
|
|
"changes": [
|
|
{
|
|
"note": "Added CLI options for explicit specifying location of partials and main template",
|
|
"pr": 346
|
|
},
|
|
{
|
|
"note": "Added CLI option to specify networkId, adding support for the JSON artifact format found in @0xproject/contracts",
|
|
"pr": 388
|
|
}
|
|
],
|
|
"timestamp": 1517929200
|
|
},
|
|
{
|
|
"version": "0.1.0",
|
|
"changes": [
|
|
{
|
|
"note": "Fixed array typings with union types",
|
|
"pr": 295
|
|
},
|
|
{
|
|
"note": "Add event ABIs to context data passed to templates",
|
|
"pr": 302
|
|
},
|
|
{
|
|
"note": "Add constructor ABIs to context data passed to templates",
|
|
"pr": 304
|
|
}
|
|
],
|
|
"timestamp": 1515596400
|
|
}
|
|
]
|