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

update links for rt2902 #436

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion builders/build/canonical-contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Moonbeam、Moonriver和Moonbase Alpha上包含一组按地址和基于源网络
| [Parachain Staking](https://github.com/moonbeam-foundation/moonbeam/blob/master/precompiles/parachain-staking/StakingInterface.sol){target=\_blank} | {{ networks.moonbase.precompiles.staking}} |
| [Crowdloan Rewards](https://github.com/moonbeam-foundation/moonbeam/blob/master/precompiles/crowdloan-rewards/CrowdloanInterface.sol){target=\_blank} | {{ networks.moonbase.precompiles.crowdloan }} |
| [ERC-20 Interface](https://github.com/moonbeam-foundation/moonbeam/blob/master/precompiles/balances-erc20/ERC20.sol){target=\_blank} | {{ networks.moonbase.precompiles.erc20 }} |
| [Democracy](https://github.com/moonbeam-foundation/moonbeam/blob/master/precompiles/pallet-democracy/DemocracyInterface.sol){target=\_blank} | {{ networks.moonbase.precompiles.democracy }} |
| Democracy [已删除] | {{ networks.moonbase.precompiles.democracy }} |
| [Xtokens](https://github.com/moonbeam-foundation/moonbeam/blob/master/precompiles/xtokens/Xtokens.sol){target=\_blank} | {{ networks.moonbase.precompiles.xtokens }} |
| [Relay Encoder](https://github.com/moonbeam-foundation/moonbeam/blob/master/precompiles/relay-encoder/RelayEncoder.sol){target=\_blank} | {{ networks.moonbase.precompiles.relay_encoder }} |
| [XCM Transactor V1](https://github.com/moonbeam-foundation/moonbeam/blob/master/precompiles/xcm-transactor/src/v1/XcmTransactorV1.sol){target=\_blank} | {{networks.moonbase.precompiles.xcm_transactor_v1 }} |
Expand Down
2 changes: 1 addition & 1 deletion builders/interoperability/xcm/fees.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ Moonbeam对通用XCM指令进行了基准测试,而可替代的XCM指令仍然

| Moonbeam | Moonriver | Moonbase Alpha |
|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| [{{ networks.moonbeam.xcm.instructions.wei_per_weight.display }}](https://github.com/moonbeam-foundation/moonbeam/blob/{{networks.moonbeam.spec_version}}/runtime/moonbeam/src/lib.rs#L141){target=\_blank} | [{{ networks.moonriver.xcm.instructions.wei_per_weight.display }}](https://github.com/moonbeam-foundation/moonbeam/blob/{{networks.moonriver.spec_version}}/runtime/moonbeam/src/lib.rs#L142){target=\_blank} | [{{ networks.moonbase.xcm.instructions.wei_per_weight.display }}](https://github.com/moonbeam-foundation/moonbeam/blob/{{networks.moonbase.spec_version}}/runtime/moonbase/src/lib.rs#L148){target=\_blank} |
| [{{ networks.moonbeam.xcm.instructions.wei_per_weight.display }}](https://github.com/moonbeam-foundation/moonbeam/blob/{{networks.moonbeam.spec_version}}/runtime/moonbeam/src/lib.rs#L141){target=\_blank} | [{{ networks.moonriver.xcm.instructions.wei_per_weight.display }}](https://github.com/moonbeam-foundation/moonbeam/blob/{{networks.moonriver.spec_version}}/runtime/moonbeam/src/lib.rs#L142){target=\_blank} | [{{ networks.moonbase.xcm.instructions.wei_per_weight.display }}](https://github.com/moonbeam-foundation/moonbeam/blob/{{networks.moonbase.spec_version}}/runtime/moonbase/src/lib.rs#L144){target=\_blank} |

这意味着以Moonbeam为例,计算一个XCM指令以储备资产作为费用的公式如下:

Expand Down
2 changes: 1 addition & 1 deletion builders/interoperability/xcm/remote-evm-calls.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Moonbeam的EVM仅能通过[Ethereum Pallet](https://github.com/paritytech/fronti

XCM队列的配置表明XCM消息应该设置为`20,000,000,000`权重单位(即`0.02`秒的区块执行时间)内可被执行。假设XCM消息因给定区块中的执行时间不足而无法执行,并且权重要求超过`20,000,000,000`。在这种情况下,XCM消息将被标记为`overweight`,并且只能通过民主的方式执行。

每条XCM消息的`20,000,000,000`权重限制设置了可用于通过XCM进行远程EVM调用的Gas限制。对于所有基于Moonbeam的网络,比率为[`25,000` Gas单位每单位权重](https://github.com/moonbeam-foundation/moonbeam/blob/{{ networks.moonbase.spec_version }}/runtime/moonbase/src/lib.rs#L406){target=\_blank} ([`WEIGHT_REF_TIME_PER_SECOND`](https://paritytech.github.io/substrate/master/frame_support/weights/constants/constant.WEIGHT_REF_TIME_PER_SECOND.html){target=\_blank} / [`GAS_PER_SECOND`](https://github.com/moonbeam-foundation/moonbeam/blob/{{ networks.moonbase.spec_version }}/runtime/moonbase/src/lib.rs#L402){target=\_blank})。考虑到您需要一些XCM消息权重来自行执行XCM指令。因此,远程EVM调用可能还剩下大约`18,000,000,000`的重量,即`720,000` Gas单位。因此,您可以为远程EVM调用提供的最大Gas限制约为`720,000`个Gas单位。请注意,此数值可能会在未来发生变化。
每条XCM消息的`20,000,000,000`权重限制设置了可用于通过XCM进行远程EVM调用的Gas限制。对于所有基于Moonbeam的网络,比率为[`25,000` Gas单位每单位权重](https://github.com/moonbeam-foundation/moonbeam/blob/{{ networks.moonbase.spec_version }}/runtime/moonbase/src/lib.rs#L402){target=\_blank} ([`WEIGHT_REF_TIME_PER_SECOND`](https://paritytech.github.io/substrate/master/frame_support/weights/constants/constant.WEIGHT_REF_TIME_PER_SECOND.html){target=\_blank} / [`GAS_PER_SECOND`](https://github.com/moonbeam-foundation/moonbeam/blob/{{ networks.moonbase.spec_version }}/runtime/moonbase/src/lib.rs#L398){target=\_blank})。考虑到您需要一些XCM消息权重来自行执行XCM指令。因此,远程EVM调用可能还剩下大约`18,000,000,000`的重量,即`720,000` Gas单位。因此,您可以为远程EVM调用提供的最大Gas限制约为`720,000`个Gas单位。请注意,此数值可能会在未来发生变化。

简单来说,以下为常规和远程EVM调用之间的主要区别:

Expand Down
2 changes: 1 addition & 1 deletion builders/pallets-precompiles/precompiles/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ description: Moonbeam上可用Solidity预编译的概述。预编译使您能够
| [Parachain Staking](https://github.com/moonbeam-foundation/moonbeam/blob/master/precompiles/parachain-staking/StakingInterface.sol){target=\_blank} | {{ networks.moonbase.precompiles.staking}} |
| [Crowdloan Rewards](https://github.com/moonbeam-foundation/moonbeam/blob/master/precompiles/crowdloan-rewards/CrowdloanInterface.sol){target=\_blank} | {{ networks.moonbase.precompiles.crowdloan }} |
| [ERC-20 Interface](https://github.com/moonbeam-foundation/moonbeam/blob/master/precompiles/balances-erc20/ERC20.sol){target=\_blank} | {{ networks.moonbase.precompiles.erc20 }} |
| [Democracy](https://github.com/moonbeam-foundation/moonbeam/blob/master/precompiles/pallet-democracy/DemocracyInterface.sol){target=\_blank} | {{ networks.moonbase.precompiles.democracy }} |
| Democracy [已删除] | {{ networks.moonbase.precompiles.democracy }} |
| [Xtokens](https://github.com/moonbeam-foundation/moonbeam/blob/master/precompiles/xtokens/Xtokens.sol){target=\_blank} | {{ networks.moonbase.precompiles.xtokens }} |
| [Relay Encoder](https://github.com/moonbeam-foundation/moonbeam/blob/master/precompiles/relay-encoder/RelayEncoder.sol){target=\_blank} | {{ networks.moonbase.precompiles.relay_encoder }} |
| [XCM Transactor V1](https://github.com/moonbeam-foundation/moonbeam/blob/master/precompiles/xcm-transactor/src/v1/XcmTransactorV1.sol){target=\_blank} | {{networks.moonbase.precompiles.xcm_transactor_v1 }} |
Expand Down