You can create scrpits that can be run by solidbyte. Solidbyte will provide
these scripts with some useful things, like an instantiated
web3.contract.Contract representations of your smart
There’s no reason it’s necessary to create scripts this way, but it’s intended to make things easier.
The following must be implemented in your script for Solidbyte to be able to run it.
main() function is expected by Solidbyte when running the
sb script command. The following kwargs will be provided if you
include them in your function definition:
network- The name of the network used in the CLI command
contracts- An AttrDict of your deployed contracts.
web3- An instantiated
A return value is not required, but if
Solidbyte will consider that an error state.