Skip to content

Commit

Permalink
rev
Browse files Browse the repository at this point in the history
  • Loading branch information
themacexpert committed Sep 27, 2024
1 parent 0cd61a0 commit ea1a4c5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
14 changes: 7 additions & 7 deletions builders/interoperability/xcm/xc20/send-xc20s/xtokens-pallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ To determine the weight needed for XCM execution on the destination chain, you'l

In this example, where you're transferring xcUNIT from Moonbase Alpha to the Alphanet relay chain, the instructions that are executed on Alphanet are:

| Instruction | Weight |
|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------:|
| [`WithdrawAsset`](https://github.com/paritytech/polkadot-sdk/blob/polkadot-{{ networks.alphanet.spec_version }}/polkadot/runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs#L54-L62){target=\_blank} | {{ networks.alphanet.xcm_instructions.withdraw.total_weight }} |
| [`ClearOrigin`](https://github.com/paritytech/polkadot-sdk/blob/polkadot-{{ networks.alphanet.spec_version }}/polkadot/runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs#L134-L140){target=\_blank} | {{ networks.alphanet.xcm_instructions.clear_origin.total_weight }} |
| [`BuyExecution`](https://github.com/paritytech/polkadot-sdk/blob/polkadot-{{ networks.alphanet.spec_version }}/polkadot/runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs#L75-L81){target=\_blank} | {{ networks.alphanet.xcm_instructions.buy_exec.total_weight }} |
| [`DepositAsset`](https://github.com/paritytech/polkadot-sdk/blob/polkadot-{{ networks.alphanet.spec_version }}/polkadot/runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs#L132-L140){target=\_blank} | {{ networks.alphanet.xcm_instructions.deposit_asset.total_weight }} |
| **TOTAL** | **{{ networks.alphanet.xcm_message.transfer.weight.display }}** |
| Instruction | Ref Time | Proof Size |
|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------:|:------------------------------------------------------------:|
| [`WithdrawAsset`](https://github.com/moonbeam-foundation/moonbeam/blob/{{ networks.moonbeam.spec_version }}/pallets/moonbeam-xcm-benchmarks/src/weights/fungible.rs#L35){target=\_blank} | {{ xcm.generic_weights.ref_time.deposit_asset.display }} | {{ xcm.generic_weights.proof_size.deposit_asset.display }} |
| [`ClearOrigin`](https://github.com/moonbeam-foundation/moonbeam/blob/{{ networks.moonbeam.spec_version }}/pallets/moonbeam-xcm-benchmarks/src/weights/generic.rs#L191){target=\_blank} | {{ xcm.generic_weights.ref_time.clear_origin.display }} | {{ xcm.generic_weights.proof_size.zero }} |
| [`BuyExecution`](https://github.com/moonbeam-foundation/moonbeam/blob/{{ networks.moonbeam.spec_version }}/pallets/moonbeam-xcm-benchmarks/src/weights/generic.rs#L128-L129){target=\_blank} | {{ networks.alphanet.xcm_instructions.buy_exec.ref_time }} | {{ networks.alphanet.xcm_instructions.buy_exec.proof_size }} |
| [`DepositAsset`](https://github.com/moonbeam-foundation/moonbeam/blob/{{ networks.moonbeam.spec_version }}/pallets/moonbeam-xcm-benchmarks/src/weights/fungible.rs#L60){target=\_blank} | {{ xcm.generic_weights.ref_time.deposit_asset.display }} | {{ xcm.generic_weights.proof_size.deposit_asset.display }} |
| **TOTAL** | **{{ networks.alphanet.xcm_message.transfer.ref_time }}** | **{{ networks.alphanet.xcm_message.transfer.proof_size }}** |

!!! note
Some weights include database reads and writes; for example, the `WithdrawAsset` and `DepositAsset` instructions include both one database read and one write. To get the total weight, you'll need to add the weight of any required database reads or writes to the base weight of the given instruction.
Expand Down
5 changes: 4 additions & 1 deletion variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1283,14 +1283,17 @@ networks:
clear_origin:
total_weight: 2,620,000
buy_exec:
total_weight: 2,823,000
ref_time: 348,048,000
proof_size: 19,056
deposit_asset:
total_weight: 150,445,000
xcm_message:
transfer:
weight:
display: 305,986,000
numbers_only: 305986000
ref_time: 8,103,242,000
proof_size: 4,979,056
moonbase_beta:
xcm_message:
transact:
Expand Down

0 comments on commit ea1a4c5

Please sign in to comment.