You can have the init command create a custom project structure for you. If you pass in the option --config it will only create the config file. Open

delib

submited by
Style Pass
2021-07-15 16:30:10

You can have the init command create a custom project structure for you. If you pass in the option --config it will only create the config file. Open the file to set your own project file paths and then call delib init again.

A file called delib.js gets made when you create a project. It contains your project's configuration options. Use this to adjust your project file paths, connection options, and default command transaction options. Delib supports solc 0.5.1 - 0.8.6.

Delib can be used outside a project. Outside a project file paths will be relative to your process point of entry. Connection options will also need to be specified. You can specify these with the library and pass them in as options if using the command tool.

Your contract's deployed addresses are saved in a plain text file with a file name of ContractnameAddresses. Each address is separated by a new line, and the most recent address is at the bottom of the list. The library and command tool use that address when no address is specified and you can manually add your own addresses to this file.

Building a contract with the command tool will allow it to be accessible with the library. Also, deploying a contract using the library will make the following command tool calls refer to the library's deployed address, and vice versa. You can deploy contracts and then quickly test whether your methods are working with commands.

Leave a Comment
Related Posts