Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

quickstart draft#2

Merged
vstam1 merged 4 commits intomainfrom
vstam1/quickstart
Apr 20, 2023
Merged

quickstart draft#2
vstam1 merged 4 commits intomainfrom
vstam1/quickstart

Conversation

@vstam1
Copy link
Contributor

@vstam1 vstam1 commented Apr 13, 2023

Draft for quickstart. Some links and names are probably going to change based on the xcm-executor import into cumulus.

BuyExecution{fees: (Here, amount).into(), weight_limit: WeightLimit::Unlimited}
```
To execute XCM instructions, execution time (weight) has to be bought. The amount of execution time depends on the number and type of instructions in the XCM. The `BuyExecution` instruction pays for the weight using the `fees`. The `fees` parameter describes the asset in the `Holding register` that should be used for paying for the weight. The `weight_limit` defines the maximum amount of fees that can be used for buying execution time. See [fees]() for more information about the fee payments.
To execute XCM instructions, weight has to be bought. The amount of weight depends on the number and type of instructions in the XCM. The `BuyExecution` instruction pays for the weight using the `fees`. The `fees` parameter describes the asset in the `Holding register` that should be used for paying for the weight. The `weight_limit` defines the maximum amount of fees that can be used for buying weight. See [fees]() for more information about the fees in XCM.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should maybe say something about weight. Probably saying it vaguely means "resources" is fine.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, you don't necessarily need to buy weight to execute XCM instructions. It could be that you trust the caller (maybe same development team) so you don't need to pay for fees. It's good to talk more about this in the weight/fees chapter, but it would be good to mention why we are buying weight

@vstam1 vstam1 merged commit 0e50ed1 into main Apr 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants