freeverseio / laos

GNU General Public License v3.0
17 stars 6 forks source link

Start properly benchmarking precompile calls #174

Open ghost opened 10 months ago

ghost commented 10 months ago

Currently we use laos-evolution pallet through a LaosEvolution trait and there is no notion of weights for precompile calls.

Solution for this is to start following the pattern that moonbeam, astar and other EVM chains use: dispatch precompile calls to the respective extrinsic of the pallet. However, since we don't want to allow external calls from Substrate side, we might want to restrict the origin for the pallet extrinsics, i.e have a custom PrecompileOrigin

ghost commented 10 months ago

another solution is to simply use db recorder in PrecompileHandle

ghost commented 10 months ago

https://github.com/freeverseio/laos/pull/189