Skip to content

Commit

Permalink
Merge pull request #244 from ethereum-ts/kk/examples-truffle-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
krzkaczor authored May 29, 2020
2 parents 849a90f + 3ed9f45 commit 1f32ec6
Show file tree
Hide file tree
Showing 11 changed files with 2,419 additions and 35 deletions.
8 changes: 6 additions & 2 deletions examples/truffle-v4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
"scripts": {
"generate-types": "typechain --target=truffle-v4 'build/contracts/*.json'",
"postinstall": "truffle compile && yarn generate-types",
"migrate": "tsc -p . --outDir ./migrations && truffle migrate",
"migrate": "tsc -p ./tsconfig.migrate.json --outDir ./migrations && truffle migrate",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@typechain/truffle-v4": "^2.0.0",
"@typechain/truffle-v4": "2.0.3",
"@types/bignumber.js": "^5.0.0",
"@types/chai": "^4.2.11",
"@types/mocha": "^7.0.2",
"truffle": "4.1.17",
"ts-node": "^8.10.2",
"typechain": "2.0.0",
"typescript": "^3.8.3"
}
Expand Down
4 changes: 0 additions & 4 deletions examples/truffle-v4/tsconfig,migrations.json

This file was deleted.

4 changes: 4 additions & 0 deletions examples/truffle-v4/tsconfig.migrate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["./migrations-ts/*.ts", "./types/**/*.ts"]
}
79 changes: 75 additions & 4 deletions examples/truffle-v4/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@
# yarn lockfile v1


"@typechain/truffle-v4@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@typechain/truffle-v4/-/truffle-v4-2.0.0.tgz#0ca849fc83ca0a421206dc5e9d58442a82501f67"
integrity sha512-i1kLw2tNqSs2JsX60Jhh9z03UBJXv1aVR4cTNMxcoDJvviBjGnxKVdCVic/3EUDWU8b4zwoRdTKXP/8HxzadsQ==
"@typechain/truffle-v4@2.0.3":
version "2.0.3"
resolved "https://registry.yarnpkg.com/@typechain/truffle-v4/-/truffle-v4-2.0.3.tgz#095da3bc5cf1c3bf2f50bc0a6a52fcdab3cfaefd"
integrity sha512-MzIWXdsK8AoW18LGLYGut6RqZ2k658yYEnztjTSXwuN90TgXzYoRK37IbmSmq9AQplMvZf2IJD/lRUspET6Z8A==

"@types/bignumber.js@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@types/bignumber.js/-/bignumber.js-5.0.0.tgz#d9f1a378509f3010a3255e9cc822ad0eeb4ab969"
integrity sha512-0DH7aPGCClywOFaxxjE6UwpN2kQYe9LwuDQMv+zYA97j5GkOMo8e66LYT+a8JYU7jfmUFRZLa9KycxHDsKXJCA==
dependencies:
bignumber.js "*"

"@types/chai@^4.2.11":
version "4.2.11"
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.2.11.tgz#d3614d6c5f500142358e6ed24e1bf16657536c50"
integrity sha512-t7uW6eFafjO+qJ3BIV2gGUyZs27egcNRkUdalkud+Qa3+kg//f129iuOFivHDXQ+vnU3fDXuwgv0cqMCbcE8sw==

"@types/mkdirp@^0.5.2":
version "0.5.2"
Expand All @@ -14,6 +26,11 @@
dependencies:
"@types/node" "*"

"@types/mocha@^7.0.2":
version "7.0.2"
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-7.0.2.tgz#b17f16cf933597e10d6d78eae3251e692ce8b0ce"
integrity sha512-ZvO2tAcjmMi8V/5Z3JsyofMe3hasRcaw88cto5etSVMwVQfeivGAlEYmaQgceUSVYFofVjT+ioHsATjdWcFt1w==

"@types/node@*":
version "13.11.1"
resolved "https://registry.yarnpkg.com/@types/node/-/node-13.11.1.tgz#49a2a83df9d26daacead30d0ccc8762b128d53c7"
Expand Down Expand Up @@ -43,6 +60,11 @@ ansi-styles@^3.2.1:
dependencies:
color-convert "^1.9.0"

arg@^4.1.0:
version "4.1.3"
resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089"
integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==

