pub fn gen_zkapp_command_from(params: GenZkappCommandParams<'_>) -> ZkAppCommand
Expand description
gen_zkapp_command_from
generates a zkapp_command and record the change of accounts accordingly
in account_state_tbl
. Note that account_state_tbl
is optional. If it’s not provided
then it would be computed from the ledger. If you plan to generate several zkapp_command,
then please manually pass account_state_tbl
to gen_zkapp_command_from
function.
If you are generating several zkapp_command, it’s better to pre-compute the
account_state_tbl
before you call this function. This way you can manually set the
role of fee payer accounts to be Fee_payer
in account_state_tbl
which would prevent
those accounts being used as ordinary participants in other zkapp_command.
Generated zkapp_command uses dummy signatures and dummy proofs.