Skip to content

Commit

Permalink
Merge pull request #12 from sarvesh-ost/interacts_with_type_chain
Browse files Browse the repository at this point in the history
Interacts using typechain
  • Loading branch information
schemar authored May 13, 2019
2 parents 613d76b + 8531976 commit 8a2b98f
Show file tree
Hide file tree
Showing 4 changed files with 186 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ build/

# NPM package generated files:
dist/contracts.json

# Do not track generated wrapper, it should be part of build script
interacts/*
170 changes: 170 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"ganache": "sh tools/runGanacheCli.sh",
"build-package": "node tools/build_package.js",
"prepack": "npm run compile-all && npm run build-package",
"lint": "eslint test tools -c .eslintrc.json --ext js"
"lint": "eslint test tools -c .eslintrc.json --ext js",
"generate": "ts-generator ts-generator.json",
"postinstall": "npm run compile-all && npm run generate"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -48,6 +50,8 @@
"mocha": "5.2.0",
"openzeppelin-solidity": "2.1.1",
"truffle": "5.0.6",
"ts-generator": "0.0.8",
"typechain": "0.3.14",
"web3": "1.0.0-beta.36"
}
}
8 changes: 8 additions & 0 deletions ts-generator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"generator": "typechain",
"files": "./build/**/*/!(Migrations.json)",
"target": "web3-1.0.0",
"outDir" : "interacts"
}
]

0 comments on commit 8a2b98f

Please sign in to comment.