AstarNetwork / astar-frame

Core frame modules for Astar & Shiden network.
Other
57 stars 38 forks source link

`xvm_call` now returns output- or encoded error data #139

Closed 0x7CFE closed 1 year ago

0x7CFE commented 1 year ago

This PR adds the ability to get output data of a XVM call, or an error.

Implementation details

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

github-actions[bot] commented 1 year ago

Code Coverage

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%