Giter VIP home page Giter VIP logo

Comments (45)

mkosowsk avatar mkosowsk commented on August 20, 2024 1

@krzkaczor funded! Looking forward to the result :)

For any interested bounty hunters, this is an Approval Required bounty so please comment with a short plan of attack to be considered for it. Happy hunting!

from typechain.

mkosowsk avatar mkosowsk commented on August 20, 2024 1

@mkosowsk thanks for funding!!!

My pleasure πŸ‘ funded from the ECF Web 3.0 Infrastructure Fund, so thanks to the Ethereum Community Fund!

from typechain.

mkosowsk avatar mkosowsk commented on August 20, 2024 1

Hi @kpulkit29, unfortunately after internal discussion my team has decided to remove you from this bounty as we feel that it was not appropriate for your skillset.

To other bounty hunters, this issue is now once again open. Please feel free to apply and list a plan of attack that takes into account recent comments from @krzkaczor. Thanks!

from typechain.

Destiner avatar Destiner commented on August 20, 2024 1

Pushed a few commits. If you want me to update the docs too, please let me know.

from typechain.

vs77bb avatar vs77bb commented on August 20, 2024

@krzkaczor Mind adding a bit more detail on an 'Acceptance Criteria' for this PR to be merged? This will help clarify to potential contributors on your expectations πŸ‘

from typechain.

krzkaczor avatar krzkaczor commented on August 20, 2024

@vs77bb updated ticket description.

from typechain.

gitcoinbot avatar gitcoinbot commented on August 20, 2024

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 200.0 DAI (200.0 USD @ $1.0/DAI) attached to it.

from typechain.

kpulkit29 avatar kpulkit29 commented on August 20, 2024

I request you to shed a little more light on what exactly needs to be done.This will help avoid any hassle

from typechain.

krzkaczor avatar krzkaczor commented on August 20, 2024

0x created typings for lib itself: https://www.npmjs.com/package/ethers-typescript-typings what we need is to generate dynamically typings for contracts:

const contract = new ethers.Contract(address, abi, provider); // this is `any`

docs

I think it could be implemented like it's done in web3js target so new ethers.Contract<T>(address, abi, provider) // returns T wrapper has type parameter.

Please read truffle target source code in this project, beacuse it will be very similiar. We need to generate typings based on ABI and then have a way to plug them easily into ethers.Contract calls.

from typechain.

krzkaczor avatar krzkaczor commented on August 20, 2024

@mkosowsk thanks for funding!!!

from typechain.

kpulkit29 avatar kpulkit29 commented on August 20, 2024

from typechain.

kpulkit29 avatar kpulkit29 commented on August 20, 2024

from typechain.

krzkaczor avatar krzkaczor commented on August 20, 2024

@kpulkit29 you're talking about deploying in tests right? I think it doesn't make much differnt β€” use whatever is easier for you.

from typechain.

kpulkit29 avatar kpulkit29 commented on August 20, 2024

the dumbContract.spec.ts in targets/web3-1.0.0 there is a import
import { DumbContract } from "./types/web3-contracts/DumbContract";
Cannot locate this file

from typechain.

krzkaczor avatar krzkaczor commented on August 20, 2024

@kpulkit29 it's a generated file by typechain β€” it should not be a part of git repository as explained in readme. Just run yarn test and it will be there.

from typechain.

kpulkit29 avatar kpulkit29 commented on August 20, 2024

from typechain.

krzkaczor avatar krzkaczor commented on August 20, 2024

@kpulkit29 PR? I am not sure what's you're talking about

from typechain.

kpulkit29 avatar kpulkit29 commented on August 20, 2024

New pr #101

from typechain.

kpulkit29 avatar kpulkit29 commented on August 20, 2024

Please review and suggest how should I go ahead with writing tests

from typechain.

kpulkit29 avatar kpulkit29 commented on August 20, 2024

Please suggest so that I can go ahead

from typechain.

gitcoinbot avatar gitcoinbot commented on August 20, 2024

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 200.0 DAI (200.0 USD @ $1.0/DAI) has been submitted by:

  1. @kpulkit29
  2. @Destiner

@mkosowsk please take a look at the submitted work:


from typechain.

mkosowsk avatar mkosowsk commented on August 20, 2024

Hi @krzkaczor does @kpulkit29's PR satisfy the requirements for this issue? If not, what steps need to be taken! Thanks :)

