Dry run gas limit estimation

Sergej Kostjucenko requested to merge aj/dry-run-gas-limit into master

Created by: ascjones

To determine the gas limit to supply for instantiate and call commands, first invoke via rpc to determine gas_required for estimation. Will be skipped if gas limit defined explicitly.

todo

  • prompt user for estimated gas limit
  • add option to skip prompt, but now display estimated gas required

From https://github.com/paritytech/cargo-contract/issues/432.

/cc @athei

Merge request reports