Git Product home page Git Product logo

Comments (5)

jdkanani avatar jdkanani commented on May 22, 2024

Would be great if buidler could include deployedByteCode, sourceMap, deployedSourceMap, sources and id (to map back to sources) :)

Is there any reason or benefit for not using truffle's artifact format?

from hardhat.

alcuadrado avatar alcuadrado commented on May 22, 2024

Truffle's artifact format is both incomplete and bloated. It doesn't include linkReferences, which makes linking libraries unnecessarily tricky, and it includes many things that are not used.

I'm not sure if the artifact is the right place to store information about deployments. I haven't came up with a clear alternative, but I think something better could be done.

I'd love to include source maps, but I need to play with tools that uses them first, to figure out what is the right way of doing it. Can you point me to any tool with source maps support?

from hardhat.

federicobond avatar federicobond commented on May 22, 2024

evmlab has some source map support. I'm not a fan of including deployment info either. I think that requires a separate format.

from hardhat.

jdkanani avatar jdkanani commented on May 22, 2024

My mistake. I don't want deployment details in artifacts, but runtimeBytecode and runtimeSourceMap, I think truffle calls it deployedBytecode.

@alcuadrado sol-trace also uses source-map to trace revert opcode.

from hardhat.

shrugs avatar shrugs commented on May 22, 2024

I like the separation between deployment info and other artifact information. zos-cli places deployment info in the root of the project in another .json file, which I prefer. I'd like to be able to completely nuke my artifacts directory and re-instantiate it by compiling without losing any information.

from hardhat.

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.