from typechain.

kpulkit29 avatar kpulkit29 commented on August 20, 2024

from typechain.

mkosowsk avatar mkosowsk commented on August 20, 2024

@kpulkit29 noted :) Just confirming with @krzkaczor that the PR satisfies the requirements before paying out the bounty πŸ‘

from typechain.

krzkaczor avatar krzkaczor commented on August 20, 2024

@kpulkit29 what you did so far looks more or less fine.

Now you need to create actual target implementation as shown here: https://github.com/ethereum-ts/TypeChain/blob/master/lib/targets/truffle/index.ts This doesn't generate any new typings so far.

from typechain.

krzkaczor avatar krzkaczor commented on August 20, 2024

@mkosowsk it's not mergable now, I will let you know when it is. I am on vacation now so i can't respond too often.

from typechain.

kpulkit29 avatar kpulkit29 commented on August 20, 2024

from typechain.

kpulkit29 avatar kpulkit29 commented on August 20, 2024

from typechain.

kpulkit29 avatar kpulkit29 commented on August 20, 2024

from typechain.

kpulkit29 avatar kpulkit29 commented on August 20, 2024

from typechain.

krzkaczor avatar krzkaczor commented on August 20, 2024

@kpulkit29 No it's still not what it was supposed to be.

  • generated stuff should be just typings no real class impl, look how Truffle target is done
  • tests are not using generated wrappers (?)
  • you didn't remove package.lock file
  • tests don't pass

TBH: I submitted Gitcoin request b/c I don't have time to work on this issue but I think it requires more understanding of the project and problem β€”Β otherwise, I spent more time managing and checking PRs that I would spent developing it. CC: @mkosowsk

from typechain.

mkosowsk avatar mkosowsk commented on August 20, 2024

@krzkaczor noted, will discuss internally for you and come back with something πŸ‘

from typechain.

kpulkit29 avatar kpulkit29 commented on August 20, 2024

from typechain.

Destiner avatar Destiner commented on August 20, 2024

Hi there. I've managed to write generator for ethers and it seems to be working fine for both functions and events. What's left is basically to write tests and solve minor design tasks.

Do you want me to pursue it?

from typechain.

krzkaczor avatar krzkaczor commented on August 20, 2024

@Destiner yes, of course! :) Please submit PR when you're ready.

from typechain.

Destiner avatar Destiner commented on August 20, 2024

Cool!

Few questions:

  • ethers.js Contract provides two ways of calling functions: contract.functions.funcName and contract.funcName. I made the implementation for the first method, should we also add support for the second one? I wasn't sure whether it's redundant or not.
  • ethers.js Contract also provides an ability to estime gas costs for calls via contract.estimateGas.funcName. I think we want to add typings for this as well.

from typechain.

krzkaczor avatar krzkaczor commented on August 20, 2024

from typechain.

mkosowsk avatar mkosowsk commented on August 20, 2024

Hi @Destiner please apply for work here and you will be approved to work on this bounty of 200 DAI. Thanks!

from typechain.

gitcoinbot avatar gitcoinbot commented on August 20, 2024

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 6Β months, 2Β weeks from now.
Please review their action plans below:

1) destiner has been approved to start work.

The code for the new target is already written, what's left is to write tests and probably update docs.

Learn more on the Gitcoin Issue Details page.

from typechain.

Destiner avatar Destiner commented on August 20, 2024

Applied on Gitcoin and will submit PR tonight.

from typechain.

mkosowsk avatar mkosowsk commented on August 20, 2024

@Destiner approved! Looking forward to the PR!

from typechain.

krzkaczor avatar krzkaczor commented on August 20, 2024

@Destiner thanks for your PR! I accpeted and merged it! I will update changelog and readme any second.

@mkosowsk thanks for funding and I agree that @Destiner should receive a bounty :)

from typechain.

mkosowsk avatar mkosowsk commented on August 20, 2024

Great! @Destiner please submit your work here and I will pay out ASAP from the ECF Web 3.0 Infrastructure Fund πŸ‘

from typechain.

Destiner avatar Destiner commented on August 20, 2024

Thanks! Submitting it.

from typechain.

gitcoinbot avatar gitcoinbot commented on August 20, 2024

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 200.0 DAI (200.0 USD @ $1.0/DAI) attached to this issue has been approved & issued to @Destiner.

from typechain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.