Skip to content

Use transactionPaymentCallApi.queryCallInfo to set weights dynamically on XCM calls#74

Merged
BulatSaif merged 4 commits intomainfrom
bs_query_weight
May 15, 2023
Merged

Use transactionPaymentCallApi.queryCallInfo to set weights dynamically on XCM calls#74
BulatSaif merged 4 commits intomainfrom
bs_query_weight

Conversation

@BulatSaif
Copy link

@BulatSaif BulatSaif commented May 12, 2023

fix: #72

Changes

  1. add function to calculate weight and fee
  2. Fix local-kubernetis helm charts
  3. Fix mint base collator

@BulatSaif BulatSaif requested a review from PierreBesson as a code owner May 12, 2023 08:09
@BulatSaif BulatSaif self-assigned this May 12, 2023
@BulatSaif BulatSaif changed the title Bs query weight calculate weight May 12, 2023
@BulatSaif BulatSaif changed the title calculate weight Use transactionPaymentCallApi.queryCallInfo to set weights dynamically on XCM calls May 12, 2023
@PierreBesson
Copy link
Contributor

Very good, you are computing the weights against the parachain substrate client then passing it to the relay-chain XCM call.

BulatSaif added 2 commits May 12, 2023 23:36
  File "/app/app/lib/runtime_utils.py", line 13, in get_substrate_runtime
    last_runtime_upgrade = node_client.query("System", "LastRuntimeUpgrade").get('value', {'spec_version': None,
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'scale_info::120' object has no attribute 'get'
@BulatSaif BulatSaif merged commit f82e743 into main May 15, 2023
@BulatSaif BulatSaif deleted the bs_query_weight branch May 15, 2023 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use transactionPaymentCallApi.queryCallInfo to set weights dynamically on XCM calls

2 participants