package.json, and run
hardhat-config.jsfile, require the plugin:
experimentalAddHardhatNetworkMessageTraceHook, showing CALLx and CREATEx operations in the dashboard. You can disable this feature with the
ethernalResetOnStartproperty to the name of the workspace. Everytime the node starts, all accounts/blocks/transactions/contracts will be deleted.
ethernalobject with a
pushfunction on the
hreobject. This function takes two parameters:
name: name of the contract (case sensitive). It needs to match exactly the name of the deployed contract
address: address of the contract
hre.ethernalUploadAst = trueflag in your Hardhat config file (this will upload the ast field, as well as the source field).
hre.ethernal.resetWorkspace(workspaceName)(async function). All accounts/blocks/transactions/contracts will be deleted;