sui icon indicating copy to clipboard operation
sui copied to clipboard

[rpc] Add `dryRunMoveCall`

Open Jordan-Mysten opened this issue 3 years ago • 2 comments

We currently have dryRunTransaction which takes a complete transaction and simulates it without committing it. For Wallets and Explorers, we also need a dryRunMoveCall. This shouldn't require a complete valid transaction like dryRunTransaction does.

  • Should not require a signed transaction.
  • Should not validate owned objects.
  • Should not require a gas object.

As an example use-case for explorer, we want users to be able to inspect the result of function calls on published packages (essentially treating them as a view function).

Jordan-Mysten avatar Oct 04 '22 15:10 Jordan-Mysten

ge commented: This is now blocked by [https://github.com/MystenLabs/sui/issues/5836|https://github.com/MystenLabs/sui/issues/5836|smart-link]

TL;DR is the original impl idea of dryRunMoveCall will not be very useful b/c of a Move entry function limitation, we pivoted it to be used on Move public functions which need some prerequisite work on sui-adapter.

the original workload was estimated to be about 1 week’s work, I will probably need another a couple of days to finish it

exalate-issue-sync[bot] avatar Nov 08 '22 17:11 exalate-issue-sync[bot]

this is blocked by #5836

gegaowp avatar Nov 16 '22 23:11 gegaowp