aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract_templates
Commit message (Collapse)AuthorAgeFilesLines
* Issue #1025 BlockParam unrollJacob Evans2018-08-271-1/+1
| | | | BlockParam unrolls into number | BlockParamLiteral, though BlockParamLiteral does not get imported. This results in type build errors in downstream projects where tslint checks libs
* Fix many linter errors that showed up upon upgrading tsutilFabio Berger2018-08-231-3/+4
|
* Move types from sol-compiler to types so they can be used in other places ↵Fabio Berger2018-08-221-1/+1
| | | | without requiring sol-compiler as a dep
* Add strictArgumentEncodingCheck to BaseContract and use it in contract templatesAlex Browne2018-08-092-0/+2
|
* Ignore coverage of generated filesLeonid Logvinov2018-07-091-0/+1
|
* Render callAsync in templates even if it returns nothingLeonid Logvinov2018-07-091-2/+0
|
* Merge pull request #822 from 0xProject/v2-contract-wrappers-WIPLeonid Logvinov2018-07-062-4/+4
|\ | | | | V2 contract wrappers
| * Fix testsLeonid Logvinov2018-07-061-1/+1
| |
| * Rename {{*}}ContractEventArgs to {{*}}EventArgs and append {{contractName}} ↵Leonid Logvinov2018-06-292-3/+3
| | | | | | | | to each event name (ERC721TransferEventArgs instead of TransferContractEventArgs)
* | Forwarding contract (squashed commits)Jacob Evans2018-07-061-1/+1
|/
* Fixed `callAsync` template. Previously did not append `callData`, so we ↵Greg Hysen2018-06-211-0/+1
| | | | couldn’t specify `from` address
* Prettier fixFabio Berger2018-06-191-3/+5
|
* change @0xproject/types to ethereum-typesF. Eugene Aumson2018-06-151-1/+1
|
* remove mistaken commentF. Eugene Aumson2018-06-151-4/+0
| | | | | It must have been left over from when an abi-gen output was modified to be the source of this template.
* 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.
* Document contract_templatesF. Eugene Aumson2018-06-151-0/+15
|
* Get build and tests to passfragosti2018-06-071-3/+4
|
* Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into ↵fragosti2018-06-072-3/+3
|\ | | | | | | feature/improve-linting
| * Fix linter issues in generated contract wrappersLeonid Logvinov2018-06-072-3/+3
| |
* | Add missing importFabio Berger2018-06-061-1/+1
| |
* | Remove unused imports from contract handlebar templateFabio Berger2018-06-061-2/+2
|/
* Fix linter errorsLeonid Logvinov2018-06-011-1/+1
|
* Introduce ethereum-types packageLeonid Logvinov2018-06-012-2/+2
|
* Check transaction receipt status codes where applicableAlex Browne2018-05-241-1/+1
|
* Ignore classnames linter ruleRemco Bloemen2018-05-221-0/+1
|
* Fix ganache subprovider configLeonid Logvinov2018-05-112-0/+3
|
* Fix templatesLeonid Logvinov2018-05-102-3/+3
|
* Remove unused deployer docs configsLeonid Logvinov2018-05-101-7/+7
|
* Add a check for compiler outputLeonid Logvinov2018-05-101-0/+3
|
* Remove _applyDefaultsToDeployTxDataAsyncLeonid Logvinov2018-05-103-6/+9
|
* Fix linter issuesLeonid Logvinov2018-05-101-5/+5
|
* Rename deployer to sol-compilerLeonid Logvinov2018-05-101-1/+1
|
* Remove deployer from 0x.js and migrationsLeonid Logvinov2018-05-101-1/+4
|
* Remove deployer from metacoin and contract testsLeonid Logvinov2018-05-102-2/+38
|
* Fix getABIEncodedTransactionData in contract templatesAmir Bandeali2018-04-211-1/+1
|
* Remove ethers-contracts typesJacob Evans2018-04-201-1/+1
|
* Update CHANGELOGsJacob Evans2018-04-191-6/+4
|
* Support Tuples from function returnsJacob Evans2018-04-193-10/+13
|
* Updated deployer to accept a list of contract directories as input. Contract ↵Greg Hysen2018-04-103-14/+14
| | | | directories are namespaced to a void clashes. Also in this commit is a fix for overloading contract functions.
* Move our contract templates to accept Provider instead of Web3WrapperLeonid Logvinov2018-04-041-3/+3
|
* Add metacoin example projectLeonid Logvinov2018-04-023-10/+10
|
* Remove redundant castLeonid Logvinov2018-03-281-1/+1
|
* Move common types out of web3 typesLeonid Logvinov2018-03-273-28/+22
|
* Transform input data before encoding for callAsync and ↵Amir Bandeali2018-03-141-0/+4
| | | | getABIEncodedTransactionData
* Update all mentions of the repo name being `0x.js` to `0x-monorepo`Fabio Berger2018-03-041-1/+1
|
* Move BaseContract to its own packageLeonid Logvinov2018-02-281-1/+2
|
* Move BaseContract to web3WrapperLeonid Logvinov2018-02-281-3/+1
|
* Add txData to async callsLeonid Logvinov2018-02-281-1/+2
|
* Rewrite templates to decode call data on transactionsLeonid Logvinov2018-02-283-47/+31
|
* Update template linkLeonid Logvinov2018-02-281-1/+1
|
* Fix buildLeonid Logvinov2018-02-281-1/+1
|
* Use the same templates as 0x.jsLeonid Logvinov2018-02-287-0/+175