Skip to content

Commit

Permalink
Updated typechain version and patch
Browse files Browse the repository at this point in the history
  • Loading branch information
0x31 committed Jun 20, 2019
1 parent e4ea11c commit e769f07
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 33 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"ts-generator": "^0.0.8",
"ts-node": "^8.2.0",
"tslint": "^5.17.0",
"typechain": "^0.3.14",
"typechain": "^0.3.17",
"typescript": "^3.5.2",
"underscore": "^1.9.1",
"web3": "^1.0.0-beta.52",
Expand All @@ -59,4 +59,4 @@
"solc": "0.5.9",
"solidity-coverage": "github:rotcivegaf/solidity-coverage#5875f5b7bc74d447f3312c9c0e9fc7814b482477"
}
}
}
27 changes: 0 additions & 27 deletions patches/typechain+0.3.14.patch

This file was deleted.

14 changes: 14 additions & 0 deletions patches/typechain+0.3.17.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/node_modules/typechain/dist/targets/truffle/generation.js b/node_modules/typechain/dist/targets/truffle/generation.js
index 8e57db7..aed8120 100644
--- a/node_modules/typechain/dist/targets/truffle/generation.js
+++ b/node_modules/typechain/dist/targets/truffle/generation.js
@@ -4,7 +4,8 @@ const typeParser_1 = require("../../parser/typeParser");
function codegen(contracts) {
const template = `
/// <reference types="truffle-typings" />
-import { BigNumber } from "bignumber.js";
+import BN from "bn.js";
+type BigNumber = string | number | BN;

${contracts.map(generateContractInterface).join("\n")}

8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5343,10 +5343,10 @@ type-is@~1.6.17, type-is@~1.6.18:
media-typer "0.3.0"
mime-types "~2.1.24"

typechain@^0.3.14:
version "0.3.14"
resolved "https://registry.yarnpkg.com/typechain/-/typechain-0.3.14.tgz#c58df17b20494ad08dff311cf6984bf7a2accb78"
integrity sha512-nOg7n7LngcA4Sx53q+4jjSpIEulEayZYnCMfyItnyxCX3nTCWVg8QXZppMDYNfITkJHex0v5dTgklOQzSbfUkw==
typechain@^0.3.17:
version "0.3.17"
resolved "https://registry.yarnpkg.com/typechain/-/typechain-0.3.17.tgz#aae21d14a9b7aa2a985e25e9f89bea8f54223d4c"
integrity sha512-JydKdW/xdpsp3uLz8y8WlfGX6a8/3BLAKAAmVWI4NvsJED2/BgJ5Du36OjSvlMMZDahP1AdbU+B/NsCiUqLRZg==
dependencies:
command-line-args "^4.0.7"
debug "^3.0.1"
Expand Down

0 comments on commit e769f07

Please sign in to comment.