question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for truffle@5

See original GitHub issue

Lately there have been some issues with latest versions of tools from the truffle suite.
Some update to the typings should happen sooner or later, or else TypeChain will become obsolete.

My first contact with Solidity ecosystem was just a few weeks ago and only with the most current versions, so I’ve managed to create a project that’s cross-compatible internally.
With a little bit of work I might have something that could serve as an update to the truffle-typings, but that’s also still compatible with TypeChain and existing example projects.
Would anyone be interested in that?
I already have something that works, I just need some guidance in what is actually needed.

Here is a link to my fork of the project: cymerrad/truffle-typings

Issues I’m facing currently are, for example:

  1. What would be the preffered way of interacting with the package? Right now, in the example project mentioned eariler, types are being provided by tsconfig.json options:
    { "typeRoots": ["./node_modules/@types", "./types"], "types": ["node", "truffle-contracts"] }
    This requires specifing all the types needed for the project, not just the truffle’s.
    IMHO, the dream-scenario would be just by importing @types/truffle-contract (otherwise the TS server will not know where to find the declarations outside of the typeRoots specified). However, could we still make it compatible with TypeChain?
  2. Should I provide all the properties existing on the objects and how deep should I go? From my experience with the truffle-contract project, I’d have to suggest a lot of changes to their project, as their usage of getters/setters is just pure insane.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
gitcoinbotcommented, Sep 23, 2019

Issue Status: 1. Open 2. Cancelled


The funding of 200.0 DAI (200.0 USD @ $1.0/DAI) attached to this issue has been cancelled by the bounty submitter

1reaction
cymerradcommented, Jul 10, 2019

I know it has been over half a year since starting this issue, but I just had too much on my plate, and then I had to take a long hiatus from everything.

The issue is non-existent anymore - everything works well out-of-the-box, just as intended.

Read more comments on GitHub >

github_iconTop Results From Across the Web

hardhat-truffle5 | Ethereum development environment for ...
Hardhat plugin for integration with TruffleContract from Truffle 5. This allows tests and scripts written for Truffle to work with Hardhat.
Read more >
@nomiclabs/hardhat-truffle5 - npm
Truffle 5 Hardhat compatibility plugin. Latest version: 2.0.7, ... Start using @nomiclabs/hardhat-truffle5 in your project by running `npm i ...
Read more >
Support for truffle@5 · Issue #131 · dethcrypto/TypeChain
First of all, let me rename this issue to basically fix support for truffle@5.0.0 which in turn requires truffle-contract@4.0.0 and probably ...
Read more >
Take a Dive into Truffle 5
Now Truffle makes this easy with the ability to fetch external contracts verified on Etherscan! Vyper support continues to improve with experimental debugging ......
Read more >
Upgrades + hardhat-truffle5 - OpenZeppelin Forum
The Truffle upgrades plugin does not support @nomiclabs/hardhat-truffle5 . For Hardhat / ethers.js, the contract instances are different than ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found