osmosis-labs / mesh-security

Other
59 stars 7 forks source link

Native slashing SDK / routing mechanism #174

Open maurolacy opened 7 months ago

maurolacy commented 7 months ago

(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.

maurolacy commented 5 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.

likesToEatFish commented 1 day ago

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?