-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from renproject/typescripts-tests
Use Truffle's native Typescript support
- Loading branch information
Showing
22 changed files
with
1,271 additions
and
516 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
diff --git a/node_modules/solidity-coverage/lib/truffleConfig.js b/node_modules/solidity-coverage/lib/truffleConfig.js | ||
index 51eb480..a22a277 100644 | ||
--- a/node_modules/solidity-coverage/lib/truffleConfig.js | ||
+++ b/node_modules/solidity-coverage/lib/truffleConfig.js | ||
@@ -1,5 +1,6 @@ | ||
module.exports = function truffleConfig(port, gasLimit, gasPrice) { | ||
return ` | ||
+ require("ts-node/register"); | ||
module.exports = { | ||
networks: { | ||
development: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 893422e..4255ed6 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")} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
test-ts/typings/bindings/templates/partials/return_type.handlebars
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
test-ts/typings/bindings/templates/partials/typed_params.handlebars
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
test-ts/typings/bindings/templates/partials/typed_params_2.handlebars
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.