Open maurolacy opened 7 months ago
This would probably need to be a different project / repository. Something like mesh-security-provider-sdk
or so.
Not sure, but perhaps some common library can be built, including functionality that can be used on both SDKs.
In BeforeValidatorSlashed there is not enough context to use such as InfractionTime, power, SlashAmount for out_msg. So there are two solutions:
Or is there a better idea?
(This or an equivalent issue must be created on the
mesh-security-sdk
repo. Creating here for visibility / reference).A
x/meshsecurity
module is required on the Provider, so that slashing events can be forwarded to the contracts for processing.The native slashing implementation at the contracts level (#129) is done.