Skip to content

Releases: Con3X/web3-plugin-craftsman

v.0.1.0 (first release)

08 Sep 22:08
aed385a
Compare
Choose a tag to compare

web3.js Plugin: web3-plugin-craftsman

The web3-plugin-craftsman package is a plugin for web3.js version 4. And it allows instantiating contracts directly from Solidity source code or a Solidity file. So, instead of requiring the Bytecode, that results from compiling the smart contract somewhere, you can pass the source code, or the file path, to ExtendedContract and then use it as you would use a normal web3.js contract object. And you can also write the generated contract's ABI and Bytecode to a TypeScript, or a JavaScript, file that is compatible and easily readable by a normal web3.js Contract.

Features

  • Compile Solidity source code that is provided to the ExtendedContract constructor.

  • The bytecode and ABI are available to read after the compilation finishes.

  • The possibility to save the ABI and the Bytecode. (And this ABI can be used later to enable IntelliSense for the smart contract methods).

  • When deploying the Contract, the generated bytecode is used internally automatically (no need to provide it).

  • The rest is exactly as you would interact with the Contract instance, according to the official web3.js documentation (https://docs.web3js.org/).

  • Do you need more or something else? Try to open an issue and we will discuss it... Are you interested in developing a web3.js plugin for your network, platform, or project? reach out using email to discuss.