Closed 0x7CFE closed 1 year ago
Package | Line Rate | Branch Rate | Health |
---|---|---|---|
chain-extensions/xvm/src | 0% | 0% | ❌ |
frame/contracts-migration/src | 0% | 0% | ❌ |
frame/dapps-staking/src | 89% | 0% | ✔ |
frame/pallet-xcm/src | 64% | 0% | ➖ |
frame/pallet-xvm/src/pallet | 8% | 0% | ❌ |
chain-extensions/types/assets/src | 0% | 0% | ❌ |
chain-extensions/pallet-assets/src | 0% | 0% | ❌ |
precompiles/assets-erc20/src | 76% | 0% | ➖ |
precompiles/sr25519/src | 79% | 0% | ➖ |
chain-extensions/types/xvm/src | 0% | 0% | ❌ |
precompiles/substrate-ecdsa/src | 78% | 0% | ➖ |
chain-extensions/types/dapps-staking/src | 0% | 0% | ❌ |
frame/block-reward/src | 82% | 0% | ✔ |
precompiles/dapps-staking/src | 93% | 0% | ✔ |
precompiles/xcm/src | 84% | 0% | ✔ |
precompiles/xvm/src | 63% | 0% | ➖ |
primitives/xcm/src | 64% | 0% | ➖ |
frame/collator-selection/src | 80% | 0% | ➖ |
chain-extensions/dapps-staking/src | 0% | 0% | ❌ |
frame/xc-asset-config/src | 68% | 0% | ➖ |
precompiles/utils/src/data | 72% | 0% | ➖ |
precompiles/utils/src | 72% | 0% | ➖ |
precompiles/utils/macro/tests | 0% | 0% | ❌ |
frame/dapps-staking/src/pallet | 87% | 0% | ✔ |
frame/pallet-xvm/src | 6% | 0% | ❌ |
precompiles/utils/macro/src | 0% | 0% | ❌ |
frame/custom-signatures/src | 52% | 0% | ➖ |
Summary | 61% (2591 / 4220) | 0% (0 / 0) | ➖ |
Minimum allowed line rate is 50%
This PR adds the ability to get output data of a XVM call, or an error.
Implementation details
bare_call
which returnsContractExecResult
xvm_bare_call
API was added to the XVM pallet.Dispatchable
API and without emitting events.xvm_call
precompile now returns(bool success, uint64 gas_spent, bytes memory data)
Notes
According to the design, XVM does not pose any restrictions on the format of the data returned from the call. It is considered to be an implementation detail of the XVM backend. For example, error data returned from Wasm backend are in fact SCALE encoded
Result
. For EVM backend this can be different.How it was tested
flipper
contract from ink! examples was deployed on Shibuya/Zombienet