Search by name, SuiNS, address, digest, object ID, coin type or checkpoint.

slashing

Module0xa9ac…bf1e
Move path
0xfdc8…ea77::slashing
Functions
63 public, 0 entry
Structs
2
Friend modules
None
slashing

Declarations

Rebuilt from the module interface. No verified source is published, and function bodies are only available as bytecode.

module slashing;
struct SlashingManager has key {
id: UID,
slashing_candidates: Table<ID, SlashingProposal>,
}
struct SlashingProposal has drop, store {
epoch: u32,
node_id: ID,
voting_weight: u16,
voters: VecSet<ID>,
}
fun add_vote(&mut SlashingProposal,ID,u16)
public fun cleanup_slashing_proposals(&mut SlashingManager,&staking::Staking,vector<ID>)
public fun execute_slashing(&mut SlashingManager,&mut staking::Staking,&mut wal::ProtectedTreasury,ID)
fun fresh_proposal(u32, ID): SlashingProposal
public(package) fun new()
public fun vote_for_slashing(&mut SlashingManager,&staking::Staking,auth::Authenticated,ID,ID)