sui
sui copied to clipboard
[rpc] Add `dryRunMoveCall`
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).
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
this is blocked by #5836