Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Initial Template #450

Merged
merged 17 commits into from
Sep 25, 2018
Merged

Initial Template #450

merged 17 commits into from
Sep 25, 2018

Conversation

slyfox42
Copy link
Contributor

@slyfox42 slyfox42 commented Sep 25, 2018

refs #442

πŸ““ Overview

β€’ Added initial handlebars template to generate contract wrappers:

  • adds createAndValidate method to each contract, like we had previously thanks to TypeChain
  • maps over each contract method; if it is a constant method, it will call the method and return directly the result. If it's a non constant method, it will return the Web3 transaction object, with its properties send, call, estimateGas and encodeAbi.

β€’ Added unit tests for each type of contract method: constant, non constant, payable.
β€’ (minor) removed verbose: true from exchange connector tests to avoid the huge output during precommit

@slyfox42 slyfox42 requested a review from vshjxyz September 25, 2018 13:58
@slyfox42 slyfox42 changed the title Basic abi-gen template Initial Template Sep 25, 2018
@slyfox42 slyfox42 merged commit ebb38d4 into feature/abi-gen Sep 25, 2018
@slyfox42 slyfox42 deleted the feature/basic-abi-gen-template branch September 25, 2018 14:15
slyfox42 added a commit that referenced this pull request Oct 5, 2018
* initial commit πŸŒ…

* Initial Template (#450)

* initial commit

* added abi-gen script

* wip

* first tests

* working constant methods

* first contract tests

* template cleanup

* minor fix to tests

* removed abis folder

* removed typechain contracts

* commented non working circleci steps

* removed useless files

* rollback RigoToken test

* eslint ignoring generated files

* minor rollback

* fixes to package.json

* Events Support (#451)

* added getPastEvents method

* added allEvents function

* added once, missing test

* modified event partial

* fixed event partial

* now only contracts with events extend the baseContract

* fixed unit tests

* fixed return types of txFunctions

* removed test file, minor refactor

* Fix API build process (#453)

* initial commit πŸŒ…

* minor fixes

* removed unused dependencies

* restored build-api circleci step

* fix to package.json

* minor fixes

* removed extra web3 instance

* fixed build script

* Update DApp with new API (#454)

* initial commit πŸŒ…

* wip

* wip

* seems to be working

* removed ganache-cli dependency from api

* added contractFactory function

* refactoring and fixed errors

* restored build-dapp step in circleci config

* fixed stuck getId on API file

* refactor

* Fixed DApp unit tests (#462)

* updated babel and dependencies

* fixed blockchainservice tests

* fixed getVaultFees and getVaultSupply

* fixed getVaultTransactions

* fixed selectFirstVault and createVault epic

* updated snapshots temporarily

* fixed remaining unit tests

* removed babel-preset-react-app

* removed unused dependency. fixed babel dependency versions to avoid issues in the future

* fixed circleCI steps

* fix to babel-core version

* refactored code to avoid bugs

* fixed unit and feature tests

* using rawgit url with cdn

* fix to vaults feature test

* code refactor (#466)
slyfox42 added a commit that referenced this pull request Oct 5, 2018
* initial commit πŸŒ…

* Initial Template (#450)

* initial commit

* added abi-gen script

* wip

* first tests

* working constant methods

* first contract tests

* template cleanup

* minor fix to tests

* removed abis folder

* removed typechain contracts

* commented non working circleci steps

* removed useless files

* rollback RigoToken test

* eslint ignoring generated files

* minor rollback

* fixes to package.json

* Events Support (#451)

* added getPastEvents method

* added allEvents function

* added once, missing test

* modified event partial

* fixed event partial

* now only contracts with events extend the baseContract

* fixed unit tests

* fixed return types of txFunctions

* removed test file, minor refactor

* Fix API build process (#453)

* initial commit πŸŒ…

* minor fixes

* removed unused dependencies

* restored build-api circleci step

* fix to package.json

* minor fixes

* removed extra web3 instance

* fixed build script

* Update DApp with new API (#454)

* initial commit πŸŒ…

* wip

* wip

* seems to be working

* removed ganache-cli dependency from api

* added contractFactory function

* refactoring and fixed errors

* restored build-dapp step in circleci config

* fixed stuck getId on API file

* refactor

* Fixed DApp unit tests (#462)

* updated babel and dependencies

* fixed blockchainservice tests

* fixed getVaultFees and getVaultSupply

* fixed getVaultTransactions

* fixed selectFirstVault and createVault epic

* updated snapshots temporarily

* fixed remaining unit tests

* removed babel-preset-react-app

* removed unused dependency. fixed babel dependency versions to avoid issues in the future

* fixed circleCI steps

* fix to babel-core version

* refactored code to avoid bugs

* fixed unit and feature tests

* using rawgit url with cdn

* fix to vaults feature test

* code refactor (#466)

* updated API readme
slyfox42 added a commit that referenced this pull request Oct 5, 2018
* initial commit πŸŒ…

* Initial Template (#450)

* initial commit

* added abi-gen script

* wip

* first tests

* working constant methods

* first contract tests

* template cleanup

* minor fix to tests

* removed abis folder

* removed typechain contracts

* commented non working circleci steps

* removed useless files

* rollback RigoToken test

* eslint ignoring generated files

* minor rollback

* fixes to package.json

* Events Support (#451)

* added getPastEvents method

* added allEvents function

* added once, missing test

* modified event partial

* fixed event partial

* now only contracts with events extend the baseContract

* fixed unit tests

* fixed return types of txFunctions

* removed test file, minor refactor

* Fix API build process (#453)

* initial commit πŸŒ…

* minor fixes

* removed unused dependencies

* restored build-api circleci step

* fix to package.json

* minor fixes

* removed extra web3 instance

* fixed build script

* Update DApp with new API (#454)

* initial commit πŸŒ…

* wip

* wip

* seems to be working

* removed ganache-cli dependency from api

* added contractFactory function

* refactoring and fixed errors

* restored build-dapp step in circleci config

* fixed stuck getId on API file

* refactor

* Fixed DApp unit tests (#462)

* updated babel and dependencies

* fixed blockchainservice tests

* fixed getVaultFees and getVaultSupply

* fixed getVaultTransactions

* fixed selectFirstVault and createVault epic

* updated snapshots temporarily

* fixed remaining unit tests

* removed babel-preset-react-app

* removed unused dependency. fixed babel dependency versions to avoid issues in the future

* fixed circleCI steps

* fix to babel-core version

* refactored code to avoid bugs

* fixed unit and feature tests

* using rawgit url with cdn

* fix to vaults feature test

* code refactor (#466)

* updated createVault to estimate the gas amount rather than using hardcoded one
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant