Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print out XCM configs of both source and dest chains in the beginning #81

Open
chrisli30 opened this issue Aug 5, 2023 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@chrisli30
Copy link
Member

Motivation

We should print out the value of

instructionWeight
WEIGHT_REF_TIME_PER_SECOND
and feePerSecond

in the very beginning for the chains and assets used in the program. That way it will be eaiser for developers to read logs.

@chrisli30 chrisli30 added the enhancement New feature or request label Aug 5, 2023
@chrisli30 chrisli30 transferred this issue from AvaProtocol/OAK-blockchain Aug 8, 2023
@chrisli30
Copy link
Member Author

Some xcm configs are read on-chain, but there should be interfaces in adapter that will allow us to call to retrieve those configs. @imstar15 the goal is to call adapter functions to retrieve and print out xcm configs in the beginning of every xcm-demo. Let’s add that line in arthswap price demo first.

@chrisli30
Copy link
Member Author

chrisli30 commented Oct 9, 2023

Moonbeam’s instructionWeight varies across instruction type, and is configured in @oak-network/config, but feePerSecond is calculated by its chain’s PRC with an actual weight value.

The total xcm weight can also be retrieved by overallWeight - payload’s weight

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants