diff --git a/doc/assets/polkadot.js_buy_coin_balances_after.png b/doc/assets/polkadot.js_buy_coin_balances_after.png index 71dcc10..a68202d 100644 Binary files a/doc/assets/polkadot.js_buy_coin_balances_after.png and b/doc/assets/polkadot.js_buy_coin_balances_after.png differ diff --git a/doc/assets/polkadot.js_buy_coin_balances_before.png b/doc/assets/polkadot.js_buy_coin_balances_before.png index 9898c91..69540bd 100644 Binary files a/doc/assets/polkadot.js_buy_coin_balances_before.png and b/doc/assets/polkadot.js_buy_coin_balances_before.png differ diff --git a/doc/assets/polkadot.js_execute_script_buy.png b/doc/assets/polkadot.js_execute_script_buy.png index 2f14628..f24054f 100644 Binary files a/doc/assets/polkadot.js_execute_script_buy.png and b/doc/assets/polkadot.js_execute_script_buy.png differ diff --git a/doc/assets/polkadot.js_execute_script_init.png b/doc/assets/polkadot.js_execute_script_init.png index 64cad5e..1e4061b 100644 Binary files a/doc/assets/polkadot.js_execute_script_init.png and b/doc/assets/polkadot.js_execute_script_init.png differ diff --git a/doc/assets/polkadot.js_multisign_alice_initiates.png b/doc/assets/polkadot.js_multisign_alice_initiates.png index 880ffce..5699fd9 100644 Binary files a/doc/assets/polkadot.js_multisign_alice_initiates.png and b/doc/assets/polkadot.js_multisign_alice_initiates.png differ diff --git a/doc/assets/polkadot.js_multisign_bob_inits_module.png b/doc/assets/polkadot.js_multisign_bob_inits_module.png index 524492a..439b7e2 100644 Binary files a/doc/assets/polkadot.js_multisign_bob_inits_module.png and b/doc/assets/polkadot.js_multisign_bob_inits_module.png differ diff --git a/doc/assets/polkadot.js_multisign_bob_publishes_module.png b/doc/assets/polkadot.js_multisign_bob_publishes_module.png index 8393568..6a08b5e 100644 Binary files a/doc/assets/polkadot.js_multisign_bob_publishes_module.png and b/doc/assets/polkadot.js_multisign_bob_publishes_module.png differ diff --git a/doc/assets/polkadot.js_multisign_eve_finalises.png b/doc/assets/polkadot.js_multisign_eve_finalises.png new file mode 100644 index 0000000..39e7f44 Binary files /dev/null and b/doc/assets/polkadot.js_multisign_eve_finalises.png differ diff --git a/doc/assets/polkadot.js_publish_module.png b/doc/assets/polkadot.js_publish_module.png index fb587c8..5859c7d 100644 Binary files a/doc/assets/polkadot.js_publish_module.png and b/doc/assets/polkadot.js_publish_module.png differ diff --git a/doc/tutorial-multi-signer.md b/doc/tutorial-multi-signer.md index 25adbea..acd2dd9 100644 --- a/doc/tutorial-multi-signer.md +++ b/doc/tutorial-multi-signer.md @@ -18,12 +18,16 @@ Again, developer Bob initialises his module by executing the script transaction |:--:| | _Bob initialises his module using [polkadot.js][polkadotjs]_ | -The student Alice is the first one and executes the script transaction `rent_apartment.mvt`, which is already prepared for the student group Alice, Dave and Eve and with two months of rental. +The student Alice is the first one and executes the script transaction `rent_apartment.mvt`, which is already prepared for the student group Alice, Dave and Eve and with two months of rental. Alice can set her gas limit to 0 because the script will only be executed after everyone has signed. | ![polkadot.js_multisign_alice_initiates.png](assets/polkadot.js_multisign_alice_initiates.png) | |:--:| | _Alice initiates the multi signer execution request using [polkadot.js][polkadotjs]_ | -Now same script transaction must be executed by Dave and Eve as well. +Now same script transaction must be executed by Dave and Eve as well where Dave sets his gas limit also to 0. Eve has estimated the needed gas for the script execution to 1377 and now enters that value because he is the final signer and the script will be executed now. +| ![polkadot.js_multisign_eve_finalises.png](assets/polkadot.js_multisign_eve_finalises.png) | +|:--:| +| _Eve finalises the multi signer execution request using [polkadot.js][polkadotjs]_ | + After all three students have executed that script transaction you should see, that the amounts of tokens have be withdrawn from their accounts. Because every student has to sign the extrinsic call and execute the script execution, the execution request will be stored in the pallet's storage until every student has signed. diff --git a/doc/tutorial.md b/doc/tutorial.md index ee586a6..815475c 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -98,7 +98,7 @@ smove node rpc estimate-gas-publish-module --account-id 5FHneW46xGXgs5mUiveU4sbT The successful result will look like: ```sh -Estimated gas: Estimate (gas_used: 74, vm_status_code: EXECUTED) +Estimated gas: Estimate (gas_used: 732, vm_status_code: EXECUTED) ``` ### Publication @@ -159,7 +159,7 @@ smove node rpc estimate-gas-execute-script -s build/car-wash-example/script_tran ``` with response: ```sh -Estimated gas: Estimate (gas_used: 21, vm_status_code: EXECUTED) +Estimated gas: Estimate (gas_used: 343, vm_status_code: EXECUTED) ``` ### Execution @@ -179,7 +179,7 @@ Parameters are: You have successfully published a Move module on your Polkadot blockchain and executed a Move script successfully. -| ![js_buy_coin_balances_after.png](assets/polkadot.js_buy_coin_balances_before.png) | +| ![js_buy_coin_balances_before.png](assets/polkadot.js_buy_coin_balances_before.png) | |:--:| | _Observe the balance before we execute some new scripts which will charge the user_ |