aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract_templates/partials
Commit message (Collapse)AuthorAgeFilesLines
* Fixed `callAsync` template. Previously did not append `callData`, so we ↵Greg Hysen2018-06-211-0/+1
| | | | couldn’t specify `from` address
* workaround for TypeScript trailing comma bugF. Eugene Aumson2018-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | before this change, TypeScript compilation of the generated contract wrapper was giving me the following errors: $ abi-gen --abis 'build/contracts/*.json' --out build/types --template contract_templates/contract.handlebars --partials 'contract_templates/partials/*.handlebars' Found 7 partial templates Found 1 ABI files Processing: Migrations... Created: build/types/migrations.ts $ tsc build/types/migrations.ts(81,23): error TS1013: A rest parameter or binding pattern may not have a trailing comma. build/types/migrations.ts(108,23): error TS1013: A rest parameter or binding pattern may not have a trailing comma. build/types/migrations.ts(130,23): error TS1013: A rest parameter or binding pattern may not have a trailing comma. build/types/migrations.ts(146,25): error TS1013: A rest parameter or binding pattern may not have a trailing comma. build/types/migrations.ts(173,25): error TS1013: A rest parameter or binding pattern may not have a trailing comma. build/types/migrations.ts(195,25): error TS1013: A rest parameter or binding pattern may not have a trailing comma. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Here is the generated code around the first error: 74: public setCompleted = { 75: async sendTransactionAsync( 76: completed: BigNumber, 77: txData: Partial<TxData> = {}, 78: ): Promise<string> { 79: const self = this as any as MigrationsContract; 80: const inputAbi = self._lookupAbi('setCompleted(uint256)').inputs; 81: [completed, 82: ] = BaseContract._formatABIDataItemList(inputAbi, [completed, 83: ], BaseContract._bigNumberToString.bind(self)); All of the other errors are the same, a destructuring assignment with a single element but with a trailing comma. This is legal JavaScript but it is not allowed by the TypeScript compiler, apparently per the bug described at https://github.com/Microsoft/TypeScript/issues/24628 . While awaiting the 3.0 version of TypeScript, it's a simple enough change to have the template not append a trailing comma.
* Fix linter issues in generated contract wrappersLeonid Logvinov2018-06-071-1/+1
|
* Introduce ethereum-types packageLeonid Logvinov2018-06-011-1/+1
|
* Fix ganache subprovider configLeonid Logvinov2018-05-112-0/+3
|
* Fix templatesLeonid Logvinov2018-05-102-3/+3
|
* Remove _applyDefaultsToDeployTxDataAsyncLeonid Logvinov2018-05-102-5/+8
|
* Remove deployer from metacoin and contract testsLeonid Logvinov2018-05-101-2/+2
|
* Fix getABIEncodedTransactionData in contract templatesAmir Bandeali2018-04-211-1/+1
|
* Update CHANGELOGsJacob Evans2018-04-191-6/+4
|
* Support Tuples from function returnsJacob Evans2018-04-192-9/+12
|
* Updated deployer to accept a list of contract directories as input. Contract ↵Greg Hysen2018-04-102-13/+13
| | | | directories are namespaced to a void clashes. Also in this commit is a fix for overloading contract functions.
* Add metacoin example projectLeonid Logvinov2018-04-022-9/+10
|
* Remove redundant castLeonid Logvinov2018-03-281-1/+1
|
* Move common types out of web3 typesLeonid Logvinov2018-03-272-26/+20
|
* Transform input data before encoding for callAsync and ↵Amir Bandeali2018-03-141-0/+4
| | | | getABIEncodedTransactionData
* Add txData to async callsLeonid Logvinov2018-02-281-1/+2
|
* Rewrite templates to decode call data on transactionsLeonid Logvinov2018-02-283-47/+31
|
* Use the same templates as 0x.jsLeonid Logvinov2018-02-286-0/+127