array-back@^1.0.3, array-back@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/array-back/-/array-back-1.0.4.tgz#644ba7f095f7ffcf7c43b5f0dc39d3c1f03c063b"
Expand All @@ -62,6 +84,11 @@ balanced-match@^1.0.0:
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=

bignumber.js@*:
version "9.0.0"
resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.0.0.tgz#805880f84a329b5eac6e7cb6f8274b6d82bdf075"
integrity sha512-t/OYhhJ2SD+YGBQcjY8GzzDHEk9f3nerxjtfa6tlMXfe7frs/WozhvCNoGvpM0P3bNf3Gq5ZRMlGr5f3r4/N8A==

brace-expansion@^1.1.7:
version "1.1.11"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
Expand All @@ -75,6 +102,11 @@ browser-stdout@1.3.0:
resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.0.tgz#f351d32969d32fa5d7a5567154263d928ae3bd1f"
integrity sha1-81HTKWnTL6XXpVZxVCY9korjvR8=

buffer-from@^1.0.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==

camelcase@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a"
Expand Down Expand Up @@ -158,6 +190,11 @@ diff@3.3.1:
resolved "https://registry.yarnpkg.com/diff/-/diff-3.3.1.tgz#aa8567a6eed03c531fc89d3f711cd0e5259dec75"
integrity sha512-MKPHZDMB0o6yHyDryUOScqZibp914ksXwAMYMTHj6KO8UeKsRYNJD3oNCKjTqZon+V488P7N/HzXF8t7ZR95ww==

diff@^4.0.1:
version "4.0.2"
resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d"
integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==

error-ex@^1.2.0:
version "1.3.2"
resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf"
Expand Down Expand Up @@ -359,6 +396,11 @@ lodash@^4.17.15:
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==

make-error@^1.1.1:
version "1.3.6"
resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2"
integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==

memorystream@^0.3.1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/memorystream/-/memorystream-0.3.1.tgz#86d7090b30ce455d63fbae12dda51a47ddcaf9b2"
Expand Down Expand Up @@ -577,6 +619,19 @@ solc@0.4.26:
semver "^5.3.0"
yargs "^4.7.1"

source-map-support@^0.5.17:
version "0.5.19"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61"
integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==
dependencies:
buffer-from "^1.0.0"
source-map "^0.6.0"

source-map@^0.6.0:
version "0.6.1"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==

spdx-correct@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.0.tgz#fb83e504445268f154b074e218c87c003cd31df4"
Expand Down Expand Up @@ -682,6 +737,17 @@ ts-generator@^0.0.8:
resolve "^1.8.1"
ts-essentials "^1.0.0"

ts-node@^8.10.2:
version "8.10.2"
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.10.2.tgz#eee03764633b1234ddd37f8db9ec10b75ec7fb8d"
integrity sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA==
dependencies:
arg "^4.1.0"
diff "^4.0.1"
make-error "^1.1.1"
source-map-support "^0.5.17"
yn "3.1.1"

typechain@2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/typechain/-/typechain-2.0.0.tgz#62143b48cdf8f95a777f1b76617af077b2d44eee"
Expand Down Expand Up @@ -773,3 +839,8 @@ yargs@^4.7.1:
window-size "^0.2.0"
y18n "^3.2.1"
yargs-parser "^2.4.1"

yn@3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==
6 changes: 5 additions & 1 deletion examples/truffle-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
"scripts": {
"generate-types": "typechain --target=truffle-v5 'build/contracts/*.json'",
"postinstall": "truffle compile && yarn generate-types",
"migrate": "tsc -p . --outDir ./migrations && truffle migrate",
"migrate": "tsc -p ./tsconfig.migrate.json --outDir ./migrations && truffle migrate",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@typechain/truffle-v5": "^2.0.0",
"@types/bn.js": "^4.11.6",
"@types/chai": "^4.2.11",
"@types/mocha": "^7.0.2",
"@types/web3": "^1.2.2",
"truffle": "^5.1.22",
"typechain": "2.0.0",
"typescript": "^3.8.3"
Expand Down
4 changes: 0 additions & 4 deletions examples/truffle-v5/tsconfig,migrations.json

This file was deleted.

4 changes: 4 additions & 0 deletions examples/truffle-v5/tsconfig.migrate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["./migrations-ts/*.ts", "./types/**/*.ts"]
}
Loading

0 comments on commit 1f32ec6

Please sign in to comment.